| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/ |
| H A D | usbplug.c | 17 u32 if_type; member 60 __weak void board_set_iomux(enum if_type if_type, int devnum, int routing) in board_set_iomux() argument 64 __weak void board_unset_iomux(enum if_type if_type, int devnum, int routing) in board_unset_iomux() argument 68 struct blk_desc *usbplug_blk_get_devnum_by_type(enum if_type if_type, int devnum) in usbplug_blk_get_devnum_by_type() argument 75 if (if_type != dev_list[i].if_type || devnum != dev_list[i].devnum) in usbplug_blk_get_devnum_by_type() 78 switch (if_type) { in usbplug_blk_get_devnum_by_type() 81 board_set_iomux(if_type, devnum, iomux_routing); in usbplug_blk_get_devnum_by_type() 86 board_set_iomux(if_type, devnum, iomux_routing); in usbplug_blk_get_devnum_by_type() 94 printf("Bootdev 0x%x is not support\n", if_type); in usbplug_blk_get_devnum_by_type() 98 printf("scandev: %s %d m%d\n", blk_get_if_type_name(if_type), devnum, iomux_routing); in usbplug_blk_get_devnum_by_type() [all …]
|
| H A D | vendor.c | 326 …if (dev_desc->if_type == IF_TYPE_NVME || (dev_desc->if_type == IF_TYPE_SCSI && dev_desc->rawblksz … in vendor_ops() 335 switch (dev_desc->if_type) { in vendor_ops() 445 …if (dev_desc->if_type == IF_TYPE_NVME || (dev_desc->if_type == IF_TYPE_SCSI && dev_desc->rawblksz … in vendor_storage_init() 453 switch (dev_desc->if_type) { in vendor_storage_init() 501 bootdev_type = dev_desc->if_type; in vendor_storage_init() 519 if (dev_desc->if_type == IF_TYPE_MTD) { in vendor_storage_init()
|
| /rk3399_rockchip-uboot/drivers/block/ |
| H A D | blk-uclass.c | 53 enum if_type if_typename_to_iftype(const char *if_typename) in if_typename_to_iftype() 66 static enum uclass_id if_type_to_uclass_id(enum if_type if_type) in if_type_to_uclass_id() argument 68 return if_type_uclass_id[if_type]; in if_type_to_uclass_id() 71 const char *blk_get_if_type_name(enum if_type if_type) in blk_get_if_type_name() argument 73 return if_typename_str[if_type]; in blk_get_if_type_name() 76 struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum) in blk_get_devnum_by_type() argument 82 ret = blk_get_device(if_type, devnum, &dev); in blk_get_devnum_by_type() 98 enum if_type if_type; in blk_get_devnum_by_typename() local 103 if_type = if_typename_to_iftype(if_typename); in blk_get_devnum_by_typename() 104 if (if_type == IF_TYPE_UNKNOWN) { in blk_get_devnum_by_typename() [all …]
|
| H A D | blk_legacy.c | 11 struct blk_driver *blk_driver_lookup_type(int if_type) in blk_driver_lookup_type() argument 18 if (if_type == entry->if_type) in blk_driver_lookup_type() 41 const char *blk_get_if_type_name(enum if_type if_type) in blk_get_if_type_name() argument 43 struct blk_driver *drv = blk_driver_lookup_type(if_type); in blk_get_if_type_name() 73 int blk_list_part(enum if_type if_type) in blk_list_part() argument 80 drv = blk_driver_lookup_type(if_type); in blk_list_part() 100 int blk_print_part_devnum(enum if_type if_type, int devnum) in blk_print_part_devnum() argument 102 struct blk_driver *drv = blk_driver_lookup_type(if_type); in blk_print_part_devnum() 118 void blk_list_devices(enum if_type if_type) in blk_list_devices() argument 120 struct blk_driver *drv = blk_driver_lookup_type(if_type); in blk_list_devices() [all …]
|
| H A D | systemace.c | 276 systemace_dev.if_type = IF_TYPE_UNKNOWN; in systemace_get_dev() 299 .if_type = IF_TYPE_SYSTEMACE,
|
| /rk3399_rockchip-uboot/include/ |
| H A D | blk.h | 25 enum if_type { enum 79 enum if_type if_type; /* type of the interface */ member 323 int blk_find_device(int if_type, int devnum, struct udevice **devp); 333 int blk_get_device(int if_type, int devnum, struct udevice **devp); 344 int blk_first_device(int if_type, struct udevice **devp); 374 const char *name, int if_type, int devnum, int blksz, 391 const char *name, int if_type, int devnum, int blksz, 412 int blk_unbind_all(int if_type); 424 int blk_find_max_devnum(enum if_type if_type); 456 if (blkcache_read(block_dev->if_type, block_dev->devnum, in blk_dread() [all …]
|
| H A D | usbplug.h | 10 struct blk_desc *usbplug_blk_get_devnum_by_type(enum if_type if_type, int devnum);
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | blk_common.c | 16 int blk_common_cmd(int argc, char * const argv[], enum if_type if_type, in blk_common_cmd() argument 19 const char *if_name = blk_get_if_type_name(if_type); in blk_common_cmd() 27 blk_list_devices(if_type); in blk_common_cmd() 30 if (blk_print_device_num(if_type, *cur_devnump)) { in blk_common_cmd() 36 if (blk_list_part(if_type)) in blk_common_cmd() 45 if (!blk_show_device(if_type, dev)) { in blk_common_cmd() 55 if (blk_print_part_devnum(if_type, dev)) { in blk_common_cmd() 74 n = blk_read_devnum(if_type, *cur_devnump, blk, cnt, in blk_common_cmd() 89 n = blk_write_devnum(if_type, *cur_devnump, blk, cnt, in blk_common_cmd() 103 n = blk_write_zeroes_devnum(if_type, *cur_devnump, blk, cnt); in blk_common_cmd() [all …]
|
| H A D | rockusb.c | 48 if (block_dev->if_type == IF_TYPE_MTD) { in rkusb_write_sector() 57 if (block_dev->if_type == IF_TYPE_SCSI && block_dev->rawblksz == 4096) { in rkusb_write_sector() 63 if (block_dev->if_type == IF_TYPE_MTD) { in rkusb_write_sector() 76 if (block_dev->if_type == IF_TYPE_SCSI && block_dev->rawblksz == 4096) { in rkusb_erase_sector() 248 if (g_rkusb->ums[0].block_dev.if_type == IF_TYPE_MTD && in do_rkusb()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3506/ |
| H A D | rk3506.c | 59 void board_set_iomux(enum if_type if_type, int devnum, int routing) in board_set_iomux() argument 61 switch (if_type) { in board_set_iomux() 83 void board_unset_iomux(enum if_type if_type, int devnum, int routing) in board_unset_iomux() argument 85 switch (if_type) { in board_unset_iomux()
|
| /rk3399_rockchip-uboot/env/ |
| H A D | envf.c | 80 if (env_dev == ((desc->if_type << 8) | desc->devnum)) in envf_init_location() 90 if (desc->if_type == IF_TYPE_MTD && in envf_init_location() 99 if (desc->if_type == IF_TYPE_MTD && desc->devnum == BLK_MTD_SPI_NOR) { in envf_init_location() 108 env_dev = (desc->if_type << 8) | desc->devnum; in envf_init_location() 163 if (desc->if_type == IF_TYPE_MMC && desc->devnum == 1 && in envf_read() 214 static enum if_type if_type; in envf_get() local 218 if (!env || if_type != desc->if_type || devnum != desc->devnum) { in envf_get() 220 if_type = desc->if_type; in envf_get()
|
| H A D | env_blk.c | 52 enum if_type if_type; in init_blk_hwpart_for_env() local 59 if_type = if_typename_to_iftype(devtype); in init_blk_hwpart_for_env() 62 ret = blk_select_hwpart_devnum(if_type, devnum, devpart); in init_blk_hwpart_for_env() 71 enum if_type if_type; in fini_blk_hwpart_for_env() local 77 if_type = if_typename_to_iftype(devtype); in fini_blk_hwpart_for_env() 79 blk_select_hwpart_devnum(if_type, devnum, env_org_hwpart); in fini_blk_hwpart_for_env()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3576/ |
| H A D | rk3576.c | 195 void board_set_iomux(enum if_type if_type, int devnum, int routing) in board_set_iomux() argument 197 switch (if_type) { in board_set_iomux() 231 printf("Bootdev 0x%x is not support\n", if_type); in board_set_iomux() 235 void board_unset_iomux(enum if_type if_type, int devnum, int routing) in board_unset_iomux() argument 237 switch (if_type) { in board_unset_iomux() 451 if (desc->if_type != IF_TYPE_SCSI) { in rk_board_dm_fdt_fixup()
|
| /rk3399_rockchip-uboot/disk/ |
| H A D | part_rkparm.c | 92 if (dev_desc->if_type != IF_TYPE_RKNAND) in rkparm_param_parse() 106 dev_num = ((dev_desc->if_type << 8) + dev_desc->devnum); in rkparm_param_parse() 135 if (dev_desc->if_type != IF_TYPE_RKNAND) in rkparm_init_param() 156 (dev_num != ((dev_desc->if_type << 8) + dev_desc->devnum))) in part_print_rkparm() 188 (dev_num != ((dev_desc->if_type << 8) + dev_desc->devnum))) { in part_get_info_rkparm() 224 (dev_num != ((dev_desc->if_type << 8) + dev_desc->devnum))) in part_test_rkparm()
|
| H A D | part.c | 135 switch (dev_desc->if_type) { in dev_print() 171 printf("Unhandled device type: %i\n", dev_desc->if_type); in dev_print() 244 blkcache_invalidate(dev_desc->if_type, dev_desc->devnum); in part_init() 267 switch (dev_desc->if_type) { in print_part_header() 760 switch (dev_desc->if_type) { in part_set_generic_name()
|
| /rk3399_rockchip-uboot/lib/efi_loader/ |
| H A D | efi_device_path_to_text.c | 37 if (dp->if_type != 0 && dp->if_type != 1) in efi_convert_device_node_to_text() 49 dp->if_type); in efi_convert_device_node_to_text()
|
| H A D | efi_disk.c | 295 int i, if_type; in efi_disk_register() local 298 for (if_type = 0; if_type < IF_TYPE_COUNT; if_type++) { in efi_disk_register() 302 cur_drvr = blk_driver_lookup_type(if_type); in efi_disk_register() 312 desc = blk_get_devnum_by_type(if_type, i); in efi_disk_register()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1103b/ |
| H A D | rv1103b.c | 78 void board_set_iomux(enum if_type if_type, int devnum, int routing) in board_set_iomux() argument 80 switch (if_type) { in board_set_iomux() 116 printf("Bootdev 0x%x is not support\n", if_type); in board_set_iomux()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | keymaster.c | 52 if (dev_desc->if_type == IF_TYPE_MMC && dev_desc->devnum == 0)//emmc in read_from_keymaster() 54 else if (dev_desc->if_type == IF_TYPE_SCSI)//ufs in read_from_keymaster() 152 if (dev_desc->if_type == IF_TYPE_MMC && dev_desc->devnum == 0)//emmc in write_to_keymaster() 154 else if (dev_desc->if_type == IF_TYPE_SCSI)//ufs in write_to_keymaster()
|
| H A D | write_keybox.c | 157 if (dev_desc->if_type == IF_TYPE_MMC && dev_desc->devnum == 0)//emmc in rk_send_keybox_to_ta() 159 else if (dev_desc->if_type == IF_TYPE_SCSI)//ufs in rk_send_keybox_to_ta() 250 if (dev_desc->if_type == IF_TYPE_MMC && dev_desc->devnum == 0)//emmc in write_keybox_to_secure_storage() 252 else if (dev_desc->if_type == IF_TYPE_SCSI)//ufs in write_keybox_to_secure_storage()
|
| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | mmc_legacy.c | 119 .if_type = IF_TYPE_MMC, 172 bdesc->if_type = IF_TYPE_MMC; in mmc_create() 232 .if_type = IF_TYPE_MMC,
|
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | f_rockusb.c | 204 if ((desc->if_type == IF_TYPE_MTD && desc->devnum == BLK_MTD_SPI_NOR) || in rkusb_do_test_unit_ready() 205 desc->if_type == IF_TYPE_SPINOR) in rkusb_do_test_unit_ready() 226 enum if_type type = ums[common->lun].block_dev.if_type; in rkusb_do_read_flash_id() 301 if (desc->if_type == IF_TYPE_MTD && in rkusb_do_read_flash_info() 317 if (desc->if_type == IF_TYPE_MTD && desc->devnum == BLK_MTD_SPI_NOR) { in rkusb_do_read_flash_info() 325 } else if (desc->if_type == IF_TYPE_SPINOR) { in rkusb_do_read_flash_info() 422 if (desc->if_type == IF_TYPE_MTD && in rkusb_do_erase_force() 828 enum if_type type, cur_type = ums[common->lun].block_dev.if_type; in rkusb_do_switch_storage() 901 enum if_type type = ums[common->lun].block_dev.if_type; in rkusb_do_get_storage_info() 956 enum if_type type = ums[common->lun].block_dev.if_type; in rkusb_do_read_capacity()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1126b/ |
| H A D | rv1126b.c | 177 void board_set_iomux(enum if_type if_type, int devnum, int routing) in board_set_iomux() argument 179 switch (if_type) { in board_set_iomux() 230 printf("Bootdev 0x%x is not support\n", if_type); in board_set_iomux() 234 void board_unset_iomux(enum if_type if_type, int devnum, int routing) in board_unset_iomux() argument 236 switch (if_type) { in board_unset_iomux()
|
| /rk3399_rockchip-uboot/drivers/ata/ |
| H A D | sata.c | 95 sata_dev_desc[i].if_type = IF_TYPE_SATA; in __sata_initialize() 150 .if_type = IF_TYPE_SATA,
|
| /rk3399_rockchip-uboot/test/rockchip/ |
| H A D | test-storage.c | 26 static enum if_type blk_get_type_by_name_and_num(char *devtype, int devnum) in blk_get_type_by_name_and_num() 107 int if_type; in do_test_storage() local 110 if_type = blk_get_type_by_name_and_num((char *)devtype, num); in do_test_storage() 111 dev_desc = blk_get_devnum_by_type(if_type, num); in do_test_storage()
|