Lines Matching refs:desc

67 	struct blk_desc *desc;  in blk_get_devnum_by_type()  local
74 desc = dev_get_uclass_platdata(dev); in blk_get_devnum_by_type()
76 return desc; in blk_get_devnum_by_type()
109 struct blk_desc *desc = dev_get_uclass_platdata(dev); in blk_get_devnum_by_typename() local
112 if_type, devnum, dev->name, desc->if_type, desc->devnum); in blk_get_devnum_by_typename()
113 if (desc->devnum != devnum) in blk_get_devnum_by_typename()
126 debug("%s: Device desc %p\n", __func__, desc); in blk_get_devnum_by_typename()
127 return desc; in blk_get_devnum_by_typename()
156 struct blk_desc *desc = dev_get_uclass_platdata(dev); in get_desc() local
159 if_type, devnum, dev->name, desc->if_type, desc->devnum); in get_desc()
160 if (desc->if_type == if_type) { in get_desc()
161 if (desc->devnum == devnum) { in get_desc()
166 *descp = desc; in get_desc()
168 } else if (desc->devnum > devnum) { in get_desc()
191 struct blk_desc *desc; in blk_list_part() local
196 ret = get_desc(if_type, devnum, &desc); in blk_list_part()
201 if (desc->part_type != PART_TYPE_UNKNOWN) { in blk_list_part()
205 part_print(desc); in blk_list_part()
216 struct blk_desc *desc; in blk_print_part_devnum() local
219 ret = get_desc(if_type, devnum, &desc); in blk_print_part_devnum()
222 if (desc->type == DEV_TYPE_UNKNOWN) in blk_print_part_devnum()
224 part_print(desc); in blk_print_part_devnum()
231 struct blk_desc *desc; in blk_list_devices() local
236 ret = get_desc(if_type, i, &desc); in blk_list_devices()
241 if (desc->type == DEV_TYPE_UNKNOWN) in blk_list_devices()
244 dev_print(desc); in blk_list_devices()
250 struct blk_desc *desc; in blk_print_device_num() local
253 ret = get_desc(if_type, devnum, &desc); in blk_print_device_num()
257 dev_print(desc); in blk_print_device_num()
264 struct blk_desc *desc; in blk_show_device() local
268 ret = get_desc(if_type, devnum, &desc); in blk_show_device()
275 dev_print(desc); in blk_show_device()
277 if (desc->type == DEV_TYPE_UNKNOWN) in blk_show_device()
286 struct blk_desc *desc; in blk_read_devnum() local
290 ret = get_desc(if_type, devnum, &desc); in blk_read_devnum()
293 n = blk_dread(desc, start, blkcnt, buffer); in blk_read_devnum()
303 struct blk_desc *desc; in blk_write_devnum() local
306 ret = get_desc(if_type, devnum, &desc); in blk_write_devnum()
309 return blk_dwrite(desc, start, blkcnt, buffer); in blk_write_devnum()
324 int blk_dselect_hwpart(struct blk_desc *desc, int hwpart) in blk_dselect_hwpart() argument
326 return blk_select_hwpart(desc->bdev, hwpart); in blk_dselect_hwpart()
331 struct blk_desc *desc; in blk_first_device() local
340 desc = dev_get_uclass_platdata(*devp); in blk_first_device()
341 if (desc->if_type == if_type) in blk_first_device()
353 struct blk_desc *desc; in blk_next_device() local
356 desc = dev_get_uclass_platdata(*devp); in blk_next_device()
357 if_type = desc->if_type; in blk_next_device()
364 desc = dev_get_uclass_platdata(*devp); in blk_next_device()
365 if (desc->if_type == if_type) in blk_next_device()
380 struct blk_desc *desc = dev_get_uclass_platdata(dev); in blk_find_device() local
383 if_type, devnum, dev->name, desc->if_type, desc->devnum); in blk_find_device()
384 if (desc->if_type == if_type && desc->devnum == devnum) { in blk_find_device()
453 struct blk_desc *desc = dev_get_uclass_platdata(dev); in blk_prepare_device() local
455 part_init(desc); in blk_prepare_device()
497 struct blk_desc *desc = dev_get_uclass_platdata(dev); in blk_find_max_devnum() local
499 if (desc->if_type == if_type && desc->devnum > max_devnum) in blk_find_max_devnum()
500 max_devnum = desc->devnum; in blk_find_max_devnum()
529 struct blk_desc *desc = dev_get_uclass_platdata(dev); in blk_claim_devnum() local
531 if (desc->if_type == if_type && desc->devnum == devnum) { in blk_claim_devnum()
536 desc->devnum = next; in blk_claim_devnum()
548 struct blk_desc *desc; in blk_create_device() local
564 desc = dev_get_uclass_platdata(dev); in blk_create_device()
565 desc->if_type = if_type; in blk_create_device()
566 desc->blksz = blksz; in blk_create_device()
567 desc->lba = lba; in blk_create_device()
568 desc->part_type = PART_TYPE_UNKNOWN; in blk_create_device()
569 desc->bdev = dev; in blk_create_device()
570 desc->devnum = devnum; in blk_create_device()
609 struct blk_desc *desc = dev_get_uclass_platdata(dev); in blk_unbind_all() local
611 if (desc->if_type == if_type) { in blk_unbind_all()