Searched refs:dev_desc (Results 1 - 25 of 36) sorted by relevance

12

/u-boot/include/
H A Dandroid_ab.h29 * @param[in] dev_desc Place to store the device description pointer
33 int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info,
H A Dfb_mmc.h16 * @dev_desc: Pointer to returned blk_desc pointer
21 struct blk_desc **dev_desc,
H A Dzfs_common.h68 struct blk_desc *dev_desc; member in struct:zfs_filesystem
/u-boot/drivers/fastboot/
H A Dfb_mmc.c25 struct blk_desc *dev_desc; member in struct:fb_mmc_sparse
28 static int raw_part_get_info_by_name(struct blk_desc *dev_desc, argument
60 info->blksz = dev_desc->blksz;
66 int ret = blk_dselect_hwpart(dev_desc, mmcpart);
76 static int do_get_part_info(struct blk_desc **dev_desc, const char *name, argument
82 *dev_desc = blk_get_dev("mmc", CONFIG_FASTBOOT_FLASH_MMC_DEV);
83 if (*dev_desc) {
84 ret = part_get_info_by_name(*dev_desc, name, info);
89 ret = raw_part_get_info_by_name(*dev_desc, name, info);
95 ret = part_get_info_by_dev_and_name_or_num("mmc", name, dev_desc,
100 part_get_info_by_name_or_alias(struct blk_desc **dev_desc, const char *name, struct disk_partition *info) argument
157 struct blk_desc *dev_desc = sparse->dev_desc; local
168 write_raw_image(struct blk_desc *dev_desc, struct disk_partition *info, const char *part_name, void *buffer, u32 download_bytes, char *response) argument
202 fb_mmc_erase_mmc_hwpart(struct blk_desc *dev_desc) argument
223 fb_mmc_boot_ops(struct blk_desc *dev_desc, void *buffer, int hwpart, u32 buff_sz, char *response) argument
286 fb_mmc_get_boot_header(struct blk_desc *dev_desc, struct disk_partition *info, struct andr_boot_img_hdr_v0 *hdr, char *response) argument
332 fb_mmc_update_zimage(struct blk_desc *dev_desc, void *download_buffer, u32 download_bytes, char *response) argument
453 fastboot_mmc_get_part_info(const char *part_name, struct blk_desc **dev_desc, struct disk_partition *part_info, char *response) argument
513 struct blk_desc *dev_desc; local
648 struct blk_desc *dev_desc; local
[all...]
H A Dfb_getvar.c113 struct blk_desc *dev_desc; local
118 r = fastboot_mmc_get_part_info(part_name, &dev_desc, &disk_part,
225 struct blk_desc *dev_desc; local
228 r = fastboot_mmc_get_part_info(part_name, &dev_desc, &part_info,
231 r = fs_set_blk_dev_with_part(dev_desc, r);
/u-boot/test/dm/
H A Dmmc.c31 struct blk_desc *dev_desc; local
36 ut_assertok(blk_get_device_by_str("mmc", "0", &dev_desc));
39 ut_asserteq(512, dev_desc->blksz);
42 ut_asserteq(4, blk_dwrite(dev_desc, 0, 4, write));
43 ut_asserteq(4, blk_dread(dev_desc, 0, 4, read));
48 ut_asserteq(2, blk_derase(dev_desc, 1, 2));
49 ut_asserteq(4, blk_dread(dev_desc, 0, 4, read));
H A Dfwu_mdata.c26 static struct blk_desc *dev_desc; variable in typeref:struct:blk_desc
48 ut_assertok(blk_get_device_by_str("mmc", "0", &dev_desc));
84 blkcnt = BLOCK_CNT(img.length, dev_desc);
86 ut_asserteq(blkcnt, blk_dwrite(dev_desc, 0, blkcnt, image));
H A Dpart.c113 struct blk_desc *dev_desc, int part, int part_type,
121 ret = part_get_info_by_type(dev_desc, part, part_type, &p);
112 do_get_info_test(struct unit_test_state *uts, struct blk_desc *dev_desc, int part, int part_type, struct disk_partition const *reference) argument
H A Dusb.c46 struct blk_desc *dev_desc, *chk; local
53 ut_assertok(blk_get_device_by_str("usb", "0", &dev_desc));
55 ut_asserteq_ptr(chk, dev_desc);
61 ut_asserteq(512, dev_desc->blksz);
/u-boot/fs/ext4/
H A Ddev.c43 get_fs()->dev_desc = rbdd;
47 get_fs()->dev_desc->log2blksz;
53 return fs_devread(get_fs()->dev_desc, part_info, sector, byte_offset,
60 int sect = SUPERBLOCK_START >> fs->dev_desc->log2blksz;
61 int off = SUPERBLOCK_START % fs->dev_desc->blksz;
/u-boot/cmd/
H A Dab_select.c16 struct blk_desc *dev_desc; local
34 &dev_desc, &part_info,
40 ret = ab_select_slot(dev_desc, &part_info, dec_tries);
H A Dread.c19 struct blk_desc *dev_desc = NULL; local
32 &dev_desc, &part_info, 1);
55 res = blk_dwrite(dev_desc, offset + blk, cnt, addr);
57 res = blk_dread(dev_desc, offset + blk, cnt, addr);
H A Dzfs.c43 struct blk_desc *dev_desc; local
83 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1);
87 dev = dev_desc->devnum;
92 zfs_set_blk_dev(dev_desc, &info);
138 struct blk_desc *dev_desc; local
148 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1);
152 zfs_set_blk_dev(dev_desc, &info);
H A Dfat.c69 struct blk_desc *dev_desc; local
77 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1);
81 dev = dev_desc->devnum;
82 if (fat_set_blk_dev(dev_desc, &info) != 0) {
H A Ddisk.c25 struct blk_desc *dev_desc; local
44 &dev_desc, &info, 1);
50 dev = dev_desc->devnum;
61 if (blk_dread(dev_desc, info.start, 1, (ulong *)addr) != 1) {
105 if (blk_dread(dev_desc, info.start + 1, cnt,
H A Dgpt.c337 static int get_gpt_info(struct blk_desc *dev_desc) argument
351 ret = part_get_info(dev_desc, p, &info);
376 static int do_get_gpt_info(struct blk_desc *dev_desc, char * const namestr) argument
380 numparts = get_gpt_info(dev_desc);
389 ret = get_disk_guid(dev_desc, disk_guid);
423 * @param dev_desc - pointer block device descriptor
432 static int set_gpt_info(struct blk_desc *dev_desc, argument
449 (unsigned int)dev_desc->lba, (unsigned int)dev_desc->lba);
577 parts[i].size = lldiv(size_ll, dev_desc
840 do_disk_guid(struct blk_desc *dev_desc, char * const namestr) argument
858 do_rename_gpt_parts(struct blk_desc *dev_desc, char *subcomm, char *name1, char *name2) argument
[all...]
H A Dpart.c34 struct blk_desc *dev_desc; local
42 part = blk_get_device_part_str(argv[0], argv[1], &dev_desc, &info, 0);
219 struct blk_desc *dev_desc; local
227 part = blk_get_device_part_str(argv[0], argv[1], &dev_desc, &info, 0);
/u-boot/env/
H A Dfat.c63 struct blk_desc *dev_desc = NULL; local
77 &dev_desc, &info, 1);
81 dev = dev_desc->devnum;
82 if (fat_set_blk_dev(dev_desc, &info) != 0) {
121 struct blk_desc *dev_desc = NULL; local
139 &dev_desc, &info, 1);
143 dev = dev_desc->devnum;
144 if (fat_set_blk_dev(dev_desc, &info) != 0) {
H A Dext4.c65 struct blk_desc *dev_desc = NULL; local
73 &dev_desc, &info, 1);
77 dev = dev_desc->devnum;
78 ext4fs_set_blk_dev(dev_desc, &info);
138 struct blk_desc *dev_desc = NULL; local
156 &dev_desc, &info, 1);
160 dev = dev_desc->devnum;
161 ext4fs_set_blk_dev(dev_desc, &info);
/u-boot/boot/
H A Dandroid_ab.c79 * @param[in] dev_desc Device where to read the boot_control struct from
80 * @param[in] part_info Partition in 'dev_desc' where to read from, normally
85 static int ab_control_create_from_disk(struct blk_desc *dev_desc, argument
112 ret = blk_dread(dev_desc, part_info->start + abc_offset, abc_blocks,
131 * @param[in] dev_desc Device where we should write the boot_control struct
132 * @param[in] part_info Partition on the 'dev_desc' where to write
137 static int ab_control_store(struct blk_desc *dev_desc, argument
148 ret = blk_dwrite(dev_desc, part_info->start + abc_offset, abc_blocks,
186 int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info, argument
197 ret = ab_control_create_from_disk(dev_desc, part_inf
[all...]
/u-boot/drivers/scsi/
H A Dscsi.c368 * @dev_desc: Block device description pointer
370 static void scsi_init_dev_desc_priv(struct blk_desc *dev_desc) argument
372 memset(dev_desc, 0, sizeof(struct blk_desc));
373 dev_desc->target = 0xff;
374 dev_desc->lun = 0xff;
375 dev_desc->log2blksz =
376 LOG2_INVALID(typeof(dev_desc->log2blksz));
377 dev_desc->type = DEV_TYPE_UNKNOWN;
379 dev_desc->bb = true;
388 * @dev_desc
395 scsi_detect_dev(struct udevice *dev, int target, int lun, struct blk_desc *dev_desc) argument
[all...]
/u-boot/arch/arm/mach-omap2/
H A Dutils.c94 struct blk_desc *dev_desc; local
98 dev_desc = blk_get_dev("mmc", CONFIG_FASTBOOT_FLASH_MMC_DEV);
99 if (!dev_desc || dev_desc->type == DEV_TYPE_UNKNOWN) {
104 res = part_get_info_by_name(dev_desc, part, &info);
/u-boot/test/image/
H A Dspl_load_fs.c261 struct blk_desc *dev_desc; local
276 dev_desc = blk_get_devnum_by_uclass_id(UCLASS_MMC, 0);
277 ut_assertnonnull(dev_desc);
278 ut_asserteq(512, dev_desc->blksz);
279 fs_blocks = fs_size / dev_desc->blksz;
280 ut_asserteq(fs_blocks, blk_dwrite(dev_desc, 0, fs_blocks, fs));
285 ut_assertok(fs_set_blk_dev_with_part(dev_desc, 0));
321 struct blk_desc *dev_desc; local
362 dev_desc = blk_get_devnum_by_uclass_id(UCLASS_MMC, 0);
363 ut_assertnonnull(dev_desc);
406 struct blk_desc *dev_desc; local
[all...]
/u-boot/test/cmd/
H A Drw.c53 struct blk_desc *dev_desc; local
59 ut_assertok(setup_partitions(uts, &dev_desc));
/u-boot/common/
H A Dusb_storage.c117 struct blk_desc *dev_desc);
1444 struct blk_desc *dev_desc)
1454 dev_desc->target = dev->devnum;
1455 pccb->lun = dev_desc->lun;
1456 debug(" address %d\n", dev_desc->target);
1476 dev_desc->removable = 1;
1478 memcpy(dev_desc->vendor, (const void *)&usb_stor_buf[8], 8);
1479 memcpy(dev_desc->product, (const void *)&usb_stor_buf[16], 16);
1480 memcpy(dev_desc->revision, (const void *)&usb_stor_buf[32], 4);
1481 dev_desc
1443 usb_stor_get_info(struct usb_device *dev, struct us_data *ss, struct blk_desc *dev_desc) argument
[all...]

Completed in 143 milliseconds

12