Home
last modified time | relevance | path

Searched refs:first_block (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/mtd/
A Dnftlmount.c378 block = first_block; in check_sectors_in_chain()
425 unsigned int length = 0, block = first_block; in calc_chain_length()
457 unsigned int block = first_block, block1; in format_chain()
586 for (first_block = 0; first_block < s->nb_blocks; first_block++) { in NFTL_mount()
589 block = first_block; in NFTL_mount()
637 block, first_block); in NFTL_mount()
721 format_chain(s, first_block); in NFTL_mount()
727 fold_mark = get_fold_mark(s, first_block); in NFTL_mount()
731 format_chain(s, first_block); in NFTL_mount()
734 check_sectors_in_chain(s, first_block); in NFTL_mount()
[all …]
A Dinftlmount.c429 unsigned int block = first_block, block1; in format_chain()
432 first_block); in format_chain()
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()
682 format_chain(s, first_block); in INFTL_mount()
692 s->VUtable[first_logical_block] = first_block; in INFTL_mount()
[all …]
/linux/fs/
A Dmpage.c162 sector_t first_block; in do_mpage_readpage() local
201 first_block = map_bh->b_blocknr + map_offset; in do_mpage_readpage()
255 first_block = map_bh->b_blocknr; in do_mpage_readpage()
256 else if (first_block + page_block != map_bh->b_blocknr) in do_mpage_readpage()
462 sector_t first_block; in __mpage_writepage() local
500 if (bh->b_blocknr != first_block + page_block) in __mpage_writepage()
503 first_block = bh->b_blocknr; in __mpage_writepage()
554 if (map_bh.b_blocknr != first_block + page_block) in __mpage_writepage()
557 first_block = map_bh.b_blocknr; in __mpage_writepage()
591 if (bio && mpd->last_block_in_bio != first_block - 1) in __mpage_writepage()
[all …]
/linux/fs/ext4/
A Dreadpage.c224 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()
A Dmigrate.c17 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()
/linux/mm/
A Dpage_io.c107 sector_t first_block; in generic_swapfile_activate() local
111 first_block = probe_block; in generic_swapfile_activate()
112 ret = bmap(inode, &first_block); in generic_swapfile_activate()
113 if (ret || !first_block) in generic_swapfile_activate()
119 if (first_block & (blocks_per_page - 1)) { in generic_swapfile_activate()
133 if (block != first_block + block_in_page) { in generic_swapfile_activate()
140 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
142 if (first_block < lowest_block) in generic_swapfile_activate()
143 lowest_block = first_block; in generic_swapfile_activate()
144 if (first_block > highest_block) in generic_swapfile_activate()
[all …]
/linux/fs/udf/
A Dballoc.c176 uint16_t partition, uint32_t first_block, in udf_bitmap_prealloc_blocks() argument
188 if (first_block >= part_len) in udf_bitmap_prealloc_blocks()
191 if (first_block + block_count > part_len) in udf_bitmap_prealloc_blocks()
192 block_count = part_len - first_block; in udf_bitmap_prealloc_blocks()
494 uint32_t first_block, uint32_t block_count) in udf_table_prealloc_blocks() argument
522 while (first_block != eloc.logicalBlockNum) { in udf_table_prealloc_blocks()
529 eloc.logicalBlockNum, elen, first_block); in udf_table_prealloc_blocks()
532 if (first_block == eloc.logicalBlockNum) { in udf_table_prealloc_blocks()
689 uint16_t partition, uint32_t first_block, in udf_prealloc_blocks() argument
698 partition, first_block, in udf_prealloc_blocks()
[all …]
A Dtruncate.c32 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() local
47 if (last_block > first_block) { in extent_trunc()
53 first_block, in extent_trunc()
54 last_block - first_block); in extent_trunc()
204 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; in udf_truncate_extents() local
217 ret = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset, &etype); in udf_truncate_extents()
/linux/crypto/
A Dhctr2.c60 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/
A Dsgi.c29 __be32 first_block; /* First logical block */ member
76 start = be32_to_cpu(p->first_block); in sgi_partition()
/linux/include/linux/platform_data/
A Dsh_mmcif.h146 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/
A Defs_fs_sb.h53 __u32 first_block; /* first data block in filesystem */ member
/linux/fs/nilfs2/
A Dpage.c33 unsigned long first_block; in __nilfs_get_folio_block() local
39 first_block = (unsigned long)index << (PAGE_SHIFT - blkbits); in __nilfs_get_folio_block()
40 bh = get_nth_bh(bh, block - first_block); in __nilfs_get_folio_block()
A Dmdt.c372 unsigned long first_block = index << in nilfs_mdt_forget_block() local
374 bh = get_nth_bh(bh, block - first_block); in nilfs_mdt_forget_block()
/linux/drivers/md/dm-vdo/
A Dslab-depot.h185 struct reference_block *first_block; member
457 physical_block_number_t first_block; member
A Dencodings.c563 encode_u64_le(buffer, offset, state.first_block); in encode_slab_depot_state_2_0()
584 physical_block_number_t first_block, last_block; in decode_slab_depot_state_2_0() local
615 decode_u64_le(buffer, offset, &first_block); in decode_slab_depot_state_2_0()
626 .first_block = first_block, in decode_slab_depot_state_2_0()
675 .first_block = partition->offset, in vdo_configure_slab_depot()
A Dencodings.h434 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()
A Dslab-depot.c1895 cursor->block = cursor->first_block; in reset_search_cursor()
2387 slab->search_cursor.first_block = slab->reference_blocks; in allocate_slab_counters()
3794 slab_origin = depot->first_block + (depot->slab_count * slab_size); in allocate_slabs()
4080 depot->origin = depot->first_block; in allocate_components()
4109 slab_count = vdo_compute_slab_count(depot->first_block, depot->last_block, in allocate_components()
4185 depot->first_block = state.first_block; in vdo_decode_slab_depot()
4273 .first_block = depot->first_block, in vdo_record_slab_depot()
4317 if (pbn < depot->first_block) in get_slab_number()
4320 slab_number = (pbn - depot->first_block) >> depot->slab_size_shift; in get_slab_number()
4668 VDO_ASSERT_LOG_ONLY(depot->first_block == partition->offset, in vdo_prepare_to_grow_slab_depot()
[all …]
/linux/fs/jbd2/
A Dcommit.c372 unsigned long first_block; in jbd2_journal_commit_transaction() local
760 jbd2_journal_get_log_tail(journal, &first_tid, &first_block); in jbd2_journal_commit_transaction()
764 long freed = first_block - journal->j_tail; in jbd2_journal_commit_transaction()
766 if (first_block < journal->j_tail) in jbd2_journal_commit_transaction()
906 jbd2_update_log_tail(journal, first_tid, first_block); in jbd2_journal_commit_transaction()
/linux/drivers/char/
A Drandom.c319 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/fs/ext2/
A Dinode.c639 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()
/linux/arch/x86/kernel/cpu/mce/
A Damd.c920 struct threshold_block *first_block = NULL, *block = NULL, *tmp = NULL; in amd_threshold_interrupt() local
936 first_block = bp[bank]->blocks; in amd_threshold_interrupt()
937 if (!first_block) in amd_threshold_interrupt()
944 log_and_reset_block(first_block); in amd_threshold_interrupt()
945 list_for_each_entry_safe(block, tmp, &first_block->miscj, miscj) in amd_threshold_interrupt()
/linux/drivers/md/dm-vdo/indexer/
A Dindex-layout.c1334 struct region_table *table, u64 first_block) in reconstitute_layout() argument
1337 u64 next_block = first_block; in reconstitute_layout()
1370 if (++next_block != (first_block + layout->total_blocks)) { in reconstitute_layout()
1379 u64 first_block, struct buffered_reader *reader) in load_super_block() argument
1408 first_block -= (super->volume_offset - super->start_offset); in load_super_block()
1409 result = reconstitute_layout(layout, table, first_block); in load_super_block()
/linux/drivers/scsi/smartpqi/
A Dsmartpqi_init.c2631 struct raid_map *raid_map, u64 first_block) in pqi_set_encryption_info() argument
2642 first_block = (first_block * volume_blk_size) / 512; in pqi_set_encryption_info()
2750 rmd->last_block < rmd->first_block) in pci_get_aio_common_raid_map_values()
2763 tmpdiv = rmd->first_block; in pci_get_aio_common_raid_map_values()
2819 tmpdiv = rmd->first_block; in pqi_calc_aio_r5_or_r6()
2838 tmpdiv = rmd->first_block; in pqi_calc_aio_r5_or_r6()
2847 rmd->first_block / rmd->stripesize; in pqi_calc_aio_r5_or_r6()
2855 tmpdiv = rmd->first_block; in pqi_calc_aio_r5_or_r6()
2872 (u32)((rmd->first_block % rmd->stripesize) % in pqi_calc_aio_r5_or_r6()
2919 tmpdiv = rmd->first_block; in pqi_calc_aio_r5_or_r6()
[all …]
/linux/drivers/scsi/
A Dhpsa.c4855 u64 first_block; in set_encrypt_ioaccel2() local
4898 first_block = first_block * in set_encrypt_ioaccel2()
5111 u64 first_block, last_block; in hpsa_scsi_ioaccel_raid_map() local
5160 first_block = in hpsa_scsi_ioaccel_raid_map()
5173 first_block = in hpsa_scsi_ioaccel_raid_map()
5188 first_block = in hpsa_scsi_ioaccel_raid_map()
5214 last_block < first_block) in hpsa_scsi_ioaccel_raid_map()
5222 tmpdiv = first_block; in hpsa_scsi_ioaccel_raid_map()
5313 tmpdiv = first_block; in hpsa_scsi_ioaccel_raid_map()
5332 tmpdiv = first_block; in hpsa_scsi_ioaccel_raid_map()
[all …]

Completed in 102 milliseconds

12