/external/u-boot/include/ |
D | blk.h | 95 unsigned long (*block_read)(struct blk_desc *block_dev, 99 unsigned long (*block_write)(struct blk_desc *block_dev, 103 unsigned long (*block_erase)(struct blk_desc *block_dev, 270 unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start, 272 unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start, 274 unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start, 417 static inline ulong blk_dread(struct blk_desc *block_dev, lbaint_t start, in blk_dread() argument 421 if (blkcache_read(block_dev->if_type, block_dev->devnum, in blk_dread() 422 start, blkcnt, block_dev->blksz, buffer)) in blk_dread() 430 blks_read = block_dev->block_read(block_dev, start, blkcnt, buffer); in blk_dread() [all …]
|
D | spl.h | 215 struct blk_desc *block_dev, int partition, 218 struct blk_desc *block_dev, int partition); 224 struct blk_desc *block_dev, int partition, 227 struct blk_desc *block_dev, int partition);
|
D | ide.h | 30 ulong ide_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, 32 ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
|
/external/u-boot/cmd/ |
D | usb_mass_storage.c | 21 struct blk_desc *block_dev = &ums_dev->block_dev; in ums_read_sector() local 24 return blk_dread(block_dev, blkstart, blkcnt, buf); in ums_read_sector() 30 struct blk_desc *block_dev = &ums_dev->block_dev; in ums_write_sector() local 33 return blk_dwrite(block_dev, blkstart, blkcnt, buf); in ums_write_sector() 55 struct blk_desc *block_dev; in ums_init() local 74 &block_dev, &info, 1); in ums_init() 87 if (block_dev->blksz != SECTOR_SIZE) in ums_init() 98 ums[ums_count].num_sectors = block_dev->lba; in ums_init() 112 ums[ums_count].block_dev = *block_dev; in ums_init() 115 ums_count, ums[ums_count].block_dev.devnum, in ums_init() [all …]
|
/external/u-boot/common/spl/ |
D | spl_fat.c | 21 static int spl_register_fat_device(struct blk_desc *block_dev, int partition) in spl_register_fat_device() argument 28 err = fat_register_device(block_dev, partition); in spl_register_fat_device() 56 struct blk_desc *block_dev, int partition, in spl_load_image_fat() argument 62 err = spl_register_fat_device(block_dev, partition); in spl_load_image_fat() 105 struct blk_desc *block_dev, int partition) in spl_load_image_fat_os() argument 110 err = spl_register_fat_device(block_dev, partition); in spl_load_image_fat_os() 125 err = spl_load_image_fat(spl_image, block_dev, in spl_load_image_fat_os() 151 return spl_load_image_fat(spl_image, block_dev, partition, in spl_load_image_fat_os() 156 struct blk_desc *block_dev, int partition) in spl_load_image_fat_os() argument
|
D | spl_ext.c | 11 struct blk_desc *block_dev, int partition, in spl_load_image_ext() argument 22 if (part_get_info(block_dev, partition, &part_info)) { in spl_load_image_ext() 27 ext4fs_set_blk_dev(block_dev, &part_info); in spl_load_image_ext() 68 struct blk_desc *block_dev, int partition) in spl_load_image_ext_os() argument 75 if (part_get_info(block_dev, partition, &part_info)) { in spl_load_image_ext_os() 80 ext4fs_set_blk_dev(block_dev, &part_info); in spl_load_image_ext_os() 105 err = spl_load_image_ext(spl_image, block_dev, in spl_load_image_ext_os() 136 return spl_load_image_ext(spl_image, block_dev, partition, in spl_load_image_ext_os() 141 struct blk_desc *block_dev, int partition) in spl_load_image_ext_os() argument
|
/external/u-boot/drivers/block/ |
D | sandbox.c | 37 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); local 40 static unsigned long host_block_read(struct blk_desc *block_dev, 44 int dev = block_dev->devnum; 51 if (os_lseek(host_dev->fd, start * block_dev->blksz, OS_SEEK_SET) == 56 ssize_t len = os_read(host_dev->fd, buffer, blkcnt * block_dev->blksz); 58 return len / block_dev->blksz; 68 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); local 70 static unsigned long host_block_write(struct blk_desc *block_dev, 74 int dev = block_dev->devnum; 78 if (os_lseek(host_dev->fd, start * block_dev->blksz, OS_SEEK_SET) == [all …]
|
D | blk-uclass.c | 404 unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start, in blk_dread() argument 407 struct udevice *dev = block_dev->bdev; in blk_dread() 414 if (blkcache_read(block_dev->if_type, block_dev->devnum, in blk_dread() 415 start, blkcnt, block_dev->blksz, buffer)) in blk_dread() 419 blkcache_fill(block_dev->if_type, block_dev->devnum, in blk_dread() 420 start, blkcnt, block_dev->blksz, buffer); in blk_dread() 425 unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start, in blk_dwrite() argument 428 struct udevice *dev = block_dev->bdev; in blk_dwrite() 434 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_dwrite() 438 unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start, in blk_derase() argument [all …]
|
D | ide.c | 409 ulong atapi_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, in atapi_read() argument 412 int device = block_dev->devnum; in atapi_read() 934 ulong ide_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, in ide_read() 939 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); in ide_read() local 941 int device = block_dev->devnum; in ide_read() 1061 ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, in ide_write() 1066 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); in ide_write() local 1068 int device = block_dev->devnum; in ide_write()
|
/external/u-boot/drivers/mmc/ |
D | mxsmmc.c | 144 debug("MMC%d: CMD%d\n", mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd() 159 printf("MMC%d: Bus busy timeout!\n", mmc->block_dev.devnum); in mxsmmc_send_cmd() 165 printf("MMC%d: No card detected!\n", mmc->block_dev.devnum); in mxsmmc_send_cmd() 202 priv->mmc_is_wp(mmc->block_dev.devnum)) { in mxsmmc_send_cmd() 204 mmc->block_dev.devnum); in mxsmmc_send_cmd() 245 mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd() 252 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd() 259 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd() 281 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd() 288 mmc->block_dev.devnum); in mxsmmc_send_cmd() [all …]
|
D | fsl_esdhc_spl.c | 40 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_spl_load_image() 88 err = mmc->block_dev.block_read(&mmc->block_dev, in mmc_boot() 130 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_boot()
|
D | mmc_write.c | 71 ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt) in mmc_berase() 75 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); in mmc_berase() local 77 int dev_num = block_dev->devnum; in mmc_berase() 88 block_dev->hwpart); in mmc_berase() 190 ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt, in mmc_bwrite() 195 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); in mmc_bwrite() local 197 int dev_num = block_dev->devnum; in mmc_bwrite() 205 err = blk_select_hwpart_devnum(IF_TYPE_MMC, dev_num, block_dev->hwpart); in mmc_bwrite()
|
D | mmc_legacy.c | 34 return &mmc->block_dev; in mmc_get_blk_desc() 45 if (m->block_dev.devnum == dev_num) in find_mmc_device() 63 return &mmc->block_dev; in mmc_get_blk_desc() 116 printf("%s: %d", m->cfg->name, m->block_dev.devnum); in print_mmc_devices() 138 .block_dev = { 221 if (mmc->block_dev.hwpart == hwpart) in mmc_select_hwpartp() 245 *descp = &mmc->block_dev; in mmc_get_dev()
|
D | mmc_private.h | 26 ulong mmc_bread(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt, 37 ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt, 39 ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt); 59 static inline unsigned long mmc_berase(struct blk_desc *block_dev, in mmc_berase() argument 65 static inline ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, in mmc_bwrite() argument
|
/external/u-boot/drivers/scsi/ |
D | scsi.c | 148 static ulong scsi_read(struct blk_desc *block_dev, lbaint_t blknr, in scsi_read() 153 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); in scsi_read() local 164 pccb->target = block_dev->target; in scsi_read() 165 pccb->lun = block_dev->lun; in scsi_read() 171 block_dev->devnum, start, blks, (unsigned long)buffer); in scsi_read() 178 pccb->datalen = block_dev->blksz * blocks; in scsi_read() 185 pccb->datalen = block_dev->blksz * in scsi_read() 192 pccb->datalen = block_dev->blksz * blks; in scsi_read() 224 static ulong scsi_write(struct blk_desc *block_dev, lbaint_t blknr, in scsi_write() 229 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); in scsi_write() local [all …]
|
/external/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
D | ppa.c | 102 ret = mmc->block_dev.block_read(&mmc->block_dev, blk, cnt, fitp); in ppa_init() 126 ret = mmc->block_dev.block_read(&mmc->block_dev, blk, cnt, ppa_hdr_ddr); in ppa_init() 152 ret = mmc->block_dev.block_read(&mmc->block_dev, in ppa_init()
|
/external/syzkaller/pkg/report/testdata/linux/guilty/ |
D | 21 | 17 kill_bdev+0xbc/0xf0 fs/block_dev.c:86 18 __blkdev_put+0x183/0x7c0 fs/block_dev.c:1764 19 blkdev_put+0x85/0x4f0 fs/block_dev.c:1835 20 blkdev_close+0x91/0xc0 fs/block_dev.c:1842
|
D | 22 | 1 FILE: fs/block_dev.c 15 blkdev_put+0x2a/0x4f0 fs/block_dev.c:1793 16 blkdev_close+0x91/0xc0 fs/block_dev.c:1842
|
/external/u-boot/common/ |
D | usb_storage.c | 121 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, 123 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr, 1129 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_read() 1141 struct blk_desc *block_dev; in usb_stor_read() local 1148 block_dev = dev_get_uclass_platdata(dev); in usb_stor_read() 1150 debug("\nusb_read: udev %d\n", block_dev->devnum); in usb_stor_read() 1152 debug("\nusb_read: udev %d\n", block_dev->devnum); in usb_stor_read() 1153 udev = usb_dev_desc[block_dev->devnum].priv; in usb_stor_read() 1162 srb->lun = block_dev->lun; in usb_stor_read() 1168 PRIxPTR "\n", block_dev->devnum, start, blks, buf_addr); in usb_stor_read() [all …]
|
/external/u-boot/drivers/ata/ |
D | sata.c | 73 static unsigned long sata_bread(struct blk_desc *block_dev, lbaint_t start, in sata_bread() argument 76 return sata_read(block_dev->devnum, start, blkcnt, dst); in sata_bread() 79 static unsigned long sata_bwrite(struct blk_desc *block_dev, lbaint_t start, in sata_bwrite() argument 82 return sata_write(block_dev->devnum, start, blkcnt, buffer); in sata_bwrite()
|
/external/u-boot/disk/ |
D | part_iso.c | 28 unsigned long iso_dread(struct blk_desc *block_dev, lbaint_t start, in iso_dread() argument 33 if (block_dev->blksz == 512) { in iso_dread() 39 ret = blk_dread(block_dev, start, blkcnt, buffer); in iso_dread() 41 if (block_dev->blksz == 512) in iso_dread()
|
/external/ltp/runtest/ |
D | kernel_misc | 4 block_dev block_dev
|
/external/u-boot/board/gdsys/p1022/ |
D | sdhc_boot.c | 46 n = mmc->block_dev.block_read(&mmc->block_dev, 0, 1, tmp_buf); in mmc_get_env_addr()
|
/external/u-boot/board/freescale/common/ |
D | sdhc_boot.c | 31 n = mmc->block_dev.block_read(&mmc->block_dev, 0, 1, tmp_buf); in mmc_get_env_addr()
|
/external/u-boot/drivers/fastboot/ |
D | fb_mmc.c | 57 static lbaint_t fb_mmc_blk_write(struct blk_desc *block_dev, lbaint_t start, in fb_mmc_blk_write() argument 71 blks_written = blk_dwrite(block_dev, blk, cur_blkcnt, in fb_mmc_blk_write() 72 buffer + (i * block_dev->blksz)); in fb_mmc_blk_write() 76 blks_written = blk_derase(block_dev, blk, cur_blkcnt); in fb_mmc_blk_write()
|