Home
last modified time | relevance | path

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

12345678910>>...68

/linux/lib/
H A 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/Documentation/userspace-api/media/dvb/
H A 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 …]
H A 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 …]
H A 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/include/linux/
H A 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 …]
H A Dalloc_tag.h52 static inline bool is_codetag_empty(union codetag_ref *ref) in is_codetag_empty() argument
54 return ref->ct == CODETAG_EMPTY; in is_codetag_empty()
57 static inline void set_codetag_empty(union codetag_ref *ref) in set_codetag_empty() argument
59 if (ref) in set_codetag_empty()
60 ref->ct = CODETAG_EMPTY; in set_codetag_empty()
65 static inline bool is_codetag_empty(union codetag_ref *ref) { return false; } in is_codetag_empty() argument
67 static inline void set_codetag_empty(union codetag_ref *ref) in set_codetag_empty() argument
69 if (ref) in set_codetag_empty()
70 ref->ct = NULL; in set_codetag_empty()
141 static inline void alloc_tag_add_check(union codetag_ref *ref, struct alloc_tag *tag) in alloc_tag_add_check() argument
[all …]
H A Dpgalloc_tag.h24 union codetag_ref *ref; /* reference in page extension */ member
63 static inline void idx_to_ref(pgalloc_tag_idx idx, union codetag_ref *ref) in idx_to_ref() argument
67 ref->ct = NULL; in idx_to_ref()
70 set_codetag_empty(ref); in idx_to_ref()
74 ref->ct = idx < kernel_tags.count ? in idx_to_ref()
81 static inline pgalloc_tag_idx ref_to_idx(union codetag_ref *ref) in ref_to_idx() argument
85 if (!ref->ct) in ref_to_idx()
88 if (is_codetag_empty(ref)) in ref_to_idx()
91 tag = ct_to_alloc_tag(ref->ct); in ref_to_idx()
101 static inline bool get_page_tag_ref(struct page *page, union codetag_ref *ref, in get_page_tag_ref() argument
[all …]
H A 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/arch/arm64/boot/dts/rockchip/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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/fs/jffs2/
H A 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 …]
/linux/fs/smb/client/
H A 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/drivers/gpu/drm/i915/
H A 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/scripts/
H A 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/drivers/clk/mxs/
H A 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/kernel/dma/
H A Ddebug.c293 struct dma_debug_entry *ref, in __hash_bucket_find() argument
300 if (!match(ref, entry)) in __hash_bucket_find()
315 entry->size == ref->size ? ++match_lvl : 0; in __hash_bucket_find()
316 entry->type == ref->type ? ++match_lvl : 0; in __hash_bucket_find()
317 entry->direction == ref->direction ? ++match_lvl : 0; in __hash_bucket_find()
318 entry->sg_call_ents == ref->sg_call_ents ? ++match_lvl : 0; in __hash_bucket_find()
343 struct dma_debug_entry *ref) in bucket_find_exact() argument
345 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
349 struct dma_debug_entry *ref, in bucket_find_contain() argument
353 struct dma_debug_entry *entry, index = *ref; in bucket_find_contain()
[all …]
/linux/drivers/dpll/
H A 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/arch/arm/boot/dts/rockchip/
H A 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/fs/btrfs/
H A 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/arch/powerpc/perf/
H A 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 …]
/linux/drivers/gpu/drm/i915/selftests/
H A 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/include/trace/events/
H A Dfscache.h263 int ref,
266 TP_ARGS(cookie_debug_id, ref, where),
270 __field(int, ref )
276 __entry->ref = ref;
283 __entry->ref)
288 int ref,
293 TP_ARGS(cookie_debug_id, ref, n_active, n_accesses, why),
297 __field(int, ref )
305 __entry->ref = ref;
314 __entry->ref,
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Ddev-output.rst29 :ref:`VIDIOC_QUERYCAP` ioctl. As secondary device
30 functions they may also support the :ref:`raw VBI output <raw-vbi>`
38 Video output devices shall support :ref:`audio output <audio>`,
39 :ref:`modulator <tuner>`, :ref:`controls <control>`,
40 :ref:`cropping and scaling <crop>` and
41 :ref:`streaming parameter <streaming-par>` ioctls as needed. The
42 :ref:`video output <video>` ioctls must be supported by all video
60 defaults. An example is given in :ref:`crop`.
65 and call the :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` ioctl with a pointer
75 of :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>`, and call the :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>`
[all …]

12345678910>>...68