Home
last modified time | relevance | path

Searched refs:devnum (Results 1 – 25 of 227) sorted by relevance

12345678910

/openbmc/u-boot/drivers/block/
H A Dblk-uclass.c114 if_type, devnum, dev->name, desc->if_type, desc->devnum); in blk_get_devnum_by_typename()
115 if (desc->devnum != devnum) in blk_get_devnum_by_typename()
184 if_type, devnum, dev->name, desc->if_type, desc->devnum); in get_desc()
186 if (desc->devnum == devnum) { in get_desc()
193 } else if (desc->devnum > devnum) { in get_desc()
217 int devnum, ok; in blk_list_part() local
220 for (ok = 0, devnum = 0;; ++devnum) { in blk_list_part()
228 if (devnum) in blk_list_part()
409 if (desc->if_type == if_type && desc->devnum == devnum) { in blk_find_device()
547 if (desc->if_type == if_type && desc->devnum == devnum) { in blk_claim_devnum()
[all …]
H A Dblk_legacy.c60 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()
107 ret = get_desc(drv, devnum, &desc); in blk_print_part_devnum()
160 printf("\nDevice %d: ", devnum); in blk_show_device()
161 if (devnum >= drv->max_devs) { in blk_show_device()
185 if (get_desc(drv, devnum, &desc)) in blk_get_devnum_by_type()
[all …]
H A Dblkcache.c17 int devnum; member
31 static struct block_cache_node *cache_find(int iftype, int devnum, in cache_find() argument
39 (node->devnum == devnum) && in cache_find()
53 int blkcache_read(int iftype, int devnum, in blkcache_read() argument
57 struct block_cache_node *node = cache_find(iftype, devnum, start, in blkcache_read()
74 void blkcache_fill(int iftype, int devnum, in blkcache_fill() argument
119 node->devnum = devnum; in blkcache_fill()
128 void blkcache_invalidate(int iftype, int devnum) in blkcache_invalidate() argument
136 (node->devnum == devnum)) { in blkcache_invalidate()
H A Dsandbox.c44 int dev = block_dev->devnum;
74 int dev = block_dev->devnum;
90 int host_dev_bind(int devnum, char *filename) argument
98 ret = blk_get_device(IF_TYPE_HOST, devnum, &dev);
113 snprintf(dev_name, sizeof(dev_name), "host%d", devnum);
130 IF_TYPE_HOST, devnum, 512,
187 blk_dev->devnum = dev;
195 int host_get_dev_err(int devnum, struct blk_desc **blk_devp) argument
201 ret = blk_get_device(IF_TYPE_HOST, devnum, &dev);
206 struct host_block_dev *host_dev = find_host_device(devnum);
/openbmc/u-boot/drivers/fpga/
H A Dfpga.c44 if ((devnum >= 0) && (devnum < next_desc)) { in fpga_get_desc()
45 desc = &desc_table[devnum]; in fpga_get_desc()
47 __func__, devnum, desc); in fpga_get_desc()
76 static int fpga_dev_info(int devnum) in fpga_dev_info() argument
148 int devnum = FPGA_INVALID_DEVICE; in fpga_add() local
152 return devnum; in fpga_add()
159 devnum = next_desc; in fpga_add()
170 return devnum; in fpga_add()
338 int fpga_info(int devnum) in fpga_info() argument
340 if (devnum == FPGA_INVALID_DEVICE) { in fpga_info()
[all …]
H A Dxilinx.c26 int fpga_is_partial_data(int devnum, size_t img_len) in fpga_is_partial_data() argument
28 const fpga_desc * const desc = fpga_get_desc(devnum); in fpga_is_partial_data()
39 int fpga_loadbitstream(int devnum, char *fpgadata, size_t size, in fpga_loadbitstream() argument
51 desc = fpga_validate(devnum, dataptr, 0, (char *)__func__); in fpga_loadbitstream()
90 __func__, dataptr, devnum, xdesc->name); in fpga_loadbitstream()
137 return fpga_load(devnum, dataptr, swapsize, bstype); in fpga_loadbitstream()
/openbmc/u-boot/drivers/nvme/
H A Dnvme_show.c14 static void print_optional_admin_cmd(u16 oacs, int devnum) in print_optional_admin_cmd() argument
17 devnum); in print_optional_admin_cmd()
28 static void print_optional_nvm_cmd(u16 oncs, int devnum) in print_optional_nvm_cmd() argument
31 devnum); in print_optional_nvm_cmd()
46 printf("Blk device %d: Format NVM Attributes:\n", devnum); in print_format_nvme_attributes()
80 static void print_data_protect_cap(u8 dpc, int devnum) in print_data_protect_cap() argument
82 printf("Blk device %d: End-to-End Data", devnum); in print_data_protect_cap()
96 static void print_metadata_cap(u8 mc, int devnum) in print_metadata_cap() argument
119 print_format_nvme_attributes(ctrl->fna, ns->devnum); in nvme_print_info()
125 print_data_protect_cap(id->dpc, ns->devnum); in nvme_print_info()
[all …]
/openbmc/u-boot/cmd/
H A Dsata.c23 int sata_remove(int devnum) in sata_remove() argument
29 rc = uclass_find_device(UCLASS_AHCI, devnum, &dev); in sata_remove()
33 printf("Cannot find SATA device %d (err=%d)\n", devnum, rc); in sata_remove()
50 int sata_probe(int devnum) in sata_probe() argument
56 rc = uclass_get_device(UCLASS_AHCI, devnum, &dev); in sata_probe()
69 printf("Cannot scan SATA device %d (err=%d)\n", devnum, rc); in sata_probe()
84 int devnum = 0; in do_sata() local
87 devnum = (int)simple_strtoul(argv[2], NULL, 10); in do_sata()
89 return sata_remove(devnum); in do_sata()
93 rc = sata_remove(devnum); in do_sata()
[all …]
H A Drockusb.c18 char *devnum; in do_rockusb() local
29 devnum = argv[3]; in do_rockusb()
33 dev_index = simple_strtoul(devnum, NULL, 0); in do_rockusb()
/openbmc/u-boot/include/
H A Dfpga.h64 const fpga_desc *const fpga_get_desc(int devnum);
65 int fpga_is_partial_data(int devnum, size_t img_len);
66 int fpga_load(int devnum, const void *buf, size_t bsize,
68 int fpga_fsload(int devnum, const void *buf, size_t size,
70 int fpga_loads(int devnum, const void *buf, size_t size,
72 int fpga_loadbitstream(int devnum, char *fpgadata, size_t size,
74 int fpga_dump(int devnum, const void *buf, size_t bsize);
75 int fpga_info(int devnum);
76 const fpga_desc *const fpga_validate(int devnum, const void *buf,
H A Dblk.h66 int devnum; /* device number */ member
340 const char *name, int if_type, int devnum, int blksz,
432 if (blkcache_read(block_dev->if_type, block_dev->devnum, in blk_dread()
443 blkcache_fill(block_dev->if_type, block_dev->devnum, in blk_dread()
452 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_dwrite()
459 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_derase()
494 int (*get_dev)(int devnum, struct blk_desc **descp);
552 int devnum);
597 int blk_show_device(enum if_type if_type, int devnum);
610 int blk_print_device_num(enum if_type if_type, int devnum);
[all …]
/openbmc/u-boot/disk/
H A Dpart_iso.c70 dev_desc->devnum, part_num); in part_get_info_iso_verb()
92 dev_desc->devnum, part_num); in part_get_info_iso_verb()
100 pbr->ident_str, dev_desc->devnum, part_num); in part_get_info_iso_verb()
108 bootaddr, dev_desc->devnum, part_num); in part_get_info_iso_verb()
118 dev_desc->devnum, part_num); in part_get_info_iso_verb()
124 dev_desc->devnum, part_num); in part_get_info_iso_verb()
131 dev_desc->devnum, part_num); in part_get_info_iso_verb()
161 part_num, dev_desc->devnum); in part_get_info_iso_verb()
169 part_num, dev_desc->devnum); in part_get_info_iso_verb()
175 part_num, dev_desc->devnum); in part_get_info_iso_verb()
[all …]
H A Dpart_mac.c115 dev_desc->devnum, i); in part_print_mac()
121 dev_desc->devnum, i, MAC_PARTITION_MAGIC, in part_print_mac()
187 dev_desc->devnum, n); in part_mac_read_pdb()
193 dev_desc->devnum, n, MAC_PARTITION_MAGIC, in part_mac_read_pdb()
203 dev_desc->devnum, part, in part_mac_read_pdb()
204 dev_desc->devnum, in part_mac_read_pdb()
205 dev_desc->devnum, pdb_p->map_count); in part_mac_read_pdb()
/openbmc/u-boot/lib/efi_driver/
H A Defi_block_device.c120 desc->devnum, dev->name); in efi_bl_bind_partitions()
133 int ret, devnum; in efi_bl_bind() local
145 devnum = blk_find_max_devnum(IF_TYPE_EFI); in efi_bl_bind()
146 if (devnum == -ENODEV) in efi_bl_bind()
147 devnum = 0; in efi_bl_bind()
148 else if (devnum < 0) in efi_bl_bind()
149 return devnum; in efi_bl_bind()
154 sprintf(name, "efiblk#%d", devnum); in efi_bl_bind()
157 ret = blk_create_device(parent, "efi_blk", name, IF_TYPE_EFI, devnum, in efi_bl_bind()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand.c52 int nand_register(int devnum, struct mtd_info *mtd) in nand_register() argument
54 if (devnum >= CONFIG_SYS_MAX_NAND_DEVICE) in nand_register()
57 nand_info[devnum] = mtd; in nand_register()
59 sprintf(dev_name[devnum], "nand%d", devnum); in nand_register()
60 mtd->name = dev_name[devnum]; in nand_register()
73 nand_curr_device = devnum; in nand_register()
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_blk.c75 int devnum; in virtio_blk_bind() local
83 desc->devnum = -ENODEV; in virtio_blk_bind()
84 devnum = blk_next_free_devnum(IF_TYPE_VIRTIO); in virtio_blk_bind()
85 if (devnum < 0) in virtio_blk_bind()
86 return devnum; in virtio_blk_bind()
87 desc->devnum = devnum; in virtio_blk_bind()
/openbmc/linux/drivers/mtd/
H A Dmtd_blkdevs.c287 if (new->devnum == -1) { in add_mtd_blktrans_dev()
291 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
295 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev()
298 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev()
303 last_devnum = d->devnum; in add_mtd_blktrans_dev()
307 if (new->devnum == -1) in add_mtd_blktrans_dev()
308 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
351 if (new->devnum < 26) in add_mtd_blktrans_dev()
357 'a' - 1 + new->devnum / 26, in add_mtd_blktrans_dev()
358 'a' + new->devnum % 26); in add_mtd_blktrans_dev()
[all …]
/openbmc/u-boot/drivers/mmc/
H A Dmxsmmc.c144 debug("MMC%d: CMD%d\n", mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd()
159 printf("MMC%d: Bus busy timeout!\n", mmc->block_dev.devnum); in mxsmmc_send_cmd()
202 priv->mmc_is_wp(mmc->block_dev.devnum)) { in mxsmmc_send_cmd()
204 mmc->block_dev.devnum); in mxsmmc_send_cmd()
245 mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd()
252 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
259 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
281 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
288 mmc->block_dev.devnum); in mxsmmc_send_cmd()
299 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
[all …]
/openbmc/u-boot/drivers/usb/emul/
H A Dusb-emul-uclass.c106 static int usb_emul_find_devnum(int devnum, int port1, struct udevice **emulp) in usb_emul_find_devnum() argument
127 if (!devnum) { in usb_emul_find_devnum()
149 } else if (udev->devnum == devnum) { in usb_emul_find_devnum()
151 dev->name, udev->devnum); in usb_emul_find_devnum()
157 debug("%s: No emulator found, addr %d\n", __func__, devnum); in usb_emul_find_devnum()
164 int devnum = usb_pipedevice(pipe); in usb_emul_find() local
166 return usb_emul_find_devnum(devnum, port1, emulp); in usb_emul_find()
173 return usb_emul_find_devnum(udev->devnum, 0, emulp); in usb_emul_find_for_dev()
207 plat->devnum = setup->value; in usb_emul_control()
/openbmc/linux/drivers/parport/
H A Ddaisy.c37 int devnum; member
51 static void add_dev(int devnum, struct parport *port, int daisy) in add_dev() argument
58 newdev->devnum = devnum; in add_dev()
60 for (p = &topology; *p && (*p)->devnum<devnum; p = &(*p)->next) in add_dev()
241 struct pardevice *parport_open(int devnum, const char *name) in parport_open() argument
251 while (p && p->devnum != devnum) in parport_open()
263 dev = parport_register_dev_model(port, name, &par_cb, devnum); in parport_open()
/openbmc/u-boot/drivers/pci/
H A Dpci_common.c325 int devnum; in pci_find_class() local
330 for (devnum = 0; devnum < PCI_MAX_PCI_DEVICES - 1; devnum++) { in pci_find_class()
331 pci_read_config_dword(PCI_BDF(bus, devnum, 0), in pci_find_class()
336 for (bdf = PCI_BDF(bus, devnum, 0); in pci_find_class()
337 bdf <= PCI_BDF(bus, devnum, in pci_find_class()
/openbmc/linux/Documentation/ABI/obsolete/
H A Dsysfs-driver-hid-roccat-ryos1 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
9 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
21 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
41 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
61 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
81 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
92 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
103 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
114 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
122 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
[all …]
H A Dsysfs-driver-hid-roccat-isku1 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
12 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
20 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
61 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
91 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
99 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
110 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
121 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
129 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
137 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-driver-hid-lenovo1 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
11 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
20 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
27 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
37 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
44 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
53 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
/openbmc/u-boot/drivers/usb/host/
H A Dusb-uclass.c346 static struct usb_device *find_child_devnum(struct udevice *parent, int devnum) in find_child_devnum() argument
354 if (udev->devnum == devnum) in find_child_devnum()
360 udev = find_child_devnum(dev, devnum); in find_child_devnum()
371 int devnum = index + 1; /* Addresses are allocated from 1 on USB */ in usb_get_dev_index() local
377 return find_child_devnum(dev, devnum); in usb_get_dev_index()
496 int bus_seq, int devnum, in usb_find_and_bind_driver() argument
541 snprintf(name, sizeof(name), "generic_bus_%x_dev_%x", bus_seq, devnum); in usb_find_and_bind_driver()
631 udev->devnum = priv->next_addr + 1; in usb_scan_device()
647 udev->devnum, &dev); in usb_scan_device()
654 plat->devnum = udev->devnum; in usb_scan_device()
[all …]

12345678910