/linux-4.1.27/mm/ |
H A D | page_io.c | 165 sector_t first_block; generic_swapfile_activate() local 167 first_block = bmap(inode, probe_block); generic_swapfile_activate() 168 if (first_block == 0) generic_swapfile_activate() 174 if (first_block & (blocks_per_page - 1)) { generic_swapfile_activate() 186 if (block != first_block + block_in_page) { generic_swapfile_activate() 193 first_block >>= (PAGE_SHIFT - blkbits); generic_swapfile_activate() 195 if (first_block < lowest_block) generic_swapfile_activate() 196 lowest_block = first_block; generic_swapfile_activate() 197 if (first_block > highest_block) generic_swapfile_activate() 198 highest_block = first_block; generic_swapfile_activate() 204 ret = add_swap_extent(sis, page_no, 1, first_block); generic_swapfile_activate()
|
/linux-4.1.27/block/partitions/ |
H A D | sgi.c | 23 __be32 first_block; /* First logical block */ member in struct:sgi_disklabel::sgi_partition 71 start = be32_to_cpu(p->first_block); sgi_partition()
|
/linux-4.1.27/drivers/net/wireless/orinoco/ |
H A D | fw.c | 107 const unsigned char *first_block; orinoco_dl_firmware() local 159 first_block = (fw_entry->data + orinoco_dl_firmware() 164 err = hermes_program(hw, first_block, end); orinoco_dl_firmware() 170 first_block = (fw_entry->data + orinoco_dl_firmware() 174 err = hermes_apply_pda_with_defaults(hw, first_block, end, pda, orinoco_dl_firmware() 212 const unsigned char *first_block; symbol_dl_image() local 220 first_block = ptr; symbol_dl_image() 241 ret = hermes_program(hw, first_block, end); symbol_dl_image() 247 size_t len = hermes_blocks_length(first_block, end); symbol_dl_image() 248 ptr = first_block + len; symbol_dl_image()
|
H A D | hermes_dld.h | 32 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);
|
H A D | hermes_dld.c | 254 hermes_blocks_length(const char *first_block, const void *end) hermes_blocks_length() argument 256 const struct dblock *blk = (const struct dblock *) first_block; hermes_blocks_length() 277 int hermes_program(struct hermes *hw, const char *first_block, const void *end) hermes_program() argument 284 blk = (const struct dblock *) first_block; hermes_program()
|
/linux-4.1.27/drivers/mtd/ |
H A D | nftlmount.c | 376 static void check_sectors_in_chain(struct NFTLrecord *nftl, unsigned int first_block) check_sectors_in_chain() argument 385 block = first_block; check_sectors_in_chain() 430 static int calc_chain_length(struct NFTLrecord *nftl, unsigned int first_block) calc_chain_length() argument 432 unsigned int length = 0, block = first_block; calc_chain_length() 456 * if we stop the code, we may see again a valid chain if there was a first_block 462 static void format_chain(struct NFTLrecord *nftl, unsigned int first_block) format_chain() argument 464 unsigned int block = first_block, block1; format_chain() 466 printk("Formatting chain at block %d\n", first_block); format_chain() 573 unsigned int block, first_block, is_first_block; NFTL_mount() local 593 for (first_block = 0; first_block < s->nb_blocks; first_block++) { NFTL_mount() 595 if (s->ReplUnitTable[first_block] == BLOCK_NOTEXPLORED) { NFTL_mount() 596 block = first_block; NFTL_mount() 645 block, first_block); NFTL_mount() 699 the first_block flag set if folding is in NFTL_mount() 704 get_fold_mark(s, first_block) == FOLD_MARK_IN_PROGRESS) { NFTL_mount() 729 format_chain(s, first_block); NFTL_mount() 735 fold_mark = get_fold_mark(s, first_block); NFTL_mount() 738 printk("Could read foldmark at block %d\n", first_block); NFTL_mount() 739 format_chain(s, first_block); NFTL_mount() 742 check_sectors_in_chain(s, first_block); NFTL_mount() 753 first_block1, chain_length1, first_block, chain_length); NFTL_mount() 757 s->EUNtable[first_logical_block] = first_block; NFTL_mount() 759 chain_to_format = first_block; NFTL_mount() 763 s->EUNtable[first_logical_block] = first_block; NFTL_mount()
|
H A D | inftlmount.c | 438 static void format_chain(struct INFTLrecord *inftl, unsigned int first_block) format_chain() argument 440 unsigned int block = first_block, block1; format_chain() 443 first_block); format_chain() 540 unsigned int block, first_block, prev_block, last_block; INFTL_mount() local 580 for (first_block = s->firstEUN; first_block <= s->lastEUN; first_block++) { INFTL_mount() 581 if (s->PUtable[first_block] != BLOCK_NOTEXPLORED) INFTL_mount() 587 block = first_block; INFTL_mount() 630 "mark 0x%x?\n", block, first_block, INFTL_mount() 655 block, first_block); INFTL_mount() 690 first_block); INFTL_mount() 697 format_chain(s, first_block); INFTL_mount() 707 s->VUtable[first_logical_block] = first_block; INFTL_mount() 759 format_chain(s, first_block); INFTL_mount()
|
/linux-4.1.27/fs/udf/ |
H A D | balloc.c | 173 uint16_t partition, uint32_t first_block, udf_bitmap_prealloc_blocks() 185 if (first_block >= part_len) udf_bitmap_prealloc_blocks() 188 if (first_block + block_count > part_len) udf_bitmap_prealloc_blocks() 189 block_count = part_len - first_block; udf_bitmap_prealloc_blocks() 193 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); udf_bitmap_prealloc_blocks() 577 uint32_t first_block, uint32_t block_count) udf_table_prealloc_blocks() 587 if (first_block >= sbi->s_partmaps[partition].s_partition_len) udf_table_prealloc_blocks() 604 while (first_block != eloc.logicalBlockNum && udf_table_prealloc_blocks() 606 udf_debug("eloc=%d, elen=%d, first_block=%d\n", udf_table_prealloc_blocks() 607 eloc.logicalBlockNum, elen, first_block); udf_table_prealloc_blocks() 611 if (first_block == eloc.logicalBlockNum) { udf_table_prealloc_blocks() 757 uint16_t partition, uint32_t first_block, udf_prealloc_blocks() 766 partition, first_block, udf_prealloc_blocks() 771 partition, first_block, udf_prealloc_blocks() 776 partition, first_block, udf_prealloc_blocks() 781 partition, first_block, udf_prealloc_blocks() 171 udf_bitmap_prealloc_blocks(struct super_block *sb, struct udf_bitmap *bitmap, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_bitmap_prealloc_blocks() argument 575 udf_table_prealloc_blocks(struct super_block *sb, struct inode *table, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_table_prealloc_blocks() argument 755 udf_prealloc_blocks(struct super_block *sb, struct inode *inode, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_prealloc_blocks() argument
|
H A D | truncate.c | 36 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> extent_trunc() local 51 if (last_block - first_block > 0) { extent_trunc() 57 first_block, extent_trunc() 58 last_block - first_block); extent_trunc() 209 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; udf_truncate_extents() local 221 etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); udf_truncate_extents()
|
H A D | inode.c | 607 sector_t first_block = newsize >> sb->s_blocksize_bits, offset; udf_extend_file() local 620 etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); udf_extend_file()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | efs_fs_sb.h | 52 __u32 first_block; /* first data block in filesystem */ member in struct:efs_sb_info
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_symlink.c | 179 xfs_fsblock_t first_block; xfs_symlink() local 278 xfs_bmap_init(&free_list, &first_block); xfs_symlink() 329 XFS_BMAPI_METADATA, &first_block, resblks, xfs_symlink() 378 &first_block, &free_list, resblks); xfs_symlink() 444 xfs_fsblock_t first_block; xfs_inactive_symlink_rmt() local 487 xfs_bmap_init(&free_list, &first_block); xfs_inactive_symlink_rmt() 510 &first_block, &free_list, &done); xfs_inactive_symlink_rmt()
|
H A D | xfs_inode.c | 1128 xfs_fsblock_t first_block; xfs_create() local 1194 xfs_bmap_init(&free_list, &first_block); xfs_create() 1234 &first_block, &free_list, resblks ? xfs_create() 1429 xfs_fsblock_t first_block; xfs_link() local 1484 xfs_bmap_init(&free_list, &first_block); xfs_link() 1493 &first_block, &free_list, resblks); xfs_link() 1560 xfs_fsblock_t first_block; xfs_itruncate_extents() local 1596 xfs_bmap_init(&free_list, &first_block); xfs_itruncate_extents() 1601 &first_block, &free_list, xfs_itruncate_extents() 1804 xfs_fsblock_t first_block; xfs_inactive_ifree() local 1845 xfs_bmap_init(&free_list, &first_block); xfs_inactive_ifree() 2538 xfs_fsblock_t first_block; xfs_remove() local 2627 xfs_bmap_init(&free_list, &first_block); xfs_remove() 2629 &first_block, &free_list, resblks); xfs_remove() 2755 xfs_fsblock_t *first_block, xfs_cross_rename() 2766 first_block, free_list, spaceres); xfs_cross_rename() 2773 first_block, free_list, spaceres); xfs_cross_rename() 2787 dp1->i_ino, first_block, xfs_cross_rename() 2814 dp2->i_ino, first_block, xfs_cross_rename() 2912 xfs_fsblock_t first_block; xfs_rename() local 2996 xfs_bmap_init(&free_list, &first_block); xfs_rename() 3002 &free_list, &first_block, spaceres); xfs_rename() 3023 src_ip->i_ino, &first_block, xfs_rename() 3066 &first_block, &free_list, spaceres); xfs_rename() 3101 &first_block, &free_list, spaceres); xfs_rename() 3140 &first_block, &free_list, spaceres); xfs_rename() 3143 &first_block, &free_list, spaceres); xfs_rename() 2746 xfs_cross_rename( struct xfs_trans *tp, struct xfs_inode *dp1, struct xfs_name *name1, struct xfs_inode *ip1, struct xfs_inode *dp2, struct xfs_name *name2, struct xfs_inode *ip2, struct xfs_bmap_free *free_list, xfs_fsblock_t *first_block, int spaceres) xfs_cross_rename() argument
|
H A D | xfs_iomap.c | 654 xfs_fsblock_t first_block; xfs_iomap_write_allocate() local 699 xfs_bmap_init(&free_list, &first_block); xfs_iomap_write_allocate() 754 &first_block, 1, xfs_iomap_write_allocate()
|
H A D | xfs_bmap_util.c | 1398 xfs_fsblock_t first_block; xfs_shift_file_space() local 1479 xfs_bmap_init(&free_list, &first_block); xfs_shift_file_space() 1486 &done, stop_fsb, &first_block, &free_list, xfs_shift_file_space()
|
/linux-4.1.27/include/linux/mmc/ |
H A D | sh_mmcif.h | 157 unsigned long first_block, sh_mmcif_boot_do_read() 179 ret = sh_mmcif_boot_do_read_single(base, first_block + k, sh_mmcif_boot_do_read() 156 sh_mmcif_boot_do_read(void __iomem *base, unsigned long first_block, unsigned long nr_blocks, void *buf) sh_mmcif_boot_do_read() argument
|
/linux-4.1.27/fs/ext4/ |
H A D | migrate.c | 24 ext4_lblk_t first_block, last_block, curr_block; member in struct:migrate_struct 39 newext.ee_block = cpu_to_le32(lb->first_block); finish_range() 40 newext.ee_len = cpu_to_le16(lb->last_block - lb->first_block + 1); finish_range() 44 path = ext4_find_extent(inode, lb->first_block, NULL, 0); finish_range() 58 lb->last_block - lb->first_block + 1, path); finish_range() 112 lb->first_block = lb->last_block = lb->curr_block; update_extent_range()
|
H A D | super.c | 2088 ext4_fsblk_t first_block = le32_to_cpu(sbi->s_es->s_first_data_block); ext4_check_descriptors() local 2107 last_block = first_block + ext4_check_descriptors() 2115 if (block_bitmap < first_block || block_bitmap > last_block) { ext4_check_descriptors() 2122 if (inode_bitmap < first_block || inode_bitmap > last_block) { ext4_check_descriptors() 2129 if (inode_table < first_block || ext4_check_descriptors() 2149 first_block += EXT4_BLOCKS_PER_GROUP(sb); ext4_check_descriptors() 3298 ext4_fsblk_t first_block, last_block, b; count_overhead() local 3306 first_block = le32_to_cpu(sbi->s_es->s_first_data_block) + count_overhead() 3308 last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1; count_overhead() 3312 if (b >= first_block && b <= last_block) { count_overhead() 3313 ext4_set_bit(EXT4_B2C(sbi, b - first_block), buf); count_overhead() 3317 if (b >= first_block && b <= last_block) { count_overhead() 3318 ext4_set_bit(EXT4_B2C(sbi, b - first_block), buf); count_overhead() 3322 if (b >= first_block && b + sbi->s_itb_per_group <= last_block) count_overhead() 3324 int c = EXT4_B2C(sbi, b - first_block); count_overhead()
|
H A D | indirect.c | 526 ext4_fsblk_t first_block = 0; ext4_ind_map_blocks() local 541 first_block = le32_to_cpu(chain[depth - 1].key); ext4_ind_map_blocks() 549 if (blk == first_block + count) ext4_ind_map_blocks()
|
H A D | inode.c | 3590 ext4_lblk_t first_block, stop_block; ext4_punch_hole() local 3678 first_block = (offset + sb->s_blocksize - 1) >> ext4_punch_hole() 3683 if (first_block >= stop_block) ext4_punch_hole() 3689 ret = ext4_es_remove_extent(inode, first_block, ext4_punch_hole() 3690 stop_block - first_block); ext4_punch_hole() 3697 ret = ext4_ext_remove_space(inode, first_block, ext4_punch_hole() 3700 ret = ext4_ind_remove_space(handle, inode, first_block, ext4_punch_hole()
|
H A D | mballoc.c | 826 int first_block; ext4_mb_init_cache() local 891 first_block = page->index * blocks_per_page; ext4_mb_init_cache() 893 group = (first_block + i) >> 1; ext4_mb_init_cache() 914 if ((first_block + i) & 1) { ext4_mb_init_cache()
|
/linux-4.1.27/fs/nilfs2/ |
H A D | mdt.c | 362 unsigned long first_block; nilfs_mdt_forget_block() local 372 first_block = (unsigned long)index << nilfs_mdt_forget_block() 377 bh = nilfs_page_get_nth_block(page, block - first_block); nilfs_mdt_forget_block()
|
H A D | page.c | 47 unsigned long first_block; __nilfs_get_page_block() local 53 first_block = (unsigned long)index << (PAGE_CACHE_SHIFT - blkbits); __nilfs_get_page_block() 54 bh = nilfs_page_get_nth_block(page, block - first_block); __nilfs_get_page_block()
|
/linux-4.1.27/fs/jbd2/ |
H A D | commit.c | 395 unsigned long first_block; jbd2_journal_commit_transaction() local 773 jbd2_journal_get_log_tail(journal, &first_tid, &first_block); jbd2_journal_commit_transaction() 777 long freed = first_block - journal->j_tail; jbd2_journal_commit_transaction() 779 if (first_block < journal->j_tail) jbd2_journal_commit_transaction() 916 jbd2_update_log_tail(journal, first_tid, first_block); jbd2_journal_commit_transaction()
|
/linux-4.1.27/drivers/crypto/ |
H A D | mv_cesa.c | 253 static void mv_process_current_q(int first_block) mv_process_current_q() argument 269 if (first_block) mv_process_current_q() 322 static void mv_process_hash_current(int first_block) mv_process_hash_current() argument 372 if (first_block) { mv_process_hash_current()
|
/linux-4.1.27/fs/efs/ |
H A D | inode.c | 82 block = sb->fs_start + sb->first_block + efs_iget()
|
H A D | super.c | 245 sb->first_block = be32_to_cpu(super->fs_firstcg); efs_validate_super()
|
/linux-4.1.27/fs/ext2/ |
H A D | super.c | 669 ext2_fsblk_t first_block = ext2_group_first_block_no(sb, i); ext2_check_descriptors() local 675 last_block = first_block + ext2_check_descriptors() 678 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || ext2_check_descriptors() 687 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || ext2_check_descriptors() 696 if (le32_to_cpu(gdp->bg_inode_table) < first_block || ext2_check_descriptors()
|
H A D | inode.c | 632 ext2_fsblk_t first_block = 0; ext2_get_blocks() local 644 first_block = le32_to_cpu(chain[depth - 1].key); ext2_get_blocks() 663 if (blk == first_block + count) ext2_get_blocks()
|
/linux-4.1.27/drivers/scsi/ |
H A D | hpsa.c | 3472 u64 first_block; set_encrypt_ioaccel2() local 3491 first_block = get_unaligned_be16(&cmd->cmnd[2]); set_encrypt_ioaccel2() 3498 first_block = get_unaligned_be32(&cmd->cmnd[2]); set_encrypt_ioaccel2() 3502 first_block = get_unaligned_be64(&cmd->cmnd[2]); set_encrypt_ioaccel2() 3513 first_block = first_block * set_encrypt_ioaccel2() 3516 cp->tweak_lower = cpu_to_le32(first_block); set_encrypt_ioaccel2() 3517 cp->tweak_upper = cpu_to_le32(first_block >> 32); set_encrypt_ioaccel2() 3678 u64 first_block, last_block; hpsa_scsi_ioaccel_raid_map() local 3709 first_block = hpsa_scsi_ioaccel_raid_map() 3719 first_block = hpsa_scsi_ioaccel_raid_map() 3731 first_block = hpsa_scsi_ioaccel_raid_map() 3745 first_block = hpsa_scsi_ioaccel_raid_map() 3763 last_block = first_block + block_cnt - 1; hpsa_scsi_ioaccel_raid_map() 3771 last_block < first_block) hpsa_scsi_ioaccel_raid_map() 3779 tmpdiv = first_block; hpsa_scsi_ioaccel_raid_map() 3785 first_row_offset = (u32) (first_block - (first_row * blocks_per_row)); hpsa_scsi_ioaccel_raid_map() 3794 first_row = first_block / blocks_per_row; hpsa_scsi_ioaccel_raid_map() 3796 first_row_offset = (u32) (first_block - (first_row * blocks_per_row)); hpsa_scsi_ioaccel_raid_map() 3859 tmpdiv = first_block; hpsa_scsi_ioaccel_raid_map() 3870 first_group = (first_block % stripesize) / r5or6_blocks_per_row; hpsa_scsi_ioaccel_raid_map() 3878 tmpdiv = first_block; hpsa_scsi_ioaccel_raid_map() 3886 first_block / stripesize; hpsa_scsi_ioaccel_raid_map() 3895 tmpdiv = first_block; hpsa_scsi_ioaccel_raid_map() 3912 (u32)((first_block % stripesize) % hpsa_scsi_ioaccel_raid_map()
|
H A D | osst.h | 46 u32 first_block; /* First Block Location */ member in struct:__anon9408
|
/linux-4.1.27/fs/ext3/ |
H A D | balloc.c | 2087 ext3_grpblk_t last_block, first_block; ext3_trim_fs() local 2116 &first_group, &first_block); ext3_trim_fs() 2138 ret = ext3_trim_all_free(sb, group, first_block, ext3_trim_fs() 2149 first_block = 0; ext3_trim_fs()
|
H A D | super.c | 1452 ext3_fsblk_t first_block = ext3_group_first_block_no(sb, i); ext3_check_descriptors() local 1458 last_block = first_block + ext3_check_descriptors() 1461 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || ext3_check_descriptors() 1471 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || ext3_check_descriptors() 1481 if (le32_to_cpu(gdp->bg_inode_table) < first_block || ext3_check_descriptors()
|
H A D | inode.c | 872 ext3_fsblk_t first_block = 0; ext3_get_blocks_handle() local 886 first_block = le32_to_cpu(chain[depth - 1].key); ext3_get_blocks_handle() 907 if (blk == first_block + count) ext3_get_blocks_handle()
|
/linux-4.1.27/fs/btrfs/ |
H A D | check-integrity.c | 976 struct btrfsic_block *const first_block, btrfsic_process_metablock() 991 sf->block = first_block; btrfsic_process_metablock() 974 btrfsic_process_metablock( struct btrfsic_state *state, struct btrfsic_block *const first_block, struct btrfsic_block_data_ctx *const first_block_ctx, int first_limit_nesting, int force_iodone_flag) btrfsic_process_metablock() argument
|