/u-boot/fs/ext4/ |
A D | ext4_journal.c | 55 journal_ptr[i]->blknr = -1; in ext4fs_init_journal() 58 dirty_block_ptr[i]->blknr = -1; in ext4fs_init_journal() 165 if (journal_ptr[i]->blknr == blknr) in ext4fs_log_journal() 174 journal_ptr[gindex++]->blknr = blknr; in ext4fs_log_journal() 192 assert(dirty_block_ptr[gd_index]->blknr == blknr); in ext4fs_put_metadata() 199 dirty_block_ptr[gd_index++]->blknr = blknr; in ext4fs_put_metadata() 308 if (blocknr == blknr) in check_blknr_for_revoke() 334 long int blknr; in recover_transaction() local 395 long int blknr; in ext4fs_check_journal_state() local 646 long int blknr; in ext4fs_update_journal() local [all …]
|
A D | ext4fs.c | 86 long int blknr; in ext4fs_read_file() local 91 if (blknr < 0) { in ext4fs_read_file() 96 blknr = blknr << log2_fs_blocksize; in ext4fs_read_file() 112 if (blknr) { in ext4fs_read_file() 116 if (delayed_next == blknr) { in ext4fs_read_file() 128 previous_block_number = blknr; in ext4fs_read_file() 129 delayed_start = blknr; in ext4fs_read_file() 133 delayed_next = blknr + in ext4fs_read_file() 137 previous_block_number = blknr; in ext4fs_read_file() 138 delayed_start = blknr; in ext4fs_read_file() [all …]
|
A D | ext4_write.c | 143 uint32_t blknr; in delete_single_indirect_block() local 192 uint32_t blknr; in delete_double_indirect_block() local 289 uint32_t blknr; in delete_triple_indirect_block() local 444 long int blknr; in ext4fs_delete_file() local 496 if (blknr == 0) in ext4fs_delete_file() 498 if (blknr < 0) in ext4fs_delete_file() 701 uint32_t blknr; in ext4fs_deinit() local 789 long int blknr; in ext4fs_write_file() local 793 if (blknr <= 0) in ext4fs_write_file() 796 blknr = blknr << log2_fs_blocksize; in ext4fs_write_file() [all …]
|
A D | ext4_journal.h | 44 int blknr; member 49 int blknr; member 120 int ext4fs_log_journal(char *journal_buffer, uint32_t blknr); 121 int ext4fs_put_metadata(char *metadata_buffer, uint32_t blknr);
|
A D | ext4_common.c | 637 long int blknr; in search_dir() local 654 if (blknr <= 0) in search_dir() 915 if (ext4fs_log_journal(block_buffer, blknr)) in unlink_filename() 941 long int blknr = -1; in ext4fs_filename_unlink() local 951 if (blknr <= 0) in ext4fs_filename_unlink() 953 inodeno = unlink_filename(filename, blknr); in ext4fs_filename_unlink() 1648 long int blknr; in read_allocated_block() local 1758 blknr = le32_to_cpu(ext4fs_indir1_block in read_allocated_block() 1990 blknr = le32_to_cpu(ext4fs_indir3_block in read_allocated_block() 1993 debug("read_allocated_block %ld\n", blknr); in read_allocated_block() [all …]
|
/u-boot/include/ |
A D | ide.h | 25 ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, 27 ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, 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,
|
A D | sata.h | 9 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer); 10 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer);
|
/u-boot/lib/efi_driver/ |
A D | efi_block_device.c | 59 static ulong efi_bl_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in efi_bl_read() argument 67 __func__, dev->name, blknr, blkcnt); in efi_bl_read() 69 io, io->media->media_id, (u64)blknr, in efi_bl_read() 88 static ulong efi_bl_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in efi_bl_write() argument 96 __func__, dev->name, blknr, blkcnt); in efi_bl_write() 98 io, io->media->media_id, (u64)blknr, in efi_bl_write()
|
/u-boot/drivers/block/ |
A D | ide.c | 434 ccb[4] = (unsigned char) (blknr >> 8) & 0xFF; in atapi_read() 451 blknr += cnt; in atapi_read() 953 if (blknr & 0x0000fffff0000000ULL) { in ide_read() 959 device, blknr, blkcnt, (ulong) buffer); in ide_read() 1028 ATA_DEVICE(device) | ((blknr >> 24) & 0xF)); in ide_read() 1046 ": status %#02x\n", device, blknr, c); in ide_read() 1054 ++blknr; in ide_read() 1079 if (blknr & 0x0000fffff0000000ULL) { in ide_write() 1125 ATA_DEVICE(device) | ((blknr >> 24) & 0xF)); in ide_write() 1137 ": status %#02x\n", device, blknr, c); in ide_write() [all …]
|
/u-boot/drivers/ata/ |
A D | sata_sil3114.c | 446 u64 blknr = (u64) block; in do_one_read() local 518 u64 blknr = (u64) block; in sata_read() local 522 if (blknr > 0xfffffff) { in sata_read() 547 blknr += sread; in sata_read() 559 u64 blknr = (u64) block; in sata_write() local 563 if (blknr > 0xfffffff) { in sata_write() 585 writeb ((blknr >> 24) & 0xFF, in sata_write() 587 writeb ((blknr >> 32) & 0xFF, in sata_write() 589 writeb ((blknr >> 40) & 0xFF, in sata_write() 614 device, (ulong) blknr, status); in sata_write() [all …]
|
A D | sata_sandbox.c | 25 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) in sata_read() argument 30 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) in sata_write() argument
|
A D | dwc_ahsata.c | 662 start = blknr; in ata_low_level_rw_lba48() 698 start = blknr; in ata_low_level_rw_lba28() 810 struct blk_desc *desc, ulong blknr, in sata_read_common() argument 816 rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, in sata_read_common() 819 rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, in sata_read_common() 826 struct blk_desc *desc, ulong blknr, in sata_write_common() argument 833 rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, in sata_write_common() 838 rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, in sata_write_common() 1054 static ulong dwc_ahsata_read(struct udevice *blk, lbaint_t blknr, in dwc_ahsata_read() argument 1062 return sata_read_common(uc_priv, desc, blknr, blkcnt, buffer); in dwc_ahsata_read() [all …]
|
A D | sata_sil.c | 400 static ulong sil_sata_rw_lba28(struct sil_sata *sata, ulong blknr, in sil_sata_rw_lba28() argument 407 start = blknr; in sil_sata_rw_lba28() 429 static ulong sil_sata_rw_lba48(struct sil_sata *sata, ulong blknr, in sil_sata_rw_lba48() argument 436 start = blknr; in sil_sata_rw_lba48() 488 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) argument 502 rc = sil_sata_rw_lba48(sata, blknr, blkcnt, buffer, READ_CMD); 504 rc = sil_sata_rw_lba28(sata, blknr, blkcnt, buffer, READ_CMD); 513 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) argument 517 ulong sata_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, 527 rc = sil_sata_rw_lba48(sata, blknr, blkcnt, buffer, WRITE_CMD); [all …]
|
A D | fsl_sata.c | 677 start = blknr; in ata_low_level_rw_lba48() 709 static u32 ata_low_level_rw_lba28(fsl_sata_t *sata, u32 blknr, u32 blkcnt, in ata_low_level_rw_lba28() argument 716 start = blknr; in ata_low_level_rw_lba28() 742 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) argument 746 static ulong sata_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, 755 rc = ata_low_level_rw_lba48(sata, blknr, blkcnt, buffer, 758 rc = ata_low_level_rw_lba28(sata, blknr, blkcnt, buffer, 764 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) argument 768 static ulong sata_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, 777 rc = ata_low_level_rw_lba48(sata, blknr, blkcnt, buffer, [all …]
|
A D | sata_mv.c | 728 static u32 ata_low_level_rw(struct udevice *dev, int port, lbaint_t blknr, in ata_low_level_rw() argument 736 debug("%s: " LBAFU " " LBAFU "\n", __func__, blknr, blkcnt); in ata_low_level_rw() 738 start = blknr; in ata_low_level_rw() 1007 static ulong sata_mv_read(struct udevice *blk, lbaint_t blknr, in sata_mv_read() argument 1012 return ata_low_level_rw(blk, priv->dev_nr, blknr, blkcnt, in sata_mv_read() 1016 static ulong sata_mv_write(struct udevice *blk, lbaint_t blknr, in sata_mv_write() argument 1021 return ata_low_level_rw(blk, priv->dev_nr, blknr, blkcnt, in sata_mv_write()
|
/u-boot/drivers/xen/ |
A D | pvblock.c | 600 static ulong pvblock_iop(struct udevice *udev, lbaint_t blknr, in pvblock_iop() argument 612 if ((blknr + blkcnt) > desc->lba) { in pvblock_iop() 614 blknr + blkcnt, desc->lba); in pvblock_iop() 621 aiocb.aio_offset = blknr * desc->blksz; in pvblock_iop() 648 ulong pvblock_blk_read(struct udevice *udev, lbaint_t blknr, lbaint_t blkcnt, in pvblock_blk_read() argument 651 return pvblock_iop(udev, blknr, blkcnt, buffer, 0); in pvblock_blk_read() 654 ulong pvblock_blk_write(struct udevice *udev, lbaint_t blknr, lbaint_t blkcnt, in pvblock_blk_write() argument 657 return pvblock_iop(udev, blknr, blkcnt, (void *)buffer, 1); in pvblock_blk_write()
|
/u-boot/common/ |
A D | usb_storage.c | 119 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr, 121 static unsigned long usb_stor_write(struct udevice *dev, lbaint_t blknr, 124 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, 126 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr, 1128 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr, in usb_stor_read() argument 1131 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_read() 1167 start = blknr; in usb_stor_read() 1211 static unsigned long usb_stor_write(struct udevice *dev, lbaint_t blknr, in usb_stor_write() argument 1214 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_write() 1252 start = blknr; in usb_stor_write()
|
/u-boot/drivers/nvme/ |
A D | nvme.c | 739 static ulong nvme_blk_rw(struct udevice *udev, lbaint_t blknr, in nvme_blk_rw() argument 751 u64 slba = blknr; in nvme_blk_rw() 799 static ulong nvme_blk_read(struct udevice *udev, lbaint_t blknr, in nvme_blk_read() argument 802 return nvme_blk_rw(udev, blknr, blkcnt, buffer, true); in nvme_blk_read() 805 static ulong nvme_blk_write(struct udevice *udev, lbaint_t blknr, in nvme_blk_write() argument 808 return nvme_blk_rw(udev, blknr, blkcnt, (void *)buffer, false); in nvme_blk_write()
|
/u-boot/drivers/scsi/ |
A D | scsi.c | 149 static ulong scsi_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_read() argument 164 start = blknr; in scsi_read() 219 static ulong scsi_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_write() argument 234 start = blknr; in scsi_write()
|