Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/mtd/
Dnftlmount.c384 static void check_sectors_in_chain(struct NFTLrecord *nftl, unsigned int first_block) in check_sectors_in_chain() argument
393 block = first_block; in check_sectors_in_chain()
438 static int calc_chain_length(struct NFTLrecord *nftl, unsigned int first_block) in calc_chain_length() argument
440 unsigned int length = 0, block = first_block; in calc_chain_length()
470 static void format_chain(struct NFTLrecord *nftl, unsigned int first_block) in format_chain() argument
472 unsigned int block = first_block, block1; in format_chain()
474 printk("Formatting chain at block %d\n", first_block); in format_chain()
581 unsigned int block, first_block, is_first_block; in NFTL_mount() local
601 for (first_block = 0; first_block < s->nb_blocks; first_block++) { in NFTL_mount()
603 if (s->ReplUnitTable[first_block] == BLOCK_NOTEXPLORED) { in NFTL_mount()
[all …]
Dinftlmount.c447 static void format_chain(struct INFTLrecord *inftl, unsigned int first_block) in format_chain() argument
449 unsigned int block = first_block, block1; in format_chain()
452 first_block); in format_chain()
549 unsigned int block, first_block, prev_block, last_block; in INFTL_mount() local
589 for (first_block = s->firstEUN; first_block <= s->lastEUN; first_block++) { in INFTL_mount()
590 if (s->PUtable[first_block] != BLOCK_NOTEXPLORED) in INFTL_mount()
596 block = first_block; in INFTL_mount()
639 "mark 0x%x?\n", block, first_block, in INFTL_mount()
664 block, first_block); in INFTL_mount()
699 first_block); in INFTL_mount()
[all …]
/Linux-v4.19/drivers/net/wireless/intersil/orinoco/
Dfw.c107 const unsigned char *first_block; in orinoco_dl_firmware() local
159 first_block = (fw_entry->data + in orinoco_dl_firmware()
164 err = hermes_program(hw, first_block, end); in orinoco_dl_firmware()
170 first_block = (fw_entry->data + in orinoco_dl_firmware()
174 err = hermes_apply_pda_with_defaults(hw, first_block, end, pda, in orinoco_dl_firmware()
212 const unsigned char *first_block; in symbol_dl_image() local
220 first_block = ptr; in symbol_dl_image()
241 ret = hermes_program(hw, first_block, end); in symbol_dl_image()
247 size_t len = hermes_blocks_length(first_block, end); in symbol_dl_image()
248 ptr = first_block + len; in symbol_dl_image()
Dhermes_dld.h32 int hermes_program(struct hermes *hw, const char *first_block, const void *end);
50 size_t hermes_blocks_length(const char *first_block, const void *end);
Dhermes_dld.c254 hermes_blocks_length(const char *first_block, const void *end) in hermes_blocks_length() argument
256 const struct dblock *blk = (const struct dblock *) first_block; in hermes_blocks_length()
277 int hermes_program(struct hermes *hw, const char *first_block, const void *end) in hermes_program() argument
284 blk = (const struct dblock *) first_block; in hermes_program()
/Linux-v4.19/mm/
Dpage_io.c176 sector_t first_block; in generic_swapfile_activate() local
180 first_block = bmap(inode, probe_block); in generic_swapfile_activate()
181 if (first_block == 0) in generic_swapfile_activate()
187 if (first_block & (blocks_per_page - 1)) { in generic_swapfile_activate()
199 if (block != first_block + block_in_page) { in generic_swapfile_activate()
206 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
208 if (first_block < lowest_block) in generic_swapfile_activate()
209 lowest_block = first_block; in generic_swapfile_activate()
210 if (first_block > highest_block) in generic_swapfile_activate()
211 highest_block = first_block; in generic_swapfile_activate()
[all …]
/Linux-v4.19/fs/udf/
Dballoc.c173 uint16_t partition, uint32_t first_block, in udf_bitmap_prealloc_blocks() argument
185 if (first_block >= part_len) in udf_bitmap_prealloc_blocks()
188 if (first_block + block_count > part_len) in udf_bitmap_prealloc_blocks()
189 block_count = part_len - first_block; in udf_bitmap_prealloc_blocks()
193 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_prealloc_blocks()
491 uint32_t first_block, uint32_t block_count) in udf_table_prealloc_blocks() argument
501 if (first_block >= sbi->s_partmaps[partition].s_partition_len) in udf_table_prealloc_blocks()
518 while (first_block != eloc.logicalBlockNum && in udf_table_prealloc_blocks()
521 eloc.logicalBlockNum, elen, first_block); in udf_table_prealloc_blocks()
525 if (first_block == eloc.logicalBlockNum) { in udf_table_prealloc_blocks()
[all …]
Dtruncate.c36 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() local
51 if (last_block > first_block) { in extent_trunc()
57 first_block, in extent_trunc()
58 last_block - first_block); in extent_trunc()
209 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; in udf_truncate_extents() local
221 etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); in udf_truncate_extents()
/Linux-v4.19/block/partitions/
Dsgi.c24 __be32 first_block; /* First logical block */ member
72 start = be32_to_cpu(p->first_block); in sgi_partition()
/Linux-v4.19/fs/ext4/
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()
51 lb->last_block - lb->first_block + 1, path); in finish_range()
105 lb->first_block = lb->last_block = lb->curr_block; in update_extent_range()
Dsuper.c2364 ext4_fsblk_t first_block = le32_to_cpu(sbi->s_es->s_first_data_block); in ext4_check_descriptors() local
2384 last_block = first_block + in ext4_check_descriptors()
2407 if (block_bitmap < first_block || block_bitmap > last_block) { in ext4_check_descriptors()
2429 if (inode_bitmap < first_block || inode_bitmap > last_block) { in ext4_check_descriptors()
2451 if (inode_table < first_block || in ext4_check_descriptors()
2471 first_block += EXT4_BLOCKS_PER_GROUP(sb); in ext4_check_descriptors()
3349 ext4_fsblk_t first_block, last_block, b; in count_overhead() local
3357 first_block = le32_to_cpu(sbi->s_es->s_first_data_block) + in count_overhead()
3359 last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1; in count_overhead()
3363 if (b >= first_block && b <= last_block) { in count_overhead()
[all …]
Dindirect.c528 ext4_fsblk_t first_block = 0; in ext4_ind_map_blocks() local
543 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
551 if (blk == first_block + count) in ext4_ind_map_blocks()
Dinode.c3416 unsigned long first_block, last_block; in ext4_iomap_begin() local
3423 first_block = offset >> blkbits; in ext4_iomap_begin()
3441 map.m_lblk = first_block; in ext4_iomap_begin()
3442 map.m_len = last_block - first_block + 1; in ext4_iomap_begin()
3510 if (!(flags & IOMAP_FAULT) && first_block + map.m_len > in ext4_iomap_begin()
3532 iomap->offset = (u64)first_block << blkbits; in ext4_iomap_begin()
4244 ext4_lblk_t first_block, stop_block; in ext4_punch_hole() local
4336 first_block = (offset + sb->s_blocksize - 1) >> in ext4_punch_hole()
4341 if (stop_block > first_block) { in ext4_punch_hole()
4346 ret = ext4_es_remove_extent(inode, first_block, in ext4_punch_hole()
[all …]
/Linux-v4.19/include/linux/mmc/
Dsh_mmcif.h152 unsigned long first_block, in sh_mmcif_boot_do_read() argument
174 ret = sh_mmcif_boot_do_read_single(base, first_block + k, in sh_mmcif_boot_do_read()
/Linux-v4.19/block/
Dblk-iolatency.c177 bool first_block) in iolatency_may_queue() argument
181 if (first_block && waitqueue_active(&rqw->wait) && in iolatency_may_queue()
197 bool first_block = true; in __blkcg_iolatency_throttle() local
214 if (iolatency_may_queue(iolat, &wait, first_block)) in __blkcg_iolatency_throttle()
221 if (iolatency_may_queue(iolat, &wait, first_block)) in __blkcg_iolatency_throttle()
223 first_block = false; in __blkcg_iolatency_throttle()
/Linux-v4.19/include/uapi/linux/
Defs_fs_sb.h53 __u32 first_block; /* first data block in filesystem */ member
/Linux-v4.19/fs/jbd2/
Dcommit.c368 unsigned long first_block; in jbd2_journal_commit_transaction() local
741 jbd2_journal_get_log_tail(journal, &first_tid, &first_block); in jbd2_journal_commit_transaction()
745 long freed = first_block - journal->j_tail; in jbd2_journal_commit_transaction()
747 if (first_block < journal->j_tail) in jbd2_journal_commit_transaction()
881 jbd2_update_log_tail(journal, first_tid, first_block); in jbd2_journal_commit_transaction()
/Linux-v4.19/fs/nilfs2/
Dmdt.c361 unsigned long first_block; in nilfs_mdt_forget_block() local
371 first_block = (unsigned long)index << in nilfs_mdt_forget_block()
376 bh = nilfs_page_get_nth_block(page, block - first_block); in nilfs_mdt_forget_block()
Dpage.c33 unsigned long first_block; in __nilfs_get_page_block() local
39 first_block = (unsigned long)index << (PAGE_SHIFT - blkbits); in __nilfs_get_page_block()
40 bh = nilfs_page_get_nth_block(page, block - first_block); in __nilfs_get_page_block()
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dmce_amd.c936 struct threshold_block *first_block = NULL, *block = NULL, *tmp = NULL; in amd_threshold_interrupt() local
943 first_block = per_cpu(threshold_banks, cpu)[bank]->blocks; in amd_threshold_interrupt()
944 if (!first_block) in amd_threshold_interrupt()
951 log_and_reset_block(first_block); in amd_threshold_interrupt()
952 list_for_each_entry_safe(block, tmp, &first_block->miscj, miscj) in amd_threshold_interrupt()
/Linux-v4.19/drivers/scsi/smartpqi/
Dsmartpqi_init.c2039 u64 first_block) in pqi_set_encryption_info() argument
2050 first_block = (first_block * volume_blk_size) / 512; in pqi_set_encryption_info()
2054 encryption_info->encrypt_tweak_lower = lower_32_bits(first_block); in pqi_set_encryption_info()
2055 encryption_info->encrypt_tweak_upper = upper_32_bits(first_block); in pqi_set_encryption_info()
2071 u64 first_block; in pqi_raid_bypass_submit_scsi_cmd() local
2117 first_block = (u64)(((scmd->cmnd[1] & 0x1f) << 16) | in pqi_raid_bypass_submit_scsi_cmd()
2127 first_block = (u64)get_unaligned_be32(&scmd->cmnd[2]); in pqi_raid_bypass_submit_scsi_cmd()
2134 first_block = (u64)get_unaligned_be32(&scmd->cmnd[2]); in pqi_raid_bypass_submit_scsi_cmd()
2141 first_block = get_unaligned_be64(&scmd->cmnd[2]); in pqi_raid_bypass_submit_scsi_cmd()
2156 last_block = first_block + block_cnt - 1; in pqi_raid_bypass_submit_scsi_cmd()
[all …]
/Linux-v4.19/fs/ext2/
Dinode.c636 ext2_fsblk_t first_block = 0; in ext2_get_blocks() local
648 first_block = le32_to_cpu(chain[depth - 1].key); in ext2_get_blocks()
667 if (blk == first_block + count) in ext2_get_blocks()
805 unsigned long first_block = offset >> blkbits; in ext2_iomap_begin() local
812 ret = ext2_get_blocks(inode, first_block, max_blocks, in ext2_iomap_begin()
819 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin()
Dsuper.c714 ext2_fsblk_t first_block = ext2_group_first_block_no(sb, i); in ext2_check_descriptors() local
720 last_block = first_block + in ext2_check_descriptors()
723 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext2_check_descriptors()
732 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext2_check_descriptors()
741 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext2_check_descriptors()
/Linux-v4.19/drivers/scsi/
Dhpsa.c4819 u64 first_block; in set_encrypt_ioaccel2() local
4838 first_block = (((cmd->cmnd[1] & 0x1F) << 16) | in set_encrypt_ioaccel2()
4847 first_block = get_unaligned_be32(&cmd->cmnd[2]); in set_encrypt_ioaccel2()
4851 first_block = get_unaligned_be64(&cmd->cmnd[2]); in set_encrypt_ioaccel2()
4862 first_block = first_block * in set_encrypt_ioaccel2()
4865 cp->tweak_lower = cpu_to_le32(first_block); in set_encrypt_ioaccel2()
4866 cp->tweak_upper = cpu_to_le32(first_block >> 32); in set_encrypt_ioaccel2()
5062 u64 first_block, last_block; in hpsa_scsi_ioaccel_raid_map() local
5096 first_block = (((cmd->cmnd[1] & 0x1F) << 16) | in hpsa_scsi_ioaccel_raid_map()
5106 first_block = in hpsa_scsi_ioaccel_raid_map()
[all …]
/Linux-v4.19/fs/efs/
Dsuper.c246 sb->first_block = be32_to_cpu(super->fs_firstcg); in efs_validate_super()

12