| /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) in bnge_adjust_pow_two() 87 return roundup_pow_of_two(blks + 1); in bnge_adjust_pow_two()
|
| /linux/fs/gfs2/ |
| H A D | log.c | 51 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() 462 * @blks: The number of blocks 466 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument 468 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release() 469 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release() 480 * @blks: The number of blocks to reserve 486 static bool __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks, in __gfs2_log_try_reserve() argument 522 __gfs2_log_reserve(struct gfs2_sbd * sdp,unsigned int blks,unsigned int taboo_blks) __gfs2_log_reserve() argument 562 unsigned int blks = tr->tr_reserved; gfs2_log_try_reserve() local 593 unsigned int blks = tr->tr_reserved; gfs2_log_reserve() local [all...] |
| H A D | xattr.c | 246 unsigned int blks = 0; in ea_dealloc_unstuffed() 260 blks++; in ea_dealloc_unstuffed() 264 if (!blks) in ea_dealloc_unstuffed() 279 RES_EATTR + RES_STATFS + RES_QUOTA, blks); in ea_dealloc_unstuffed() 747 unsigned int blks, in ea_alloc_skeleton() 750 struct gfs2_alloc_parms ap = { .target = blks }; in ea_alloc_skeleton() 766 blks + gfs2_rg_blocks(ip, blks) + in ea_alloc_skeleton() 815 unsigned int blks = 1; in ea_init() 824 blks 245 unsigned int blks = 0; ea_dealloc_unstuffed() local 742 ea_alloc_skeleton(struct gfs2_inode * ip,struct gfs2_ea_request * er,unsigned int blks,ea_skeleton_call_t skeleton_call,void * private) ea_alloc_skeleton() argument 810 unsigned int blks = 1; ea_init() local 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 D | lops.c | 784 unsigned int blks = be32_to_cpu(ld->ld_data1); in buf_lo_scan_elements() 794 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in buf_lo_scan_elements() 924 unsigned int blks = be32_to_cpu(ld->ld_length); in revoke_lo_scan_elements() 937 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in revoke_lo_scan_elements() 1007 unsigned int blks = be32_to_cpu(ld->ld_data1); in databuf_lo_scan_elements() local 1017 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in databuf_lo_scan_elements() 783 unsigned int blks = be32_to_cpu(ld->ld_data1); buf_lo_scan_elements() local 923 unsigned int blks = be32_to_cpu(ld->ld_length); revoke_lo_scan_elements() local
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_midi2.c | 83 struct f_midi2_block blks[SNDRV_UMP_MAX_BLOCKS]; /* UMP FBs */ member 195 kfree(ep->blks[blk].info.name); 606 struct f_midi2_block_info *b = &ep->blks[blk].info; 627 reply_ump_stream_string(ep, ump_fb_name(&ep->blks[blk].info), in process_ump_stream_msg() 1401 b = &ep->blks[blk].info; in assign_block_descriptors() 1405 desc->bGrpTrmBlkID = ep->blks[blk].gtb_id; in f_midi2_setup() 1409 desc->iBlockItem = ep->blks[blk].string_id; in f_midi2_setup() 1603 const struct f_midi2_block_info *b = &ep->blks[blk].info; in f_midi2_create_card() 1609 &ep->blks[blk].fb); in f_midi2_create_card() 1612 fb = ep->blks[bl in f_midi2_create_card() [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 | 354 * @blks: number of data blocks to be mapped. 360 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, in ext2_blks_to_allocate() 371 if (blks < blocks_to_boundary + 1) in ext2_blks_to_allocate() 372 count += blks; in ext2_blks_to_allocate() 379 while (count < blks && count <= blocks_to_boundary in ext2_blks_to_allocate() 391 * @blks: The number of blocks need to allocate for direct blocks. 399 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() 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() 359 ext2_blks_to_allocate(Indirect * branch,int k,unsigned long blks,int blocks_to_boundary) ext2_blks_to_allocate() argument 398 ext2_alloc_blocks(struct inode * inode,ext2_fsblk_t goal,int indirect_blks,int blks,ext2_fsblk_t new_blocks[4],int * err) ext2_alloc_blocks() argument 478 ext2_alloc_branch(struct inode * inode,int indirect_blks,int * blks,ext2_fsblk_t goal,int * offsets,Indirect * branch) ext2_alloc_branch() argument 560 ext2_splice_branch(struct inode * inode,long block,Indirect * where,int num,int blks) 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/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 | 786 int transfer, blks; in st_flush_write_buffer() 805 blks = transfer / STp->block_size; in st_flush_write_buffer() 806 cmd[2] = blks >> 16; in st_flush_write_buffer() 807 cmd[3] = blks >> 8; in st_flush_write_buffer() 808 cmd[4] = blks; in st_flush_write_buffer() 829 STps->drv_block += blks; in st_flush_write_buffer() 838 STps->drv_block += blks; in st_flush_write_buffer() 1663 ssize_t i, do_count, blks, transfer; in st_write() 1801 blks = transfer = do_count; in st_write() 1804 blks in st_write() 779 int transfer, blks; st_flush_write_buffer() local 1652 ssize_t i, do_count, blks, transfer; st_write() local 1931 int transfer, blks, bytes; read_tape() local [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 | 506 int mtyp, blks; in tipc_group_filter_msg() 532 blks = msg_blocks(hdr); in tipc_group_filter_msg() 582 tipc_group_update_rcv_win(grp, blks, node, port, xmitq); in tipc_group_filter_msg() 589 void tipc_group_update_rcv_win(struct tipc_group *grp, int blks, u32 node, in tipc_group_update_rcv_win() 602 m->advertised -= blks; in tipc_group_update_rcv_win() 505 int mtyp, blks; tipc_group_filter_msg() local 588 tipc_group_update_rcv_win(struct tipc_group * grp,int blks,u32 node,u32 port,struct sk_buff_head * xmitq) tipc_group_update_rcv_win() argument
|
| H A D | socket.c | 912 int blks = tsk_blocks(GROUP_H_SIZE + dlen); in tipc_send_group_msg() local 939 tipc_group_update_member(mb, blks); in tipc_send_group_msg() 962 int blks = tsk_blocks(GROUP_H_SIZE + dlen); in tipc_send_group_unicast() local 978 !tipc_group_cong(tsk->group, node, port, blks, in tipc_send_group_unicast() 1008 int blks = tsk_blocks(GROUP_H_SIZE + dlen); in tipc_send_group_anycast() local 1033 cong = tipc_group_cong(tsk->group, node, port, blks, in tipc_send_group_anycast() 1055 blks, &mbr)); in tipc_send_group_anycast() 1092 int blks = tsk_blocks(MCAST_H_SIZE + dlen); in tipc_send_group_bcast() local 1101 !tipc_group_bc_cong(tsk->group, blks)); in tipc_send_group_bcast() 1137 tipc_group_update_bc_members(tsk->group, blks, ac in tipc_send_group_bcast() [all...] |
| /linux/fs/iomap/ |
| H A D | buffered-io.c | 125 unsigned int blks = i_blocks_per_folio(inode, folio); in ifs_next_dirty_block() local 127 return find_next_bit(ifs->state, blks + end_blk + 1, in ifs_next_dirty_block() 128 blks + start_blk) - blks; in ifs_next_dirty_block() 140 unsigned int blks = i_blocks_per_folio(inode, folio); in ifs_next_clean_block() local 142 return find_next_zero_bit(ifs->state, blks + end_blk + 1, in ifs_next_clean_block() 143 blks + start_blk) - blks; in ifs_next_clean_block()
|
| /linux/fs/f2fs/ |
| H A D | f2fs.h | 2118 #define BLKS_TO_SEGS(sbi, blks) \ 2119 ((blks) >> (sbi)->log_blocks_per_seg) 4619 #define stat_inc_tot_blk_count(si, blks) \ 4620 ((si)->tot_blks += (blks)) 4622 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ 4625 stat_inc_tot_blk_count(si, blks); \ 4626 si->data_blks += (blks); \ 4627 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \ 4630 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ 4633 stat_inc_tot_blk_count(si, blks); \ 2105 BLKS_TO_SEGS(sbi,blks) global() argument 4503 stat_inc_tot_blk_count(si,blks) global() argument 4506 stat_inc_data_blk_count(sbi,blks,gc_type) global() argument 4514 stat_inc_node_blk_count(sbi,blks,gc_type) global() argument 4522 stat_inc_defrag_blk_count(sbi,blks) global() argument 4563 stat_inc_tot_blk_count(si,blks) global() argument 4564 stat_inc_data_blk_count(sbi,blks,gc_type) global() argument 4565 stat_inc_node_blk_count(sbi,blks,gc_type) global() argument 4566 stat_inc_defrag_blk_count(sbi,blks) global() argument [all...] |
| H A D | debug.c | 268 int blks = get_seg_entry(sbi, i)->valid_blocks; in update_general_status() 271 if (!blks) in update_general_status() 274 if (blks == BLKS_PER_SEG(sbi)) in update_general_status() 278 si->valid_blks[type] += blks; in update_general_status() 270 int blks = get_seg_entry(sbi, i)->valid_blocks; update_general_status() local
|
| /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/nvdimm/ |
| H A D | pmem.c | 88 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/drivers/net/wireless/ti/wl12xx/ |
| H A D | main.c | 1295 u32 blks, u32 spare_blks) in wl12xx_set_tx_desc_blocks() argument 1298 desc->wl128x_mem.total_mem_blocks = blks; in wl12xx_set_tx_desc_blocks() 1301 desc->wl127x_mem.total_mem_blocks = blks; in wl12xx_set_tx_desc_blocks()
|