/linux-4.4.14/fs/gfs2/ |
D | log.c | 51 unsigned int blks; in gfs2_struct2blk() local 54 blks = 1; in gfs2_struct2blk() 60 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk() 63 return blks; in gfs2_struct2blk() 310 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument 313 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release() 314 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release() 340 int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_reserve() argument 344 unsigned wanted = blks + reserved_blks; in gfs2_log_reserve() 349 if (gfs2_assert_warn(sdp, blks) || in gfs2_log_reserve() [all …]
|
D | xattr.c | 238 unsigned int blks = 0; in ea_dealloc_unstuffed() local 252 blks++; in ea_dealloc_unstuffed() 256 if (!blks) in ea_dealloc_unstuffed() 270 RES_EATTR + RES_STATFS + RES_QUOTA, blks); in ea_dealloc_unstuffed() 726 unsigned int blks, in ea_alloc_skeleton() argument 729 struct gfs2_alloc_parms ap = { .target = blks }; in ea_alloc_skeleton() 746 blks + gfs2_rg_blocks(ip, blks) + in ea_alloc_skeleton() 803 unsigned int blks = 1; in ea_init() local 812 blks += DIV_ROUND_UP(er.er_data_len, jbsize); in ea_init() 814 return ea_alloc_skeleton(ip, &er, blks, ea_init_i, NULL); in ea_init() [all …]
|
D | log.h | 66 extern void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks); 67 extern int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks);
|
D | lops.c | 530 unsigned int blks = be32_to_cpu(ld->ld_data1); in buf_lo_scan_elements() local 540 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in buf_lo_scan_elements() 683 unsigned int blks = be32_to_cpu(ld->ld_length); in revoke_lo_scan_elements() local 696 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in revoke_lo_scan_elements() 767 unsigned int blks = be32_to_cpu(ld->ld_data1); in databuf_lo_scan_elements() local 777 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in databuf_lo_scan_elements()
|
D | bmap.c | 459 unsigned n, i, blks, alloced = 0, iblks = 0, branch_start = 0; in gfs2_bmap_alloc() local 503 blks = dblks + iblks; in gfs2_bmap_alloc() 507 n = blks - alloced; in gfs2_bmap_alloc()
|
D | file.c | 336 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; in gfs2_size_hint() local 337 int hint = min_t(size_t, INT_MAX, blks); in gfs2_size_hint()
|
/linux-4.4.14/drivers/scsi/fnic/ |
D | vnic_wq.c | 32 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local 36 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs() 44 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
|
D | vnic_rq.c | 32 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count); in vnic_rq_alloc_bufs() local 36 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs() 44 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
|
/linux-4.4.14/fs/ext2/ |
D | inode.c | 359 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, in ext2_blks_to_allocate() argument 370 if (blks < blocks_to_boundary + 1) in ext2_blks_to_allocate() 371 count += blks; in ext2_blks_to_allocate() 378 while (count < blks && count <= blocks_to_boundary in ext2_blks_to_allocate() 396 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument 413 target = blks + indirect_blks; in ext2_alloc_blocks() 474 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument 486 *blks, new_blocks, &err); in ext2_alloc_branch() 531 *blks = num; in ext2_alloc_branch() 556 long block, Indirect *where, int num, int blks) in ext2_splice_branch() argument [all …]
|
/linux-4.4.14/drivers/net/ethernet/cisco/enic/ |
D | vnic_wq.c | 35 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local 37 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs() 43 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
|
D | vnic_rq.c | 35 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count); in vnic_rq_alloc_bufs() local 37 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs() 43 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
|
/linux-4.4.14/fs/squashfs/ |
D | file.c | 338 long long blks; in read_blocklist() local 357 blks = read_indexes(inode->i_sb, index - res, &start, &offset); in read_blocklist() 358 if (blks < 0) in read_blocklist() 359 return (int) blks; in read_blocklist() 360 *block += blks; in read_blocklist()
|
/linux-4.4.14/drivers/scsi/snic/ |
D | vnic_wq.c | 47 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local 49 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs() 58 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
|
/linux-4.4.14/arch/powerpc/lib/ |
D | rheap.c | 50 unsigned long blks, blke; in grow() local 70 blks = (unsigned long)info->block; in grow() 74 fixup(blks, blke, delta, &blk->list); in grow() 76 fixup(blks, blke, delta, &info->empty_list); in grow() 77 fixup(blks, blke, delta, &info->free_list); in grow() 78 fixup(blks, blke, delta, &info->taken_list); in grow()
|
/linux-4.4.14/include/crypto/ |
D | xts.h | 18 void (*crypt_fn)(void *ctx, u8 *blks, unsigned int nbytes);
|
D | lrw.h | 36 void (*crypt_fn)(void *ctx, u8 *blks, unsigned int nbytes);
|
/linux-4.4.14/drivers/scsi/ |
D | st.c | 762 int transfer, blks; in st_flush_write_buffer() local 781 blks = transfer / STp->block_size; in st_flush_write_buffer() 782 cmd[2] = blks >> 16; in st_flush_write_buffer() 783 cmd[3] = blks >> 8; in st_flush_write_buffer() 784 cmd[4] = blks; in st_flush_write_buffer() 805 STps->drv_block += blks; in st_flush_write_buffer() 814 STps->drv_block += blks; in st_flush_write_buffer() 1623 ssize_t i, do_count, blks, transfer; in st_write() local 1761 blks = transfer = do_count; in st_write() 1764 blks = STbp->buffer_bytes; in st_write() [all …]
|
D | osst.c | 3054 int offset, transfer, blks = 0; in osst_flush_write_buffer() local 3093 blks = (offset + STp->block_size - 1) / STp->block_size; in osst_flush_write_buffer() 3113 name, blks, STp->frame_seq_number, in osst_flush_write_buffer() 3114 STp->logical_blk_num - blks, STp->logical_blk_num - 1); in osst_flush_write_buffer() 3117 STp->logical_blk_num - blks, STp->block_size, blks); in osst_flush_write_buffer() 3125 STp->logical_blk_num++, 0, blks=1); in osst_flush_write_buffer() 3128 osst_init_aux(STp, OS_FRAME_TYPE_HEADER, 0, 0, 0, blks=0); in osst_flush_write_buffer() 3136 name, offset, transfer, blks); in osst_flush_write_buffer() 3248 int blks; in osst_write_frame() local 3283 blks = STp->buffer->buffer_bytes / STp->block_size; in osst_write_frame() [all …]
|
/linux-4.4.14/fs/f2fs/ |
D | f2fs.h | 1969 #define stat_inc_tot_blk_count(si, blks) \ argument 1970 (si->tot_blks += (blks)) 1972 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ argument 1975 stat_inc_tot_blk_count(si, blks); \ 1976 si->data_blks += (blks); \ 1977 si->bg_data_blks += (gc_type == BG_GC) ? (blks) : 0; \ 1980 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ argument 1983 stat_inc_tot_blk_count(si, blks); \ 1984 si->node_blks += (blks); \ 1985 si->bg_node_blks += (gc_type == BG_GC) ? (blks) : 0; \ [all …]
|
/linux-4.4.14/arch/tile/include/gxio/ |
D | mpipe.h | 1584 int blks = (size + 127) / 128; in gxio_mpipe_equeue_set_snf_size() local 1586 blks + 1, blks, 1); in gxio_mpipe_equeue_set_snf_size()
|
/linux-4.4.14/fs/ufs/ |
D | super.c | 508 unsigned size, blks, i; in ufs_read_cylinder_structures() local 517 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_read_cylinder_structures() 522 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_read_cylinder_structures() 524 if (i + uspi->s_fpb > blks) in ufs_read_cylinder_structures() 525 size = (blks - i) * uspi->s_fsize; in ufs_read_cylinder_structures() 638 unsigned blks, size, i; in ufs_put_super_internal() local 645 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_put_super_internal() 647 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_put_super_internal() 649 if (i + uspi->s_fpb > blks) in ufs_put_super_internal() 650 size = (blks - i) * uspi->s_fsize; in ufs_put_super_internal()
|
D | ufs_fs.h | 262 #define ufs_blkstofrags(blks) ((blks) << uspi->s_fpbshift) argument
|
/linux-4.4.14/drivers/net/wireless/ti/wlcore/ |
D | hw_ops.h | 39 u32 blks, u32 spare_blks) in wlcore_hw_set_tx_desc_blocks() argument 44 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks()
|
D | wlcore.h | 63 u32 blks, u32 spare_blks);
|
/linux-4.4.14/arch/mips/include/asm/octeon/ |
D | cvmx-dpi-defs.h | 515 uint64_t blks:4; member 517 uint64_t blks:4; 529 uint64_t blks:4; member 531 uint64_t blks:4;
|
/linux-4.4.14/arch/x86/crypto/ |
D | aesni-intel_glue.c | 559 static void lrw_xts_encrypt_callback(void *ctx, u8 *blks, unsigned int nbytes) in lrw_xts_encrypt_callback() argument 561 aesni_ecb_enc(ctx, blks, blks, nbytes); in lrw_xts_encrypt_callback() 564 static void lrw_xts_decrypt_callback(void *ctx, u8 *blks, unsigned int nbytes) in lrw_xts_decrypt_callback() argument 566 aesni_ecb_dec(ctx, blks, blks, nbytes); in lrw_xts_decrypt_callback()
|
/linux-4.4.14/drivers/lightnvm/ |
D | gennvm.c | 69 static int gennvm_block_bb(struct ppa_addr ppa, int nr_blocks, u8 *blks, in gennvm_block_bb() argument 81 if (blks[i] == 0) in gennvm_block_bb()
|
D | rrpc.c | 130 int secs, pgs, blks, luns; in linear_to_generic_addr() local 143 div_u64_rem(ppa, dev->blks_per_lun, &blks); in linear_to_generic_addr() 144 l.g.blk = blks; in linear_to_generic_addr()
|
/linux-4.4.14/fs/ext4/ |
D | indirect.c | 269 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument 280 if (blks < blocks_to_boundary + 1) in ext4_blks_to_allocate() 281 count += blks; in ext4_blks_to_allocate() 288 while (count < blks && count <= blocks_to_boundary && in ext4_blks_to_allocate()
|
D | super.c | 3054 int blks; in ext4_calculate_overhead() local 3056 blks = count_overhead(sb, i, buf); in ext4_calculate_overhead() 3057 overhead += blks; in ext4_calculate_overhead() 3058 if (blks) in ext4_calculate_overhead()
|
D | ext4.h | 257 #define EXT4_NUM_B2C(sbi, blks) (((blks) + (sbi)->s_cluster_ratio - 1) >> \ argument
|
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_bmap_btree.c | 44 xfs_filblks_t blks, in xfs_extent_state() argument 48 ASSERT(blks != 0); /* saved for DMIG */ in xfs_extent_state()
|
D | xfs_bmap.c | 1112 int blks; /* space reservation */ in xfs_bmap_add_attrfork() local 1123 blks = XFS_ADDAFORK_SPACE_RES(mp); in xfs_bmap_add_attrfork() 1126 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_addafork, blks, 0); in xfs_bmap_add_attrfork() 1132 error = xfs_trans_reserve_quota_nblks(tp, ip, blks, 0, rsvd ? in xfs_bmap_add_attrfork()
|
/linux-4.4.14/drivers/net/wireless/ti/wl12xx/ |
D | main.c | 1311 u32 blks, u32 spare_blks) in wl12xx_set_tx_desc_blocks() argument 1314 desc->wl128x_mem.total_mem_blocks = blks; in wl12xx_set_tx_desc_blocks() 1317 desc->wl127x_mem.total_mem_blocks = blks; in wl12xx_set_tx_desc_blocks()
|
/linux-4.4.14/drivers/net/wireless/ti/wl18xx/ |
D | main.c | 1072 u32 blks, u32 spare_blks) in wl18xx_set_tx_desc_blocks() argument 1074 desc->wl18xx_mem.total_mem_blocks = blks; in wl18xx_set_tx_desc_blocks()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | cnic.c | 1195 int total_mem, blks, i; in cnic_alloc_bnx2x_context() local 1198 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context() 1200 blks++; in cnic_alloc_bnx2x_context() 1202 if (blks > cp->ethdev->ctx_tbl_len) in cnic_alloc_bnx2x_context() 1205 cp->ctx_arr = kcalloc(blks, sizeof(struct cnic_ctx), GFP_KERNEL); in cnic_alloc_bnx2x_context() 1209 cp->ctx_blks = blks; in cnic_alloc_bnx2x_context() 1218 for (i = 0; i < blks; i++) { in cnic_alloc_bnx2x_context()
|
/linux-4.4.14/fs/ocfs2/ |
D | xattr.c | 333 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_xattr_bucket_new() local 335 BUG_ON(blks > OCFS2_XATTR_MAX_BLOCKS_PER_BUCKET); in ocfs2_xattr_bucket_new() 340 bucket->bu_blocks = blks; in ocfs2_xattr_bucket_new() 4175 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_cp_xattr_block_to_bucket() local 4184 char *target = bucket_block(bucket, blks - 1); in ocfs2_cp_xattr_block_to_bucket() 4190 for (i = 0; i < blks; i++) in ocfs2_cp_xattr_block_to_bucket()
|