Lines Matching refs:p
97 MtdPartition *p = &g_mtd_state.partitions[i]; in mtd_scan_partitions() local
98 if (p->name != NULL) { in mtd_scan_partitions()
99 free(p->name); in mtd_scan_partitions()
100 p->name = NULL; in mtd_scan_partitions()
102 p->device_index = -1; in mtd_scan_partitions()
143 MtdPartition *p = &g_mtd_state.partitions[mtdnum]; in mtd_scan_partitions() local
144 p->device_index = mtdnum; in mtd_scan_partitions()
145 p->size = mtdsize; in mtd_scan_partitions()
146 p->erase_size = mtderasesize; in mtd_scan_partitions()
147 p->name = strdup(mtdname); in mtd_scan_partitions()
148 if (p->name == NULL) { in mtd_scan_partitions()
181 MtdPartition *p = &g_mtd_state.partitions[i]; in mtd_find_partition_by_name() local
182 if (p->device_index >= 0 && p->name != NULL) { in mtd_find_partition_by_name()
183 if (strcmp(p->name, name) == 0) { in mtd_find_partition_by_name()
184 return p; in mtd_find_partition_by_name()