Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 1953) sorted by relevance

12345678910>>...79

/linux-6.12.1/lib/
Dpercpu-refcount.c42 static unsigned long __percpu *percpu_count_ptr(struct percpu_ref *ref) in percpu_count_ptr() argument
45 (ref->percpu_count_ptr & ~__PERCPU_REF_ATOMIC_DEAD); in percpu_count_ptr()
63 int percpu_ref_init(struct percpu_ref *ref, percpu_ref_func_t *release, in percpu_ref_init() argument
71 ref->percpu_count_ptr = (unsigned long) in percpu_ref_init()
73 if (!ref->percpu_count_ptr) in percpu_ref_init()
76 data = kzalloc(sizeof(*ref->data), gfp); in percpu_ref_init()
78 free_percpu((void __percpu *)ref->percpu_count_ptr); in percpu_ref_init()
79 ref->percpu_count_ptr = 0; in percpu_ref_init()
87 ref->percpu_count_ptr |= __PERCPU_REF_ATOMIC; in percpu_ref_init()
94 ref->percpu_count_ptr |= __PERCPU_REF_DEAD; in percpu_ref_init()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_active.c29 struct i915_active *ref; member
77 struct i915_active *ref = addr; in active_debug_hint() local
79 return (void *)ref->active ?: (void *)ref->retire ?: (void *)ref; in active_debug_hint()
87 static void debug_active_init(struct i915_active *ref) in debug_active_init() argument
89 debug_object_init(ref, &active_debug_desc); in debug_active_init()
92 static void debug_active_activate(struct i915_active *ref) in debug_active_activate() argument
94 lockdep_assert_held(&ref->tree_lock); in debug_active_activate()
95 debug_object_activate(ref, &active_debug_desc); in debug_active_activate()
98 static void debug_active_deactivate(struct i915_active *ref) in debug_active_deactivate() argument
100 lockdep_assert_held(&ref->tree_lock); in debug_active_deactivate()
[all …]
Di915_active.h152 void __i915_active_init(struct i915_active *ref,
153 int (*active)(struct i915_active *ref),
154 void (*retire)(struct i915_active *ref),
160 #define i915_active_init(ref, active, retire, flags) do { \ argument
164 __i915_active_init(ref, active, retire, flags, &__mkey, &__wkey); \
167 int i915_active_add_request(struct i915_active *ref, struct i915_request *rq);
170 i915_active_set_exclusive(struct i915_active *ref, struct dma_fence *f);
172 int __i915_active_wait(struct i915_active *ref, int state);
173 static inline int i915_active_wait(struct i915_active *ref) in i915_active_wait() argument
175 return __i915_active_wait(ref, TASK_INTERRUPTIBLE); in i915_active_wait()
[all …]
/linux-6.12.1/Documentation/userspace-api/media/dvb/
Dfrontend-property-terrestrial-systems.rst17 - :ref:`DTV_API_VERSION <DTV-API-VERSION>`
19 - :ref:`DTV_DELIVERY_SYSTEM <DTV-DELIVERY-SYSTEM>`
21 - :ref:`DTV_TUNE <DTV-TUNE>`
23 - :ref:`DTV_CLEAR <DTV-CLEAR>`
25 - :ref:`DTV_FREQUENCY <DTV-FREQUENCY>`
27 - :ref:`DTV_MODULATION <DTV-MODULATION>`
29 - :ref:`DTV_BANDWIDTH_HZ <DTV-BANDWIDTH-HZ>`
31 - :ref:`DTV_INVERSION <DTV-INVERSION>`
33 - :ref:`DTV_CODE_RATE_HP <DTV-CODE-RATE-HP>`
35 - :ref:`DTV_CODE_RATE_LP <DTV-CODE-RATE-LP>`
[all …]
Dfrontend-property-satellite-systems.rst17 - :ref:`DTV_API_VERSION <DTV-API-VERSION>`
19 - :ref:`DTV_DELIVERY_SYSTEM <DTV-DELIVERY-SYSTEM>`
21 - :ref:`DTV_TUNE <DTV-TUNE>`
23 - :ref:`DTV_CLEAR <DTV-CLEAR>`
25 - :ref:`DTV_FREQUENCY <DTV-FREQUENCY>`
27 - :ref:`DTV_INVERSION <DTV-INVERSION>`
29 - :ref:`DTV_SYMBOL_RATE <DTV-SYMBOL-RATE>`
31 - :ref:`DTV_INNER_FEC <DTV-INNER-FEC>`
33 - :ref:`DTV_VOLTAGE <DTV-VOLTAGE>`
35 - :ref:`DTV_TONE <DTV-TONE>`
[all …]
Dfrontend-property-cable-systems.rst24 - :ref:`DTV_API_VERSION <DTV-API-VERSION>`
26 - :ref:`DTV_DELIVERY_SYSTEM <DTV-DELIVERY-SYSTEM>`
28 - :ref:`DTV_TUNE <DTV-TUNE>`
30 - :ref:`DTV_CLEAR <DTV-CLEAR>`
32 - :ref:`DTV_FREQUENCY <DTV-FREQUENCY>`
34 - :ref:`DTV_MODULATION <DTV-MODULATION>`
36 - :ref:`DTV_INVERSION <DTV-INVERSION>`
38 - :ref:`DTV_SYMBOL_RATE <DTV-SYMBOL-RATE>`
40 - :ref:`DTV_INNER_FEC <DTV-INNER-FEC>`
42 - :ref:`DTV_LNA <DTV-LNA>`
[all …]
/linux-6.12.1/include/linux/
Dpercpu-refcount.h102 struct percpu_ref *ref; member
121 int __must_check percpu_ref_init(struct percpu_ref *ref,
124 void percpu_ref_exit(struct percpu_ref *ref);
125 void percpu_ref_switch_to_atomic(struct percpu_ref *ref,
127 void percpu_ref_switch_to_atomic_sync(struct percpu_ref *ref);
128 void percpu_ref_switch_to_percpu(struct percpu_ref *ref);
129 void percpu_ref_kill_and_confirm(struct percpu_ref *ref,
131 void percpu_ref_resurrect(struct percpu_ref *ref);
132 void percpu_ref_reinit(struct percpu_ref *ref);
133 bool percpu_ref_is_zero(struct percpu_ref *ref);
[all …]
Dalloc_tag.h37 static inline bool is_codetag_empty(union codetag_ref *ref) in is_codetag_empty() argument
39 return ref->ct == CODETAG_EMPTY; in is_codetag_empty()
42 static inline void set_codetag_empty(union codetag_ref *ref) in set_codetag_empty() argument
44 if (ref) in set_codetag_empty()
45 ref->ct = CODETAG_EMPTY; in set_codetag_empty()
50 static inline bool is_codetag_empty(union codetag_ref *ref) { return false; } in is_codetag_empty() argument
51 static inline void set_codetag_empty(union codetag_ref *ref) {} in set_codetag_empty() argument
119 static inline void alloc_tag_add_check(union codetag_ref *ref, struct alloc_tag *tag) in alloc_tag_add_check() argument
121 WARN_ONCE(ref && ref->ct, in alloc_tag_add_check()
123 ref->ct->filename, ref->ct->lineno); in alloc_tag_add_check()
[all …]
Dpgalloc_tag.h21 static inline struct page_ext *page_ext_from_codetag_ref(union codetag_ref *ref) in page_ext_from_codetag_ref() argument
23 return (void *)ref - page_alloc_tagging_ops.offset; in page_ext_from_codetag_ref()
38 static inline void put_page_tag_ref(union codetag_ref *ref) in put_page_tag_ref() argument
40 if (WARN_ON(!ref)) in put_page_tag_ref()
43 page_ext_put(page_ext_from_codetag_ref(ref)); in put_page_tag_ref()
49 union codetag_ref *ref = get_page_tag_ref(page); in clear_page_tag_ref() local
51 if (ref) { in clear_page_tag_ref()
52 set_codetag_empty(ref); in clear_page_tag_ref()
53 put_page_tag_ref(ref); in clear_page_tag_ref()
62 union codetag_ref *ref = get_page_tag_ref(page); in pgalloc_tag_add() local
[all …]
Drcuref.h24 static inline void rcuref_init(rcuref_t *ref, unsigned int cnt) in rcuref_init() argument
26 atomic_set(&ref->refcnt, cnt - 1); in rcuref_init()
35 static inline unsigned int rcuref_read(rcuref_t *ref) in rcuref_read() argument
37 unsigned int c = atomic_read(&ref->refcnt); in rcuref_read()
43 extern __must_check bool rcuref_get_slowpath(rcuref_t *ref);
61 static inline __must_check bool rcuref_get(rcuref_t *ref) in rcuref_get() argument
67 if (likely(!atomic_add_negative_relaxed(1, &ref->refcnt))) in rcuref_get()
71 return rcuref_get_slowpath(ref); in rcuref_get()
74 extern __must_check bool rcuref_put_slowpath(rcuref_t *ref);
79 static __always_inline __must_check bool __rcuref_put(rcuref_t *ref) in __rcuref_put() argument
[all …]
/linux-6.12.1/fs/jffs2/
Dxattr.c444 static int verify_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref) in verify_xattr_ref() argument
454 if (ref_flags(ref->node) != REF_UNCHECKED) in verify_xattr_ref()
456 offset = ref_offset(ref->node); in verify_xattr_ref()
482 ref->ino = je32_to_cpu(rr.ino); in verify_xattr_ref()
483 ref->xid = je32_to_cpu(rr.xid); in verify_xattr_ref()
484 ref->xseqno = je32_to_cpu(rr.xseqno); in verify_xattr_ref()
485 if (ref->xseqno > c->highest_xseqno) in verify_xattr_ref()
486 c->highest_xseqno = (ref->xseqno & ~XREF_DELETE_MARKER); in verify_xattr_ref()
490 for (raw=ref->node; raw != (void *)ref; raw=raw->next_in_ino) { in verify_xattr_ref()
497 raw->flash_offset = ref_offset(raw) | ((ref->node==raw) ? REF_PRISTINE : REF_NORMAL); in verify_xattr_ref()
[all …]
Dmalloc.c188 struct jffs2_raw_node_ref **p, *ref; in jffs2_prealloc_raw_node_refs() local
194 ref = *p; in jffs2_prealloc_raw_node_refs()
199 if (ref && ref->flash_offset != REF_EMPTY_NODE) in jffs2_prealloc_raw_node_refs()
200 ref++; in jffs2_prealloc_raw_node_refs()
203 if (!ref) { in jffs2_prealloc_raw_node_refs()
205 ref = *p = jffs2_alloc_refblock(); in jffs2_prealloc_raw_node_refs()
206 if (!ref) in jffs2_prealloc_raw_node_refs()
209 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_prealloc_raw_node_refs()
210 p = &ref->next_in_ino; in jffs2_prealloc_raw_node_refs()
211 ref = *p; in jffs2_prealloc_raw_node_refs()
[all …]
/linux-6.12.1/arch/arm64/boot/dts/rockchip/
Drk3588-base-pinctrl.dtsi15 /omit-if-no-ref/
30 /omit-if-no-ref/
71 /omit-if-no-ref/
80 /omit-if-no-ref/
91 /omit-if-no-ref/
100 /omit-if-no-ref/
111 /omit-if-no-ref/
120 /omit-if-no-ref/
131 /omit-if-no-ref/
138 /omit-if-no-ref/
[all …]
Drk3568-pinctrl.dtsi15 /omit-if-no-ref/
36 /omit-if-no-ref/
43 /omit-if-no-ref/
50 /omit-if-no-ref/
57 /omit-if-no-ref/
64 /omit-if-no-ref/
71 /omit-if-no-ref/
80 /omit-if-no-ref/
103 /omit-if-no-ref/
128 /omit-if-no-ref/
[all …]
Drockchip-pinconf.dtsi7 /omit-if-no-ref/
12 /omit-if-no-ref/
17 /omit-if-no-ref/
22 /omit-if-no-ref/
28 /omit-if-no-ref/
34 /omit-if-no-ref/
40 /omit-if-no-ref/
46 /omit-if-no-ref/
52 /omit-if-no-ref/
58 /omit-if-no-ref/
[all …]
Drk3588-extra-pinctrl.dtsi15 /omit-if-no-ref/
25 /omit-if-no-ref/
35 /omit-if-no-ref/
52 /omit-if-no-ref/
61 /omit-if-no-ref/
70 /omit-if-no-ref/
77 /omit-if-no-ref/
88 /omit-if-no-ref/
99 /omit-if-no-ref/
108 /omit-if-no-ref/
[all …]
/linux-6.12.1/fs/smb/client/
Ddfs.h28 struct dfs_ref *ref; member
34 #define ref_walk_cur(w) ((w)->ref)
60 static inline void __ref_walk_free(struct dfs_ref *ref) in __ref_walk_free() argument
62 kfree(ref->path); in __ref_walk_free()
63 kfree(ref->full_path); in __ref_walk_free()
64 dfs_cache_free_tgts(&ref->tl); in __ref_walk_free()
65 if (ref->ses) in __ref_walk_free()
66 cifs_put_smb_ses(ref->ses); in __ref_walk_free()
67 memset(ref, 0, sizeof(*ref)); in __ref_walk_free()
72 struct dfs_ref *ref; in ref_walk_free() local
[all …]
/linux-6.12.1/scripts/
Ddocumentation-file-ref-check108 my $ref = $2;
119 $ref =~ s/(txt|rst)\[\d+]$/$1/;
122 $ref =~ s/\].*// if (!($ref =~ m/\[/));
125 $ref =~ s/[\,\.]+$//;
127 my $fulref = "$prefix$ref";
144 next if (grep -e, glob("$ref $fulref"));
151 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
160 if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
161 $broken_ref{$ref}++;
177 foreach my $ref (keys %broken_ref) {
[all …]
/linux-6.12.1/drivers/clk/mxs/
Dclk-ref.c33 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_enable() local
35 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + CLR); in clk_ref_enable()
42 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_disable() local
44 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + SET); in clk_ref_disable()
50 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_recalc_rate() local
52 u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; in clk_ref_recalc_rate()
81 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() local
85 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate()
93 val = readl_relaxed(ref->reg); in clk_ref_set_rate()
96 writel_relaxed(val, ref->reg); in clk_ref_set_rate()
[all …]
/linux-6.12.1/kernel/dma/
Ddebug.c295 struct dma_debug_entry *ref, in __hash_bucket_find() argument
302 if (!match(ref, entry)) in __hash_bucket_find()
317 entry->size == ref->size ? ++match_lvl : 0; in __hash_bucket_find()
318 entry->type == ref->type ? ++match_lvl : 0; in __hash_bucket_find()
319 entry->direction == ref->direction ? ++match_lvl : 0; in __hash_bucket_find()
320 entry->sg_call_ents == ref->sg_call_ents ? ++match_lvl : 0; in __hash_bucket_find()
345 struct dma_debug_entry *ref) in bucket_find_exact() argument
347 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
351 struct dma_debug_entry *ref, in bucket_find_contain() argument
355 struct dma_debug_entry *entry, index = *ref; in bucket_find_contain()
[all …]
/linux-6.12.1/drivers/dpll/
Ddpll_core.c57 dpll_pin_registration_find(struct dpll_pin_ref *ref, in dpll_pin_registration_find() argument
63 list_for_each_entry(reg, &ref->registration_list, list) { in dpll_pin_registration_find()
77 struct dpll_pin_ref *ref; in dpll_xa_ref_pin_add() local
82 xa_for_each(xa_pins, i, ref) { in dpll_xa_ref_pin_add()
83 if (ref->pin != pin) in dpll_xa_ref_pin_add()
85 reg = dpll_pin_registration_find(ref, ops, priv, cookie); in dpll_xa_ref_pin_add()
87 refcount_inc(&ref->refcount); in dpll_xa_ref_pin_add()
95 ref = kzalloc(sizeof(*ref), GFP_KERNEL); in dpll_xa_ref_pin_add()
96 if (!ref) in dpll_xa_ref_pin_add()
98 ref->pin = pin; in dpll_xa_ref_pin_add()
[all …]
/linux-6.12.1/arch/arm/boot/dts/rockchip/
Drv1126-pinctrl.dtsi15 /omit-if-no-ref/
23 /omit-if-no-ref/
29 /omit-if-no-ref/
49 /omit-if-no-ref/
55 /omit-if-no-ref/
63 /omit-if-no-ref/
81 /omit-if-no-ref/
91 /omit-if-no-ref/
101 /omit-if-no-ref/
109 /omit-if-no-ref/
[all …]
/linux-6.12.1/fs/btrfs/
Dref-verify.c54 struct ref_entry ref; member
165 struct ref_entry *ref) in insert_ref_entry() argument
175 cmp = comp_refs(entry, ref); in insert_ref_entry()
184 rb_link_node(&ref->node, parent_node, p); in insert_ref_entry()
185 rb_insert_color(&ref->node, root); in insert_ref_entry()
238 struct ref_entry *ref; in free_block_entry() local
249 ref = rb_entry(n, struct ref_entry, node); in free_block_entry()
250 rb_erase(&ref->node, &be->refs); in free_block_entry()
251 kfree(ref); in free_block_entry()
317 struct ref_entry *ref = NULL, *exist; in add_tree_block() local
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/selftests/
Di915_active.c20 struct kref ref; member
26 kref_get(&active->ref); in __live_get()
35 static void __live_release(struct kref *ref) in __live_release() argument
37 struct live_active *active = container_of(ref, typeof(*active), ref); in __live_release()
44 kref_put(&active->ref, __live_release); in __live_put()
71 kref_init(&active->ref); in __live_alloc()
279 void i915_active_print(struct i915_active *ref, struct drm_printer *m) in i915_active_print() argument
281 drm_printf(m, "active %ps:%ps\n", ref->active, ref->retire); in i915_active_print()
282 drm_printf(m, "\tcount: %d\n", atomic_read(&ref->count)); in i915_active_print()
284 str_yes_no(!llist_empty(&ref->preallocated_barriers))); in i915_active_print()
[all …]
/linux-6.12.1/arch/powerpc/perf/
Dimc-pmu.c361 struct imc_pmu_ref *ref; in ppc_nest_imc_cpu_offline() local
412 ref = get_nest_pmu_ref(cpu); in ppc_nest_imc_cpu_offline()
413 if (!ref) in ppc_nest_imc_cpu_offline()
416 ref->refc = 0; in ppc_nest_imc_cpu_offline()
462 struct imc_pmu_ref *ref; in nest_imc_counters_release() local
475 ref = get_nest_pmu_ref(event->cpu); in nest_imc_counters_release()
476 if (!ref) in nest_imc_counters_release()
480 spin_lock(&ref->lock); in nest_imc_counters_release()
481 if (ref->refc == 0) { in nest_imc_counters_release()
492 spin_unlock(&ref->lock); in nest_imc_counters_release()
[all …]

12345678910>>...79