Home
last modified time | relevance | path

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

12345678910>>...83

/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/drivers/gpu/drm/i915/
H A 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 …]
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/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()
153 static inline void alloc_tag_add_check(union codetag_ref *ref, struct alloc_tag *tag) in alloc_tag_add_check() 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()
39 static inline unsigned int rcuref_read(rcuref_t *ref) in rcuref_read() argument
41 unsigned int c = atomic_read(&ref->refcnt); in rcuref_read()
56 static inline bool rcuref_is_dead(rcuref_t *ref) in rcuref_is_dead() argument
58 unsigned int c = atomic_read(&ref->refcnt); in rcuref_is_dead()
63 extern __must_check bool rcuref_get_slowpath(rcuref_t *ref);
81 static inline __must_check bool rcuref_get(rcuref_t *ref) in rcuref_get() argument
87 if (likely(!atomic_add_negative_relaxed(1, &ref->refcnt))) in rcuref_get()
91 return rcuref_get_slowpath(ref); in rcuref_get()
[all …]
H A Dfile_ref.h59 static inline void file_ref_init(file_ref_t *ref, unsigned long cnt) in file_ref_init() argument
61 atomic_long_set(&ref->refcnt, cnt - 1); in file_ref_init()
64 bool __file_ref_put(file_ref_t *ref, unsigned long cnt);
78 static __always_inline __must_check bool file_ref_get(file_ref_t *ref) in file_ref_get() argument
108 return !atomic_long_add_negative(1, &ref->refcnt); in file_ref_get()
118 static __always_inline void file_ref_inc(file_ref_t *ref) in file_ref_inc() argument
120 long prior = atomic_long_fetch_inc_relaxed(&ref->refcnt); in file_ref_inc()
139 static __always_inline __must_check bool file_ref_put(file_ref_t *ref) in file_ref_put() argument
157 cnt = atomic_long_dec_return(&ref->refcnt); in file_ref_put()
160 return __file_ref_put(ref, cnt); in file_ref_put()
[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 …]
/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 Drk3576-pinctrl.dtsi15 /omit-if-no-ref/
22 /omit-if-no-ref/
29 /omit-if-no-ref/
38 /omit-if-no-ref/
45 /omit-if-no-ref/
54 /omit-if-no-ref/
61 /omit-if-no-ref/
70 /omit-if-no-ref/
77 /omit-if-no-ref/
86 /omit-if-no-ref/
[all …]
H A Drk3528-pinctrl.dtsi15 /omit-if-no-ref/
24 /omit-if-no-ref/
31 /omit-if-no-ref/
40 /omit-if-no-ref/
47 /omit-if-no-ref/
68 /omit-if-no-ref/
75 /omit-if-no-ref/
82 /omit-if-no-ref/
91 /omit-if-no-ref/
100 /omit-if-no-ref/
[all …]
H A Drk3562-pinctrl.dtsi15 /omit-if-no-ref/
22 /omit-if-no-ref/
29 /omit-if-no-ref/
36 /omit-if-no-ref/
43 /omit-if-no-ref/
50 /omit-if-no-ref/
59 /omit-if-no-ref/
68 /omit-if-no-ref/
77 /omit-if-no-ref/
88 /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/smb/client/
H A Ddfs.h30 struct dfs_ref *ref; member
36 #define ref_walk_cur(w) ((w)->ref)
63 static inline void __ref_walk_free(struct dfs_ref *ref) in __ref_walk_free() argument
65 kfree(ref->path); in __ref_walk_free()
66 kfree(ref->full_path); in __ref_walk_free()
67 dfs_cache_free_tgts(&ref->tl); in __ref_walk_free()
68 if (ref->ses) in __ref_walk_free()
69 cifs_put_smb_ses(ref->ses); in __ref_walk_free()
70 memset(ref, 0, sizeof(*ref)); in __ref_walk_free()
75 struct dfs_ref *ref; in ref_walk_free() local
[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/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()
83 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() local
87 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate()
95 val = readl_relaxed(ref->reg); in clk_ref_set_rate()
98 writel_relaxed(val, ref->reg); in clk_ref_set_rate()
[all …]
/linux/kernel/dma/
H A Ddebug.c296 struct dma_debug_entry *ref, in __hash_bucket_find() argument
303 if (!match(ref, entry)) in __hash_bucket_find()
318 entry->size == ref->size ? ++match_lvl : 0; in __hash_bucket_find()
319 entry->type == ref->type ? ++match_lvl : 0; in __hash_bucket_find()
320 entry->direction == ref->direction ? ++match_lvl : 0; in __hash_bucket_find()
321 entry->sg_call_ents == ref->sg_call_ents ? ++match_lvl : 0; in __hash_bucket_find()
346 struct dma_debug_entry *ref) in bucket_find_exact() argument
348 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
352 struct dma_debug_entry *ref, in bucket_find_contain() argument
356 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 …]

12345678910>>...83