Home
last modified time | relevance | path

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

12

/linux/fs/quota/
H A Dquota_tree.c336 uint *blks, int depth) in do_insert_tree() argument
346 if (!blks[depth]) { in do_insert_tree()
351 if (ret == blks[i]) { in do_insert_tree()
358 blks[depth] = ret; in do_insert_tree()
362 ret = read_blk(info, blks[depth], buf); in do_insert_tree()
365 "block %u", blks[depth]); in do_insert_tree()
379 if (newblk == blks[i]) { in do_insert_tree()
382 blks[depth], in do_insert_tree()
388 blks[depth + 1] = newblk; in do_insert_tree()
400 blks[dept in do_insert_tree()
420 uint blks[MAX_QTREE_DEPTH] = { QT_TREEOFF }; dq_insert_tree() local
545 remove_tree(struct qtree_mem_dqinfo * info,struct dquot * dquot,uint * blks,int depth) remove_tree() argument
609 uint blks[MAX_QTREE_DEPTH] = { QT_TREEOFF }; qtree_delete_dquot() local
661 find_tree_dqentry(struct qtree_mem_dqinfo * info,struct dquot * dquot,uint * blks,int depth) find_tree_dqentry() argument
710 uint blks[MAX_QTREE_DEPTH] = { QT_TREEOFF }; find_dqentry() local
[all...]
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_resc.h79 u32 blks = total_ent / ent_per_blk; in bnge_adjust_pow_two() local
81 if (blks == 0 || blks == 1) in bnge_adjust_pow_two()
82 return ++blks; in bnge_adjust_pow_two()
84 if (!is_power_of_2(blks)) in bnge_adjust_pow_two()
85 blks = roundup_pow_of_two(blks); in bnge_adjust_pow_two()
87 return blks; in bnge_adjust_pow_two()
/linux/fs/xfs/scrub/
H A Ddabtree.c502 struct xfs_da_state_blk *blks; in xchk_da_btree() local
537 blks = ds->state->path.blk; in xchk_da_btree()
546 if (blks[level].bp == NULL) in xchk_da_btree()
549 blks[level].index = 0; in xchk_da_btree()
552 if (blks[level].magic != XFS_DA_NODE_MAGIC) { in xchk_da_btree()
554 if (blks[level].index >= ds->maxrecs[level]) { in xchk_da_btree()
556 blks[level - 1].index++; in xchk_da_btree()
570 blks[level].index++; in xchk_da_btree()
576 if (blks[level].index >= ds->maxrecs[level]) { in xchk_da_btree()
578 blks[leve in xchk_da_btree()
[all...]
/linux/fs/gfs2/
H A Dlog.c51 unsigned int blks; in gfs2_struct2blk() local
55 blks = 1; in gfs2_struct2blk()
61 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk()
64 return blks; in gfs2_struct2blk()
466 * @blks: The number of blocks
470 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument
472 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release()
473 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release()
483 * @blks: The number of blocks to reserve
489 static bool __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks, in __gfs2_log_try_reserve() argument
525 __gfs2_log_reserve(struct gfs2_sbd * sdp,unsigned int blks,unsigned int taboo_blks) __gfs2_log_reserve() argument
565 unsigned int blks = tr->tr_reserved; gfs2_log_try_reserve() local
596 unsigned int blks = tr->tr_reserved; gfs2_log_reserve() local
[all...]
H A Dxattr.c245 unsigned int blks = 0; in ea_dealloc_unstuffed() local
259 blks++; in ea_dealloc_unstuffed()
263 if (!blks) in ea_dealloc_unstuffed()
278 RES_EATTR + RES_STATFS + RES_QUOTA, blks); in ea_dealloc_unstuffed()
742 unsigned int blks, in ea_alloc_skeleton() argument
745 struct gfs2_alloc_parms ap = { .target = blks }; in ea_alloc_skeleton()
761 blks + gfs2_rg_blocks(ip, blks) + in ea_alloc_skeleton()
810 unsigned int blks = 1; in ea_init() local
819 blks in ea_init()
955 unsigned int blks; ea_set_simple() local
1050 unsigned int blks = 2; ea_set_i() local
1276 unsigned int blks = 0; ea_dealloc_indirect() local
[all...]
H A Dlops.c782 unsigned int blks = be32_to_cpu(ld->ld_data1); in buf_lo_scan_elements() local
792 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in buf_lo_scan_elements()
922 unsigned int blks = be32_to_cpu(ld->ld_length); in revoke_lo_scan_elements() local
935 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in revoke_lo_scan_elements()
1006 unsigned int blks = be32_to_cpu(ld->ld_data1); in databuf_lo_scan_elements() local
1016 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in databuf_lo_scan_elements()
H A Dlog.h67 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks);
/linux/drivers/scsi/fnic/
H A Dvnic_rq.c19 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count); in vnic_rq_alloc_bufs() local
21 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
29 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
H A Dvnic_wq.c39 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local
41 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
49 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
/linux/drivers/usb/gadget/function/
H A Df_midi2.c83 struct f_midi2_block blks[SNDRV_UMP_MAX_BLOCKS]; /* UMP FBs */ member
581 struct f_midi2_block_info *b = &ep->blks[blk].info; in reply_ump_stream_fb_info()
602 reply_ump_stream_string(ep, ump_fb_name(&ep->blks[blk].info), in reply_ump_stream_fb_name()
1378 b = &ep->blks[blk].info; in assign_block_descriptors()
1382 desc->bGrpTrmBlkID = ep->blks[blk].gtb_id; in assign_block_descriptors()
1386 desc->iBlockItem = ep->blks[blk].string_id; in assign_block_descriptors()
1580 const struct f_midi2_block_info *b = &ep->blks[blk].info; in f_midi2_create_card()
1586 &ep->blks[blk].fb); in f_midi2_create_card()
1589 fb = ep->blks[blk].fb; in f_midi2_create_card()
1690 jack->iJack = map->ep->blks[ma in append_midi1_in_jack()
[all...]
/linux/fs/ext2/
H A Dinode.c355 * @blks: number of data blocks to be mapped.
361 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, in ext2_blks_to_allocate() argument
372 if (blks < blocks_to_boundary + 1) in ext2_blks_to_allocate()
373 count += blks; in ext2_blks_to_allocate()
380 while (count < blks && count <= blocks_to_boundary in ext2_blks_to_allocate()
392 * @blks: The number of blocks need to allocate for direct blocks.
400 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument
417 target = blks + indirect_blks; in ext2_alloc_blocks()
456 * @blks: number of allocated direct blocks
480 int indirect_blks, int *blks, ext2_fsblk_ in ext2_alloc_branch() argument
562 ext2_splice_branch(struct inode * inode,long block,Indirect * where,int num,int blks) ext2_splice_branch() argument
[all...]
/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_wq.c22 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local
24 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
30 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
H A Dvnic_rq.c22 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count); in vnic_rq_alloc_bufs() local
24 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
30 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
/linux/drivers/scsi/snic/
H A Dvnic_wq.c33 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local
35 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
44 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
/linux/arch/powerpc/lib/
H A 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/fs/squashfs/
H A Dfile.c330 long long blks; in read_blocklist() local
349 blks = read_indexes(inode->i_sb, index - res, &start, &offset); in read_blocklist()
350 if (blks < 0) in read_blocklist()
351 return (int) blks; in read_blocklist()
352 *block += blks; in read_blocklist()
/linux/drivers/scsi/
H A Dst.c780 int transfer, blks; in st_flush_write_buffer()
799 blks = transfer / STp->block_size; in st_flush_write_buffer()
800 cmd[2] = blks >> 16; in st_flush_write_buffer()
801 cmd[3] = blks >> 8; in st_flush_write_buffer()
802 cmd[4] = blks; in st_flush_write_buffer()
823 STps->drv_block += blks; in st_flush_write_buffer()
832 STps->drv_block += blks; in st_flush_write_buffer()
1657 ssize_t i, do_count, blks, transfer; in st_write()
1795 blks = transfer = do_count; in st_write()
1798 blks in st_write()
778 int transfer, blks; st_flush_write_buffer() local
1651 ssize_t i, do_count, blks, transfer; st_write() local
1930 int transfer, blks, bytes; read_tape() local
[all...]
/linux/net/tipc/
H A Dgroup.h72 void tipc_group_update_rcv_win(struct tipc_group *grp, int blks, u32 node,
H A Dgroup.c505 int mtyp, blks; in tipc_group_filter_msg() local
531 blks = msg_blocks(hdr); in tipc_group_filter_msg()
581 tipc_group_update_rcv_win(grp, blks, node, port, xmitq); in tipc_group_filter_msg()
588 void tipc_group_update_rcv_win(struct tipc_group *grp, int blks, u32 node, in tipc_group_update_rcv_win() argument
601 m->advertised -= blks; in tipc_group_update_rcv_win()
/linux/drivers/net/wireless/ti/wlcore/
H A Dhw_ops.h25 u32 blks, u32 spare_blks) in wlcore_hw_set_tx_desc_blocks() argument
30 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-dpi-defs.h439 uint64_t blks:4; member
441 uint64_t blks:4;
452 uint64_t blks:4; member
454 uint64_t blks:4;
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_rm.h93 enum dpu_hw_blk_type type, struct dpu_hw_blk **blks, int blks_size);
/linux/drivers/nvdimm/
H A Dpmem.c88 static void pmem_clear_bb(struct pmem_device *pmem, sector_t sector, long blks) in pmem_clear_bb() argument
90 if (blks == 0) in pmem_clear_bb()
92 badblocks_clear(&pmem->bb, sector, blks); in pmem_clear_bb()
/linux/fs/ufs/
H A Dsuper.c459 unsigned size, blks, i; in ufs_read_cylinder_structures() local
468 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_read_cylinder_structures()
473 for (i = 0; i < blks; i++) { in ufs_read_cylinder_structures()
590 unsigned blks, size, i; in ufs_put_super_internal() local
597 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_put_super_internal()
599 for (i = 0; i < blks; i++, space += uspi->s_fsize) { in ufs_put_super_internal()
/linux/fs/f2fs/
H A Df2fs.h1883 #define BLKS_TO_SEGS(sbi, blks) \ argument
1884 ((blks) >> (sbi)->log_blocks_per_seg)
4241 #define stat_inc_tot_blk_count(si, blks) \ argument
4242 ((si)->tot_blks += (blks))
4244 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ argument
4247 stat_inc_tot_blk_count(si, blks); \
4248 si->data_blks += (blks); \
4249 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \
4252 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ argument
4255 stat_inc_tot_blk_count(si, blks); \
4298 stat_inc_tot_blk_count(si,blks) global() argument
4299 stat_inc_data_blk_count(sbi,blks,gc_type) global() argument
4300 stat_inc_node_blk_count(sbi,blks,gc_type) global() argument
[all...]

12