Lines Matching refs:p_idx
162 int p_idx; in k_mem_domain_add_partition() local
179 for (p_idx = 0; p_idx < max_partitions; p_idx++) { in k_mem_domain_add_partition()
181 if (domain->partitions[p_idx].size == 0U) { in k_mem_domain_add_partition()
186 CHECKIF(!(p_idx < max_partitions)) { in k_mem_domain_add_partition()
195 domain->partitions[p_idx].start = part->start; in k_mem_domain_add_partition()
196 domain->partitions[p_idx].size = part->size; in k_mem_domain_add_partition()
197 domain->partitions[p_idx].attr = part->attr; in k_mem_domain_add_partition()
202 ret = arch_mem_domain_partition_add(domain, p_idx); in k_mem_domain_add_partition()
215 int p_idx; in k_mem_domain_remove_partition() local
227 for (p_idx = 0; p_idx < max_partitions; p_idx++) { in k_mem_domain_remove_partition()
228 if ((domain->partitions[p_idx].start == part->start) && in k_mem_domain_remove_partition()
229 (domain->partitions[p_idx].size == part->size)) { in k_mem_domain_remove_partition()
234 CHECKIF(!(p_idx < max_partitions)) { in k_mem_domain_remove_partition()
244 ret = arch_mem_domain_partition_remove(domain, p_idx); in k_mem_domain_remove_partition()
248 domain->partitions[p_idx].size = 0U; in k_mem_domain_remove_partition()