Home
last modified time | relevance | path

Searched refs:prev (Results 1 – 25 of 1039) sorted by relevance

12345678910>>...42

/linux-6.6.21/drivers/media/platform/ti/omap3isp/
Disppreview.c149 preview_config_luma_enhancement(struct isp_prev_device *prev, in preview_config_luma_enhancement() argument
152 struct isp_device *isp = to_isp_device(prev); in preview_config_luma_enhancement()
168 preview_enable_luma_enhancement(struct isp_prev_device *prev, bool enable) in preview_enable_luma_enhancement() argument
170 struct isp_device *isp = to_isp_device(prev); in preview_enable_luma_enhancement()
183 static void preview_enable_invalaw(struct isp_prev_device *prev, bool enable) in preview_enable_invalaw() argument
185 struct isp_device *isp = to_isp_device(prev); in preview_enable_invalaw()
198 static void preview_config_hmed(struct isp_prev_device *prev, in preview_config_hmed() argument
201 struct isp_device *isp = to_isp_device(prev); in preview_config_hmed()
213 static void preview_enable_hmed(struct isp_prev_device *prev, bool enable) in preview_enable_hmed() argument
215 struct isp_device *isp = to_isp_device(prev); in preview_enable_hmed()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/
Dcmpxchg.h19 unsigned int prev, prev_mask, tmp, bitoff, off; \
33 : "=&r" (prev), "=&r" (tmp), "+m" (*(u32*)p) \
37 return prev >> bitoff; \
44 unsigned int prev, prev_mask, tmp, bitoff, off; \
66 : "=&r" (prev), "=&r" (tmp), "+m" (*(u32*)p) \
70 return prev >> bitoff; \
89 unsigned long prev; in __xchg_u8_local() local
95 : "=&r" (prev), "+m" (*(volatile unsigned char *)p) in __xchg_u8_local()
99 return prev; in __xchg_u8_local()
105 unsigned long prev; in __xchg_u8_relaxed() local
[all …]
/linux-6.6.21/lib/
Dlist_debug.c22 bool __list_add_valid_or_report(struct list_head *new, struct list_head *prev, in __list_add_valid_or_report() argument
25 if (CHECK_DATA_CORRUPTION(prev == NULL, in __list_add_valid_or_report()
29 CHECK_DATA_CORRUPTION(next->prev != prev, in __list_add_valid_or_report()
31 prev, next->prev, next) || in __list_add_valid_or_report()
32 CHECK_DATA_CORRUPTION(prev->next != next, in __list_add_valid_or_report()
34 next, prev->next, prev) || in __list_add_valid_or_report()
35 CHECK_DATA_CORRUPTION(new == prev || new == next, in __list_add_valid_or_report()
37 new, prev, next)) in __list_add_valid_or_report()
47 struct list_head *prev, *next; in __list_del_entry_valid_or_report() local
49 prev = entry->prev; in __list_del_entry_valid_or_report()
[all …]
Dlist_sort.c62 a->prev = tail; in merge_final()
69 b->prev = tail; in merge_final()
91 b->prev = tail; in merge_final()
98 head->prev = tail; in merge_final()
190 if (list == head->prev) /* Zero or one elements */ in list_sort()
194 head->prev->next = NULL; in list_sort()
220 tail = &(*tail)->prev; in list_sort()
223 struct list_head *a = *tail, *b = a->prev; in list_sort()
227 a->prev = b->prev; in list_sort()
232 list->prev = pending; in list_sort()
[all …]
/linux-6.6.21/drivers/dma-buf/
Ddma-fence-chain.c23 struct dma_fence *prev; in dma_fence_chain_get_prev() local
26 prev = dma_fence_get_rcu_safe(&chain->prev); in dma_fence_chain_get_prev()
28 return prev; in dma_fence_chain_get_prev()
42 struct dma_fence *prev, *replacement, *tmp; in dma_fence_chain_walk() local
50 while ((prev = dma_fence_chain_get_prev(chain))) { in dma_fence_chain_walk()
52 prev_chain = to_dma_fence_chain(prev); in dma_fence_chain_walk()
59 if (!dma_fence_is_signaled(prev)) in dma_fence_chain_walk()
65 tmp = unrcu_pointer(cmpxchg(&chain->prev, RCU_INITIALIZER(prev), in dma_fence_chain_walk()
67 if (tmp == prev) in dma_fence_chain_walk()
71 dma_fence_put(prev); in dma_fence_chain_walk()
[all …]
/linux-6.6.21/include/linux/
Dlist.h38 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD()
54 struct list_head *prev,
66 struct list_head *prev, in __list_add_valid() argument
83 if (likely(next->prev == prev && prev->next == next && new != prev && new != next)) in __list_add_valid()
88 ret &= __list_add_valid_or_report(new, prev, next); in __list_add_valid()
111 struct list_head *prev = entry->prev; in __list_del_entry_valid() local
119 if (likely(prev->next == entry && next->prev == entry)) in __list_del_entry_valid()
129 struct list_head *prev, in __list_add_valid() argument
147 struct list_head *prev, in __list_add() argument
150 if (!__list_add_valid(new, prev, next)) in __list_add()
[all …]
/linux-6.6.21/include/asm-generic/
Dcmpxchg-local.h18 unsigned long flags, prev; in __generic_cmpxchg_local() local
28 case 1: prev = *(u8 *)ptr; in __generic_cmpxchg_local()
29 if (prev == (old & 0xffu)) in __generic_cmpxchg_local()
32 case 2: prev = *(u16 *)ptr; in __generic_cmpxchg_local()
33 if (prev == (old & 0xffffu)) in __generic_cmpxchg_local()
36 case 4: prev = *(u32 *)ptr; in __generic_cmpxchg_local()
37 if (prev == (old & 0xffffffffu)) in __generic_cmpxchg_local()
40 case 8: prev = *(u64 *)ptr; in __generic_cmpxchg_local()
41 if (prev == old) in __generic_cmpxchg_local()
48 return prev; in __generic_cmpxchg_local()
[all …]
/linux-6.6.21/arch/mips/include/asm/
Dswitch_to.h32 extern asmlinkage struct task_struct *resume(struct task_struct *prev,
52 #define __mips_mt_fpaff_switch_to(prev) \ argument
54 struct thread_info *__prev_ti = task_thread_info(prev); \
58 (!(KSTK_STATUS(prev) & ST0_CU1))) { \
60 prev->cpus_mask = prev->thread.user_cpus_allowed; \
66 #define __mips_mt_fpaff_switch_to(prev) do { (void) (prev); } while (0) argument
109 #define switch_to(prev, next, last) \ argument
111 __mips_mt_fpaff_switch_to(prev); \
112 lose_fpu_inatomic(1, prev); \
116 __save_dsp(prev); \
[all …]
/linux-6.6.21/kernel/locking/
Dosq_lock.c44 struct optimistic_spin_node *prev) in osq_wait_next() argument
55 old = prev ? prev->cpu : OSQ_UNLOCKED_VAL; in osq_wait_next()
93 struct optimistic_spin_node *prev, *next; in osq_lock() local
111 prev = decode_cpu(old); in osq_lock()
112 node->prev = prev; in osq_lock()
126 WRITE_ONCE(prev->next, node); in osq_lock()
144 vcpu_is_preempted(node_cpu(node->prev)))) in osq_lock()
161 if (data_race(prev->next) == node && in osq_lock()
162 cmpxchg(&prev->next, node, NULL) == node) in osq_lock()
179 prev = READ_ONCE(node->prev); in osq_lock()
[all …]
/linux-6.6.21/arch/s390/include/asm/
Dcmpxchg.h93 unsigned int prev, shift, mask; in __cmpxchg() local
114 : [prev] "=&d" (prev), in __cmpxchg()
120 return prev >> shift; in __cmpxchg()
123 unsigned int prev, shift, mask; in __cmpxchg() local
144 : [prev] "=&d" (prev), in __cmpxchg()
150 return prev >> shift; in __cmpxchg()
153 unsigned int prev = old; in __cmpxchg() local
157 : [prev] "+&d" (prev), in __cmpxchg()
161 return prev; in __cmpxchg()
164 unsigned long prev = old; in __cmpxchg() local
[all …]
Duaccess.h405 unsigned int prev, shift, mask, _old, _new; in __cmpxchg_user_key() local
432 EX_TABLE_UA_LOAD_REG(0b, 5b, %[rc], %[prev]) in __cmpxchg_user_key()
433 EX_TABLE_UA_LOAD_REG(1b, 5b, %[rc], %[prev]) in __cmpxchg_user_key()
434 EX_TABLE_UA_LOAD_REG(3b, 5b, %[rc], %[prev]) in __cmpxchg_user_key()
435 EX_TABLE_UA_LOAD_REG(4b, 5b, %[rc], %[prev]) in __cmpxchg_user_key()
437 [prev] "=&d" (prev), in __cmpxchg_user_key()
447 *(unsigned char *)uval = prev >> shift; in __cmpxchg_user_key()
453 unsigned int prev, shift, mask, _old, _new; in __cmpxchg_user_key() local
480 EX_TABLE_UA_LOAD_REG(0b, 5b, %[rc], %[prev]) in __cmpxchg_user_key()
481 EX_TABLE_UA_LOAD_REG(1b, 5b, %[rc], %[prev]) in __cmpxchg_user_key()
[all …]
/linux-6.6.21/tools/include/linux/
Dlist.h28 list->prev = list; in INIT_LIST_HEAD()
39 struct list_head *prev, in __list_add() argument
42 next->prev = new; in __list_add()
44 new->prev = prev; in __list_add()
45 prev->next = new; in __list_add()
49 struct list_head *prev,
77 __list_add(new, head->prev, head); in list_add_tail()
87 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument
89 next->prev = prev; in __list_del()
90 WRITE_ONCE(prev->next, next); in __list_del()
[all …]
/linux-6.6.21/arch/ia64/include/asm/
Dswitch_to.h37 #define __switch_to(prev,next,last) do { \ argument
38 if (IA64_HAS_EXTRA_STATE(prev)) \
39 ia64_save_extra(prev); \
53 # define switch_to(prev,next,last) do { \ argument
54 if (ia64_psr(task_pt_regs(prev))->mfh && ia64_is_local_fpu_owner(prev)) { \
55 ia64_psr(task_pt_regs(prev))->mfh = 0; \
56 (prev)->thread.flags |= IA64_THREAD_FPH_VALID; \
57 __ia64_save_fpu((prev)->thread.fph); \
59 __switch_to(prev, next, last); \
68 # define switch_to(prev,next,last) __switch_to(prev, next, last) argument
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dlist_debug.c30 bool __list_add_valid_or_report(struct list_head *new, struct list_head *prev, in __list_add_valid_or_report() argument
33 if (NVHE_CHECK_DATA_CORRUPTION(next->prev != prev) || in __list_add_valid_or_report()
34 NVHE_CHECK_DATA_CORRUPTION(prev->next != next) || in __list_add_valid_or_report()
35 NVHE_CHECK_DATA_CORRUPTION(new == prev || new == next)) in __list_add_valid_or_report()
44 struct list_head *prev, *next; in __list_del_entry_valid_or_report() local
46 prev = entry->prev; in __list_del_entry_valid_or_report()
50 NVHE_CHECK_DATA_CORRUPTION(prev == LIST_POISON2) || in __list_del_entry_valid_or_report()
51 NVHE_CHECK_DATA_CORRUPTION(prev->next != entry) || in __list_del_entry_valid_or_report()
52 NVHE_CHECK_DATA_CORRUPTION(next->prev != entry)) in __list_del_entry_valid_or_report()
/linux-6.6.21/tools/usb/usbip/libsrc/
Dlist.h20 struct list_head *next, *prev; member
31 list->prev = list; in INIT_LIST_HEAD()
41 struct list_head *prev, in __list_add() argument
44 next->prev = new; in __list_add()
46 new->prev = prev; in __list_add()
47 prev->next = new; in __list_add()
70 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument
72 next->prev = prev; in __list_del()
73 prev->next = next; in __list_del()
82 __list_del(entry->prev, entry->next); in __list_del_entry()
[all …]
/linux-6.6.21/tools/power/cpupower/
Dcpupower-completion.sh10 local prev="${COMP_WORDS[COMP_CWORD-1]}"
12 case "$prev" in
20 local prev="${COMP_WORDS[COMP_CWORD-1]}"
22 case "$prev" in
38 local prev="${COMP_WORDS[COMP_CWORD-1]}"
40 case "$prev" in
48 local prev="${COMP_WORDS[COMP_CWORD-1]}"
50 case "$prev" in
58 local prev="${COMP_WORDS[COMP_CWORD-1]}"
60 case "$prev" in
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dcpumask_failure.c111 struct bpf_cpumask *local, *prev; in BPF_PROG() local
117 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG()
118 if (prev) { in BPF_PROG()
119 bpf_cpumask_release(prev); in BPF_PROG()
145 struct bpf_cpumask *local, *prev; in BPF_PROG() local
151 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG()
152 if (prev) { in BPF_PROG()
153 bpf_cpumask_release(prev); in BPF_PROG()
173 struct bpf_cpumask *prev, *curr; in BPF_PROG() local
179 prev = bpf_kptr_xchg(&global_mask, curr); in BPF_PROG()
[all …]
/linux-6.6.21/scripts/kconfig/
Dlist.h25 struct list_head *next, *prev; member
83 struct list_head *prev, in __list_add() argument
86 next->prev = _new; in __list_add()
88 _new->prev = prev; in __list_add()
89 prev->next = _new; in __list_add()
102 __list_add(_new, head->prev, head); in list_add_tail()
112 static inline void __list_del(struct list_head *prev, struct list_head *next) in __list_del() argument
114 next->prev = prev; in __list_del()
115 prev->next = next; in __list_del()
128 __list_del(entry->prev, entry->next); in list_del()
[all …]
/linux-6.6.21/scripts/mod/
Dlist.h39 struct list_head *next, *prev; member
57 list->prev = list; in INIT_LIST_HEAD()
67 struct list_head *prev, in __list_add() argument
70 next->prev = new; in __list_add()
72 new->prev = prev; in __list_add()
73 prev->next = new; in __list_add()
99 __list_add(new, head->prev, head); in list_add_tail()
109 static inline void __list_del(struct list_head *prev, struct list_head *next) in __list_del() argument
111 next->prev = prev; in __list_del()
112 prev->next = next; in __list_del()
[all …]
/linux-6.6.21/arch/riscv/include/asm/
Datomic.h202 int prev, rc; local
212 : [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter)
215 return prev;
222 s64 prev; in arch_atomic64_fetch_add_unless() local
233 : [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter) in arch_atomic64_fetch_add_unless()
236 return prev; in arch_atomic64_fetch_add_unless()
243 int prev, rc; in arch_atomic_inc_unless_negative() local
253 : [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter) in arch_atomic_inc_unless_negative()
256 return !(prev < 0); in arch_atomic_inc_unless_negative()
263 int prev, rc; in arch_atomic_dec_unless_positive() local
[all …]
/linux-6.6.21/fs/jffs2/
Dnodelist.c28 struct jffs2_full_dirent **prev = list; in jffs2_add_fd_to_list() local
32 while ((*prev) && (*prev)->nhash <= new->nhash) { in jffs2_add_fd_to_list()
33 if ((*prev)->nhash == new->nhash && !strcmp((*prev)->name, new->name)) { in jffs2_add_fd_to_list()
35 if (new->version < (*prev)->version) { in jffs2_add_fd_to_list()
37 (*prev)->name, (*prev)->ino); in jffs2_add_fd_to_list()
42 (*prev)->name, (*prev)->ino); in jffs2_add_fd_to_list()
43 new->next = (*prev)->next; in jffs2_add_fd_to_list()
46 if ((*prev)->raw) in jffs2_add_fd_to_list()
47 jffs2_mark_node_obsolete(c, ((*prev)->raw)); in jffs2_add_fd_to_list()
48 jffs2_free_full_dirent(*prev); in jffs2_add_fd_to_list()
[all …]
/linux-6.6.21/tools/lib/
Dlist_sort.c61 a->prev = tail; in merge_final()
68 b->prev = tail; in merge_final()
90 b->prev = tail; in merge_final()
97 head->prev = tail; in merge_final()
189 if (list == head->prev) /* Zero or one elements */ in list_sort()
193 head->prev->next = NULL; in list_sort()
219 tail = &(*tail)->prev; in list_sort()
222 struct list_head *a = *tail, *b = a->prev; in list_sort()
226 a->prev = b->prev; in list_sort()
231 list->prev = pending; in list_sort()
[all …]
/linux-6.6.21/arch/alpha/include/asm/
Dxchg.h131 unsigned long prev, tmp, cmp, addr64; in ____cmpxchg() local
148 : "=&r" (prev), "=&r" (new), "=&r" (tmp), "=&r" (cmp), "=&r" (addr64) in ____cmpxchg()
151 return prev; in ____cmpxchg()
157 unsigned long prev, tmp, cmp, addr64; in ____cmpxchg() local
174 : "=&r" (prev), "=&r" (new), "=&r" (tmp), "=&r" (cmp), "=&r" (addr64) in ____cmpxchg()
177 return prev; in ____cmpxchg()
183 unsigned long prev, cmp; in ____cmpxchg() local
196 : "=&r"(prev), "=&r"(cmp), "=m"(*m) in ____cmpxchg()
199 return prev; in ____cmpxchg()
205 unsigned long prev, cmp; in ____cmpxchg() local
[all …]
/linux-6.6.21/tools/firewire/
Dlist.h3 struct list *next, *prev; member
10 list->prev = list; in list_init()
22 new_link->prev = link->prev; in list_insert()
24 new_link->prev->next = new_link; in list_insert()
25 new_link->next->prev = new_link; in list_insert()
43 link->prev->next = link->next; in list_remove()
44 link->next->prev = link->prev; in list_remove()
54 list_entry((list)->prev, type, member)
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/core/
Dmm.c53 struct nvkm_mm_node *prev = node(this, prev); in nvkm_mm_free() local
56 if (prev && prev->type == NVKM_MM_TYPE_NONE) { in nvkm_mm_free()
57 prev->length += this->length; in nvkm_mm_free()
59 kfree(this); this = prev; in nvkm_mm_free()
72 list_for_each_entry(prev, &mm->free, fl_entry) { in nvkm_mm_free()
73 if (this->offset < prev->offset) in nvkm_mm_free()
77 list_add_tail(&this->fl_entry, &prev->fl_entry); in nvkm_mm_free()
114 struct nvkm_mm_node *prev, *this, *next; in nvkm_mm_head() local
129 prev = node(this, prev); in nvkm_mm_head()
130 if (prev && prev->type != type) in nvkm_mm_head()
[all …]

12345678910>>...42