Home
last modified time | relevance | path

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

12345678910>>...44

/Linux-v4.19/lib/
Dpercpu-refcount.c39 static unsigned long __percpu *percpu_count_ptr(struct percpu_ref *ref) in percpu_count_ptr() argument
42 (ref->percpu_count_ptr & ~__PERCPU_REF_ATOMIC_DEAD); in percpu_count_ptr()
59 int percpu_ref_init(struct percpu_ref *ref, percpu_ref_func_t *release, in percpu_ref_init() argument
66 ref->percpu_count_ptr = (unsigned long) in percpu_ref_init()
68 if (!ref->percpu_count_ptr) in percpu_ref_init()
71 ref->force_atomic = flags & PERCPU_REF_INIT_ATOMIC; in percpu_ref_init()
74 ref->percpu_count_ptr |= __PERCPU_REF_ATOMIC; in percpu_ref_init()
79 ref->percpu_count_ptr |= __PERCPU_REF_DEAD; in percpu_ref_init()
83 atomic_long_set(&ref->count, start_count); in percpu_ref_init()
85 ref->release = release; in percpu_ref_init()
[all …]
/Linux-v4.19/Documentation/media/uapi/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-v4.19/include/linux/
Dpercpu-refcount.h101 int __must_check percpu_ref_init(struct percpu_ref *ref,
104 void percpu_ref_exit(struct percpu_ref *ref);
105 void percpu_ref_switch_to_atomic(struct percpu_ref *ref,
107 void percpu_ref_switch_to_atomic_sync(struct percpu_ref *ref);
108 void percpu_ref_switch_to_percpu(struct percpu_ref *ref);
109 void percpu_ref_kill_and_confirm(struct percpu_ref *ref,
111 void percpu_ref_reinit(struct percpu_ref *ref);
125 static inline void percpu_ref_kill(struct percpu_ref *ref) in percpu_ref_kill() argument
127 percpu_ref_kill_and_confirm(ref, NULL); in percpu_ref_kill()
136 static inline bool __ref_is_percpu(struct percpu_ref *ref, in __ref_is_percpu() argument
[all …]
/Linux-v4.19/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-v4.19/scripts/
Ddocumentation-file-ref-check49 my $ref = $2;
60 $ref =~ s/(txt|rst)\[\d+]$/$1/;
63 $ref =~ s/\].*// if (!($ref =~ m/\[/));
66 $ref =~ s/[\,\.]+$//;
68 my $fulref = "$prefix$ref";
85 next if (grep -e, glob("$ref $fulref"));
91 next if (grep -e, glob("$path/$ref $path/$fulref"));
95 if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
96 $broken_ref{$ref}++;
109 foreach my $ref (keys %broken_ref) {
[all …]
/Linux-v4.19/kernel/dma/
Ddebug.c311 struct dma_debug_entry *ref, in __hash_bucket_find() argument
318 if (!match(ref, entry)) in __hash_bucket_find()
333 entry->size == ref->size ? ++match_lvl : 0; in __hash_bucket_find()
334 entry->type == ref->type ? ++match_lvl : 0; in __hash_bucket_find()
335 entry->direction == ref->direction ? ++match_lvl : 0; in __hash_bucket_find()
336 entry->sg_call_ents == ref->sg_call_ents ? ++match_lvl : 0; in __hash_bucket_find()
361 struct dma_debug_entry *ref) in bucket_find_exact() argument
363 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
367 struct dma_debug_entry *ref, in bucket_find_contain() argument
371 unsigned int max_range = dma_get_max_seg_size(ref->dev); in bucket_find_contain()
[all …]
/Linux-v4.19/drivers/clk/mxs/
Dclk-ref.c39 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_enable() local
41 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + CLR); in clk_ref_enable()
48 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_disable() local
50 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + SET); in clk_ref_disable()
56 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_recalc_rate() local
58 u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; in clk_ref_recalc_rate()
92 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() local
96 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate()
109 val = readl_relaxed(ref->reg); in clk_ref_set_rate()
112 writel_relaxed(val, ref->reg); in clk_ref_set_rate()
[all …]
/Linux-v4.19/net/mac80211/
Drate.h40 static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, in rate_control_alloc_sta() argument
44 return ref->ops->alloc_sta(ref->priv, &sta->sta, gfp); in rate_control_alloc_sta()
49 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_free_sta() local
53 ref->ops->free_sta(ref->priv, ista, priv_sta); in rate_control_free_sta()
59 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_add_sta_debugfs() local
60 if (ref && sta->debugfs_dir && ref->ops->add_sta_debugfs) in rate_control_add_sta_debugfs()
61 ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, in rate_control_add_sta_debugfs()
69 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_remove_sta_debugfs() local
70 if (ref && ref->ops->remove_sta_debugfs) in rate_control_remove_sta_debugfs()
71 ref->ops->remove_sta_debugfs(ref->priv, sta->rate_ctrl_priv); in rate_control_remove_sta_debugfs()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_global.c78 int drm_global_item_ref(struct drm_global_reference *ref) in drm_global_item_ref() argument
81 struct drm_global_item *item = &glob[ref->global_type]; in drm_global_item_ref()
85 ref->object = kzalloc(ref->size, GFP_KERNEL); in drm_global_item_ref()
86 if (unlikely(ref->object == NULL)) { in drm_global_item_ref()
90 ret = ref->init(ref); in drm_global_item_ref()
94 item->object = ref->object; in drm_global_item_ref()
96 ref->object = item->object; in drm_global_item_ref()
104 kfree(ref->object); in drm_global_item_ref()
105 ref->object = NULL; in drm_global_item_ref()
123 void drm_global_item_unref(struct drm_global_reference *ref) in drm_global_item_unref() argument
[all …]
/Linux-v4.19/fs/btrfs/
Ddelayed-ref.c227 struct btrfs_delayed_ref_node *ref) in drop_delayed_ref() argument
230 rb_erase(&ref->ref_node, &head->ref_tree); in drop_delayed_ref()
231 RB_CLEAR_NODE(&ref->ref_node); in drop_delayed_ref()
232 if (!list_empty(&ref->add_list)) in drop_delayed_ref()
233 list_del(&ref->add_list); in drop_delayed_ref()
234 ref->in_tree = 0; in drop_delayed_ref()
235 btrfs_put_delayed_ref(ref); in drop_delayed_ref()
244 struct btrfs_delayed_ref_node *ref, in merge_ref() argument
248 struct rb_node *node = rb_next(&ref->ref_node); in merge_ref()
258 if (comp_refs(ref, next, false)) in merge_ref()
[all …]
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()
246 struct ref_entry *ref; in free_block_entry() local
257 ref = rb_entry(n, struct ref_entry, node); in free_block_entry()
258 rb_erase(&ref->node, &be->refs); in free_block_entry()
259 kfree(ref); in free_block_entry()
323 struct ref_entry *ref = NULL, *exist; in add_tree_block() local
[all …]
/Linux-v4.19/drivers/dax/
Dpmem.c23 struct percpu_ref ref; member
28 static struct dax_pmem *to_dax_pmem(struct percpu_ref *ref) in to_dax_pmem() argument
30 return container_of(ref, struct dax_pmem, ref); in to_dax_pmem()
33 static void dax_pmem_percpu_release(struct percpu_ref *ref) in dax_pmem_percpu_release() argument
35 struct dax_pmem *dax_pmem = to_dax_pmem(ref); in dax_pmem_percpu_release()
43 struct percpu_ref *ref = data; in dax_pmem_percpu_exit() local
44 struct dax_pmem *dax_pmem = to_dax_pmem(ref); in dax_pmem_percpu_exit()
48 percpu_ref_exit(ref); in dax_pmem_percpu_exit()
53 struct percpu_ref *ref = data; in dax_pmem_percpu_kill() local
54 struct dax_pmem *dax_pmem = to_dax_pmem(ref); in dax_pmem_percpu_kill()
[all …]
/Linux-v4.19/Documentation/media/uapi/v4l/
Ddev-output.rst29 :ref:`VIDIOC_QUERYCAP` ioctl. As secondary device
30 functions they may also support the :ref:`raw VBI output <raw-vbi>`
39 Video output devices shall support :ref:`audio output <audio>`,
40 :ref:`modulator <tuner>`, :ref:`controls <control>`,
41 :ref:`cropping and scaling <crop>` and
42 :ref:`streaming parameter <streaming-par>` ioctls as needed. The
43 :ref:`video output <video>` ioctls must be supported by all video
56 As usual these parameters are *not* reset at :ref:`open() <func-open>`
62 defaults. An example is given in :ref:`crop`.
67 and call the :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` ioctl with a pointer
[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>`
41 Video capture devices shall support :ref:`audio input <audio>`,
42 :ref:`tuner`, :ref:`controls <control>`,
43 :ref:`cropping and scaling <crop>` and
44 :ref:`streaming parameter <streaming-par>` ioctls as needed. The
45 :ref:`video input <video>` ioctls must be supported by all video
58 As usual these parameters are *not* reset at :ref:`open() <func-open>`
64 defaults. An example is given in :ref:`crop`.
[all …]
Dlibv4l-introduction.rst16 :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 …]
Ddiff-v4l.rst13 V4L calls were removed from Kernel, but the library :ref:`libv4l`
22 not change from those used by V4L. They are listed in :ref:`devices`
23 and below in :ref:`v4l-dev`.
58 V4L2 drivers *may* support multiple opens, see :ref:`open` for details
68 :ref:`VIDIOC_QUERYCAP`.
75 capturing, video overlay and VBI capturing. See :ref:`open` for an
92 - The :ref:`video capture <capture>` interface is supported.
95 - The device has a :ref:`tuner or modulator <tuner>`.
98 - The :ref:`raw VBI capture <raw-vbi>` interface is supported.
101 - The :ref:`video overlay <overlay>` interface is supported.
[all …]
Dfunc-select.rst50 With the :ref:`select() <func-select>` function applications can suspend
56 :ref:`VIDIOC_DQBUF <VIDIOC_QBUF>` ioctl. When buffers are already in
59 On success :ref:`select() <func-select>` returns the total number of bits set in
63 :ref:`VIDIOC_QBUF` or
64 :ref:`VIDIOC_STREAMON` yet the :ref:`select() <func-select>`
66 or ``writefds``, but subsequent :ref:`VIDIOC_DQBUF <VIDIOC_QBUF>`
69 When use of the :ref:`read() <func-read>` function has been negotiated and the
70 driver does not capture yet, the :ref:`select() <func-select>` function starts
71 capturing. When that fails, :ref:`select() <func-select>` returns successful and
72 a subsequent :ref:`read() <func-read>` call, which also attempts to start
[all …]
/Linux-v4.19/drivers/xen/
Dgrant-table.c118 void (*update_entry)(grant_ref_t ref, domid_t domid,
128 int (*end_foreign_access_ref)(grant_ref_t ref, int readonly);
136 unsigned long (*end_foreign_transfer_ref)(grant_ref_t ref);
143 int (*query_foreign_access)(grant_ref_t ref);
173 int ref, rc = 0; in get_free_entries() local
184 ref = head = gnttab_free_head; in get_free_entries()
193 return ref; in get_free_entries()
222 static void put_free_entry(grant_ref_t ref) in put_free_entry() argument
226 gnttab_entry(ref) = gnttab_free_head; in put_free_entry()
227 gnttab_free_head = ref; in put_free_entry()
[all …]
/Linux-v4.19/arch/powerpc/perf/
Dimc-pmu.c317 struct imc_pmu_ref *ref; in ppc_nest_imc_cpu_offline() local
361 ref = get_nest_pmu_ref(cpu); in ppc_nest_imc_cpu_offline()
362 if (!ref) in ppc_nest_imc_cpu_offline()
365 ref->refc = 0; in ppc_nest_imc_cpu_offline()
411 struct imc_pmu_ref *ref; in nest_imc_counters_release() local
424 ref = get_nest_pmu_ref(event->cpu); in nest_imc_counters_release()
425 if (!ref) in nest_imc_counters_release()
429 mutex_lock(&ref->lock); in nest_imc_counters_release()
430 if (ref->refc == 0) { in nest_imc_counters_release()
441 mutex_unlock(&ref->lock); in nest_imc_counters_release()
[all …]
/Linux-v4.19/arch/powerpc/kvm/
De500_mmu_host.c192 struct tlbe_ref *ref = &vcpu_e500->gtlb_priv[tlbsel][esel].ref; in inval_gtlbe_on_host() local
195 if (!(ref->flags & E500_TLB_VALID)) { in inval_gtlbe_on_host()
196 WARN(ref->flags & (E500_TLB_BITMAP | E500_TLB_TLB0), in inval_gtlbe_on_host()
197 "%s: flags %x\n", __func__, ref->flags); in inval_gtlbe_on_host()
201 if (tlbsel == 1 && ref->flags & E500_TLB_BITMAP) { in inval_gtlbe_on_host()
219 ref->flags &= ~(E500_TLB_BITMAP | E500_TLB_VALID); in inval_gtlbe_on_host()
223 if (tlbsel == 1 && ref->flags & E500_TLB_TLB0) { in inval_gtlbe_on_host()
229 ref->flags &= ~(E500_TLB_TLB0 | E500_TLB_VALID); in inval_gtlbe_on_host()
236 if (ref->flags & E500_TLB_VALID) in inval_gtlbe_on_host()
240 ref->flags = 0; in inval_gtlbe_on_host()
[all …]
/Linux-v4.19/drivers/misc/lkdtm/
Drefcount.c17 static void overflow_check(refcount_t *ref) in overflow_check() argument
19 switch (refcount_read(ref)) { in overflow_check()
27 pr_err("Fail: refcount wrapped to %d\n", refcount_read(ref)); in overflow_check()
92 static void check_zero(refcount_t *ref) in check_zero() argument
94 switch (refcount_read(ref)) { in check_zero()
105 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_zero()
127 static void check_negative(refcount_t *ref, int start) in check_negative() argument
134 if (refcount_read(ref) == start) { in check_negative()
140 switch (refcount_read(ref)) { in check_negative()
148 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_negative()
[all …]

12345678910>>...44