Home
last modified time | relevance | path

Searched refs:blks (Results 1 – 25 of 26) 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/fs/xfs/scrub/
H A Ddabtree.c509 struct xfs_da_state_blk *blks; in xchk_da_btree() local
544 blks = ds->state->path.blk; in xchk_da_btree()
553 if (blks[level].bp == NULL) in xchk_da_btree()
556 blks[level].index = 0; in xchk_da_btree()
559 if (blks[level].magic != XFS_DA_NODE_MAGIC) { in xchk_da_btree()
561 if (blks[level].index >= ds->maxrecs[level]) { in xchk_da_btree()
563 blks[level - 1].index++; in xchk_da_btree()
577 blks[level].index++; in xchk_da_btree()
583 if (blks[level].index >= ds->maxrecs[level]) { in xchk_da_btree()
585 blks[level - 1].index++; in xchk_da_btree()
[all …]
/linux/fs/gfs2/
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 += DIV_ROUND_UP(er.er_data_len, jbsize); in ea_init()
821 return ea_alloc_skeleton(ip, &er, blks, ea_init_i, NULL); in ea_init()
[all …]
H A Dfile.c372 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; in gfs2_size_hint() local
373 int hint = min_t(size_t, INT_MAX, blks); in gfs2_size_hint()
/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/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.c779 int transfer, blks; in st_flush_write_buffer() local
798 blks = transfer / STp->block_size; in st_flush_write_buffer()
799 cmd[2] = blks >> 16; in st_flush_write_buffer()
800 cmd[3] = blks >> 8; in st_flush_write_buffer()
801 cmd[4] = blks; in st_flush_write_buffer()
822 STps->drv_block += blks; in st_flush_write_buffer()
831 STps->drv_block += blks; in st_flush_write_buffer()
1652 ssize_t i, do_count, blks, transfer; in st_write() local
1790 blks = transfer = do_count; in st_write()
1793 blks = STbp->buffer_bytes; in st_write()
[all …]
/linux/fs/squashfs/
H A Dfile.c332 long long blks; in read_blocklist_ptrs() local
349 blks = read_indexes(inode->i_sb, index - res, start, offset); in read_blocklist_ptrs()
350 if (blks < 0) in read_blocklist_ptrs()
351 return (int) blks; in read_blocklist_ptrs()
353 *block += blks; in read_blocklist_ptrs()
/linux/drivers/usb/gadget/function/
H A Du_midi2.h63 struct f_midi2_block_opts *blks[SNDRV_UMP_MAX_BLOCKS]; member
/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()
H A Dsocket.c910 int blks = tsk_blocks(GROUP_H_SIZE + dlen); in tipc_send_group_msg() local
937 tipc_group_update_member(mb, blks); in tipc_send_group_msg()
960 int blks = tsk_blocks(GROUP_H_SIZE + dlen); in tipc_send_group_unicast() local
976 !tipc_group_cong(tsk->group, node, port, blks, in tipc_send_group_unicast()
1006 int blks = tsk_blocks(GROUP_H_SIZE + dlen); in tipc_send_group_anycast() local
1031 cong = tipc_group_cong(tsk->group, node, port, blks, in tipc_send_group_anycast()
1053 blks, &mbr)); in tipc_send_group_anycast()
1090 int blks = tsk_blocks(MCAST_H_SIZE + dlen); in tipc_send_group_bcast() local
1099 !tipc_group_bc_cong(tsk->group, blks)); in tipc_send_group_bcast()
1135 tipc_group_update_bc_members(tsk->group, blks, ack); in tipc_send_group_bcast()
/linux/fs/iomap/
H A Dbuffered-io.c116 unsigned int blks = i_blocks_per_folio(inode, folio); in ifs_next_dirty_block() local
118 return find_next_bit(ifs->state, blks + end_blk + 1, in ifs_next_dirty_block()
119 blks + start_blk) - blks; in ifs_next_dirty_block()
131 unsigned int blks = i_blocks_per_folio(inode, folio); in ifs_next_clean_block() local
133 return find_next_zero_bit(ifs->state, blks + end_blk + 1, in ifs_next_clean_block()
134 blks + start_blk) - blks; in ifs_next_clean_block()
/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()
589 unsigned blks, size, i; in ufs_put_super_internal() local
596 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_put_super_internal()
598 for (i = 0; i < blks; i++, space += uspi->s_fsize) { in ufs_put_super_internal()
/linux/drivers/net/wireless/ti/wl12xx/
H A Dmain.c1296 u32 blks, u32 spare_blks) in wl12xx_set_tx_desc_blocks() argument
1299 desc->wl128x_mem.total_mem_blocks = blks; in wl12xx_set_tx_desc_blocks()
1302 desc->wl127x_mem.total_mem_blocks = blks; in wl12xx_set_tx_desc_blocks()
/linux/sound/soc/codecs/
H A Dtas2781-fmwlib.c2375 unsigned int blks; in tas2781_clear_calfirmware() local
2391 for (blks = 0; blks < im->nr_blk; blks++) { in tas2781_clear_calfirmware()
2392 block = &(im->dev_blks[blks]); in tas2781_clear_calfirmware()
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_rm.c897 enum dpu_hw_blk_type type, struct dpu_hw_blk **blks, int blks_size) in dpu_rm_get_assigned_resources() argument
975 blks[num_blks++] = hw_blks[i]; in dpu_rm_get_assigned_resources()
/linux/drivers/net/ethernet/broadcom/
H A Dcnic.c1201 int total_mem, blks, i; in cnic_alloc_bnx2x_context() local
1204 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context()
1206 blks++; in cnic_alloc_bnx2x_context()
1208 if (blks > cp->ethdev->ctx_tbl_len) in cnic_alloc_bnx2x_context()
1211 cp->ctx_arr = kzalloc_objs(struct cnic_ctx, blks); in cnic_alloc_bnx2x_context()
1215 cp->ctx_blks = blks; in cnic_alloc_bnx2x_context()
1224 for (i = 0; i < blks; i++) { in cnic_alloc_bnx2x_context()
/linux/fs/ext4/
H A Dsuper.c4258 int blks; in ext4_calculate_overhead() local
4260 blks = count_overhead(sb, i, buf); in ext4_calculate_overhead()
4261 overhead += blks; in ext4_calculate_overhead()
4262 if (blks) in ext4_calculate_overhead()

12