| /linux/fs/quota/ |
| H A D | quota_tree.c | 336 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 D | bnge_resc.h | 82 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 D | dabtree.c | 504 struct xfs_da_state_blk *blks; in xchk_da_btree() local 539 blks = ds->state->path.blk; in xchk_da_btree() 548 if (blks[level].bp == NULL) in xchk_da_btree() 551 blks[level].index = 0; in xchk_da_btree() 554 if (blks[level].magic != XFS_DA_NODE_MAGIC) { in xchk_da_btree() 556 if (blks[level].index >= ds->maxrecs[level]) { in xchk_da_btree() 558 blks[level - 1].index++; in xchk_da_btree() 572 blks[level].index++; in xchk_da_btree() 578 if (blks[level].index >= ds->maxrecs[level]) { in xchk_da_btree() 580 blks[level - 1].index++; in xchk_da_btree() [all …]
|
| /linux/fs/gfs2/ |
| H A D | xattr.c | 245 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 D | lops.c | 781 unsigned int blks = be32_to_cpu(ld->ld_data1); in buf_lo_scan_elements() local 791 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in buf_lo_scan_elements() 921 unsigned int blks = be32_to_cpu(ld->ld_length); in revoke_lo_scan_elements() local 934 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in revoke_lo_scan_elements() 1005 unsigned int blks = be32_to_cpu(ld->ld_data1); in databuf_lo_scan_elements() local 1015 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in databuf_lo_scan_elements()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_midi2.c | 83 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() 1377 b = &ep->blks[blk].info; in assign_block_descriptors() 1381 desc->bGrpTrmBlkID = ep->blks[blk].gtb_id; in assign_block_descriptors() 1385 desc->iBlockItem = ep->blks[blk].string_id; in assign_block_descriptors() 1579 const struct f_midi2_block_info *b = &ep->blks[blk].info; in f_midi2_create_card() 1585 &ep->blks[blk].fb); in f_midi2_create_card() 1588 fb = ep->blks[blk].fb; in f_midi2_create_card() 1690 jack->iJack = map->ep->blks[map->block].string_id; in append_midi1_in_jack() [all …]
|
| H A D | u_midi2.h | 63 struct f_midi2_block_opts *blks[SNDRV_UMP_MAX_BLOCKS]; member
|
| /linux/fs/ext2/ |
| H A D | inode.c | 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() 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 D | vnic_rq.c | 19 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 D | vnic_wq.c | 39 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 D | vnic_wq.c | 22 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 D | vnic_rq.c | 22 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 D | vnic_wq.c | 33 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 D | rheap.c | 50 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 D | st.c | 779 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 D | file.c | 332 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/arch/mips/include/asm/octeon/ |
| H A D | cvmx-dpi-defs.h | 439 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 D | hw_ops.h | 25 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/net/tipc/ |
| H A D | group.h | 72 void tipc_group_update_rcv_win(struct tipc_group *grp, int blks, u32 node,
|
| H A D | group.c | 505 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 D | socket.c | 910 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 D | buffered-io.c | 107 unsigned int blks = i_blocks_per_folio(inode, folio); in ifs_next_dirty_block() local 109 return find_next_bit(ifs->state, blks + end_blk + 1, in ifs_next_dirty_block() 110 blks + start_blk) - blks; in ifs_next_dirty_block() 122 unsigned int blks = i_blocks_per_folio(inode, folio); in ifs_next_clean_block() local 124 return find_next_zero_bit(ifs->state, blks + end_blk + 1, in ifs_next_clean_block() 125 blks + start_blk) - blks; in ifs_next_clean_block()
|
| /linux/fs/ext4/ |
| H A D | indirect.c | 277 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 D | super.c | 459 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 D | main.c | 1296 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()
|