/linux-master/fs/ext4/ |
H A D | super.c | 4222 int blks; local 4224 blks = count_overhead(sb, i, buf); 4225 overhead += blks; 4226 if (blks)
|
H A D | ext4.h | 372 /* Translate # of blks to # of clusters */ 373 #define EXT4_NUM_B2C(sbi, blks) (((blks) + (sbi)->s_cluster_ratio - 1) >> \ 1906 EXT4_STATE_DA_ALLOC_CLOSE, /* Alloc DA blks on close */
|
H A D | indirect.c | 271 * @blks: number of data blocks to be mapped. 277 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, argument 288 if (blks < blocks_to_boundary + 1) 289 count += blks; 296 while (count < blks && count <= blocks_to_boundary &&
|
/linux-master/drivers/scsi/ |
H A D | st.c | 770 int transfer, blks; 789 blks = transfer / STp->block_size; 790 cmd[2] = blks >> 16; 791 cmd[3] = blks >> 8; 792 cmd[4] = blks; 813 STps->drv_block += blks; 822 STps->drv_block += blks; 1631 ssize_t i, do_count, blks, transfer; 1769 blks = transfer = do_count; 1772 blks 768 int transfer, blks; local 1625 ssize_t i, do_count, blks, transfer; local 1904 int transfer, blks, bytes; local [all...] |
/linux-master/fs/gfs2/ |
H A D | bmap.c | 668 unsigned n, i, blks, alloced = 0, iblks = 0, branch_start = 0; local 704 blks = dblks + iblks; 707 n = blks - alloced;
|
H A D | file.c | 371 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; local 372 int hint = min_t(size_t, INT_MAX, blks);
|
H A D | log.c | 50 unsigned int blks; local 54 blks = 1; 60 blks += DIV_ROUND_UP(nstruct - first, second); 63 return blks; 469 * @blks: The number of blocks 473 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) argument 475 atomic_add(blks, &sdp->sd_log_blks_free); 476 trace_gfs2_log_blocks(sdp, blks); 486 * @blks: The number of blocks to reserve 492 static bool __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks, argument 528 __gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks, unsigned int taboo_blks) argument 568 unsigned int blks = tr->tr_reserved; local 599 unsigned int blks = tr->tr_reserved; local [all...] |
/linux-master/drivers/net/ethernet/broadcom/ |
H A D | cnic.c | 1200 int total_mem, blks, i; local 1203 blks = total_mem / ctx_blk_size; 1205 blks++; 1207 if (blks > cp->ethdev->ctx_tbl_len) 1210 cp->ctx_arr = kcalloc(blks, sizeof(struct cnic_ctx), GFP_KERNEL); 1214 cp->ctx_blks = blks; 1223 for (i = 0; i < blks; i++) {
|
/linux-master/fs/f2fs/ |
H A D | segment.c | 3632 unsigned int blks = FDEV(devidx).end_blk - blkaddr + 1; local 3644 if (blkcnt <= blks) 3646 blkcnt -= blks; 3647 blkaddr += blks;
|
H A D | gc.c | 2101 long long blks = SEGS_TO_BLKS(sbi, segs); local 2110 F2FS_CKPT(sbi)->user_block_count = cpu_to_le64(user_block_count + blks); 2118 (long long)FDEV(last_dev).end_blk + blks; 2121 div_u64(blks, sbi->blocks_per_blkz);
|
H A D | f2fs.h | 1821 #define BLKS_TO_SEGS(sbi, blks) \ 1822 ((blks) >> (sbi)->log_blocks_per_seg) 4065 #define stat_inc_tot_blk_count(si, blks) \ 4066 ((si)->tot_blks += (blks)) 4068 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ 4071 stat_inc_tot_blk_count(si, blks); \ 4072 si->data_blks += (blks); \ 4073 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \ 4076 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ 4079 stat_inc_tot_blk_count(si, blks); \ [all...] |
H A D | debug.c | 204 int blks = get_seg_entry(sbi, i)->valid_blocks; local 207 if (!blks) 210 if (blks == BLKS_PER_SEG(sbi)) 214 si->valid_blks[type] += blks;
|
H A D | data.c | 1792 static inline u64 blks_to_bytes(struct inode *inode, u64 blks) argument 1794 return (blks << inode->i_blkbits);
|
/linux-master/sound/soc/codecs/ |
H A D | tas2781-fmwlib.c | 249 "%s: Out of boundary: i = %d blks = %u!\n", 2062 unsigned int blks; local 2078 for (blks = 0; blks < im->nr_blk; blks++) { 2079 block = &(im->dev_blks[blks]);
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 1033 int rsvd) /* xact may use reserved blks */ 1037 int blks; /* space reservation */ local 1047 blks = XFS_ADDAFORK_SPACE_RES(mp); 1049 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_addafork, blks, 0,
|
/linux-master/fs/quota/ |
H A D | quota_tree.c | 336 uint *blks, int depth) 346 if (!blks[depth]) { 351 if (ret == blks[i]) { 358 blks[depth] = ret; 362 ret = read_blk(info, blks[depth], buf); 365 "block %u", blks[depth]); 379 if (newblk == blks[i]) { 382 blks[depth], 388 blks[depth + 1] = newblk; 400 blks[dept 335 do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *blks, int depth) argument 420 uint blks[MAX_QTREE_DEPTH] = { QT_TREEOFF }; local 544 remove_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *blks, int depth) argument 609 uint blks[MAX_QTREE_DEPTH] = { QT_TREEOFF }; local 660 find_tree_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *blks, int depth) argument 710 uint blks[MAX_QTREE_DEPTH] = { QT_TREEOFF }; local [all...] |
/linux-master/fs/ext2/ |
H A D | inode.c | 355 * @blks: number of data blocks to be mapped. 361 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, argument 372 if (blks < blocks_to_boundary + 1) 373 count += blks; 380 while (count < blks && count <= blocks_to_boundary 392 * @blks: The number of blocks need to allocate for direct blocks. 400 ext2_fsblk_t goal, int indirect_blks, int blks, 417 target = blks + indirect_blks; 456 * @blks: number of allocated direct blocks 480 int indirect_blks, int *blks, ext2_fsblk_ 399 ext2_alloc_blocks(struct inode *inode, ext2_fsblk_t goal, int indirect_blks, int blks, ext2_fsblk_t new_blocks[4], int *err) argument 479 ext2_alloc_branch(struct inode *inode, int indirect_blks, int *blks, ext2_fsblk_t goal, int *offsets, Indirect *branch) argument 561 ext2_splice_branch(struct inode *inode, long block, Indirect *where, int num, int blks) argument [all...] |
/linux-master/drivers/nvdimm/ |
H A D | pmem.c | 89 static void pmem_clear_bb(struct pmem_device *pmem, sector_t sector, long blks) argument 91 if (blks == 0) 93 badblocks_clear(&pmem->bb, sector, blks);
|
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_rm.c | 699 enum dpu_hw_blk_type type, struct dpu_hw_blk **blks, int blks_size) 756 blks[num_blks++] = hw_blks[i]; 697 dpu_rm_get_assigned_resources(struct dpu_rm *rm, struct dpu_global_state *global_state, uint32_t enc_id, enum dpu_hw_blk_type type, struct dpu_hw_blk **blks, int blks_size) argument
|
H A D | dpu_rm.h | 90 enum dpu_hw_blk_type type, struct dpu_hw_blk **blks, int blks_size);
|
/linux-master/net/tipc/ |
H A D | socket.c | 912 int blks = tsk_blocks(GROUP_H_SIZE + dlen); local 939 tipc_group_update_member(mb, blks); 962 int blks = tsk_blocks(GROUP_H_SIZE + dlen); local 978 !tipc_group_cong(tsk->group, node, port, blks, 1008 int blks = tsk_blocks(GROUP_H_SIZE + dlen); local 1034 cong = tipc_group_cong(tsk->group, node, port, blks, 1056 blks, &mbr)); 1093 int blks = tsk_blocks(MCAST_H_SIZE + dlen); local 1102 !tipc_group_bc_cong(tsk->group, blks)); 1138 tipc_group_update_bc_members(tsk->group, blks, ac [all...] |
/linux-master/fs/ufs/ |
H A D | super.c | 510 unsigned size, blks, i; local 519 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; 524 for (i = 0; i < blks; i += uspi->s_fpb) { 526 if (i + uspi->s_fpb > blks) 527 size = (blks - i) * uspi->s_fsize; 650 unsigned blks, size, i; local 657 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; 659 for (i = 0; i < blks; i += uspi->s_fpb) { 661 if (i + uspi->s_fpb > blks) 662 size = (blks [all...] |
/linux-master/drivers/net/wireless/ti/wl18xx/ |
H A D | main.c | 1074 u32 blks, u32 spare_blks) 1076 desc->wl18xx_mem.total_mem_blocks = blks; 1073 wl18xx_set_tx_desc_blocks(struct wl1271 *wl, struct wl1271_tx_hw_descr *desc, u32 blks, u32 spare_blks) argument
|
/linux-master/drivers/net/wireless/ti/wl12xx/ |
H A D | main.c | 1296 u32 blks, u32 spare_blks) 1299 desc->wl128x_mem.total_mem_blocks = blks; 1302 desc->wl127x_mem.total_mem_blocks = blks; 1295 wl12xx_set_tx_desc_blocks(struct wl1271 *wl, struct wl1271_tx_hw_descr *desc, u32 blks, u32 spare_blks) argument
|
/linux-master/fs/squashfs/ |
H A D | file.c | 330 long long blks; local 349 blks = read_indexes(inode->i_sb, index - res, &start, &offset); 350 if (blks < 0) 351 return (int) blks; 352 *block += blks;
|