/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 | 82 long int blknr; in ext4fs_read_file() local 86 blknr = read_allocated_block(&node->inode, i, &cache); in ext4fs_read_file() 87 if (blknr < 0) { in ext4fs_read_file() 92 blknr = blknr << log2_fs_blocksize; in ext4fs_read_file() 108 if (blknr) { in ext4fs_read_file() 112 if (delayed_next == blknr) { in ext4fs_read_file() 124 previous_block_number = blknr; in ext4fs_read_file() 125 delayed_start = blknr; in ext4fs_read_file() 129 delayed_next = blknr + in ext4fs_read_file() 133 previous_block_number = blknr; in ext4fs_read_file() [all …]
|
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);
|
D | ext4_common.c | 634 long int blknr; in search_dir() local 650 blknr = read_allocated_block(parent_inode, blk_idx, NULL); 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, NULL); 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 | 650 static u32 ata_low_level_rw_lba48(struct ahci_uc_priv *uc_priv, u32 blknr, in ata_low_level_rw_lba48() argument 658 start = blknr; in ata_low_level_rw_lba48() 686 static u32 ata_low_level_rw_lba28(struct ahci_uc_priv *uc_priv, u32 blknr, in ata_low_level_rw_lba28() argument 694 start = blknr; in ata_low_level_rw_lba28() 806 struct blk_desc *desc, ulong blknr, in sata_read_common() argument 812 rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, in sata_read_common() 815 rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, in sata_read_common() 822 struct blk_desc *desc, ulong blknr, in sata_write_common() argument 829 rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, in sata_write_common() 834 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 | 393 static ulong sil_sata_rw_lba28(struct sil_sata *sata, ulong blknr, in sil_sata_rw_lba28() argument 400 start = blknr; in sil_sata_rw_lba28() 422 static ulong sil_sata_rw_lba48(struct sil_sata *sata, ulong blknr, in sil_sata_rw_lba48() argument 429 start = blknr; in sil_sata_rw_lba48() 481 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) argument 485 static ulong sata_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, 495 rc = sil_sata_rw_lba48(sata, blknr, blkcnt, buffer, READ_CMD); 497 rc = sil_sata_rw_lba28(sata, blknr, blkcnt, buffer, READ_CMD); 506 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) argument 510 ulong sata_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, [all …]
|
D | fsl_sata.c | 669 static u32 ata_low_level_rw_lba48(fsl_sata_t *sata, u32 blknr, lbaint_t blkcnt, in ata_low_level_rw_lba48() argument 676 start = blknr; in ata_low_level_rw_lba48() 708 static u32 ata_low_level_rw_lba28(fsl_sata_t *sata, u32 blknr, u32 blkcnt, in ata_low_level_rw_lba28() argument 715 start = blknr; in ata_low_level_rw_lba28() 741 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) argument 745 static ulong sata_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, 754 rc = ata_low_level_rw_lba48(sata, blknr, blkcnt, buffer, 757 rc = ata_low_level_rw_lba28(sata, blknr, blkcnt, buffer, 763 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) argument 767 static ulong sata_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, [all …]
|
D | fsl_ahci.c | 663 static u32 ata_low_level_rw_lba48(fsl_sata_t *sata, u32 blknr, lbaint_t blkcnt, in ata_low_level_rw_lba48() argument 670 start = blknr; in ata_low_level_rw_lba48() 702 static u32 ata_low_level_rw_lba28(fsl_sata_t *sata, u32 blknr, u32 blkcnt, in ata_low_level_rw_lba28() argument 709 start = blknr; in ata_low_level_rw_lba28() 734 static int sata_read(fsl_sata_t *sata, ulong blknr, lbaint_t blkcnt, in sata_read() argument 740 rc = ata_low_level_rw_lba48(sata, blknr, blkcnt, buffer, in sata_read() 743 rc = ata_low_level_rw_lba28(sata, blknr, blkcnt, buffer, in sata_read() 748 static int sata_write(fsl_sata_t *sata, ulong blknr, lbaint_t blkcnt, in sata_write() argument 754 rc = ata_low_level_rw_lba48(sata, blknr, blkcnt, buffer, in sata_write() 759 rc = ata_low_level_rw_lba28(sata, blknr, blkcnt, buffer, in sata_write()
|
D | sata_mv.c | 722 static u32 ata_low_level_rw(struct udevice *dev, int port, lbaint_t blknr, in ata_low_level_rw() argument 730 debug("%s: " LBAFU " " LBAFU "\n", __func__, blknr, blkcnt); in ata_low_level_rw() 732 start = blknr; in ata_low_level_rw() 1001 static ulong sata_mv_read(struct udevice *blk, lbaint_t blknr, in sata_mv_read() argument 1006 return ata_low_level_rw(blk, priv->dev_nr, blknr, blkcnt, in sata_mv_read() 1010 static ulong sata_mv_write(struct udevice *blk, lbaint_t blknr, in sata_mv_write() argument 1015 return ata_low_level_rw(blk, priv->dev_nr, blknr, blkcnt, in sata_mv_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/common/ |
D | usb_storage.c | 115 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr, 117 static unsigned long usb_stor_write(struct udevice *dev, lbaint_t blknr, 120 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, 122 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr, 1124 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr, in usb_stor_read() argument 1127 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_read() 1162 start = blknr; in usb_stor_read() 1205 static unsigned long usb_stor_write(struct udevice *dev, lbaint_t blknr, in usb_stor_write() argument 1208 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_write() 1245 start = blknr; in usb_stor_write()
|
/external/u-boot/drivers/nvme/ |
D | nvme.c | 709 static ulong nvme_blk_rw(struct udevice *udev, lbaint_t blknr, in nvme_blk_rw() argument 721 u64 slba = blknr; in nvme_blk_rw() 769 static ulong nvme_blk_read(struct udevice *udev, lbaint_t blknr, in nvme_blk_read() argument 772 return nvme_blk_rw(udev, blknr, blkcnt, buffer, true); in nvme_blk_read() 775 static ulong nvme_blk_write(struct udevice *udev, lbaint_t blknr, in nvme_blk_write() argument 778 return nvme_blk_rw(udev, blknr, blkcnt, (void *)buffer, false); in nvme_blk_write()
|
/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 160 start = blknr; in scsi_read() 215 static ulong scsi_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_write() argument 230 start = blknr; in scsi_write()
|