Lines Matching refs:devnum

57 static int get_desc(struct blk_driver *drv, int devnum, struct blk_desc **descp)  in get_desc()  argument
60 if (devnum < 0 || devnum >= drv->max_devs) in get_desc()
62 *descp = &drv->desc[devnum]; in get_desc()
68 return drv->get_dev(devnum, descp); in get_desc()
76 int devnum, ok; in blk_list_part() local
82 for (ok = 0, devnum = 0; devnum < drv->max_devs; ++devnum) { in blk_list_part()
83 if (get_desc(drv, devnum, &desc)) in blk_list_part()
99 int blk_print_part_devnum(enum if_type if_type, int devnum) in blk_print_part_devnum() argument
107 ret = get_desc(drv, devnum, &desc); in blk_print_part_devnum()
135 int blk_print_device_num(enum if_type if_type, int devnum) in blk_print_device_num() argument
143 ret = get_desc(drv, devnum, &desc); in blk_print_device_num()
146 printf("\n%s device %d: ", drv->if_typename, devnum); in blk_print_device_num()
152 int blk_show_device(enum if_type if_type, int devnum) in blk_show_device() argument
160 printf("\nDevice %d: ", devnum); in blk_show_device()
161 if (devnum >= drv->max_devs) { in blk_show_device()
165 ret = get_desc(drv, devnum, &desc); in blk_show_device()
177 struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum) in blk_get_devnum_by_type() argument
185 if (get_desc(drv, devnum, &desc)) in blk_get_devnum_by_type()
203 struct blk_desc *blk_get_devnum_by_typename(const char *if_typename, int devnum) in blk_get_devnum_by_typename() argument
211 if (get_desc(drv, devnum, &desc)) in blk_get_devnum_by_typename()
217 ulong blk_read_devnum(enum if_type if_type, int devnum, lbaint_t start, in blk_read_devnum() argument
227 ret = get_desc(drv, devnum, &desc); in blk_read_devnum()
237 ulong blk_write_devnum(enum if_type if_type, int devnum, lbaint_t start, in blk_write_devnum() argument
246 ret = get_desc(drv, devnum, &desc); in blk_write_devnum()
252 int blk_select_hwpart_devnum(enum if_type if_type, int devnum, int hwpart) in blk_select_hwpart_devnum() argument
260 ret = get_desc(drv, devnum, &desc); in blk_select_hwpart_devnum()