• Home
  • Raw
  • Download

Lines Matching refs:desc

59 	if (drv->desc) {  in get_desc()
62 *descp = &drv->desc[devnum]; in get_desc()
75 struct blk_desc *desc; in blk_list_part() local
83 if (get_desc(drv, devnum, &desc)) in blk_list_part()
85 if (desc->part_type != PART_TYPE_UNKNOWN) { in blk_list_part()
89 part_print(desc); in blk_list_part()
102 struct blk_desc *desc; in blk_print_part_devnum() local
107 ret = get_desc(drv, devnum, &desc); in blk_print_part_devnum()
110 if (desc->type == DEV_TYPE_UNKNOWN) in blk_print_part_devnum()
112 part_print(desc); in blk_print_part_devnum()
120 struct blk_desc *desc; in blk_list_devices() local
126 if (get_desc(drv, i, &desc)) in blk_list_devices()
128 if (desc->type == DEV_TYPE_UNKNOWN) in blk_list_devices()
131 dev_print(desc); in blk_list_devices()
138 struct blk_desc *desc; in blk_print_device_num() local
143 ret = get_desc(drv, devnum, &desc); in blk_print_device_num()
147 dev_print(desc); in blk_print_device_num()
155 struct blk_desc *desc; in blk_show_device() local
165 ret = get_desc(drv, devnum, &desc); in blk_show_device()
168 dev_print(desc); in blk_show_device()
170 if (desc->type == DEV_TYPE_UNKNOWN) in blk_show_device()
180 struct blk_desc *desc; in blk_get_devnum_by_type() local
185 if (get_desc(drv, devnum, &desc)) in blk_get_devnum_by_type()
188 return desc; in blk_get_devnum_by_type()
191 int blk_dselect_hwpart(struct blk_desc *desc, int hwpart) in blk_dselect_hwpart() argument
193 struct blk_driver *drv = blk_driver_lookup_type(desc->if_type); in blk_dselect_hwpart()
198 return drv->select_hwpart(desc, hwpart); in blk_dselect_hwpart()
206 struct blk_desc *desc; in blk_get_devnum_by_typename() local
211 if (get_desc(drv, devnum, &desc)) in blk_get_devnum_by_typename()
214 return desc; in blk_get_devnum_by_typename()
221 struct blk_desc *desc; in blk_read_devnum() local
227 ret = get_desc(drv, devnum, &desc); in blk_read_devnum()
230 n = desc->block_read(desc, start, blkcnt, buffer); in blk_read_devnum()
241 struct blk_desc *desc; in blk_write_devnum() local
246 ret = get_desc(drv, devnum, &desc); in blk_write_devnum()
249 return desc->block_write(desc, start, blkcnt, buffer); in blk_write_devnum()
255 struct blk_desc *desc; in blk_select_hwpart_devnum() local
260 ret = get_desc(drv, devnum, &desc); in blk_select_hwpart_devnum()
263 return drv->select_hwpart(desc, hwpart); in blk_select_hwpart_devnum()