Home
last modified time | relevance | path

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

12

/linux-6.6.21/fs/xfs/scrub/
Ddabtree.c479 struct xfs_da_state_blk *blks; in xchk_da_btree() local
513 blks = ds->state->path.blk; in xchk_da_btree()
522 if (blks[level].bp == NULL) in xchk_da_btree()
525 blks[level].index = 0; in xchk_da_btree()
528 if (blks[level].magic != XFS_DA_NODE_MAGIC) { in xchk_da_btree()
530 if (blks[level].index >= ds->maxrecs[level]) { in xchk_da_btree()
532 blks[level - 1].index++; in xchk_da_btree()
546 blks[level].index++; in xchk_da_btree()
552 if (blks[level].index >= ds->maxrecs[level]) { in xchk_da_btree()
554 blks[level - 1].index++; in xchk_da_btree()
[all …]
/linux-6.6.21/fs/gfs2/
Dlog.c50 unsigned int blks; in gfs2_struct2blk() local
54 blks = 1; in gfs2_struct2blk()
60 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk()
63 return blks; in gfs2_struct2blk()
477 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument
479 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release()
480 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release()
496 static bool __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks, in __gfs2_log_try_reserve() argument
499 unsigned wanted = blks + taboo_blks; in __gfs2_log_try_reserve()
505 free_blocks - blks)) { in __gfs2_log_try_reserve()
[all …]
Dxattr.c241 unsigned int blks = 0; in ea_dealloc_unstuffed() local
255 blks++; in ea_dealloc_unstuffed()
259 if (!blks) in ea_dealloc_unstuffed()
274 RES_EATTR + RES_STATFS + RES_QUOTA, blks); in ea_dealloc_unstuffed()
738 unsigned int blks, in ea_alloc_skeleton() argument
741 struct gfs2_alloc_parms ap = { .target = blks }; in ea_alloc_skeleton()
757 blks + gfs2_rg_blocks(ip, blks) + in ea_alloc_skeleton()
806 unsigned int blks = 1; in ea_init() local
815 blks += DIV_ROUND_UP(er.er_data_len, jbsize); in ea_init()
817 return ea_alloc_skeleton(ip, &er, blks, ea_init_i, NULL); in ea_init()
[all …]
Dlops.c792 unsigned int blks = be32_to_cpu(ld->ld_data1); in buf_lo_scan_elements() local
802 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in buf_lo_scan_elements()
932 unsigned int blks = be32_to_cpu(ld->ld_length); in revoke_lo_scan_elements() local
945 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in revoke_lo_scan_elements()
1016 unsigned int blks = be32_to_cpu(ld->ld_data1); in databuf_lo_scan_elements() local
1026 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in databuf_lo_scan_elements()
Dlog.h78 extern void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks);
/linux-6.6.21/drivers/scsi/fnic/
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()
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-6.6.21/drivers/usb/gadget/function/
Df_midi2.c83 struct f_midi2_block blks[SNDRV_UMP_MAX_BLOCKS]; /* UMP FBs */ member
579 struct f_midi2_block_info *b = &ep->blks[blk].info; in reply_ump_stream_fb_info()
600 reply_ump_stream_string(ep, ump_fb_name(&ep->blks[blk].info), in reply_ump_stream_fb_name()
1368 b = &ep->blks[blk].info; in assign_block_descriptors()
1372 desc->bGrpTrmBlkID = ep->blks[blk].gtb_id; in assign_block_descriptors()
1376 desc->iBlockItem = ep->blks[blk].string_id; in assign_block_descriptors()
1570 const struct f_midi2_block_info *b = &ep->blks[blk].info; in f_midi2_create_card()
1576 &ep->blks[blk].fb); in f_midi2_create_card()
1579 fb = ep->blks[blk].fb; in f_midi2_create_card()
1676 jack->iJack = map->ep->blks[map->block].string_id; in append_midi1_in_jack()
[all …]
Du_midi2.h63 struct f_midi2_block_opts *blks[SNDRV_UMP_MAX_BLOCKS]; member
/linux-6.6.21/fs/ext2/
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-6.6.21/drivers/net/ethernet/cisco/enic/
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()
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()
/linux-6.6.21/drivers/scsi/snic/
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-6.6.21/arch/powerpc/lib/
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-6.6.21/fs/squashfs/
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-6.6.21/drivers/scsi/
Dst.c768 int transfer, blks; in st_flush_write_buffer() local
787 blks = transfer / STp->block_size; in st_flush_write_buffer()
788 cmd[2] = blks >> 16; in st_flush_write_buffer()
789 cmd[3] = blks >> 8; in st_flush_write_buffer()
790 cmd[4] = blks; in st_flush_write_buffer()
811 STps->drv_block += blks; in st_flush_write_buffer()
820 STps->drv_block += blks; in st_flush_write_buffer()
1625 ssize_t i, do_count, blks, transfer; in st_write() local
1763 blks = transfer = do_count; in st_write()
1766 blks = STbp->buffer_bytes; in st_write()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/mtd/
Drockchip,nand-controller.yaml91 rockchip,boot-blks:
160 rockchip,boot-blks = <8>;
/linux-6.6.21/fs/ufs/
Dsuper.c509 unsigned size, blks, i; in ufs_read_cylinder_structures() local
518 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_read_cylinder_structures()
523 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_read_cylinder_structures()
525 if (i + uspi->s_fpb > blks) in ufs_read_cylinder_structures()
526 size = (blks - i) * uspi->s_fsize; in ufs_read_cylinder_structures()
649 unsigned blks, size, i; in ufs_put_super_internal() local
656 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_put_super_internal()
658 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_put_super_internal()
660 if (i + uspi->s_fpb > blks) in ufs_put_super_internal()
661 size = (blks - i) * uspi->s_fsize; in ufs_put_super_internal()
/linux-6.6.21/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_rm.h93 enum dpu_hw_blk_type type, struct dpu_hw_blk **blks, int blks_size);
/linux-6.6.21/net/tipc/
Dgroup.h72 void tipc_group_update_rcv_win(struct tipc_group *grp, int blks, u32 node,
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-6.6.21/drivers/net/wireless/ti/wlcore/
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-6.6.21/arch/mips/include/asm/octeon/
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-6.6.21/drivers/nvdimm/
Dpmem.c89 static void pmem_clear_bb(struct pmem_device *pmem, sector_t sector, long blks) in pmem_clear_bb() argument
91 if (blks == 0) in pmem_clear_bb()
93 badblocks_clear(&pmem->bb, sector, blks); in pmem_clear_bb()
/linux-6.6.21/fs/f2fs/
Ddebug.c205 int blks = get_seg_entry(sbi, i)->valid_blocks; in update_general_status() local
208 if (!blks) in update_general_status()
211 if (blks == sbi->blocks_per_seg) in update_general_status()
215 si->valid_blks[type] += blks; in update_general_status()

12