/u-boot/drivers/fpga/ |
A D | fpga.c | 47 if ((devnum >= 0) && (devnum < next_desc)) { in fpga_get_desc() 48 desc = &desc_table[devnum]; in fpga_get_desc() 50 __func__, devnum, desc); in fpga_get_desc() 79 static int fpga_dev_info(int devnum) in fpga_dev_info() argument 151 int devnum = FPGA_INVALID_DEVICE; in fpga_add() local 155 return devnum; in fpga_add() 162 devnum = next_desc; in fpga_add() 173 return devnum; in fpga_add() 341 int fpga_info(int devnum) in fpga_info() argument 343 if (devnum == FPGA_INVALID_DEVICE) { in fpga_info() [all …]
|
A D | xilinx.c | 27 int fpga_is_partial_data(int devnum, size_t img_len) in fpga_is_partial_data() argument 29 const fpga_desc * const desc = fpga_get_desc(devnum); in fpga_is_partial_data() 40 int fpga_loadbitstream(int devnum, char *fpgadata, size_t size, in fpga_loadbitstream() argument 52 desc = fpga_validate(devnum, dataptr, 0, (char *)__func__); in fpga_loadbitstream() 91 __func__, dataptr, devnum, xdesc->name); in fpga_loadbitstream() 138 return fpga_load(devnum, dataptr, swapsize, bstype); in fpga_loadbitstream()
|
/u-boot/drivers/block/ |
A D | blk_legacy.c | 62 if (devnum < 0 || devnum >= drv->max_devs) in get_desc() 64 *descp = &drv->desc[devnum]; in get_desc() 70 return drv->get_dev(devnum, descp); in get_desc() 78 int devnum, ok; in blk_list_part() local 84 for (ok = 0, devnum = 0; devnum < drv->max_devs; ++devnum) { in blk_list_part() 85 if (get_desc(drv, devnum, &desc)) in blk_list_part() 109 ret = get_desc(drv, devnum, &desc); in blk_print_part_devnum() 162 printf("\nDevice %d: ", devnum); in blk_show_device() 163 if (devnum >= drv->max_devs) { in blk_show_device() 187 if (get_desc(drv, devnum, &desc)) in blk_get_devnum_by_type() [all …]
|
A D | blk-uclass.c | 120 if_type, devnum, dev->name, desc->if_type, desc->devnum); in blk_get_devnum_by_typename() 121 if (desc->devnum != devnum) in blk_get_devnum_by_typename() 190 if_type, devnum, dev->name, desc->if_type, desc->devnum); in get_desc() 192 if (desc->devnum == devnum) { in get_desc() 199 } else if (desc->devnum > devnum) { in get_desc() 223 int devnum, ok; in blk_list_part() local 226 for (ok = 0, devnum = 0;; ++devnum) { in blk_list_part() 234 if (devnum) in blk_list_part() 415 if (desc->if_type == if_type && desc->devnum == devnum) { in blk_find_device() 553 if (desc->if_type == if_type && desc->devnum == devnum) { in blk_claim_devnum() [all …]
|
A D | blkcache.c | 23 int devnum; member 49 static struct block_cache_node *cache_find(int iftype, int devnum, in cache_find() argument 57 (node->devnum == devnum) && in cache_find() 71 int blkcache_read(int iftype, int devnum, in blkcache_read() argument 75 struct block_cache_node *node = cache_find(iftype, devnum, start, in blkcache_read() 92 void blkcache_fill(int iftype, int devnum, in blkcache_fill() argument 137 node->devnum = devnum; in blkcache_fill() 146 void blkcache_invalidate(int iftype, int devnum) in blkcache_invalidate() argument 154 (node->devnum == devnum)) { in blkcache_invalidate()
|
A D | sandbox.c | 46 int dev = block_dev->devnum; 76 int dev = block_dev->devnum; 92 int host_dev_bind(int devnum, char *filename) argument 101 ret = blk_get_device(IF_TYPE_HOST, devnum, &dev); 116 snprintf(dev_name, sizeof(dev_name), "host%d", devnum); 133 IF_TYPE_HOST, devnum, 512, 148 desc = blk_get_devnum_by_type(IF_TYPE_HOST, devnum); 196 blk_dev->devnum = dev; 208 int host_get_dev_err(int devnum, struct blk_desc **blk_devp) argument 214 ret = blk_get_device(IF_TYPE_HOST, devnum, &dev); [all …]
|
/u-boot/drivers/nvme/ |
A D | nvme_show.c | 14 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 …]
|
/u-boot/cmd/ |
A D | sata.c | 24 int sata_remove(int devnum) in sata_remove() argument 32 rc = uclass_find_device(UCLASS_AHCI, devnum, &dev); in sata_remove() 36 printf("Cannot find SATA device %d (err=%d)\n", devnum, rc); in sata_remove() 53 int sata_probe(int devnum) in sata_probe() argument 59 rc = uclass_get_device(UCLASS_AHCI, devnum, &dev); in sata_probe() 72 printf("Cannot scan SATA device %d (err=%d)\n", devnum, rc); in sata_probe() 88 int devnum = 0; in do_sata() local 91 devnum = (int)simple_strtoul(argv[2], NULL, 10); in do_sata() 93 return sata_remove(devnum); in do_sata() 97 rc = sata_remove(devnum); in do_sata() [all …]
|
A D | rockusb.c | 19 char *devnum; in do_rockusb() local 30 devnum = argv[3]; in do_rockusb() 34 dev_index = simple_strtoul(devnum, NULL, 0); in do_rockusb()
|
A D | bcb.c | 115 static int __bcb_load(int devnum, const char *partp) in __bcb_load() argument 123 desc = blk_get_devnum_by_type(IF_TYPE_MMC, devnum); in __bcb_load() 151 bcb_dev = desc->devnum; in __bcb_load() 157 printf("Error: mmc %d:%s read failed (%d)\n", devnum, partp, ret); in __bcb_load() 160 printf("Error: mmc %d:%s too small!", devnum, partp); in __bcb_load() 173 int devnum = simple_strtoul(argv[1], &endp, 0); in do_bcb_load() local 180 return __bcb_load(devnum, argv[2]); in do_bcb_load() 318 int bcb_write_reboot_reason(int devnum, char *partp, const char *reasonp) in bcb_write_reboot_reason() argument 322 ret = __bcb_load(devnum, partp); in bcb_write_reboot_reason()
|
/u-boot/include/ |
A D | fpga.h | 64 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,
|
A D | blk.h | 67 int devnum; /* device number */ member 347 const char *name, int if_type, int devnum, int blksz, 439 if (blkcache_read(block_dev->if_type, block_dev->devnum, in blk_dread() 450 blkcache_fill(block_dev->if_type, block_dev->devnum, in blk_dread() 459 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_dwrite() 466 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_derase() 501 int (*get_dev)(int devnum, struct blk_desc **descp); 559 int devnum); 604 int blk_show_device(enum if_type if_type, int devnum); 617 int blk_print_device_num(enum if_type if_type, int devnum); [all …]
|
A D | bcb.h | 12 int bcb_write_reboot_reason(int devnum, char *partp, const char *reasonp); 15 static inline int bcb_write_reboot_reason(int devnum, char *partp, const char *reasonp) in bcb_write_reboot_reason() argument
|
A D | sata.h | 21 int sata_probe(int devnum); 22 int sata_remove(int devnum);
|
/u-boot/disk/ |
A D | part_iso.c | 73 dev_desc->devnum, part_num); in part_get_info_iso_verb() 95 dev_desc->devnum, part_num); in part_get_info_iso_verb() 103 pbr->ident_str, dev_desc->devnum, part_num); in part_get_info_iso_verb() 111 bootaddr, dev_desc->devnum, part_num); in part_get_info_iso_verb() 121 dev_desc->devnum, part_num); in part_get_info_iso_verb() 127 dev_desc->devnum, part_num); in part_get_info_iso_verb() 134 dev_desc->devnum, part_num); in part_get_info_iso_verb() 164 part_num, dev_desc->devnum); in part_get_info_iso_verb() 172 part_num, dev_desc->devnum); in part_get_info_iso_verb() 178 part_num, dev_desc->devnum); in part_get_info_iso_verb() [all …]
|
A D | part_mac.c | 117 dev_desc->devnum, i); in part_print_mac() 123 dev_desc->devnum, i, MAC_PARTITION_MAGIC, in part_print_mac() 189 dev_desc->devnum, n); in part_mac_read_pdb() 195 dev_desc->devnum, n, MAC_PARTITION_MAGIC, in part_mac_read_pdb() 205 dev_desc->devnum, part, in part_mac_read_pdb() 206 dev_desc->devnum, in part_mac_read_pdb() 207 dev_desc->devnum, pdb_p->map_count); in part_mac_read_pdb()
|
/u-boot/drivers/mtd/nand/raw/ |
A D | nand.c | 52 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()
|
/u-boot/lib/efi_driver/ |
A D | efi_block_device.c | 125 desc->devnum, dev->name); in efi_bl_bind_partitions() 138 int ret, devnum; in efi_bl_bind() local 150 devnum = blk_find_max_devnum(IF_TYPE_EFI); in efi_bl_bind() 151 if (devnum == -ENODEV) in efi_bl_bind() 152 devnum = 0; in efi_bl_bind() 153 else if (devnum < 0) in efi_bl_bind() 154 return devnum; in efi_bl_bind() 159 sprintf(name, "efiblk#%d", devnum); in efi_bl_bind() 162 ret = blk_create_device(parent, "efi_blk", name, IF_TYPE_EFI, devnum, in efi_bl_bind()
|
/u-boot/drivers/virtio/ |
A D | virtio_blk.c | 76 int devnum; in virtio_blk_bind() local 84 desc->devnum = -ENODEV; in virtio_blk_bind() 85 devnum = blk_next_free_devnum(IF_TYPE_VIRTIO); in virtio_blk_bind() 86 if (devnum < 0) in virtio_blk_bind() 87 return devnum; in virtio_blk_bind() 88 desc->devnum = devnum; in virtio_blk_bind()
|
/u-boot/board/xilinx/bootscripts/ |
A D | sdboot.cmd | 10 mmc dev $devnum && mmcinfo && run uenvboot || run sdroot$devnum;load mmc $devnum:$partid $fdt_addr …
|
/u-boot/drivers/usb/emul/ |
A D | usb-emul-uclass.c | 107 static int usb_emul_find_devnum(int devnum, int port1, struct udevice **emulp) in usb_emul_find_devnum() argument 128 if (!devnum) { in usb_emul_find_devnum() 150 } else if (udev->devnum == devnum) { in usb_emul_find_devnum() 152 dev->name, udev->devnum); in usb_emul_find_devnum() 158 debug("%s: No emulator found, addr %d\n", __func__, devnum); in usb_emul_find_devnum() 165 int devnum = usb_pipedevice(pipe); in usb_emul_find() local 167 return usb_emul_find_devnum(devnum, port1, emulp); in usb_emul_find() 174 return usb_emul_find_devnum(udev->devnum, 0, emulp); in usb_emul_find_for_dev() 208 plat->devnum = setup->value; in usb_emul_control()
|
/u-boot/board/st/common/ |
A D | stm32mp_dfu.c | 23 int p, len, devnum; in board_get_alt_info_mmc() local 41 devnum = desc->devnum; in board_get_alt_info_mmc() 48 "%s %d=", name, devnum); in board_get_alt_info_mmc() 53 name, devnum, mmc->capacity_boot); in board_get_alt_info_mmc() 56 name, devnum, mmc->capacity_boot); in board_get_alt_info_mmc() 68 name, devnum, info.name, devnum, p); in board_get_alt_info_mmc()
|
/u-boot/drivers/mmc/ |
A D | mxsmmc.c | 117 mmc->block_dev.devnum, mmc->bus_width); in mxsmmc_set_ios() 323 int devnum = mmc->block_dev.devnum; local 325 int devnum = mmc_get_blk_desc(mmc)->devnum; local 327 debug("MMC%d: CMD%d\n", devnum, cmd->cmdidx); 342 printf("MMC%d: Bus busy timeout!\n", devnum); 348 printf("MMC%d: No card detected!\n", devnum); 386 priv->mmc_is_wp(devnum)) { 434 devnum, cmd->cmdidx, reg); 441 devnum, cmd->cmdidx, reg); 479 devnum, cmd->cmdidx, reg); [all …]
|
A D | mmc_legacy.c | 44 if (m->block_dev.devnum == dev_num) in find_mmc_device() 112 printf("%s: %d", m->cfg->name, m->block_dev.devnum); in print_mmc_devices() 137 .devnum = 0, 199 bdesc->devnum = mmc_get_next_devnum(); in mmc_create() 220 struct mmc *mmc = find_mmc_device(desc->devnum); in mmc_select_hwpartp()
|
/u-boot/drivers/pci/ |
A D | pci_common.c | 326 int devnum; in pci_find_class() local 331 for (devnum = 0; devnum < PCI_MAX_PCI_DEVICES - 1; devnum++) { in pci_find_class() 332 pci_read_config_dword(PCI_BDF(bus, devnum, 0), in pci_find_class() 337 for (bdf = PCI_BDF(bus, devnum, 0); in pci_find_class() 338 bdf <= PCI_BDF(bus, devnum, in pci_find_class()
|