Home
last modified time | relevance | path

Searched refs:blks (Results 1 – 25 of 31) 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[depth + 1] = find_free_dqentry(info, dquot, &ret); in do_insert_tree()
[all …]
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_resc.h82 u32 blks = total_ent / ent_per_blk; in bnge_adjust_pow_two() local
84 if (blks == 0 || blks == 1) in bnge_adjust_pow_two()
85 return ++blks; in bnge_adjust_pow_two()
87 if (!is_power_of_2(blks)) in bnge_adjust_pow_two()
88 blks = roundup_pow_of_two(blks); in bnge_adjust_pow_two()
90 return blks; in bnge_adjust_pow_two()
/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()
1691 jack->iJack = map->ep->blks[map->block].string_id; in append_midi1_in_jack()
[all …]
H A Du_midi2.h63 struct f_midi2_block_opts *blks[SNDRV_UMP_MAX_BLOCKS]; member
/linux/fs/ext2/
H A Dinode.c361 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()
400 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument
417 target = blks + indirect_blks; in ext2_alloc_blocks()
480 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument
492 *blks, new_blocks, &err); in ext2_alloc_branch()
537 *blks = num; in ext2_alloc_branch()
562 long block, Indirect *where, int num, int blks) in ext2_splice_branch() argument
[all …]
/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/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/drivers/scsi/
H A Dst.c778 int transfer, blks; in st_flush_write_buffer() local
797 blks = transfer / STp->block_size; in st_flush_write_buffer()
798 cmd[2] = blks >> 16; in st_flush_write_buffer()
799 cmd[3] = blks >> 8; in st_flush_write_buffer()
800 cmd[4] = blks; in st_flush_write_buffer()
821 STps->drv_block += blks; in st_flush_write_buffer()
830 STps->drv_block += blks; in st_flush_write_buffer()
1651 ssize_t i, do_count, blks, transfer; in st_write() local
1789 blks = transfer = do_count; in st_write()
1792 blks = STbp->buffer_bytes; in st_write()
[all …]
/linux/fs/squashfs/
H A Dfile.c331 long long blks; in read_blocklist_ptrs() local
348 blks = read_indexes(inode->i_sb, index - res, start, offset); in read_blocklist_ptrs()
349 if (blks < 0) in read_blocklist_ptrs()
350 return (int) blks; in read_blocklist_ptrs()
352 *block += blks; in read_blocklist_ptrs()
/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/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()
H A Dwlcore.h52 u32 blks, u32 spare_blks);
/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/fs/iomap/
H A Dbuffered-io.c106 unsigned int blks = i_blocks_per_folio(inode, folio); in ifs_next_dirty_block() local
108 return find_next_bit(ifs->state, blks + end_blk + 1, in ifs_next_dirty_block()
109 blks + start_blk) - blks; in ifs_next_dirty_block()
121 unsigned int blks = i_blocks_per_folio(inode, folio); in ifs_next_clean_block() local
123 return find_next_zero_bit(ifs->state, blks + end_blk + 1, in ifs_next_clean_block()
124 blks + start_blk) - blks; in ifs_next_clean_block()
/linux/fs/ext4/
H A Dindirect.c277 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument
288 if (blks < blocks_to_boundary + 1) in ext4_blks_to_allocate()
289 count += blks; in ext4_blks_to_allocate()
296 while (count < blks && count <= blocks_to_boundary && in ext4_blks_to_allocate()
/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.h1962 #define BLKS_TO_SEGS(sbi, blks) \ argument
1963 ((blks) >> (sbi)->log_blocks_per_seg)
4312 #define stat_inc_tot_blk_count(si, blks) \ argument
4313 ((si)->tot_blks += (blks))
4315 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ argument
4318 stat_inc_tot_blk_count(si, blks); \
4319 si->data_blks += (blks); \
4320 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \
4323 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ argument
4326 stat_inc_tot_blk_count(si, blks); \
[all …]
H A Ddebug.c270 int blks = get_seg_entry(sbi, i)->valid_blocks; in update_general_status() local
273 if (!blks) in update_general_status()
276 if (blks == BLKS_PER_SEG(sbi)) in update_general_status()
280 si->valid_blks[type] += blks; in update_general_status()
/linux/fs/xfs/libxfs/
H A Dxfs_attr.c1004 unsigned int blks; /* space reservation */ in xfs_attr_add_fork() local
1010 blks = XFS_ADDAFORK_SPACE_RES(mp); in xfs_attr_add_fork()
1012 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_addafork, blks, 0, in xfs_attr_add_fork()
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_rm.c899 enum dpu_hw_blk_type type, struct dpu_hw_blk **blks, int blks_size) in dpu_rm_get_assigned_resources() argument
977 blks[num_blks++] = hw_blks[i]; in dpu_rm_get_assigned_resources()

12