Home
last modified time | relevance | path

Searched refs:blks (Results 1 – 35 of 35) sorted by relevance

/linux-4.1.27/fs/gfs2/
Dlog.c51 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 …]
Dxattr.c238 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()
724 unsigned int blks, in ea_alloc_skeleton() argument
727 struct gfs2_alloc_parms ap = { .target = blks }; in ea_alloc_skeleton()
744 blks + gfs2_rg_blocks(ip, blks) + in ea_alloc_skeleton()
801 unsigned int blks = 1; in ea_init() local
810 blks += DIV_ROUND_UP(er.er_data_len, jbsize); in ea_init()
812 return ea_alloc_skeleton(ip, &er, blks, ea_init_i, NULL); in ea_init()
[all …]
Dlog.h66 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);
Dlops.c537 unsigned int blks = be32_to_cpu(ld->ld_data1); in buf_lo_scan_elements() local
547 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in buf_lo_scan_elements()
690 unsigned int blks = be32_to_cpu(ld->ld_length); in revoke_lo_scan_elements() local
703 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in revoke_lo_scan_elements()
774 unsigned int blks = be32_to_cpu(ld->ld_data1); in databuf_lo_scan_elements() local
784 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in databuf_lo_scan_elements()
Dbmap.c459 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()
Dfile.c336 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.1.27/drivers/scsi/fnic/
Dvnic_wq.c32 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()
Dvnic_rq.c32 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.1.27/drivers/net/ethernet/cisco/enic/
Dvnic_wq.c34 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()
42 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
Dvnic_rq.c34 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()
42 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
/linux-4.1.27/fs/ext2/
Dinode.c358 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, in ext2_blks_to_allocate() argument
369 if (blks < blocks_to_boundary + 1) in ext2_blks_to_allocate()
370 count += blks; in ext2_blks_to_allocate()
377 while (count < blks && count <= blocks_to_boundary in ext2_blks_to_allocate()
395 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument
412 target = blks + indirect_blks; in ext2_alloc_blocks()
473 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument
485 *blks, new_blocks, &err); in ext2_alloc_branch()
530 *blks = num; in ext2_alloc_branch()
555 long block, Indirect *where, int num, int blks) in ext2_splice_branch() argument
[all …]
/linux-4.1.27/fs/squashfs/
Dfile.c338 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.1.27/arch/powerpc/lib/
Drheap.c50 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.1.27/fs/f2fs/
Df2fs.h1733 #define stat_inc_tot_blk_count(si, blks) \ argument
1734 (si->tot_blks += (blks))
1736 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ argument
1739 stat_inc_tot_blk_count(si, blks); \
1740 si->data_blks += (blks); \
1741 si->bg_data_blks += (gc_type == BG_GC) ? (blks) : 0; \
1744 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ argument
1747 stat_inc_tot_blk_count(si, blks); \
1748 si->node_blks += (blks); \
1749 si->bg_node_blks += (gc_type == BG_GC) ? (blks) : 0; \
[all …]
/linux-4.1.27/include/crypto/
Dxts.h18 void (*crypt_fn)(void *ctx, u8 *blks, unsigned int nbytes);
Dlrw.h36 void (*crypt_fn)(void *ctx, u8 *blks, unsigned int nbytes);
/linux-4.1.27/drivers/scsi/
Dst.c708 int transfer, blks; in st_flush_write_buffer() local
727 blks = transfer / STp->block_size; in st_flush_write_buffer()
728 cmd[2] = blks >> 16; in st_flush_write_buffer()
729 cmd[3] = blks >> 8; in st_flush_write_buffer()
730 cmd[4] = blks; in st_flush_write_buffer()
751 STps->drv_block += blks; in st_flush_write_buffer()
760 STps->drv_block += blks; in st_flush_write_buffer()
1569 ssize_t i, do_count, blks, transfer; in st_write() local
1707 blks = transfer = do_count; in st_write()
1710 blks = STbp->buffer_bytes; in st_write()
[all …]
Dosst.c3054 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.1.27/arch/tile/include/gxio/
Dmpipe.h1584 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.1.27/fs/ufs/
Dsuper.c523 unsigned size, blks, i; in ufs_read_cylinder_structures() local
532 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_read_cylinder_structures()
537 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_read_cylinder_structures()
539 if (i + uspi->s_fpb > blks) in ufs_read_cylinder_structures()
540 size = (blks - i) * uspi->s_fsize; in ufs_read_cylinder_structures()
653 unsigned blks, size, i; in ufs_put_super_internal() local
660 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_put_super_internal()
662 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_put_super_internal()
664 if (i + uspi->s_fpb > blks) in ufs_put_super_internal()
665 size = (blks - i) * uspi->s_fsize; in ufs_put_super_internal()
Dufs_fs.h262 #define ufs_blkstofrags(blks) ((blks) << uspi->s_fpbshift) argument
/linux-4.1.27/fs/ext3/
Dinode.c535 static int ext3_blks_to_allocate(Indirect *branch, int k, unsigned long blks, in ext3_blks_to_allocate() argument
546 if (blks < blocks_to_boundary + 1) in ext3_blks_to_allocate()
547 count += blks; in ext3_blks_to_allocate()
554 while (count < blks && count <= blocks_to_boundary && in ext3_blks_to_allocate()
576 ext3_fsblk_t goal, int indirect_blks, int blks, in ext3_alloc_blocks() argument
593 target = blks + indirect_blks; in ext3_alloc_blocks()
654 int indirect_blks, int *blks, ext3_fsblk_t goal, in ext3_alloc_branch() argument
666 *blks, new_blocks, &err); in ext3_alloc_branch()
718 *blks = num; in ext3_alloc_branch()
748 long block, Indirect *where, int num, int blks) in ext3_splice_branch() argument
[all …]
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dhw_ops.h39 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()
Dwlcore.h63 u32 blks, u32 spare_blks);
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-dpi-defs.h515 uint64_t blks:4; member
517 uint64_t blks:4;
529 uint64_t blks:4; member
531 uint64_t blks:4;
/linux-4.1.27/arch/x86/crypto/
Daesni-intel_glue.c558 static void lrw_xts_encrypt_callback(void *ctx, u8 *blks, unsigned int nbytes) in lrw_xts_encrypt_callback() argument
560 aesni_ecb_enc(ctx, blks, blks, nbytes); in lrw_xts_encrypt_callback()
563 static void lrw_xts_decrypt_callback(void *ctx, u8 *blks, unsigned int nbytes) in lrw_xts_decrypt_callback() argument
565 aesni_ecb_dec(ctx, blks, blks, nbytes); in lrw_xts_decrypt_callback()
/linux-4.1.27/fs/ext4/
Dindirect.c268 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument
279 if (blks < blocks_to_boundary + 1) in ext4_blks_to_allocate()
280 count += blks; in ext4_blks_to_allocate()
287 while (count < blks && count <= blocks_to_boundary && in ext4_blks_to_allocate()
Dext4.h260 #define EXT4_NUM_B2C(sbi, blks) (((blks) + (sbi)->s_cluster_ratio - 1) >> \ argument
Dsuper.c3375 int blks; in ext4_calculate_overhead() local
3377 blks = count_overhead(sb, i, buf); in ext4_calculate_overhead()
3378 overhead += blks; in ext4_calculate_overhead()
3379 if (blks) in ext4_calculate_overhead()
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_bmap_btree.c44 xfs_filblks_t blks, in xfs_extent_state() argument
48 ASSERT(blks != 0); /* saved for DMIG */ in xfs_extent_state()
Dxfs_bmap.c1110 int blks; /* space reservation */ in xfs_bmap_add_attrfork() local
1122 blks = XFS_ADDAFORK_SPACE_RES(mp); in xfs_bmap_add_attrfork()
1125 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.1.27/drivers/net/wireless/ti/wl12xx/
Dmain.c1311 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.1.27/drivers/net/wireless/ti/wl18xx/
Dmain.c1046 u32 blks, u32 spare_blks) in wl18xx_set_tx_desc_blocks() argument
1048 desc->wl18xx_mem.total_mem_blocks = blks; in wl18xx_set_tx_desc_blocks()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dcnic.c1184 int total_mem, blks, i; in cnic_alloc_bnx2x_context() local
1187 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context()
1189 blks++; in cnic_alloc_bnx2x_context()
1191 if (blks > cp->ethdev->ctx_tbl_len) in cnic_alloc_bnx2x_context()
1194 cp->ctx_arr = kcalloc(blks, sizeof(struct cnic_ctx), GFP_KERNEL); in cnic_alloc_bnx2x_context()
1198 cp->ctx_blks = blks; in cnic_alloc_bnx2x_context()
1207 for (i = 0; i < blks; i++) { in cnic_alloc_bnx2x_context()
/linux-4.1.27/fs/ocfs2/
Dxattr.c333 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()
4183 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_cp_xattr_block_to_bucket() local
4192 char *target = bucket_block(bucket, blks - 1); in ocfs2_cp_xattr_block_to_bucket()
4198 for (i = 0; i < blks; i++) in ocfs2_cp_xattr_block_to_bucket()