/linux/fs/xfs/libxfs/ |
H A D | xfs_btree.c | 120 struct xfs_btree_cur *cur, in __xfs_btree_check_lblock_hdr() argument 125 struct xfs_mount *mp = cur->bc_mp; in __xfs_btree_check_lblock_hdr() 137 if (be32_to_cpu(block->bb_magic) != xfs_btree_magic(mp, cur->bc_ops)) in __xfs_btree_check_lblock_hdr() 142 cur->bc_ops->get_maxrecs(cur, level)) in __xfs_btree_check_lblock_hdr() 154 struct xfs_btree_cur *cur, in __xfs_btree_check_fsblock() argument 159 struct xfs_mount *mp = cur->bc_mp; in __xfs_btree_check_fsblock() 163 fa = __xfs_btree_check_lblock_hdr(cur, block, level, bp); in __xfs_btree_check_fsblock() 194 struct xfs_btree_cur *cur, in __xfs_btree_check_memblock() argument 199 struct xfs_buftarg *btp = cur->bc_mem.xfbtree->target; in __xfs_btree_check_memblock() 203 fa = __xfs_btree_check_lblock_hdr(cur, block, level, bp); in __xfs_btree_check_memblock() [all …]
|
H A D | xfs_btree_staging.c | 60 struct xfs_btree_cur *cur, in xfs_btree_stage_afakeroot() argument 63 ASSERT(!(cur->bc_flags & XFS_BTREE_STAGING)); in xfs_btree_stage_afakeroot() 64 ASSERT(cur->bc_ops->type != XFS_BTREE_TYPE_INODE); in xfs_btree_stage_afakeroot() 65 ASSERT(cur->bc_tp == NULL); in xfs_btree_stage_afakeroot() 67 cur->bc_ag.afake = afake; in xfs_btree_stage_afakeroot() 68 cur->bc_nlevels = afake->af_levels; in xfs_btree_stage_afakeroot() 69 cur->bc_flags |= XFS_BTREE_STAGING; in xfs_btree_stage_afakeroot() 80 struct xfs_btree_cur *cur, in xfs_btree_commit_afakeroot() argument 84 ASSERT(cur->bc_flags & XFS_BTREE_STAGING); in xfs_btree_commit_afakeroot() 85 ASSERT(cur->bc_tp == NULL); in xfs_btree_commit_afakeroot() [all …]
|
H A D | xfs_btree.h | 81 #define XFS_BTREE_STATS_INC(cur, stat) \ argument 82 XFS_STATS_INC_OFF((cur)->bc_mp, \ 83 (cur)->bc_ops->statoff + __XBTS_ ## stat) 84 #define XFS_BTREE_STATS_ADD(cur, stat, val) \ argument 85 XFS_STATS_ADD_OFF((cur)->bc_mp, \ 86 (cur)->bc_ops->statoff + __XBTS_ ## stat, val) 147 void (*set_root)(struct xfs_btree_cur *cur, 151 int (*alloc_block)(struct xfs_btree_cur *cur, 155 int (*free_block)(struct xfs_btree_cur *cur, struct xfs_buf *bp); 158 int (*get_minrecs)(struct xfs_btree_cur *cur, int level); [all …]
|
H A D | xfs_iext_tree.c | 140 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 …]
|
H A D | xfs_ialloc_btree.c | 30 struct xfs_btree_cur *cur, in xfs_inobt_get_minrecs() argument 33 return M_IGEO(cur->bc_mp)->inobt_mnr[level != 0]; in xfs_inobt_get_minrecs() 38 struct xfs_btree_cur *cur) in xfs_inobt_dup_cursor() argument 40 return xfs_inobt_init_cursor(to_perag(cur->bc_group), cur->bc_tp, in xfs_inobt_dup_cursor() 41 cur->bc_ag.agbp); in xfs_inobt_dup_cursor() 46 struct xfs_btree_cur *cur) in xfs_finobt_dup_cursor() argument 48 return xfs_finobt_init_cursor(to_perag(cur->bc_group), cur->bc_tp, in xfs_finobt_dup_cursor() 49 cur->bc_ag.agbp); in xfs_finobt_dup_cursor() 54 struct xfs_btree_cur *cur, in xfs_inobt_set_root() argument 58 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_inobt_set_root() [all …]
|
H A D | xfs_alloc_btree.c | 28 struct xfs_btree_cur *cur) in xfs_bnobt_dup_cursor() argument 30 return xfs_bnobt_init_cursor(cur->bc_mp, cur->bc_tp, cur->bc_ag.agbp, in xfs_bnobt_dup_cursor() 31 to_perag(cur->bc_group)); in xfs_bnobt_dup_cursor() 36 struct xfs_btree_cur *cur) in xfs_cntbt_dup_cursor() argument 38 return xfs_cntbt_init_cursor(cur->bc_mp, cur->bc_tp, cur->bc_ag.agbp, in xfs_cntbt_dup_cursor() 39 to_perag(cur->bc_group)); in xfs_cntbt_dup_cursor() 44 struct xfs_btree_cur *cur, in xfs_allocbt_set_root() argument 48 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_allocbt_set_root() 49 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_allocbt_set_root() 54 if (xfs_btree_is_bno(cur->bc_ops)) { in xfs_allocbt_set_root() [all …]
|
H A D | xfs_bmap_btree.c | 182 struct xfs_btree_cur *cur) in xfs_bmbt_dup_cursor() argument 186 new = xfs_bmbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_bmbt_dup_cursor() 187 cur->bc_ino.ip, cur->bc_ino.whichfork); in xfs_bmbt_dup_cursor() 188 new->bc_flags |= (cur->bc_flags & in xfs_bmbt_dup_cursor() 209 struct xfs_btree_cur *cur, in xfs_bmbt_alloc_block() argument 218 args.tp = cur->bc_tp; in xfs_bmbt_alloc_block() 219 args.mp = cur->bc_mp; in xfs_bmbt_alloc_block() 220 xfs_rmap_ino_bmbt_owner(&args.oinfo, cur->bc_ino.ip->i_ino, in xfs_bmbt_alloc_block() 221 cur->bc_ino.whichfork); in xfs_bmbt_alloc_block() 223 args.wasdel = cur->bc_flags & XFS_BTREE_BMBT_WASDEL; in xfs_bmbt_alloc_block() [all …]
|
H A D | xfs_refcount_btree.c | 30 struct xfs_btree_cur *cur) in xfs_refcountbt_dup_cursor() argument 32 return xfs_refcountbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_refcountbt_dup_cursor() 33 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_refcountbt_dup_cursor() 38 struct xfs_btree_cur *cur, in xfs_refcountbt_set_root() argument 42 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_set_root() 52 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root() 58 struct xfs_btree_cur *cur, in xfs_refcountbt_alloc_block() argument 63 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_alloc_block() 69 args.tp = cur->bc_tp; in xfs_refcountbt_alloc_block() 70 args.mp = cur->bc_mp; in xfs_refcountbt_alloc_block() [all …]
|
H A D | xfs_ialloc.c | 37 struct xfs_btree_cur *cur, /* btree cursor */ in xfs_inobt_lookup() argument 42 cur->bc_rec.i.ir_startino = ino; in xfs_inobt_lookup() 43 cur->bc_rec.i.ir_holemask = 0; in xfs_inobt_lookup() 44 cur->bc_rec.i.ir_count = 0; in xfs_inobt_lookup() 45 cur->bc_rec.i.ir_freecount = 0; in xfs_inobt_lookup() 46 cur->bc_rec.i.ir_free = 0; in xfs_inobt_lookup() 47 return xfs_btree_lookup(cur, dir, stat); in xfs_inobt_lookup() 56 struct xfs_btree_cur *cur, /* btree cursor */ in xfs_inobt_update() argument 62 if (xfs_has_sparseinodes(cur->bc_mp)) { in xfs_inobt_update() 71 return xfs_btree_update(cur, &rec); in xfs_inobt_update() [all …]
|
/linux/fs/xfs/scrub/ |
H A D | btree.c | 28 struct xfs_btree_cur *cur, in __xchk_btree_process_error() argument 50 if (cur->bc_ops->type == XFS_BTREE_TYPE_INODE) in __xchk_btree_process_error() 51 trace_xchk_ifork_btree_op_error(sc, cur, level, in __xchk_btree_process_error() 54 trace_xchk_btree_op_error(sc, cur, level, in __xchk_btree_process_error() 64 struct xfs_btree_cur *cur, in xchk_btree_process_error() argument 68 return __xchk_btree_process_error(sc, cur, level, error, in xchk_btree_process_error() 75 struct xfs_btree_cur *cur, in xchk_btree_xref_process_error() argument 79 return __xchk_btree_process_error(sc, cur, level, error, in xchk_btree_xref_process_error() 87 struct xfs_btree_cur *cur, in __xchk_btree_set_corrupt() argument 94 if (cur->bc_ops->type == XFS_BTREE_TYPE_INODE) in __xchk_btree_set_corrupt() [all …]
|
H A D | rcbag.c | 78 struct xfs_btree_cur *cur; in rcbag_add() local 82 cur = rcbagbt_mem_cursor(mp, tp, &bag->xfbtree); in rcbag_add() 83 error = rcbagbt_lookup_eq(cur, rmap, &has); in rcbag_add() 88 error = rcbagbt_get_rec(cur, &bagrec, &has); in rcbag_add() 97 error = rcbagbt_update(cur, &bagrec); in rcbag_add() 105 error = rcbagbt_insert(cur, &bagrec, &has); in rcbag_add() 114 xfs_btree_del_cursor(cur, 0); in rcbag_add() 124 xfs_btree_del_cursor(cur, error); in rcbag_add() 156 struct xfs_btree_cur *cur; in rcbag_next_edge() local 164 cur = rcbagbt_mem_cursor(mp, tp, &bag->xfbtree); in rcbag_next_edge() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_res_cursor.h | 70 struct xe_res_cursor *cur) in xe_res_first() argument 72 cur->sgl = NULL; in xe_res_first() 78 cur->mem_type = res->mem_type; in xe_res_first() 80 switch (cur->mem_type) { in xe_res_first() 105 cur->mm = mm; in xe_res_first() 106 cur->start = drm_buddy_block_offset(block) + start; in xe_res_first() 107 cur->size = min(drm_buddy_block_size(mm, block) - start, in xe_res_first() 109 cur->remaining = size; in xe_res_first() 110 cur->node = block; in xe_res_first() 120 cur->start = start; in xe_res_first() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_res_cursor.h | 56 struct amdgpu_res_cursor *cur) in amdgpu_res_first() argument 67 cur->mem_type = res->mem_type; in amdgpu_res_first() 69 switch (cur->mem_type) { in amdgpu_res_first() 87 cur->start = amdgpu_vram_mgr_block_start(block) + start; in amdgpu_res_first() 88 cur->size = min(amdgpu_vram_mgr_block_size(block) - start, size); in amdgpu_res_first() 89 cur->remaining = size; in amdgpu_res_first() 90 cur->node = block; in amdgpu_res_first() 98 cur->start = (node->start << PAGE_SHIFT) + start; in amdgpu_res_first() 99 cur->size = min((node->size << PAGE_SHIFT) - start, size); in amdgpu_res_first() 100 cur->remaining = size; in amdgpu_res_first() [all …]
|
/linux/drivers/char/ |
H A D | bsr.c | 157 struct bsr_dev *cur, *n; in bsr_cleanup_devs() local 159 list_for_each_entry_safe(cur, n, &bsr_devs, bsr_list) { in bsr_cleanup_devs() 160 if (cur->bsr_device) { in bsr_cleanup_devs() 161 cdev_del(&cur->bsr_cdev); in bsr_cleanup_devs() 162 device_del(cur->bsr_device); in bsr_cleanup_devs() 164 list_del(&cur->bsr_list); in bsr_cleanup_devs() 165 kfree(cur); in bsr_cleanup_devs() 189 struct bsr_dev *cur = kzalloc(sizeof(struct bsr_dev), in bsr_add_node() local 194 if (!cur) { in bsr_add_node() 203 kfree(cur); in bsr_add_node() [all …]
|
/linux/kernel/ |
H A D | crash_reserve.c | 61 char *cur = cmdline, *tmp; in parse_crashkernel_mem() local 77 start = memparse(cur, &tmp); in parse_crashkernel_mem() 78 if (cur == tmp) { in parse_crashkernel_mem() 82 cur = tmp; in parse_crashkernel_mem() 83 if (*cur != '-') { in parse_crashkernel_mem() 87 cur++; in parse_crashkernel_mem() 90 if (*cur != ':') { in parse_crashkernel_mem() 91 end = memparse(cur, &tmp); in parse_crashkernel_mem() 92 if (cur == tmp) { in parse_crashkernel_mem() 96 cur = tmp; in parse_crashkernel_mem() [all …]
|
/linux/kernel/printk/ |
H A D | nbcon.c | 151 static inline bool nbcon_state_try_cmpxchg(struct console *con, struct nbcon_state *cur, in nbcon_state_try_cmpxchg() argument 154 return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom); in nbcon_state_try_cmpxchg() 238 struct nbcon_state *cur) in nbcon_context_try_acquire_direct() argument 255 if (ctxt->prio <= cur->prio || ctxt->prio <= cur->req_prio) in nbcon_context_try_acquire_direct() 258 if (cur->unsafe) in nbcon_context_try_acquire_direct() 265 WARN_ON_ONCE(cur->unsafe_takeover); in nbcon_context_try_acquire_direct() 267 new.atom = cur->atom; in nbcon_context_try_acquire_direct() 270 new.unsafe = cur->unsafe_takeover; in nbcon_context_try_acquire_direct() 273 } while (!nbcon_state_try_cmpxchg(con, cur, &new)); in nbcon_context_try_acquire_direct() 278 static bool nbcon_waiter_matches(struct nbcon_state *cur, int expected_prio) in nbcon_waiter_matches() argument [all …]
|
/linux/drivers/block/drbd/ |
H A D | drbd_vli.h | 199 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/security/selinux/ss/ |
H A D | hashtab.c | 71 struct hashtab_node *cur, *temp; in hashtab_destroy() local 74 cur = h->htable[i]; in hashtab_destroy() 75 while (cur) { in hashtab_destroy() 76 temp = cur; in hashtab_destroy() 77 cur = cur->next; in hashtab_destroy() 92 struct hashtab_node *cur; in hashtab_map() local 95 cur = h->htable[i]; in hashtab_map() 96 while (cur) { in hashtab_map() 97 ret = apply(cur->key, cur->datum, args); in hashtab_map() 100 cur = cur->next; in hashtab_map() [all …]
|
H A D | avtab.c | 124 struct avtab_node *prev, *cur, *newnode; in avtab_insert() local 131 for (prev = NULL, cur = h->htable[hvalue]; cur; in avtab_insert() 132 prev = cur, cur = cur->next) { in avtab_insert() 133 cmp = avtab_node_cmp(key, &cur->key); in avtab_insert() 158 struct avtab_node *prev, *cur; in avtab_insert_nonunique() local 164 for (prev = NULL, cur = h->htable[hvalue]; cur; in avtab_insert_nonunique() 165 prev = cur, cur = cur->next) { in avtab_insert_nonunique() 166 cmp = avtab_node_cmp(key, &cur->key); in avtab_insert_nonunique() 181 struct avtab_node *cur; in avtab_search_node() local 188 for (cur = h->htable[hvalue]; cur; cur = cur->next) { in avtab_search_node() [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap3-echo.dts | 158 led-cur = /bits/ 8 <12>; 159 max-cur = /bits/ 8 <15>; 165 led-cur = /bits/ 8 <12>; 166 max-cur = /bits/ 8 <15>; 172 led-cur = /bits/ 8 <12>; 173 max-cur = /bits/ 8 <15>; 185 led-cur = /bits/ 8 <12>; 186 max-cur = /bits/ 8 <15>; 192 led-cur = /bits/ 8 <12>; 193 max-cur = /bits/ 8 <15>; [all …]
|
/linux/drivers/mtd/nand/ |
H A D | ecc-sw-hamming.c | 121 u32 cur; in ecc_sw_hamming_calculate() local 152 cur = *bp++; in ecc_sw_hamming_calculate() 153 tmppar = cur; in ecc_sw_hamming_calculate() 154 rp4 ^= cur; in ecc_sw_hamming_calculate() 155 cur = *bp++; in ecc_sw_hamming_calculate() 156 tmppar ^= cur; in ecc_sw_hamming_calculate() 158 cur = *bp++; in ecc_sw_hamming_calculate() 159 tmppar ^= cur; in ecc_sw_hamming_calculate() 160 rp4 ^= cur; in ecc_sw_hamming_calculate() 161 cur = *bp++; in ecc_sw_hamming_calculate() [all …]
|
/linux/arch/mips/cavium-octeon/ |
H A D | csrc-octeon.c | 146 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/Documentation/driver-api/mtd/ |
H A D | nand_ecc.rst | 216 unsigned char cur; 229 cur = *bp++; 230 par ^= cur; 231 if (i & 0x01) rp1 ^= cur; else rp0 ^= cur; 232 if (i & 0x02) rp3 ^= cur; else rp2 ^= cur; 233 if (i & 0x04) rp5 ^= cur; else rp4 ^= cur; 234 if (i & 0x08) rp7 ^= cur; else rp6 ^= cur; 235 if (i & 0x10) rp9 ^= cur; else rp8 ^= cur; 236 if (i & 0x20) rp11 ^= cur; else rp10 ^= cur; 237 if (i & 0x40) rp13 ^= cur; else rp12 ^= cur; [all …]
|
/linux/tools/perf/util/ |
H A D | hashmap.h | 165 * @cur: struct hashmap_entry * used as a loop cursor 168 #define hashmap__for_each_entry(map, cur, bkt) \ argument 170 for (cur = (map)->buckets[bkt]; cur; cur = cur->next) 176 * @cur: struct hashmap_entry * used as a loop cursor 180 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument 182 for (cur = (map)->buckets[bkt]; \ 183 cur 192 hashmap__for_each_key_entry(map,cur,_key) global() argument 200 hashmap__for_each_key_entry_safe(map,cur,tmp,_key) global() argument [all...] |
/linux/drivers/clk/rockchip/ |
H A D | clk-pll.c | 167 struct rockchip_pll_rate_table cur; in rockchip_rk3036_pll_recalc_rate() local 170 rockchip_rk3036_pll_get_params(pll, &cur); in rockchip_rk3036_pll_recalc_rate() 172 rate64 *= cur.fbdiv; in rockchip_rk3036_pll_recalc_rate() 173 do_div(rate64, cur.refdiv); in rockchip_rk3036_pll_recalc_rate() 175 if (cur.dsmpd == 0) { in rockchip_rk3036_pll_recalc_rate() 177 u64 frac_rate64 = prate * cur.frac; in rockchip_rk3036_pll_recalc_rate() 179 do_div(frac_rate64, cur.refdiv); in rockchip_rk3036_pll_recalc_rate() 183 do_div(rate64, cur.postdiv1); in rockchip_rk3036_pll_recalc_rate() 184 do_div(rate64, cur.postdiv2); in rockchip_rk3036_pll_recalc_rate() 194 struct rockchip_pll_rate_table cur; in rockchip_rk3036_pll_set_params() local [all …]
|