/linux/drivers/mtd/ |
H A D | nftlmount.c | 369 static void check_sectors_in_chain(struct NFTLrecord *nftl, unsigned int first_block) in check_sectors_in_chain() argument 378 block = first_block; in check_sectors_in_chain() 423 static int calc_chain_length(struct NFTLrecord *nftl, unsigned int first_block) in calc_chain_length() argument 425 unsigned int length = 0, block = first_block; in calc_chain_length() 455 static void format_chain(struct NFTLrecord *nftl, unsigned int first_block) in format_chain() argument 457 unsigned int block = first_block, block1; in format_chain() 459 printk("Formatting chain at block %d\n", first_block); in format_chain() 566 unsigned int block, first_block, is_first_block; in NFTL_mount() local 586 for (first_block = 0; first_block < s->nb_blocks; first_block++) { in NFTL_mount() 588 if (s->ReplUnitTable[first_block] == BLOCK_NOTEXPLORED) { in NFTL_mount() [all …]
|
H A D | inftlmount.c | 427 static void format_chain(struct INFTLrecord *inftl, unsigned int first_block) in format_chain() argument 429 unsigned int block = first_block, block1; in format_chain() 432 first_block); in format_chain() 529 unsigned int block, first_block, prev_block, last_block; in INFTL_mount() local 565 for (first_block = s->firstEUN; first_block <= s->lastEUN; first_block++) { in INFTL_mount() 566 if (s->PUtable[first_block] != BLOCK_NOTEXPLORED) in INFTL_mount() 572 block = first_block; in INFTL_mount() 615 "mark 0x%x?\n", block, first_block, in INFTL_mount() 640 block, first_block); in INFTL_mount() 675 first_block); in INFTL_mount() [all …]
|
/linux/fs/ext4/ |
H A D | readpage.c | 224 sector_t first_block; in ext4_mpage_readpages() local 266 first_block = map.m_pblk + map_offset; in ext4_mpage_readpages() 310 first_block = map.m_pblk; in ext4_mpage_readpages() 311 else if (first_block + page_block != map.m_pblk) in ext4_mpage_readpages() 342 if (bio && (last_block_in_bio != first_block - 1 || in ext4_mpage_readpages() 358 bio->bi_iter.bi_sector = first_block << (blkbits - 9); in ext4_mpage_readpages() 374 last_block_in_bio = first_block + blocks_per_page - 1; in ext4_mpage_readpages()
|
H A D | migrate.c | 17 ext4_lblk_t first_block, last_block, curr_block; member 32 newext.ee_block = cpu_to_le32(lb->first_block); in finish_range() 33 newext.ee_len = cpu_to_le16(lb->last_block - lb->first_block + 1); in finish_range() 37 path = ext4_find_extent(inode, lb->first_block, NULL, 0); in finish_range() 50 lb->last_block - lb->first_block + 1, path); in finish_range() 85 lb->first_block = lb->last_block = lb->curr_block; in update_extent_range()
|
H A D | indirect.c | 543 ext4_fsblk_t first_block = 0; in ext4_ind_map_blocks() local 558 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks() 566 if (blk == first_block + count) in ext4_ind_map_blocks()
|
H A D | super.c | 3268 ext4_fsblk_t first_block = le32_to_cpu(sbi->s_es->s_first_data_block); in ext4_check_descriptors() local 3288 last_block = first_block + in ext4_check_descriptors() 3311 if (block_bitmap < first_block || block_bitmap > last_block) { in ext4_check_descriptors() 3333 if (inode_bitmap < first_block || inode_bitmap > last_block) { in ext4_check_descriptors() 3355 if (inode_table < first_block || in ext4_check_descriptors() 3375 first_block += EXT4_BLOCKS_PER_GROUP(sb); in ext4_check_descriptors() 4117 ext4_fsblk_t first_block, last_block, b; in count_overhead() local 4127 first_block = le32_to_cpu(sbi->s_es->s_first_data_block) + in count_overhead() 4129 last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1; in count_overhead() 4133 if (b >= first_block && b <= last_block) { in count_overhead() [all …]
|
H A D | inode.c | 3949 ext4_lblk_t first_block, stop_block; in ext4_punch_hole() local 4051 first_block = (offset + sb->s_blocksize - 1) >> in ext4_punch_hole() 4056 if (stop_block > first_block) { in ext4_punch_hole() 4057 ext4_lblk_t hole_len = stop_block - first_block; in ext4_punch_hole() 4062 ext4_es_remove_extent(inode, first_block, hole_len); in ext4_punch_hole() 4065 ret = ext4_ext_remove_space(inode, first_block, in ext4_punch_hole() 4068 ret = ext4_ind_remove_space(handle, inode, first_block, in ext4_punch_hole() 4071 ext4_es_insert_extent(inode, first_block, hole_len, ~0, in ext4_punch_hole() 4075 ext4_fc_track_range(handle, inode, first_block, stop_block); in ext4_punch_hole()
|
H A D | resize.c | 1174 ext4_fsblk_t first_block = ext4_group_first_block_no(sb, group); in update_backups() local 1184 backup_block = first_block + has_super; in update_backups() 1204 if (has_super && (backup_block == first_block)) in update_backups()
|
H A D | mballoc.c | 1286 int first_block; in ext4_mb_init_cache() local 1357 first_block = folio->index * blocks_per_page; in ext4_mb_init_cache() 1359 group = (first_block + i) >> 1; in ext4_mb_init_cache() 1390 if ((first_block + i) & 1) { in ext4_mb_init_cache()
|
/linux/crypto/ |
H A D | hctr2.c | 60 u8 first_block[BLOCKCIPHER_BLOCK_SIZE]; member 247 crypto_xor(rctx->first_block, digest, BLOCKCIPHER_BLOCK_SIZE); in hctr2_finish() 250 scatterwalk_map_and_copy(rctx->first_block, req->dst, in hctr2_finish() 279 scatterwalk_map_and_copy(rctx->first_block, req->src, in hctr2_crypt() 296 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt() 301 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->first_block, in hctr2_crypt() 304 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->first_block, in hctr2_crypt() 308 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
|
/linux/block/partitions/ |
H A D | sgi.c | 29 __be32 first_block; /* First logical block */ member 76 start = be32_to_cpu(p->first_block); in sgi_partition()
|
/linux/include/linux/platform_data/ |
H A D | sh_mmcif.h | 146 unsigned long first_block, in sh_mmcif_boot_do_read() argument 168 ret = sh_mmcif_boot_do_read_single(base, first_block + k, in sh_mmcif_boot_do_read()
|
/linux/include/uapi/linux/ |
H A D | efs_fs_sb.h | 53 __u32 first_block; /* first data block in filesystem */ member
|
/linux/fs/jbd2/ |
H A D | commit.c | 372 unsigned long first_block; in jbd2_journal_commit_transaction() local 756 jbd2_journal_get_log_tail(journal, &first_tid, &first_block); in jbd2_journal_commit_transaction() 760 long freed = first_block - journal->j_tail; in jbd2_journal_commit_transaction() 762 if (first_block < journal->j_tail) in jbd2_journal_commit_transaction() 902 jbd2_update_log_tail(journal, first_tid, first_block); in jbd2_journal_commit_transaction()
|
/linux/drivers/char/ |
H A D | random.c | 319 u8 first_block[CHACHA_BLOCK_SIZE]; in crng_fast_key_erasure() local 326 chacha20_block(chacha_state, first_block); in crng_fast_key_erasure() 328 memcpy(key, first_block, CHACHA_KEY_SIZE); in crng_fast_key_erasure() 329 memcpy(random_data, first_block + CHACHA_KEY_SIZE, random_data_len); in crng_fast_key_erasure() 330 memzero_explicit(first_block, sizeof(first_block)); in crng_fast_key_erasure()
|
/linux/drivers/md/dm-vdo/ |
H A D | slab-depot.h | 185 struct reference_block *first_block; member 457 physical_block_number_t first_block; member
|
H A D | encodings.h | 434 physical_block_number_t first_block; member 1065 static inline slab_count_t vdo_compute_slab_count(physical_block_number_t first_block, in vdo_compute_slab_count() argument 1069 return (slab_count_t) ((last_block - first_block) >> slab_size_shift); in vdo_compute_slab_count()
|
/linux/fs/ext2/ |
H A D | inode.c | 639 ext2_fsblk_t first_block = 0; in ext2_get_blocks() local 651 first_block = le32_to_cpu(chain[depth - 1].key); in ext2_get_blocks() 670 if (blk == first_block + count) in ext2_get_blocks() 810 unsigned long first_block = offset >> blkbits; in ext2_iomap_begin() local 824 (first_block << blkbits) < i_size_read(inode)) in ext2_iomap_begin() 835 ret = ext2_get_blocks(inode, first_block, max_blocks, in ext2_iomap_begin() 841 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin()
|
H A D | super.c | 690 ext2_fsblk_t first_block = ext2_group_first_block_no(sb, i); in ext2_check_descriptors() local 693 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext2_check_descriptors() 702 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext2_check_descriptors() 711 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext2_check_descriptors()
|
/linux/drivers/scsi/smartpqi/ |
H A D | smartpqi_init.c | 2630 struct raid_map *raid_map, u64 first_block) in pqi_set_encryption_info() argument 2641 first_block = (first_block * volume_blk_size) / 512; in pqi_set_encryption_info() 2645 encryption_info->encrypt_tweak_lower = lower_32_bits(first_block); in pqi_set_encryption_info() 2646 encryption_info->encrypt_tweak_upper = upper_32_bits(first_block); in pqi_set_encryption_info() 2700 rmd->first_block = (u64)(((scmd->cmnd[1] & 0x1f) << 16) | in pqi_get_aio_lba_and_block_count() 2710 rmd->first_block = (u64)get_unaligned_be32(&scmd->cmnd[2]); in pqi_get_aio_lba_and_block_count() 2717 rmd->first_block = (u64)get_unaligned_be32(&scmd->cmnd[2]); in pqi_get_aio_lba_and_block_count() 2724 rmd->first_block = get_unaligned_be64(&scmd->cmnd[2]); in pqi_get_aio_lba_and_block_count() 2744 rmd->last_block = rmd->first_block + rmd->block_cnt - 1; in pci_get_aio_common_raid_map_values() 2749 rmd->last_block < rmd->first_block) in pci_get_aio_common_raid_map_values() [all …]
|
H A D | smartpqi.h | 1043 u64 first_block; member
|
/linux/drivers/scsi/ |
H A D | hpsa.c | 4857 u64 first_block; in set_encrypt_ioaccel2() local 4876 first_block = (((cmd->cmnd[1] & 0x1F) << 16) | in set_encrypt_ioaccel2() 4885 first_block = get_unaligned_be32(&cmd->cmnd[2]); in set_encrypt_ioaccel2() 4889 first_block = get_unaligned_be64(&cmd->cmnd[2]); in set_encrypt_ioaccel2() 4900 first_block = first_block * in set_encrypt_ioaccel2() 4903 cp->tweak_lower = cpu_to_le32(first_block); in set_encrypt_ioaccel2() 4904 cp->tweak_upper = cpu_to_le32(first_block >> 32); in set_encrypt_ioaccel2() 5113 u64 first_block, last_block; in hpsa_scsi_ioaccel_raid_map() local 5151 first_block = (((cmd->cmnd[1] & 0x1F) << 16) | in hpsa_scsi_ioaccel_raid_map() 5162 first_block = in hpsa_scsi_ioaccel_raid_map() [all …]
|
/linux/drivers/bluetooth/ |
H A D | btmtk.c | 141 u8 flag, first_block, retry; in btmtk_setup_firmware_79xx() local 161 first_block = 1; in btmtk_setup_firmware_79xx() 214 if (first_block == 1) { in btmtk_setup_firmware_79xx() 216 first_block = 0; in btmtk_setup_firmware_79xx()
|
/linux/fs/efs/ |
H A D | inode.c | 85 block = sb->fs_start + sb->first_block + in efs_iget()
|
/linux/fs/udf/ |
H A D | inode.c | 649 sector_t first_block = newsize >> sb->s_blocksize_bits, offset; in udf_extend_file() local 671 err = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset, &etype); in udf_extend_file()
|