/external/u-boot/fs/ext4/ |
D | ext4_journal.c | 53 journal_ptr[i]->blknr = -1; in ext4fs_init_journal() 56 dirty_block_ptr[i]->blknr = -1; in ext4fs_init_journal() 69 journal_ptr[gindex++]->blknr = 0; in ext4fs_init_journal() 76 journal_ptr[gindex++]->blknr = 1; in ext4fs_init_journal() 96 if (dirty_block_ptr[i]->blknr == -1) in ext4fs_dump_metadata() 98 put_ext4((uint64_t) ((uint64_t)dirty_block_ptr[i]->blknr * in ext4fs_dump_metadata() 108 if (dirty_block_ptr[i]->blknr == -1) in ext4fs_free_journal() 115 if (journal_ptr[i]->blknr == -1) in ext4fs_free_journal() 143 journal_ptr[gindex++]->blknr = var++; in ext4fs_log_gdt() 154 int ext4fs_log_journal(char *journal_buffer, uint32_t blknr) in ext4fs_log_journal() argument [all …]
|
D | ext4_write.c | 139 uint32_t blknr; in delete_single_indirect_block() local 153 blknr = le32_to_cpu(inode->b.blocks.indir_block); in delete_single_indirect_block() 154 debug("SIPB releasing %u\n", blknr); in delete_single_indirect_block() 155 bg_idx = blknr / blk_per_grp; in delete_single_indirect_block() 157 remainder = blknr % blk_per_grp; in delete_single_indirect_block() 161 ext4fs_reset_block_bmap(blknr, fs->blk_bmaps[bg_idx], bg_idx); in delete_single_indirect_block() 188 uint32_t blknr; in delete_double_indirect_block() local 209 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block() 210 status = ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, in delete_double_indirect_block() 249 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block() [all …]
|
D | ext4fs.c | 76 long int blknr; in ext4fs_read_file() local 80 blknr = read_allocated_block(&(node->inode), i); in ext4fs_read_file() 81 if (blknr < 0) in ext4fs_read_file() 84 blknr = blknr << log2_fs_blocksize; in ext4fs_read_file() 100 if (blknr) { in ext4fs_read_file() 104 if (delayed_next == blknr) { in ext4fs_read_file() 114 previous_block_number = blknr; in ext4fs_read_file() 115 delayed_start = blknr; in ext4fs_read_file() 119 delayed_next = blknr + in ext4fs_read_file() 123 previous_block_number = blknr; in ext4fs_read_file() [all …]
|
D | ext4_journal.h | 42 int blknr; member 47 int blknr; member 118 int ext4fs_log_journal(char *journal_buffer, uint32_t blknr); 119 int ext4fs_put_metadata(char *metadata_buffer, uint32_t blknr);
|
D | ext4_common.c | 634 long int blknr; in search_dir() local 650 blknr = read_allocated_block(parent_inode, blk_idx); in search_dir() 651 if (blknr <= 0) in search_dir() 655 status = ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, in search_dir() 863 static int unlink_filename(char *filename, unsigned int blknr) in unlink_filename() argument 880 status = ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, in unlink_filename() 912 if (ext4fs_log_journal(block_buffer, blknr)) in unlink_filename() 925 if (ext4fs_put_metadata(block_buffer, blknr)) in unlink_filename() 938 long int blknr = -1; in ext4fs_filename_unlink() local 947 blknr = read_allocated_block(g_parent_inode, blk_idx); in ext4fs_filename_unlink() [all …]
|
/external/u-boot/drivers/block/ |
D | ide.c | 409 ulong atapi_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, in atapi_read() argument 418 " buffer at %lX\n", device, blknr, blkcnt, (ulong) buffer); in atapi_read() 428 ccb[2] = (unsigned char) (blknr >> 24) & 0xFF; /* MSB Block */ in atapi_read() 429 ccb[3] = (unsigned char) (blknr >> 16) & 0xFF; /* */ in atapi_read() 430 ccb[4] = (unsigned char) (blknr >> 8) & 0xFF; in atapi_read() 431 ccb[5] = (unsigned char) blknr & 0xFF; /* LSB Block */ in atapi_read() 447 blknr += cnt; in atapi_read() 931 ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in ide_read() argument 934 ulong ide_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, in ide_read() 949 if (blknr & 0x0000fffff0000000ULL) { in ide_read() [all …]
|
/external/u-boot/drivers/ata/ |
D | sata_sil3114.c | 442 u64 blknr = (u64) block; in do_one_read() local 454 writeb ((blknr >> 24) & 0xFF, port[device].ioaddr.lbal_addr); in do_one_read() 455 writeb ((blknr >> 32) & 0xFF, port[device].ioaddr.lbam_addr); in do_one_read() 456 writeb ((blknr >> 40) & 0xFF, port[device].ioaddr.lbah_addr); in do_one_read() 460 writeb (((blknr) >> 0) & 0xFF, port[device].ioaddr.lbal_addr); in do_one_read() 461 writeb ((blknr >> 8) & 0xFF, port[device].ioaddr.lbam_addr); in do_one_read() 462 writeb ((blknr >> 16) & 0xFF, port[device].ioaddr.lbah_addr); in do_one_read() 471 writeb (ATA_LBA | ((blknr >> 24) & 0xF), in do_one_read() 514 u64 blknr = (u64) block; in sata_read() local 518 if (blknr > 0xfffffff) { in sata_read() [all …]
|
D | dwc_ahsata.c | 654 static u32 ata_low_level_rw_lba48(struct ahci_uc_priv *uc_priv, u32 blknr, in ata_low_level_rw_lba48() argument 662 start = blknr; in ata_low_level_rw_lba48() 690 static u32 ata_low_level_rw_lba28(struct ahci_uc_priv *uc_priv, u32 blknr, in ata_low_level_rw_lba28() argument 698 start = blknr; in ata_low_level_rw_lba28() 812 struct blk_desc *desc, ulong blknr, in sata_read_common() argument 818 rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, in sata_read_common() 821 rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, in sata_read_common() 828 struct blk_desc *desc, ulong blknr, in sata_write_common() argument 835 rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, in sata_write_common() 840 rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, in sata_write_common() [all …]
|
D | sata_sandbox.c | 24 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) in sata_read() argument 29 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) in sata_write() argument
|
D | sata_sil.c | 359 static ulong sil_sata_rw_lba28(int dev, ulong blknr, lbaint_t blkcnt, in sil_sata_rw_lba28() argument 365 start = blknr; in sil_sata_rw_lba28() 387 static ulong sil_sata_rw_lba48(int dev, ulong blknr, lbaint_t blkcnt, in sil_sata_rw_lba48() argument 393 start = blknr; in sil_sata_rw_lba48() 477 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) in sata_read() argument 483 rc = sil_sata_rw_lba48(dev, blknr, blkcnt, buffer, READ_CMD); in sata_read() 485 rc = sil_sata_rw_lba28(dev, blknr, blkcnt, buffer, READ_CMD); in sata_read() 493 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) in sata_write() argument 499 rc = sil_sata_rw_lba48(dev, blknr, blkcnt, buffer, WRITE_CMD); in sata_write() 503 rc = sil_sata_rw_lba28(dev, blknr, blkcnt, buffer, WRITE_CMD); in sata_write()
|
D | fsl_sata.c | 693 static u32 ata_low_level_rw_lba48(int dev, u32 blknr, lbaint_t blkcnt, in ata_low_level_rw_lba48() argument 700 start = blknr; in ata_low_level_rw_lba48() 728 static u32 ata_low_level_rw_lba28(int dev, u32 blknr, u32 blkcnt, in ata_low_level_rw_lba28() argument 735 start = blknr; in ata_low_level_rw_lba28() 760 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) in sata_read() argument 766 rc = ata_low_level_rw_lba48(dev, blknr, blkcnt, buffer, READ_CMD); in sata_read() 768 rc = ata_low_level_rw_lba28(dev, blknr, blkcnt, buffer, READ_CMD); in sata_read() 772 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) in sata_write() argument 778 rc = ata_low_level_rw_lba48(dev, blknr, blkcnt, buffer, WRITE_CMD); in sata_write() 782 rc = ata_low_level_rw_lba28(dev, blknr, blkcnt, buffer, WRITE_CMD); in sata_write()
|
D | sata_mv.c | 714 static u32 ata_low_level_rw(int dev, lbaint_t blknr, lbaint_t blkcnt, in ata_low_level_rw() argument 721 debug("%s: %ld %ld\n", __func__, blknr, blkcnt); in ata_low_level_rw() 723 start = blknr; in ata_low_level_rw() 884 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) in sata_read() argument 886 return ata_low_level_rw(dev, blknr, blkcnt, buffer, READ_CMD); in sata_read() 889 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) in sata_write() argument 891 return ata_low_level_rw(dev, blknr, blkcnt, (void *)buffer, WRITE_CMD); in sata_write()
|
/external/u-boot/lib/efi_driver/ |
D | efi_block_device.c | 55 static ulong efi_bl_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in efi_bl_read() argument 63 __func__, dev->name, blknr, blkcnt); in efi_bl_read() 65 io, io->media->media_id, (u64)blknr, in efi_bl_read() 84 static ulong efi_bl_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in efi_bl_write() argument 92 __func__, dev->name, blknr, blkcnt); in efi_bl_write() 94 io, io->media->media_id, (u64)blknr, in efi_bl_write()
|
/external/u-boot/include/ |
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,
|
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);
|
/external/u-boot/drivers/scsi/ |
D | scsi.c | 145 static ulong scsi_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_read() argument 148 static ulong scsi_read(struct blk_desc *block_dev, lbaint_t blknr, in scsi_read() 167 start = blknr; in scsi_read() 221 static ulong scsi_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_write() argument 224 static ulong scsi_write(struct blk_desc *block_dev, lbaint_t blknr, in scsi_write() 243 start = blknr; in scsi_write()
|
/external/u-boot/common/ |
D | usb_storage.c | 116 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr, 118 static unsigned long usb_stor_write(struct udevice *dev, lbaint_t blknr, 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, 1126 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr, in usb_stor_read() argument 1129 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_read() 1164 start = blknr; in usb_stor_read() 1208 static unsigned long usb_stor_write(struct udevice *dev, lbaint_t blknr, in usb_stor_write() argument 1211 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_write() 1248 start = blknr; in usb_stor_write()
|
/external/u-boot/drivers/nvme/ |
D | nvme.c | 672 static ulong nvme_blk_rw(struct udevice *udev, lbaint_t blknr, in nvme_blk_rw() argument 684 u64 slba = blknr; in nvme_blk_rw() 733 static ulong nvme_blk_read(struct udevice *udev, lbaint_t blknr, in nvme_blk_read() argument 736 return nvme_blk_rw(udev, blknr, blkcnt, buffer, true); in nvme_blk_read() 739 static ulong nvme_blk_write(struct udevice *udev, lbaint_t blknr, in nvme_blk_write() argument 742 return nvme_blk_rw(udev, blknr, blkcnt, (void *)buffer, false); in nvme_blk_write()
|