Lines Matching refs:gp
49 add_gendisk(struct gendisk *gp) in add_gendisk() argument
63 if (sgp == gp) in add_gendisk()
70 gendisk_array[gp->major] = gp; in add_gendisk()
71 gp->next = gendisk_head; in add_gendisk()
72 gendisk_head = gp; in add_gendisk()
88 del_gendisk(struct gendisk *gp) in del_gendisk() argument
94 gendisk_array[gp->major] = NULL; in del_gendisk()
96 if (*gpp == gp) in del_gendisk()
116 struct gendisk *gp = NULL; in get_gendisk() local
121 if ((gp = gendisk_array[maj])) in get_gendisk()
125 for (gp = gendisk_head; gp; gp = gp->next) in get_gendisk()
126 if (gp->major == maj) in get_gendisk()
130 return gp; in get_gendisk()
147 struct gendisk *gp; in walk_gendisk() local
152 for (gp = gendisk_head; gp; gp = gp->next) in walk_gendisk()
153 if ((error = walk(gp, data))) in walk_gendisk()
164 struct gendisk *gp; in part_start() local
168 for (gp = gendisk_head; gp; gp = gp->next) in part_start()
170 return gp; in part_start()
187 struct gendisk *gp = v; in part_show() local
191 if (gp == gendisk_head) { in part_show()
201 for (n = 0; n < (gp->nr_real << gp->minor_shift); n++) { in part_show()
202 if (gp->part[n].nr_sects) { in part_show()
204 struct hd_struct *hd = &gp->part[n]; in part_show()
209 gp->major, n, gp->sizes[n], in part_show()
210 disk_name(gp, n, buf), in part_show()
220 gp->major, n, gp->sizes[n], in part_show()
221 disk_name(gp, n, buf)); in part_show()