Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 25 of 659) sorted by relevance

12345678910>>...27

/Linux-v5.10/fs/xfs/libxfs/
Dxfs_btree.c59 struct xfs_btree_cur *cur, in __xfs_btree_check_lblock() argument
64 struct xfs_mount *mp = cur->bc_mp; in __xfs_btree_check_lblock()
65 xfs_btnum_t btnum = cur->bc_btnum; in __xfs_btree_check_lblock()
83 cur->bc_ops->get_maxrecs(cur, level)) in __xfs_btree_check_lblock()
86 !xfs_btree_check_lptr(cur, be64_to_cpu(block->bb_u.l.bb_leftsib), in __xfs_btree_check_lblock()
90 !xfs_btree_check_lptr(cur, be64_to_cpu(block->bb_u.l.bb_rightsib), in __xfs_btree_check_lblock()
100 struct xfs_btree_cur *cur, in xfs_btree_check_lblock() argument
105 struct xfs_mount *mp = cur->bc_mp; in xfs_btree_check_lblock()
108 fa = __xfs_btree_check_lblock(cur, block, level, bp); in xfs_btree_check_lblock()
124 struct xfs_btree_cur *cur, in __xfs_btree_check_sblock() argument
[all …]
Dxfs_btree_staging.c47 struct xfs_btree_cur *cur) in xfs_btree_fakeroot_dup_cursor() argument
62 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_alloc_block() argument
77 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_free_block() argument
87 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_init_ptr_from_cur() argument
92 ASSERT(cur->bc_flags & XFS_BTREE_STAGING); in xfs_btree_fakeroot_init_ptr_from_cur()
94 afake = cur->bc_ag.afake; in xfs_btree_fakeroot_init_ptr_from_cur()
115 struct xfs_btree_cur *cur, in xfs_btree_afakeroot_set_root() argument
119 struct xbtree_afakeroot *afake = cur->bc_ag.afake; in xfs_btree_afakeroot_set_root()
121 ASSERT(cur->bc_flags & XFS_BTREE_STAGING); in xfs_btree_afakeroot_set_root()
133 struct xfs_btree_cur *cur, in xfs_btree_stage_afakeroot() argument
[all …]
Dxfs_refcount.c45 struct xfs_btree_cur *cur, in xfs_refcount_lookup_le() argument
49 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.agno, bno, in xfs_refcount_lookup_le()
51 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le()
52 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_le()
53 return xfs_btree_lookup(cur, XFS_LOOKUP_LE, stat); in xfs_refcount_lookup_le()
62 struct xfs_btree_cur *cur, in xfs_refcount_lookup_ge() argument
66 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.agno, bno, in xfs_refcount_lookup_ge()
68 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge()
69 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_ge()
70 return xfs_btree_lookup(cur, XFS_LOOKUP_GE, stat); in xfs_refcount_lookup_ge()
[all …]
Dxfs_alloc_btree.c26 struct xfs_btree_cur *cur) in xfs_allocbt_dup_cursor() argument
28 return xfs_allocbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_allocbt_dup_cursor()
29 cur->bc_ag.agbp, cur->bc_ag.agno, in xfs_allocbt_dup_cursor()
30 cur->bc_btnum); in xfs_allocbt_dup_cursor()
35 struct xfs_btree_cur *cur, in xfs_allocbt_set_root() argument
39 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_allocbt_set_root()
41 int btnum = cur->bc_btnum; in xfs_allocbt_set_root()
50 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_allocbt_set_root()
55 struct xfs_btree_cur *cur, in xfs_allocbt_alloc_block() argument
64 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_ag.agbp, in xfs_allocbt_alloc_block()
[all …]
Dxfs_ialloc_btree.c26 struct xfs_btree_cur *cur, in xfs_inobt_get_minrecs() argument
29 return M_IGEO(cur->bc_mp)->inobt_mnr[level != 0]; in xfs_inobt_get_minrecs()
34 struct xfs_btree_cur *cur) in xfs_inobt_dup_cursor() argument
36 return xfs_inobt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_inobt_dup_cursor()
37 cur->bc_ag.agbp, cur->bc_ag.agno, in xfs_inobt_dup_cursor()
38 cur->bc_btnum); in xfs_inobt_dup_cursor()
43 struct xfs_btree_cur *cur, in xfs_inobt_set_root() argument
47 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_inobt_set_root()
52 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_ROOT | XFS_AGI_LEVEL); in xfs_inobt_set_root()
57 struct xfs_btree_cur *cur, in xfs_finobt_set_root() argument
[all …]
Dxfs_iext_tree.c140 static inline struct xfs_iext_rec *cur_rec(struct xfs_iext_cursor *cur) in cur_rec() argument
142 return &cur->leaf->recs[cur->pos]; in cur_rec()
146 struct xfs_iext_cursor *cur) in xfs_iext_valid() argument
148 if (!cur->leaf) in xfs_iext_valid()
150 if (cur->pos < 0 || cur->pos >= xfs_iext_max_recs(ifp)) in xfs_iext_valid()
152 if (xfs_iext_rec_is_empty(cur_rec(cur))) in xfs_iext_valid()
199 struct xfs_iext_cursor *cur) in xfs_iext_first() argument
201 cur->pos = 0; in xfs_iext_first()
202 cur->leaf = xfs_iext_find_first_leaf(ifp); in xfs_iext_first()
208 struct xfs_iext_cursor *cur) in xfs_iext_last() argument
[all …]
Dxfs_refcount_btree.c26 struct xfs_btree_cur *cur) in xfs_refcountbt_dup_cursor() argument
28 return xfs_refcountbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_refcountbt_dup_cursor()
29 cur->bc_ag.agbp, cur->bc_ag.agno); in xfs_refcountbt_dup_cursor()
34 struct xfs_btree_cur *cur, in xfs_refcountbt_set_root() argument
38 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_set_root()
48 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root()
54 struct xfs_btree_cur *cur, in xfs_refcountbt_alloc_block() argument
59 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_alloc_block()
65 args.tp = cur->bc_tp; in xfs_refcountbt_alloc_block()
66 args.mp = cur->bc_mp; in xfs_refcountbt_alloc_block()
[all …]
Dxfs_rmap_btree.c52 struct xfs_btree_cur *cur) in xfs_rmapbt_dup_cursor() argument
54 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor()
55 cur->bc_ag.agbp, cur->bc_ag.agno); in xfs_rmapbt_dup_cursor()
60 struct xfs_btree_cur *cur, in xfs_rmapbt_set_root() argument
64 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_set_root()
66 int btnum = cur->bc_btnum; in xfs_rmapbt_set_root()
75 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_rmapbt_set_root()
80 struct xfs_btree_cur *cur, in xfs_rmapbt_alloc_block() argument
85 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_alloc_block()
91 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_ag.agbp, in xfs_rmapbt_alloc_block()
[all …]
Dxfs_bmap_btree.c164 struct xfs_btree_cur *cur) in xfs_bmbt_dup_cursor() argument
168 new = xfs_bmbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_bmbt_dup_cursor()
169 cur->bc_ino.ip, cur->bc_ino.whichfork); in xfs_bmbt_dup_cursor()
175 new->bc_ino.flags = cur->bc_ino.flags; in xfs_bmbt_dup_cursor()
196 struct xfs_btree_cur *cur, in xfs_bmbt_alloc_block() argument
205 args.tp = cur->bc_tp; in xfs_bmbt_alloc_block()
206 args.mp = cur->bc_mp; in xfs_bmbt_alloc_block()
207 args.fsbno = cur->bc_tp->t_firstblock; in xfs_bmbt_alloc_block()
208 xfs_rmap_ino_bmbt_owner(&args.oinfo, cur->bc_ino.ip->i_ino, in xfs_bmbt_alloc_block()
209 cur->bc_ino.whichfork); in xfs_bmbt_alloc_block()
[all …]
Dxfs_btree.h89 #define XFS_BTREE_STATS_INC(cur, stat) \ argument
90 XFS_STATS_INC_OFF((cur)->bc_mp, (cur)->bc_statoff + __XBTS_ ## stat)
91 #define XFS_BTREE_STATS_ADD(cur, stat, val) \ argument
92 XFS_STATS_ADD_OFF((cur)->bc_mp, (cur)->bc_statoff + __XBTS_ ## stat, val)
107 void (*set_root)(struct xfs_btree_cur *cur,
111 int (*alloc_block)(struct xfs_btree_cur *cur,
115 int (*free_block)(struct xfs_btree_cur *cur, struct xfs_buf *bp);
118 void (*update_lastrec)(struct xfs_btree_cur *cur,
124 int (*get_minrecs)(struct xfs_btree_cur *cur, int level);
125 int (*get_maxrecs)(struct xfs_btree_cur *cur, int level);
[all …]
Dxfs_rmap.c31 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le() argument
39 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le()
40 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_le()
41 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
42 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_le()
43 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_le()
44 return xfs_btree_lookup(cur, XFS_LOOKUP_LE, stat); in xfs_rmap_lookup_le()
53 struct xfs_btree_cur *cur, in xfs_rmap_lookup_eq() argument
61 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq()
62 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_eq()
[all …]
/Linux-v5.10/fs/xfs/scrub/
Dbtree.c27 struct xfs_btree_cur *cur, in __xchk_btree_process_error() argument
48 if (cur->bc_flags & XFS_BTREE_ROOT_IN_INODE) in __xchk_btree_process_error()
49 trace_xchk_ifork_btree_op_error(sc, cur, level, in __xchk_btree_process_error()
52 trace_xchk_btree_op_error(sc, cur, level, in __xchk_btree_process_error()
62 struct xfs_btree_cur *cur, in xchk_btree_process_error() argument
66 return __xchk_btree_process_error(sc, cur, level, error, in xchk_btree_process_error()
73 struct xfs_btree_cur *cur, in xchk_btree_xref_process_error() argument
77 return __xchk_btree_process_error(sc, cur, level, error, in xchk_btree_xref_process_error()
85 struct xfs_btree_cur *cur, in __xchk_btree_set_corrupt() argument
92 if (cur->bc_flags & XFS_BTREE_ROOT_IN_INODE) in __xchk_btree_set_corrupt()
[all …]
Dtrace.c20 struct xfs_btree_cur *cur, in xchk_btree_cur_fsbno() argument
23 if (level < cur->bc_nlevels && cur->bc_bufs[level]) in xchk_btree_cur_fsbno()
24 return XFS_DADDR_TO_FSB(cur->bc_mp, cur->bc_bufs[level]->b_bn); in xchk_btree_cur_fsbno()
25 else if (level == cur->bc_nlevels - 1 && in xchk_btree_cur_fsbno()
26 cur->bc_flags & XFS_BTREE_LONG_PTRS) in xchk_btree_cur_fsbno()
27 return XFS_INO_TO_FSB(cur->bc_mp, cur->bc_ino.ip->i_ino); in xchk_btree_cur_fsbno()
28 else if (!(cur->bc_flags & XFS_BTREE_LONG_PTRS)) in xchk_btree_cur_fsbno()
29 return XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.agno, 0); in xchk_btree_cur_fsbno()
/Linux-v5.10/security/selinux/ss/
Davtab.c70 struct avtab_node *prev, struct avtab_node *cur, in avtab_insert_node() argument
109 struct avtab_node *prev, *cur, *newnode; in avtab_insert() local
116 for (prev = NULL, cur = h->htable[hvalue]; in avtab_insert()
117 cur; in avtab_insert()
118 prev = cur, cur = cur->next) { in avtab_insert()
119 if (key->source_type == cur->key.source_type && in avtab_insert()
120 key->target_type == cur->key.target_type && in avtab_insert()
121 key->target_class == cur->key.target_class && in avtab_insert()
122 (specified & cur->key.specified)) { in avtab_insert()
128 if (key->source_type < cur->key.source_type) in avtab_insert()
[all …]
Dhashtab.c62 struct hashtab_node *cur, *temp; in hashtab_destroy() local
65 cur = h->htable[i]; in hashtab_destroy()
66 while (cur) { in hashtab_destroy()
67 temp = cur; in hashtab_destroy()
68 cur = cur->next; in hashtab_destroy()
84 struct hashtab_node *cur; in hashtab_map() local
87 cur = h->htable[i]; in hashtab_map()
88 while (cur) { in hashtab_map()
89 ret = apply(cur->key, cur->datum, args); in hashtab_map()
92 cur = cur->next; in hashtab_map()
[all …]
/Linux-v5.10/drivers/mtd/nand/raw/
Dnand_ecc.c130 uint32_t cur; /* current value in buffer */ in __nand_calculate_ecc() local
160 cur = *bp++; in __nand_calculate_ecc()
161 tmppar = cur; in __nand_calculate_ecc()
162 rp4 ^= cur; in __nand_calculate_ecc()
163 cur = *bp++; in __nand_calculate_ecc()
164 tmppar ^= cur; in __nand_calculate_ecc()
166 cur = *bp++; in __nand_calculate_ecc()
167 tmppar ^= cur; in __nand_calculate_ecc()
168 rp4 ^= cur; in __nand_calculate_ecc()
169 cur = *bp++; in __nand_calculate_ecc()
[all …]
/Linux-v5.10/drivers/char/
Dbsr.c154 struct bsr_dev *cur, *n; in bsr_cleanup_devs() local
156 list_for_each_entry_safe(cur, n, &bsr_devs, bsr_list) { in bsr_cleanup_devs()
157 if (cur->bsr_device) { in bsr_cleanup_devs()
158 cdev_del(&cur->bsr_cdev); in bsr_cleanup_devs()
159 device_del(cur->bsr_device); in bsr_cleanup_devs()
161 list_del(&cur->bsr_list); in bsr_cleanup_devs()
162 kfree(cur); in bsr_cleanup_devs()
186 struct bsr_dev *cur = kzalloc(sizeof(struct bsr_dev), in bsr_add_node() local
191 if (!cur) { in bsr_add_node()
200 kfree(cur); in bsr_add_node()
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Domap3-echo.dts110 led-cur = /bits/ 8 <12>;
111 max-cur = /bits/ 8 <15>;
114 led-cur = /bits/ 8 <12>;
115 max-cur = /bits/ 8 <15>;
118 led-cur = /bits/ 8 <12>;
119 max-cur = /bits/ 8 <15>;
122 led-cur = /bits/ 8 <12>;
123 max-cur = /bits/ 8 <15>;
126 led-cur = /bits/ 8 <12>;
127 max-cur = /bits/ 8 <15>;
[all …]
/Linux-v5.10/drivers/soc/mediatek/
Dmtk-mmsys.c106 static unsigned int mtk_mmsys_ddp_mout_en(enum mtk_ddp_comp_id cur, in mtk_mmsys_ddp_mout_en() argument
112 if (cur == DDP_COMPONENT_OVL0 && next == DDP_COMPONENT_COLOR0) { in mtk_mmsys_ddp_mout_en()
115 } else if (cur == DDP_COMPONENT_OVL0 && next == DDP_COMPONENT_RDMA0) { in mtk_mmsys_ddp_mout_en()
118 } else if (cur == DDP_COMPONENT_OD0 && next == DDP_COMPONENT_RDMA0) { in mtk_mmsys_ddp_mout_en()
121 } else if (cur == DDP_COMPONENT_UFOE && next == DDP_COMPONENT_DSI0) { in mtk_mmsys_ddp_mout_en()
124 } else if (cur == DDP_COMPONENT_OVL1 && next == DDP_COMPONENT_COLOR1) { in mtk_mmsys_ddp_mout_en()
127 } else if (cur == DDP_COMPONENT_GAMMA && next == DDP_COMPONENT_RDMA1) { in mtk_mmsys_ddp_mout_en()
130 } else if (cur == DDP_COMPONENT_OD1 && next == DDP_COMPONENT_RDMA1) { in mtk_mmsys_ddp_mout_en()
133 } else if (cur == DDP_COMPONENT_RDMA0 && next == DDP_COMPONENT_DPI0) { in mtk_mmsys_ddp_mout_en()
136 } else if (cur == DDP_COMPONENT_RDMA0 && next == DDP_COMPONENT_DPI1) { in mtk_mmsys_ddp_mout_en()
[all …]
/Linux-v5.10/include/linux/
Diversion.h126 u64 cur, old; in inode_set_max_iversion_raw() local
128 cur = inode_peek_iversion_raw(inode); in inode_set_max_iversion_raw()
130 if (cur > val) in inode_set_max_iversion_raw()
132 old = atomic64_cmpxchg(&inode->i_version, cur, val); in inode_set_max_iversion_raw()
133 if (likely(old == cur)) in inode_set_max_iversion_raw()
135 cur = old; in inode_set_max_iversion_raw()
200 u64 cur, old, new; in inode_maybe_inc_iversion() local
213 cur = inode_peek_iversion_raw(inode); in inode_maybe_inc_iversion()
216 if (!force && !(cur & I_VERSION_QUERIED)) in inode_maybe_inc_iversion()
220 new = (cur & ~I_VERSION_QUERIED) + I_VERSION_INCREMENT; in inode_maybe_inc_iversion()
[all …]
/Linux-v5.10/drivers/staging/kpc2000/kpc_dma/
Ddma.c28 struct kpc_dma_descriptor *cur; in ndd_irq_worker() local
39 cur = eng->desc_completed; in ndd_irq_worker()
41 cur = cur->Next; in ndd_irq_worker()
42 dev_dbg(&eng->pldev->dev, "Handling completed descriptor %p (acd = %p)\n", cur, cur->acd); in ndd_irq_worker()
43 BUG_ON(cur == eng->desc_next); // Ordering failure. in ndd_irq_worker()
45 if (cur->DescControlFlags & DMA_DESC_CTL_SOP) { in ndd_irq_worker()
50 eng->accumulated_bytes += cur->DescByteCount; in ndd_irq_worker()
51 if (cur->DescStatusFlags & DMA_DESC_STS_ERROR) in ndd_irq_worker()
54 if (cur->DescStatusFlags & DMA_DESC_STS_SHORT) in ndd_irq_worker()
57 if (cur->DescControlFlags & DMA_DESC_CTL_EOP) { in ndd_irq_worker()
[all …]
/Linux-v5.10/drivers/block/drbd/
Ddrbd_vli.h199 static inline void bitstream_cursor_reset(struct bitstream_cursor *cur, void *s) in bitstream_cursor_reset() argument
201 cur->b = s; in bitstream_cursor_reset()
202 cur->bit = 0; in bitstream_cursor_reset()
207 static inline void bitstream_cursor_advance(struct bitstream_cursor *cur, unsigned int bits) in bitstream_cursor_advance() argument
209 bits += cur->bit; in bitstream_cursor_advance()
210 cur->b = cur->b + (bits >> 3); in bitstream_cursor_advance()
211 cur->bit = bits & 7; in bitstream_cursor_advance()
216 struct bitstream_cursor cur; member
231 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_init()
236 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_rewind()
[all …]
/Linux-v5.10/lib/zstd/
Dzstd_opt.h440 U32 cur, match_num, last_pos, litlen, price; in ZSTD_compressBlock_opt_generic() local
457 cur = 0; in ZSTD_compressBlock_opt_generic()
482 cur = 0; in ZSTD_compressBlock_opt_generic()
515 for (cur = 1; cur <= last_pos; cur++) { in ZSTD_compressBlock_opt_generic()
516 inr = ip + cur; in ZSTD_compressBlock_opt_generic()
518 if (opt[cur - 1].mlen == 1) { in ZSTD_compressBlock_opt_generic()
519 litlen = opt[cur - 1].litlen + 1; in ZSTD_compressBlock_opt_generic()
520 if (cur > litlen) { in ZSTD_compressBlock_opt_generic()
521 price = opt[cur - litlen].price + ZSTD_getLiteralPrice(seqStorePtr, litlen, inr - litlen); in ZSTD_compressBlock_opt_generic()
526 price = opt[cur - 1].price + ZSTD_getLiteralPrice(seqStorePtr, litlen, inr - 1); in ZSTD_compressBlock_opt_generic()
[all …]
/Linux-v5.10/arch/mips/cavium-octeon/
Dcsrc-octeon.c146 u64 cur, end, inc; in __udelay() local
148 cur = read_c0_cvmcount(); in __udelay()
151 end = cur + inc; in __udelay()
153 while (end > cur) in __udelay()
154 cur = read_c0_cvmcount(); in __udelay()
160 u64 cur, end, inc; in __ndelay() local
162 cur = read_c0_cvmcount(); in __ndelay()
165 end = cur + inc; in __ndelay()
167 while (end > cur) in __ndelay()
168 cur = read_c0_cvmcount(); in __ndelay()
[all …]
/Linux-v5.10/kernel/
Dcrash_core.c43 char *cur = cmdline, *tmp; in parse_crashkernel_mem() local
50 start = memparse(cur, &tmp); in parse_crashkernel_mem()
51 if (cur == tmp) { in parse_crashkernel_mem()
55 cur = tmp; in parse_crashkernel_mem()
56 if (*cur != '-') { in parse_crashkernel_mem()
60 cur++; in parse_crashkernel_mem()
63 if (*cur != ':') { in parse_crashkernel_mem()
64 end = memparse(cur, &tmp); in parse_crashkernel_mem()
65 if (cur == tmp) { in parse_crashkernel_mem()
69 cur = tmp; in parse_crashkernel_mem()
[all …]

12345678910>>...27