/u-boot/disk/ |
A D | part.c | 64 if (!dev_desc) { in get_dev_hwpart() 76 return dev_desc; in get_dev_hwpart() 135 dev_desc->target,dev_desc->lun, in dev_print() 136 dev_desc->vendor, in dev_print() 144 dev_desc->vendor, in dev_print() 155 dev_desc->vendor, in dev_print() 193 if (dev_desc->lba > 0L && dev_desc->blksz > 0L) { in dev_print() 242 blkcache_invalidate(dev_desc->if_type, dev_desc->devnum); in part_init() 418 if (!(*dev_desc) || ((*dev_desc)->type == DEV_TYPE_UNKNOWN)) { in blk_get_device_by_str() 575 (*dev_desc)->log2blksz = LOG2((*dev_desc)->blksz); in blk_get_device_part_str() [all …]
|
A D | part_iso.c | 63 if ((dev_desc->blksz != CD_SECTSIZE) && (dev_desc->blksz != 512)) in part_get_info_iso_verb() 73 dev_desc->devnum, part_num); in part_get_info_iso_verb() 95 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() 194 if (dev_desc->blksz == 512) { in part_get_info_iso_verb() [all …]
|
A D | part_efi.c | 364 dev_desc->devnum); in set_protective_mbr() 442 dev_desc->blksz; in gpt_fill_pte() 626 dev_desc); in gpt_restore() 695 if (is_gpt_valid(dev_desc, (dev_desc->lba - 1), in gpt_verify_headers() 790 dev_desc->blksz); in is_valid_gpt_buf() 792 dev_desc->lba)) in is_valid_gpt_buf() 797 dev_desc->blksz); in is_valid_gpt_buf() 817 dev_desc->blksz); in write_mbr_and_gpt_partitions() 824 dev_desc); in write_mbr_and_gpt_partitions() 872 part_init(dev_desc); in write_mbr_and_gpt_partitions() [all …]
|
A D | part_mac.c | 44 static int part_test_mac(struct blk_desc *dev_desc) in part_test_mac() argument 50 if (part_mac_read_ddb (dev_desc, ddesc)) { in part_test_mac() 77 if (part_mac_read_ddb (dev_desc, ddesc)) { in part_print_mac() 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() 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() 224 if (part_mac_read_ddb (dev_desc, ddesc)) { in part_get_info_mac() [all …]
|
A D | part_dos.c | 115 if (dev_desc->sig_type == SIG_TYPE_NONE && in part_test_dos() 117 dev_desc->sig_type = SIG_TYPE_MBR; in part_test_dos() 118 dev_desc->mbr_sig = mbr->unique_mbr_signature; in part_test_dos() 153 dev_desc->devnum, ext_part_sector); in print_partition_extended() 194 print_partition_extended(dev_desc, lba_start, in print_partition_extended() 225 dev_desc->devnum, ext_part_sector); in part_get_info_extended() 256 part_set_generic_name(dev_desc, part_num, in part_get_info_extended() 293 info->size = dev_desc->lba; in part_get_info_extended() 427 part_init(dev_desc); in write_mbr_partitions() 499 if (blk_dwrite(dev_desc, 0, 1, buf) != 1) { in write_mbr_sector() [all …]
|
A D | part_amiga.c | 130 struct rigid_disk_block *get_rdisk(struct blk_desc *dev_desc) in get_rdisk() argument 144 ulong res = blk_dread(dev_desc, i, 1, (ulong *)block_buffer); in get_rdisk() 170 struct bootcode_block *get_bootcode(struct blk_desc *dev_desc) in get_bootcode() argument 211 static int part_test_amiga(struct blk_desc *dev_desc) in part_test_amiga() argument 218 rdb = get_rdisk(dev_desc); in part_test_amiga() 221 bootcode = get_bootcode(dev_desc); in part_test_amiga() 248 rdb = get_rdisk(dev_desc); in find_partition() 322 static void part_print_amiga(struct blk_desc *dev_desc) in part_print_amiga() argument 330 rdb = get_rdisk(dev_desc); in part_print_amiga() 358 res = blk_dread(dev_desc, block, 1, (ulong *)block_buffer); in part_print_amiga() [all …]
|
/u-boot/drivers/fastboot/ |
A D | fb_mmc.c | 86 if (*dev_desc) { in do_get_part_info() 165 struct blk_desc *dev_desc = sparse->dev_desc; in fb_mmc_sparse_write() local 216 blks = fb_mmc_blk_write(dev_desc, 0, dev_desc->lba, NULL); in fb_mmc_erase_mmc_hwpart() 224 dev_desc->lba * dev_desc->blksz, dev_desc->hwpart); in fb_mmc_erase_mmc_hwpart() 520 if (dev_desc) 527 if (dev_desc) 542 if (!dev_desc) 595 if (dev_desc) 610 sparse_priv.dev_desc = dev_desc; 650 if (dev_desc) [all …]
|
A D | fb_getvar.c | 106 struct blk_desc *dev_desc; in getvar_get_part_info() local 109 r = fastboot_mmc_get_part_info(part_name, &dev_desc, &part_info, in getvar_get_part_info() 222 struct blk_desc *dev_desc; in getvar_partition_type() local 225 r = fastboot_mmc_get_part_info(part_name, &dev_desc, &part_info, in getvar_partition_type() 228 r = fs_set_blk_dev_with_part(dev_desc, r); in getvar_partition_type()
|
/u-boot/include/ |
A D | part.h | 118 void part_print(struct blk_desc *dev_desc); 119 void part_init(struct blk_desc *dev_desc); 120 void dev_print(struct blk_desc *dev_desc); 148 struct blk_desc **dev_desc); 184 struct blk_desc **dev_desc, 237 struct blk_desc **dev_desc, 270 struct blk_desc **dev_desc) in blk_get_device_by_str() argument 274 struct blk_desc **dev_desc, in blk_get_device_part_str() argument 277 { *dev_desc = NULL; return -1; } in blk_get_device_part_str() 318 void (*print)(struct blk_desc *dev_desc); [all …]
|
/u-boot/test/dm/ |
A D | mmc.c | 31 struct blk_desc *dev_desc; in dm_test_mmc_blk() local 36 ut_assertok(blk_get_device_by_str("mmc", "0", &dev_desc)); in dm_test_mmc_blk() 39 ut_asserteq(512, dev_desc->blksz); in dm_test_mmc_blk() 42 ut_asserteq(2, blk_dwrite(dev_desc, 0, 2, write)); in dm_test_mmc_blk() 43 ut_asserteq(2, blk_dread(dev_desc, 0, 2, read)); in dm_test_mmc_blk() 48 ut_asserteq(2, blk_derase(dev_desc, 0, 2)); in dm_test_mmc_blk() 49 ut_asserteq(2, blk_dread(dev_desc, 0, 2, read)); in dm_test_mmc_blk()
|
A D | usb.c | 47 struct blk_desc *dev_desc; in dm_test_usb_flash() local 53 ut_assertok(blk_get_device_by_str("usb", "0", &dev_desc)); in dm_test_usb_flash() 56 ut_asserteq(512, dev_desc->blksz); in dm_test_usb_flash() 58 ut_asserteq(2, blk_dread(dev_desc, 0, 2, cmp)); in dm_test_usb_flash()
|
/u-boot/env/ |
A D | fat.c | 54 struct blk_desc *dev_desc = NULL; in env_fat_save() local 66 &dev_desc, &info, 1); in env_fat_save() 70 dev = dev_desc->devnum; in env_fat_save() 71 if (fat_set_blk_dev(dev_desc, &info) != 0) { in env_fat_save() 100 struct blk_desc *dev_desc = NULL; in env_fat_load() local 112 &dev_desc, &info, 1); in env_fat_load() 116 dev = dev_desc->devnum; in env_fat_load() 117 if (fat_set_blk_dev(dev_desc, &info) != 0) { in env_fat_load()
|
A D | ext4.c | 64 struct blk_desc *dev_desc = NULL; in env_ext4_save_buffer() local 72 &dev_desc, &info, 1); in env_ext4_save_buffer() 76 dev = dev_desc->devnum; in env_ext4_save_buffer() 77 ext4fs_set_blk_dev(dev_desc, &info); in env_ext4_save_buffer() 137 struct blk_desc *dev_desc = NULL; in env_ext4_load() local 151 &dev_desc, &info, 1); in env_ext4_load() 155 dev = dev_desc->devnum; in env_ext4_load() 156 ext4fs_set_blk_dev(dev_desc, &info); in env_ext4_load()
|
/u-boot/fs/ext4/ |
A D | dev.c | 43 get_fs()->dev_desc = rbdd; in ext4fs_set_blk_dev() 47 get_fs()->dev_desc->log2blksz; in ext4fs_set_blk_dev() 53 return fs_devread(get_fs()->dev_desc, part_info, sector, byte_offset, in ext4fs_devread() 60 int sect = SUPERBLOCK_START >> fs->dev_desc->log2blksz; in ext4_read_superblock() 61 int off = SUPERBLOCK_START % fs->dev_desc->blksz; in ext4_read_superblock()
|
/u-boot/cmd/ |
A D | reiser.c | 37 struct blk_desc *dev_desc = NULL; in do_reiserls() local 43 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1); in do_reiserls() 51 dev = dev_desc->devnum; in do_reiserls() 54 reiserfs_set_blk_dev(dev_desc, &info); in do_reiserls() 85 struct blk_desc *dev_desc = NULL; in do_reiserload() local 125 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1); in do_reiserload() 129 dev = dev_desc->devnum; in do_reiserload() 135 reiserfs_set_blk_dev(dev_desc, &info); in do_reiserload()
|
A D | read.c | 18 struct blk_desc *dev_desc = NULL; in do_read() local 42 dev_desc = blk_get_dev(argv[1], dev); in do_read() 43 if (dev_desc == NULL) { in do_read() 53 if (part_get_info(dev_desc, part, &part_info)) { in do_read() 69 if (blk_dread(dev_desc, offset + blk, cnt, addr) != cnt) { in do_read()
|
A D | zfs.c | 43 struct blk_desc *dev_desc; in do_zfs_load() local 83 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1); in do_zfs_load() 87 dev = dev_desc->devnum; in do_zfs_load() 92 zfs_set_blk_dev(dev_desc, &info); in do_zfs_load() 138 struct blk_desc *dev_desc; in do_zfs_ls() local 148 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1); in do_zfs_ls() 152 zfs_set_blk_dev(dev_desc, &info); in do_zfs_ls()
|
A D | ab_select.c | 16 struct blk_desc *dev_desc; in do_ab_select() local 25 &dev_desc, &part_info, in do_ab_select() 30 ret = ab_select_slot(dev_desc, &part_info); in do_ab_select()
|
A D | disk.c | 25 struct blk_desc *dev_desc; in common_diskboot() local 44 &dev_desc, &info, 1); in common_diskboot() 50 dev = dev_desc->devnum; in common_diskboot() 61 if (blk_dread(dev_desc, info.start, 1, (ulong *)addr) != 1) { in common_diskboot() 105 if (blk_dread(dev_desc, info.start + 1, cnt, in common_diskboot()
|
A D | fat.c | 69 struct blk_desc *dev_desc; in do_fat_fsinfo() local 77 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1); in do_fat_fsinfo() 81 dev = dev_desc->devnum; in do_fat_fsinfo() 82 if (fat_set_blk_dev(dev_desc, &info) != 0) { in do_fat_fsinfo()
|
A D | gpt.c | 314 static int get_gpt_info(struct blk_desc *dev_desc) in get_gpt_info() argument 328 ret = part_get_info(dev_desc, p, &info); in get_gpt_info() 353 static int do_get_gpt_info(struct blk_desc *dev_desc) in do_get_gpt_info() argument 357 ret = get_gpt_info(dev_desc); in do_get_gpt_info() 380 static int set_gpt_info(struct blk_desc *dev_desc, in set_gpt_info() argument 397 (unsigned int)dev_desc->lba, (unsigned int)dev_desc->lba); in set_gpt_info() 525 parts[i].size = lldiv(size_ll, dev_desc->blksz); in set_gpt_info() 776 ret = get_disk_guid(dev_desc, disk_guid); in do_disk_guid() 804 ret = get_disk_guid(dev_desc, disk_guid); in do_rename_gpt_parts() 811 numparts = get_gpt_info(dev_desc); in do_rename_gpt_parts() [all …]
|
/u-boot/drivers/scsi/ |
A D | scsi.c | 442 dev_desc->target = 0xff; in scsi_init_dev_desc_priv() 443 dev_desc->lun = 0xff; in scsi_init_dev_desc_priv() 444 dev_desc->log2blksz = in scsi_init_dev_desc_priv() 447 dev_desc->vendor[0] = 0; in scsi_init_dev_desc_priv() 448 dev_desc->product[0] = 0; in scsi_init_dev_desc_priv() 462 dev_desc->lba = 0; in scsi_init_dev_desc() 463 dev_desc->blksz = 0; in scsi_init_dev_desc() 537 dev_desc->type = perq; in scsi_detect_dev() 548 dev_desc->blksz = blksz; in scsi_detect_dev() 549 dev_desc->log2blksz = LOG2(dev_desc->blksz); in scsi_detect_dev() [all …]
|
/u-boot/drivers/block/ |
A D | ide.c | 486 dev_desc->lun = 0; in atapi_inquiry() 487 dev_desc->lba = 0; in atapi_inquiry() 488 dev_desc->blksz = 0; in atapi_inquiry() 489 dev_desc->log2blksz = LOG2_INVALID(typeof(dev_desc->log2blksz)); in atapi_inquiry() 493 dev_desc->removable = 1; in atapi_inquiry() 495 dev_desc->removable = 0; in atapi_inquiry() 534 dev_desc->log2blksz = LOG2(dev_desc->blksz); in atapi_inquiry() 537 dev_desc->lba48 = 0; in atapi_inquiry() 680 dev_desc->lba48 = 1; in ide_ident() 686 dev_desc->lba48 = 0; in ide_ident() [all …]
|
/u-boot/common/ |
A D | android_ab.c | 86 static int ab_control_create_from_disk(struct blk_desc *dev_desc, in ab_control_create_from_disk() argument 111 ret = blk_dread(dev_desc, part_info->start + abc_offset, abc_blocks, in ab_control_create_from_disk() 136 static int ab_control_store(struct blk_desc *dev_desc, in ab_control_store() argument 146 ret = blk_dwrite(dev_desc, part_info->start + abc_offset, abc_blocks, in ab_control_store() 184 int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info) in ab_select_slot() argument 192 ret = ab_control_create_from_disk(dev_desc, part_info, &abc); in ab_select_slot() 297 ab_control_store(dev_desc, part_info, abc); in ab_select_slot()
|
/u-boot/arch/arm/mach-omap2/ |
A D | utils.c | 93 struct blk_desc *dev_desc; in omap_mmc_get_part_size() local 97 dev_desc = blk_get_dev("mmc", CONFIG_FASTBOOT_FLASH_MMC_DEV); in omap_mmc_get_part_size() 98 if (!dev_desc || dev_desc->type == DEV_TYPE_UNKNOWN) { in omap_mmc_get_part_size() 104 res = part_get_info_by_name_type(dev_desc, part, &info, PART_TYPE_EFI); in omap_mmc_get_part_size()
|