Home
last modified time | relevance | path

Searched refs:hwpart (Results 1 – 16 of 16) sorted by relevance

/u-boot/include/
A Dblk.h71 unsigned char hwpart; /* HW partition, e.g. for eMMC */ member
267 int (*select_hwpart)(struct udevice *dev, int hwpart);
409 int blk_select_hwpart(struct udevice *dev, int hwpart);
522 int (*select_hwpart)(struct blk_desc *desc, int hwpart);
572 int blk_dselect_hwpart(struct blk_desc *desc, int hwpart);
664 int blk_select_hwpart_devnum(enum if_type if_type, int devnum, int hwpart);
A Dpart.h17 int (*select_hwpart)(int dev_num, int hwpart);
/u-boot/drivers/mmc/
A Dmmc_legacy.c218 static int mmc_select_hwpartp(struct blk_desc *desc, int hwpart) in mmc_select_hwpartp() argument
226 if (mmc->block_dev.hwpart == hwpart) in mmc_select_hwpartp()
232 ret = mmc_switch_part(mmc, hwpart); in mmc_select_hwpartp()
A Dmmc-uclass.c434 static int mmc_select_hwpart(struct udevice *bdev, int hwpart) in mmc_select_hwpart() argument
441 if (desc->hwpart == hwpart) in mmc_select_hwpart()
447 ret = mmc_switch_part(mmc, hwpart); in mmc_select_hwpart()
A Dmmc_write.c89 block_dev->hwpart); in mmc_berase()
206 err = blk_select_hwpart_devnum(IF_TYPE_MMC, dev_num, block_dev->hwpart); in mmc_bwrite()
A Dmmc.c472 err = mmc_switch_part(mmc, block_dev->hwpart); in mmc_bread()
474 err = blk_dselect_hwpart(block_dev, block_dev->hwpart); in mmc_bread()
1035 mmc_get_blk_desc(mmc)->hwpart = part_num; in mmc_switch_part()
2574 err = mmc_set_capacity(mmc, mmc_get_blk_desc(mmc)->hwpart); in mmc_startup()
2611 bdesc->hwpart = 0; in mmc_startup()
2826 mmc_get_blk_desc(mmc)->hwpart = 0; in mmc_get_op_cond()
/u-boot/drivers/fastboot/
A Dfb_mmc.c214 debug("Start Erasing mmc hwpart[%u]...\n", dev_desc->hwpart); in fb_mmc_erase_mmc_hwpart()
219 pr_err("Failed to erase mmc hwpart[%u]\n", dev_desc->hwpart); in fb_mmc_erase_mmc_hwpart()
224 dev_desc->lba * dev_desc->blksz, dev_desc->hwpart); in fb_mmc_erase_mmc_hwpart()
232 int hwpart, u32 buff_sz, char *response) in fb_mmc_boot_ops() argument
239 if (blk_dselect_hwpart(dev_desc, hwpart)) { in fb_mmc_boot_ops()
258 debug("Start Flashing Image to EMMC_BOOT%d...\n", hwpart); in fb_mmc_boot_ops()
263 pr_err("Failed to write EMMC_BOOT%d\n", hwpart); in fb_mmc_boot_ops()
270 blkcnt * blksz, hwpart); in fb_mmc_boot_ops()
273 pr_err("Failed to erase EMMC_BOOT%d\n", hwpart); in fb_mmc_boot_ops()
/u-boot/drivers/block/
A Dblk_legacy.c193 int blk_dselect_hwpart(struct blk_desc *desc, int hwpart) in blk_dselect_hwpart() argument
200 return drv->select_hwpart(desc, hwpart); in blk_dselect_hwpart()
254 int blk_select_hwpart_devnum(enum if_type if_type, int devnum, int hwpart) in blk_select_hwpart_devnum() argument
265 return drv->select_hwpart(desc, hwpart); in blk_select_hwpart_devnum()
A Dblk-uclass.c208 int blk_select_hwpart_devnum(enum if_type if_type, int devnum, int hwpart) in blk_select_hwpart_devnum() argument
217 return blk_select_hwpart(dev, hwpart); in blk_select_hwpart_devnum()
343 int blk_select_hwpart(struct udevice *dev, int hwpart) in blk_select_hwpart() argument
352 return ops->select_hwpart(dev, hwpart); in blk_select_hwpart()
355 int blk_dselect_hwpart(struct blk_desc *desc, int hwpart) in blk_dselect_hwpart() argument
357 return blk_select_hwpart(desc->bdev, hwpart); in blk_dselect_hwpart()
/u-boot/disk/
A Dpart.c58 static struct blk_desc *get_dev_hwpart(const char *ifname, int dev, int hwpart) in get_dev_hwpart() argument
69 ret = blk_dselect_hwpart(dev_desc, hwpart); in get_dev_hwpart()
84 struct blk_desc *get_dev_hwpart(const char *ifname, int dev, int hwpart) in get_dev_hwpart() argument
386 int dev, hwpart; in blk_get_device_by_str() local
396 hwpart = 0; in blk_get_device_by_str()
408 hwpart = simple_strtoul(hwpart_str, &ep, 16); in blk_get_device_by_str()
417 *dev_desc = get_dev_hwpart(ifname, dev, hwpart); in blk_get_device_by_str()
/u-boot/cmd/
A Dusb_mass_storage.c120 ums[ums_count].block_dev.hwpart, in ums_init()
A Dmmc.c310 original_part = mmc->block_dev.hwpart; in do_mmcrpmb()
312 original_part = mmc_get_blk_desc(mmc)->hwpart; in do_mmcrpmb()
550 curr_device, mmc_get_blk_desc(mmc)->hwpart); in do_mmc_dev()
/u-boot/drivers/tee/optee/
A Drpmb.c85 priv->rpmb_original_part = mmc_get_blk_desc(mmc)->hwpart; in get_mmc()
/u-boot/env/
A Dmmc.c134 env_mmc_orig_hwpart = mmc_get_blk_desc(mmc)->hwpart; in mmc_set_env_part()
/u-boot/drivers/dfu/
A Ddfu_mmc.c54 part_num_bkp = mmc_get_blk_desc(mmc)->hwpart; in mmc_block_op()
/u-boot/board/toradex/common/
A Dtdx-cfg-block.c183 if (part != mmc_get_blk_desc(mmc)->hwpart) { in tdx_cfg_block_mmc_storage()

Completed in 27 milliseconds