Home
last modified time | relevance | path

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

12345678910>>...63

/Linux-v5.15/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()
86 ref->percpu_count_ptr |= __PERCPU_REF_ATOMIC; in percpu_ref_init()
93 ref->percpu_count_ptr |= __PERCPU_REF_DEAD; in percpu_ref_init()
101 data->ref = ref; in percpu_ref_init()
[all …]
/Linux-v5.15/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 if (!atomic_read(&ref->count)) /* before the first inc */ in debug_active_activate()
96 debug_object_activate(ref, &active_debug_desc); in debug_active_activate()
99 static void debug_active_deactivate(struct i915_active *ref) in debug_active_deactivate() argument
[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); \
168 __i915_active_ref(struct i915_active *ref, u64 idx, struct dma_fence *fence);
169 int i915_active_ref(struct i915_active *ref, u64 idx, struct dma_fence *fence);
172 i915_active_add_request(struct i915_active *ref, struct i915_request *rq) in i915_active_add_request() argument
174 return i915_active_ref(ref, in i915_active_add_request()
180 i915_active_set_exclusive(struct i915_active *ref, struct dma_fence *f);
[all …]
/Linux-v5.15/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-v5.15/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 …]
/Linux-v5.15/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.c204 struct jffs2_raw_node_ref **p, *ref; in jffs2_prealloc_raw_node_refs() local
210 ref = *p; in jffs2_prealloc_raw_node_refs()
215 if (ref && ref->flash_offset != REF_EMPTY_NODE) in jffs2_prealloc_raw_node_refs()
216 ref++; in jffs2_prealloc_raw_node_refs()
219 if (!ref) { in jffs2_prealloc_raw_node_refs()
221 ref = *p = jffs2_alloc_refblock(); in jffs2_prealloc_raw_node_refs()
222 if (!ref) in jffs2_prealloc_raw_node_refs()
225 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_prealloc_raw_node_refs()
226 p = &ref->next_in_ino; in jffs2_prealloc_raw_node_refs()
227 ref = *p; in jffs2_prealloc_raw_node_refs()
[all …]
Dnodelist.c590 struct jffs2_raw_node_ref *ref; in jffs2_link_node_ref() local
595 ref = jeb->last_node; in jffs2_link_node_ref()
597 dbg_noderef("Last node at %p is (%08x,%p)\n", ref, ref->flash_offset, in jffs2_link_node_ref()
598 ref->next_in_ino); in jffs2_link_node_ref()
600 while (ref->flash_offset != REF_EMPTY_NODE) { in jffs2_link_node_ref()
601 if (ref->flash_offset == REF_LINK_NODE) in jffs2_link_node_ref()
602 ref = ref->next_in_ino; in jffs2_link_node_ref()
604 ref++; in jffs2_link_node_ref()
607 dbg_noderef("New ref is %p (%08x becomes %08x,%p) len 0x%x\n", ref, in jffs2_link_node_ref()
608 ref->flash_offset, ofs, ref->next_in_ino, len); in jffs2_link_node_ref()
[all …]
/Linux-v5.15/arch/arm64/boot/dts/rockchip/
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 …]
/Linux-v5.15/scripts/
Ddocumentation-file-ref-check105 my $ref = $2;
116 $ref =~ s/(txt|rst)\[\d+]$/$1/;
119 $ref =~ s/\].*// if (!($ref =~ m/\[/));
122 $ref =~ s/[\,\.]+$//;
124 my $fulref = "$prefix$ref";
141 next if (grep -e, glob("$ref $fulref"));
147 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
156 if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
157 $broken_ref{$ref}++;
173 foreach my $ref (keys %broken_ref) {
[all …]
/Linux-v5.15/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()
86 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() local
90 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate()
103 val = readl_relaxed(ref->reg); in clk_ref_set_rate()
106 writel_relaxed(val, ref->reg); in clk_ref_set_rate()
[all …]
/Linux-v5.15/kernel/dma/
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 unsigned int max_range = dma_get_max_seg_size(ref->dev); in bucket_find_contain()
[all …]
/Linux-v5.15/fs/btrfs/
Dref-verify.c51 struct ref_entry ref; member
162 struct ref_entry *ref) in insert_ref_entry() argument
172 cmp = comp_refs(entry, ref); in insert_ref_entry()
181 rb_link_node(&ref->node, parent_node, p); in insert_ref_entry()
182 rb_insert_color(&ref->node, root); in insert_ref_entry()
235 struct ref_entry *ref; in free_block_entry() local
246 ref = rb_entry(n, struct ref_entry, node); in free_block_entry()
247 rb_erase(&ref->node, &be->refs); in free_block_entry()
248 kfree(ref); in free_block_entry()
314 struct ref_entry *ref = NULL, *exist; in add_tree_block() local
[all …]
Ddelayed-ref.c421 struct btrfs_delayed_ref_node *ref) in drop_delayed_ref() argument
424 rb_erase_cached(&ref->ref_node, &head->ref_tree); in drop_delayed_ref()
425 RB_CLEAR_NODE(&ref->ref_node); in drop_delayed_ref()
426 if (!list_empty(&ref->add_list)) in drop_delayed_ref()
427 list_del(&ref->add_list); in drop_delayed_ref()
428 ref->in_tree = 0; in drop_delayed_ref()
429 btrfs_put_delayed_ref(ref); in drop_delayed_ref()
436 struct btrfs_delayed_ref_node *ref, in merge_ref() argument
440 struct rb_node *node = rb_next(&ref->ref_node); in merge_ref()
450 if (comp_refs(ref, next, false)) in merge_ref()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/selftests/
Di915_active.c19 struct kref ref; member
25 kref_get(&active->ref); in __live_get()
34 static void __live_release(struct kref *ref) in __live_release() argument
36 struct live_active *active = container_of(ref, typeof(*active), ref); in __live_release()
43 kref_put(&active->ref, __live_release); in __live_put()
70 kref_init(&active->ref); in __live_alloc()
278 void i915_active_print(struct i915_active *ref, struct drm_printer *m) in i915_active_print() argument
280 drm_printf(m, "active %ps:%ps\n", ref->active, ref->retire); in i915_active_print()
281 drm_printf(m, "\tcount: %d\n", atomic_read(&ref->count)); in i915_active_print()
283 yesno(!llist_empty(&ref->preallocated_barriers))); in i915_active_print()
[all …]
/Linux-v5.15/Documentation/userspace-api/media/v4l/
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 …]
Ddev-capture.rst30 :ref:`VIDIOC_QUERYCAP` ioctl. As secondary device
31 functions they may also support the :ref:`video overlay <overlay>`
32 (``V4L2_CAP_VIDEO_OVERLAY``) and the :ref:`raw VBI capture <raw-vbi>`
40 Video capture devices shall support :ref:`audio input <audio>`,
41 :ref:`tuner`, :ref:`controls <control>`,
42 :ref:`cropping and scaling <crop>` and
43 :ref:`streaming parameter <streaming-par>` ioctls as needed. The
44 :ref:`video input <video>` ioctls must be supported by all video
62 defaults. An example is given in :ref:`crop`.
68 :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` ioctl with a pointer to this
[all …]
Dlibv4l-introduction.rst17 :ref:`v4l2grab <v4l2grab-example>`.
28 :ref:`V4L2_PIX_FMT_BGR24 <V4L2-PIX-FMT-BGR24>`,
29 :ref:`V4L2_PIX_FMT_HM12 <V4L2-PIX-FMT-HM12>`,
30 :ref:`V4L2_PIX_FMT_JPEG <V4L2-PIX-FMT-JPEG>`,
31 :ref:`V4L2_PIX_FMT_MJPEG <V4L2-PIX-FMT-MJPEG>`,
32 :ref:`V4L2_PIX_FMT_MR97310A <V4L2-PIX-FMT-MR97310A>`,
33 :ref:`V4L2_PIX_FMT_OV511 <V4L2-PIX-FMT-OV511>`,
34 :ref:`V4L2_PIX_FMT_OV518 <V4L2-PIX-FMT-OV518>`,
35 :ref:`V4L2_PIX_FMT_PAC207 <V4L2-PIX-FMT-PAC207>`,
36 :ref:`V4L2_PIX_FMT_PJPG <V4L2-PIX-FMT-PJPG>`,
[all …]
/Linux-v5.15/arch/powerpc/perf/
Dimc-pmu.c347 struct imc_pmu_ref *ref; in ppc_nest_imc_cpu_offline() local
398 ref = get_nest_pmu_ref(cpu); in ppc_nest_imc_cpu_offline()
399 if (!ref) in ppc_nest_imc_cpu_offline()
402 ref->refc = 0; in ppc_nest_imc_cpu_offline()
448 struct imc_pmu_ref *ref; in nest_imc_counters_release() local
461 ref = get_nest_pmu_ref(event->cpu); in nest_imc_counters_release()
462 if (!ref) in nest_imc_counters_release()
466 mutex_lock(&ref->lock); in nest_imc_counters_release()
467 if (ref->refc == 0) { in nest_imc_counters_release()
478 mutex_unlock(&ref->lock); in nest_imc_counters_release()
[all …]
/Linux-v5.15/drivers/xen/
Dgrant-table.c117 void (*update_entry)(grant_ref_t ref, domid_t domid,
127 int (*end_foreign_access_ref)(grant_ref_t ref, int readonly);
135 unsigned long (*end_foreign_transfer_ref)(grant_ref_t ref);
142 int (*query_foreign_access)(grant_ref_t ref);
172 int ref, rc = 0; in get_free_entries() local
183 ref = head = gnttab_free_head; in get_free_entries()
192 return ref; in get_free_entries()
221 static void put_free_entry(grant_ref_t ref) in put_free_entry() argument
225 gnttab_entry(ref) = gnttab_free_head; in put_free_entry()
226 gnttab_free_head = ref; in put_free_entry()
[all …]
/Linux-v5.15/tools/bpf/bpftool/
Dpids.c31 struct obj_ref *ref; in add_ref() local
44 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref()
51 ref = &refs->refs[refs->ref_cnt]; in add_ref()
52 ref->pid = e->pid; in add_ref()
53 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
75 ref = &refs->refs[0]; in add_ref()
76 ref->pid = e->pid; in add_ref()
77 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
182 struct obj_ref *ref; in emit_obj_refs_json() local
197 ref = &refs->refs[i]; in emit_obj_refs_json()
[all …]
/Linux-v5.15/arch/powerpc/kvm/
De500_mmu_host.c189 struct tlbe_ref *ref = &vcpu_e500->gtlb_priv[tlbsel][esel].ref; in inval_gtlbe_on_host() local
192 if (!(ref->flags & E500_TLB_VALID)) { in inval_gtlbe_on_host()
193 WARN(ref->flags & (E500_TLB_BITMAP | E500_TLB_TLB0), in inval_gtlbe_on_host()
194 "%s: flags %x\n", __func__, ref->flags); in inval_gtlbe_on_host()
198 if (tlbsel == 1 && ref->flags & E500_TLB_BITMAP) { in inval_gtlbe_on_host()
216 ref->flags &= ~(E500_TLB_BITMAP | E500_TLB_VALID); in inval_gtlbe_on_host()
220 if (tlbsel == 1 && ref->flags & E500_TLB_TLB0) { in inval_gtlbe_on_host()
226 ref->flags &= ~(E500_TLB_TLB0 | E500_TLB_VALID); in inval_gtlbe_on_host()
233 if (ref->flags & E500_TLB_VALID) in inval_gtlbe_on_host()
237 ref->flags = 0; in inval_gtlbe_on_host()
[all …]

12345678910>>...63