/openbmc/u-boot/fs/ext4/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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);
|
H A D | ext4_common.c | 633 long int blknr; in search_dir() local 649 blknr = read_allocated_block(parent_inode, blk_idx); in search_dir() 650 if (blknr <= 0) in search_dir() 654 status = ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, in search_dir() 862 static int unlink_filename(char *filename, unsigned int blknr) in unlink_filename() argument 879 status = ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, in unlink_filename() 911 if (ext4fs_log_journal(block_buffer, blknr)) in unlink_filename() 924 if (ext4fs_put_metadata(block_buffer, blknr)) in unlink_filename() 937 long int blknr = -1; in ext4fs_filename_unlink() local 946 blknr = read_allocated_block(g_parent_inode, blk_idx); in ext4fs_filename_unlink() [all …]
|
/openbmc/u-boot/drivers/block/ |
H A 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 …]
|
/openbmc/u-boot/drivers/ata/ |
H A 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 …]
|
H A 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 …]
|
H A 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
|
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/u-boot/lib/efi_driver/ |
H A 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()
|
/openbmc/u-boot/include/ |
H 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,
|
H 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);
|
/openbmc/linux/fs/exfat/ |
H A D | fatent.c | 273 sector_t blknr, last_blknr, i; in exfat_zeroed_cluster() local 275 blknr = exfat_cluster_to_sector(sbi, clu); in exfat_zeroed_cluster() 276 last_blknr = blknr + sbi->sect_per_clus; in exfat_zeroed_cluster() 281 __func__, (unsigned long long)blknr, in exfat_zeroed_cluster() 287 for (i = blknr; i < last_blknr; i++) { in exfat_zeroed_cluster() 300 EXFAT_BLK_TO_B(blknr, sb), in exfat_zeroed_cluster()
|
/openbmc/linux/fs/fat/ |
H A D | dir.c | 1081 static int fat_zeroed_cluster(struct inode *dir, sector_t blknr, int nr_used, in fat_zeroed_cluster() argument 1085 sector_t last_blknr = blknr + MSDOS_SB(sb)->sec_per_clus; in fat_zeroed_cluster() 1089 blknr += nr_used; in fat_zeroed_cluster() 1091 while (blknr < last_blknr) { in fat_zeroed_cluster() 1092 bhs[n] = sb_getblk(sb, blknr); in fat_zeroed_cluster() 1105 blknr++; in fat_zeroed_cluster() 1139 sector_t blknr; in fat_alloc_new_dir() local 1148 blknr = fat_clus_to_blknr(sbi, cluster); in fat_alloc_new_dir() 1149 bhs[0] = sb_getblk(sb, blknr); in fat_alloc_new_dir() 1185 err = fat_zeroed_cluster(dir, blknr, 1, bhs, MAX_BUF_PER_PAGE); in fat_alloc_new_dir() [all …]
|
H A D | nfs.c | 228 sector_t blknr = fat_clus_to_blknr(sbi, parent_logstart); in fat_rebuild_parent() local 229 struct buffer_head *parent_bh = sb_bread(sb, blknr); in fat_rebuild_parent()
|
H A D | fat.h | 253 loff_t i_pos, sector_t *blknr, int *offset) in fat_get_blknr_offset() argument 255 *blknr = i_pos >> sbi->dir_per_block_bits; in fat_get_blknr_offset()
|
/openbmc/u-boot/drivers/scsi/ |
H A D | scsi.c | 144 static ulong scsi_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_read() argument 147 static ulong scsi_read(struct blk_desc *block_dev, lbaint_t blknr, in scsi_read() 166 start = blknr; in scsi_read() 220 static ulong scsi_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_write() argument 223 static ulong scsi_write(struct blk_desc *block_dev, lbaint_t blknr, in scsi_write() 242 start = blknr; in scsi_write()
|
/openbmc/u-boot/common/ |
H A 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, 1123 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr, in usb_stor_read() argument 1126 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_read() 1161 start = blknr; in usb_stor_read() 1204 static unsigned long usb_stor_write(struct udevice *dev, lbaint_t blknr, in usb_stor_write() argument 1207 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_write() 1244 start = blknr; in usb_stor_write()
|
/openbmc/u-boot/drivers/nvme/ |
H A D | nvme.c | 671 static ulong nvme_blk_rw(struct udevice *udev, lbaint_t blknr, in nvme_blk_rw() argument 683 u64 slba = blknr; in nvme_blk_rw() 732 static ulong nvme_blk_read(struct udevice *udev, lbaint_t blknr, in nvme_blk_read() argument 735 return nvme_blk_rw(udev, blknr, blkcnt, buffer, true); in nvme_blk_read() 738 static ulong nvme_blk_write(struct udevice *udev, lbaint_t blknr, in nvme_blk_write() argument 741 return nvme_blk_rw(udev, blknr, blkcnt, (void *)buffer, false); in nvme_blk_write()
|
/openbmc/linux/fs/erofs/ |
H A D | fscache.c | 220 erofs_blk_t blknr; in erofs_fscache_data_read_slice() local 226 blknr = erofs_blknr(sb, map.m_pa); in erofs_fscache_data_read_slice() 229 src = erofs_read_metabuf(&buf, sb, blknr, EROFS_KMAP); in erofs_fscache_data_read_slice()
|
/openbmc/linux/drivers/edac/ |
H A D | synopsys_edac.c | 284 u32 blknr; member 464 p->ceinfo.blknr = (regval & ECC_CEADDR1_BLKNR_MASK); in zynqmp_get_error_info() 480 p->ueinfo.blknr = (regval & ECC_CEADDR1_BLKNR_MASK); in zynqmp_get_error_info() 513 pinf->bankgrpnr, pinf->blknr, in handle_error() 533 pinf->bankgrpnr, pinf->blknr); in handle_error()
|
/openbmc/linux/fs/f2fs/ |
H A D | data.c | 3759 sector_t start_idx, blknr = 0; in f2fs_bmap_compress() local 3771 blknr = f2fs_data_blkaddr(&dn); in f2fs_bmap_compress() 3772 if (!__is_valid_data_blkaddr(blknr)) in f2fs_bmap_compress() 3773 blknr = 0; in f2fs_bmap_compress() 3777 return blknr; in f2fs_bmap_compress() 3787 sector_t blknr = 0; in f2fs_bmap() local 3801 blknr = f2fs_bmap_compress(inode, block); in f2fs_bmap() 3812 blknr = map.m_pblk; in f2fs_bmap() 3815 trace_f2fs_bmap(inode, block, blknr); in f2fs_bmap() 3816 return blknr; in f2fs_bmap()
|