Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 216) sorted by relevance

123456789

/include/linux/mfd/da9052/
Dda9052.h107 int val, ret; in da9052_reg_read() local
109 ret = regmap_read(da9052->regmap, reg, &val); in da9052_reg_read()
110 if (ret < 0) in da9052_reg_read()
111 return ret; in da9052_reg_read()
114 ret = da9052->fix_io(da9052, reg); in da9052_reg_read()
115 if (ret < 0) in da9052_reg_read()
116 return ret; in da9052_reg_read()
125 int ret; in da9052_reg_write() local
127 ret = regmap_write(da9052->regmap, reg, val); in da9052_reg_write()
128 if (ret < 0) in da9052_reg_write()
[all …]
/include/asm-generic/bitops/
Dext2-atomic.h11 int ret; \
13 ret = __test_and_set_bit_le(nr, addr); \
15 ret; \
20 int ret; \
22 ret = __test_and_clear_bit_le(nr, addr); \
24 ret; \
/include/linux/
Dpage_ref.h31 extern void __page_ref_mod_and_test(struct page *page, int v, int ret);
32 extern void __page_ref_mod_and_return(struct page *page, int v, int ret);
34 extern void __page_ref_freeze(struct page *page, int v, int ret);
47 static inline void __page_ref_mod_and_test(struct page *page, int v, int ret) in __page_ref_mod_and_test() argument
50 static inline void __page_ref_mod_and_return(struct page *page, int v, int ret) in __page_ref_mod_and_return() argument
56 static inline void __page_ref_freeze(struct page *page, int v, int ret) in __page_ref_freeze() argument
144 int ret = atomic_sub_return(nr, &page->_refcount); in page_ref_sub_return() local
147 __page_ref_mod_and_return(page, -nr, ret); in page_ref_sub_return()
148 return ret; in page_ref_sub_return()
182 int ret = atomic_sub_and_test(nr, &page->_refcount); in page_ref_sub_and_test() local
[all …]
Dptr_ring.h56 bool ret; in ptr_ring_full() local
59 ret = __ptr_ring_full(r); in ptr_ring_full()
62 return ret; in ptr_ring_full()
67 bool ret; in ptr_ring_full_irq() local
70 ret = __ptr_ring_full(r); in ptr_ring_full_irq()
73 return ret; in ptr_ring_full_irq()
79 bool ret; in ptr_ring_full_any() local
82 ret = __ptr_ring_full(r); in ptr_ring_full_any()
85 return ret; in ptr_ring_full_any()
90 bool ret; in ptr_ring_full_bh() local
[all …]
Dihex.h69 int ret; in request_ihex_firmware() local
71 ret = request_firmware(&lfw, fw_name, dev); in request_ihex_firmware()
72 if (ret) in request_ihex_firmware()
73 return ret; in request_ihex_firmware()
74 ret = ihex_validate_fw(lfw); in request_ihex_firmware()
75 if (ret) { in request_ihex_firmware()
79 return ret; in request_ihex_firmware()
Dmmap_lock.h121 int ret; in mmap_write_lock_killable() local
124 ret = down_write_killable(&mm->mmap_lock); in mmap_write_lock_killable()
125 __mmap_lock_trace_acquire_returned(mm, true, ret == 0); in mmap_write_lock_killable()
126 return ret; in mmap_write_lock_killable()
152 int ret; in mmap_read_lock_killable() local
155 ret = down_read_killable(&mm->mmap_lock); in mmap_read_lock_killable()
156 __mmap_lock_trace_acquire_returned(mm, false, ret == 0); in mmap_read_lock_killable()
157 return ret; in mmap_read_lock_killable()
162 bool ret; in mmap_read_trylock() local
165 ret = down_read_trylock(&mm->mmap_lock) != 0; in mmap_read_trylock()
[all …]
Dpercpu-refcount.h239 bool ret; in percpu_ref_tryget_many() local
245 ret = true; in percpu_ref_tryget_many()
247 ret = atomic_long_add_unless(&ref->data->count, nr, 0); in percpu_ref_tryget_many()
252 return ret; in percpu_ref_tryget_many()
278 bool ret = false; in percpu_ref_tryget_live_rcu() local
284 ret = true; in percpu_ref_tryget_live_rcu()
286 ret = atomic_long_inc_not_zero(&ref->data->count); in percpu_ref_tryget_live_rcu()
288 return ret; in percpu_ref_tryget_live_rcu()
308 bool ret = false; in percpu_ref_tryget_live() local
311 ret = percpu_ref_tryget_live_rcu(ref); in percpu_ref_tryget_live()
[all …]
Dnetfilter_netdev.h23 int ret; in nf_hook_ingress() local
34 ret = nf_hook_slow(skb, &state, e, 0); in nf_hook_ingress()
35 if (ret == 0) in nf_hook_ingress()
38 return ret; in nf_hook_ingress()
90 int ret; in nf_hook_egress() local
107 ret = nf_hook_slow(skb, &state, e, 0); in nf_hook_egress()
110 if (ret == 1) { in nf_hook_egress()
112 } else if (ret < 0) { in nf_hook_egress()
Dssbi.h18 int ret; in ssbi_reg_read() local
21 ret = ssbi_read(context, reg, &v, 1); in ssbi_reg_read()
22 if (!ret) in ssbi_reg_read()
25 return ret; in ssbi_reg_read()
/include/trace/hooks/
Dmadvise.h12 int behavior, unsigned int flags, ssize_t *ret, bool *bypass),
13 TP_ARGS(pidfd, vec, vlen, behavior, flags, ret, bypass), 1);
19 TP_PROTO(int ret, bool *return_error),
20 TP_ARGS(ret, return_error));
22 TP_PROTO(int behavior, int ret, bool *return_error),
23 TP_ARGS(behavior, ret, return_error));
25 TP_PROTO(struct mm_struct *mm, bool pageout, int *ret),
26 TP_ARGS(mm, pageout, ret));
Dogki_honor.h43 TP_PROTO(int cur_pid, int cur_tgid, struct task_struct* task, int* ret),
44 TP_ARGS(cur_pid, cur_tgid, task, ret));
46 TP_PROTO(struct task_struct* p, unsigned long* ret),
47 TP_ARGS(p, ret), 1);
49 TP_PROTO(struct task_struct* p, unsigned long* ret),
50 TP_ARGS(p, ret), 1);
52 TP_PROTO(struct task_struct* p, unsigned long long* ret),
53 TP_ARGS(p, ret), 1);
55 TP_PROTO(struct task_struct* p, unsigned long long* ret),
56 TP_ARGS(p, ret), 1);
[all …]
/include/crypto/internal/
Dkdf_selftest.h34 int ret; in kdf_test() local
48 ret = crypto_kdf_setkey(kmd, test->key, test->keylen, in kdf_test()
50 if (ret) { in kdf_test()
55 ret = crypto_kdf_generate(kmd, &test->info, 1, buf, test->expectedlen); in kdf_test()
56 if (ret) { in kdf_test()
61 ret = memcmp(test->expected, buf, test->expectedlen); in kdf_test()
62 if (ret) in kdf_test()
63 ret = -EINVAL; in kdf_test()
68 return ret; in kdf_test()
/include/trace/events/
Dspmi.h42 TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret),
43 TP_ARGS(opcode, sid, addr, ret),
49 __field ( int, ret )
56 __entry->ret = ret;
61 (int)__entry->addr, __entry->ret)
86 TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret, u8 len, const u8 *buf),
87 TP_ARGS(opcode, sid, addr, ret, len, buf),
93 __field ( int, ret )
102 __entry->ret = ret;
109 (int)__entry->addr, __entry->ret, (int)__entry->len,
[all …]
Dpage_ref.h63 TP_PROTO(struct page *page, int v, int ret),
65 TP_ARGS(page, v, ret),
75 __field(int, ret)
86 __entry->ret = ret;
94 __entry->val, __entry->ret)
99 TP_PROTO(struct page *page, int v, int ret),
101 TP_ARGS(page, v, ret)
106 TP_PROTO(struct page *page, int v, int ret),
108 TP_ARGS(page, v, ret)
113 TP_PROTO(struct page *page, int v, int ret),
[all …]
Dinitcall.h50 TP_PROTO(initcall_t func, int ret),
52 TP_ARGS(func, ret),
60 __field(int, ret)
65 __entry->ret = ret;
68 TP_printk("func=%pS ret=%d", __entry->func, __entry->ret)
Dsyscalls.h46 TP_PROTO(struct pt_regs *regs, long ret),
48 TP_ARGS(regs, ret),
52 __field( long, ret )
57 __entry->ret = ret;
61 __entry->id, __entry->ret),
/include/drm/display/
Ddrm_dp_aux_bus.h56 int ret; in of_dp_aux_populate_ep_devices() local
58 ret = of_dp_aux_populate_bus(aux, NULL); in of_dp_aux_populate_ep_devices()
61 return (ret != -ENODEV) ? ret : 0; in of_dp_aux_populate_ep_devices()
66 int ret; in devm_of_dp_aux_populate_ep_devices() local
68 ret = devm_of_dp_aux_populate_bus(aux, NULL); in devm_of_dp_aux_populate_ep_devices()
71 return (ret != -ENODEV) ? ret : 0; in devm_of_dp_aux_populate_ep_devices()
/include/linux/iio/imu/
Dadis.h151 int ret; in adis_reset() local
154 ret = __adis_reset(adis); in adis_reset()
157 return ret; in adis_reset()
211 int ret; in __adis_read_reg_16() local
213 ret = __adis_read_reg(adis, reg, &tmp, 2); in __adis_read_reg_16()
214 if (ret == 0) in __adis_read_reg_16()
217 return ret; in __adis_read_reg_16()
230 int ret; in __adis_read_reg_32() local
232 ret = __adis_read_reg(adis, reg, &tmp, 4); in __adis_read_reg_32()
233 if (ret == 0) in __adis_read_reg_32()
[all …]
/include/asm-generic/
Dcmpxchg.h26 unsigned long ret, flags; in __generic_xchg() local
34 ret = *(volatile u8 *)ptr; in __generic_xchg()
37 return ret; in __generic_xchg()
45 ret = *(volatile u16 *)ptr; in __generic_xchg()
48 return ret; in __generic_xchg()
56 ret = *(volatile u32 *)ptr; in __generic_xchg()
59 return ret; in __generic_xchg()
68 ret = *(volatile u64 *)ptr; in __generic_xchg()
71 return ret; in __generic_xchg()
Dfutex.h40 int oldval, ret; in futex_atomic_op_inuser_local() local
45 ret = -EFAULT; in futex_atomic_op_inuser_local()
49 ret = 0; in futex_atomic_op_inuser_local()
69 ret = -ENOSYS; in futex_atomic_op_inuser_local()
72 if (ret == 0 && unlikely(put_user(tmp, uaddr) != 0)) in futex_atomic_op_inuser_local()
73 ret = -EFAULT; in futex_atomic_op_inuser_local()
78 if (ret == 0) in futex_atomic_op_inuser_local()
81 return ret; in futex_atomic_op_inuser_local()
/include/linux/atomic/
Datomic-arch-fallback.h463 int ret; in raw_atomic_read_acquire()
466 ret = smp_load_acquire(&(v)->counter); in raw_atomic_read_acquire()
468 ret = raw_atomic_read(v); in raw_atomic_read_acquire()
472 return ret; in raw_atomic_read_acquire()
553 int ret; in raw_atomic_add_return()
555 ret = arch_atomic_add_return_relaxed(i, v); in raw_atomic_add_return()
557 return ret; in raw_atomic_add_return()
580 int ret = arch_atomic_add_return_relaxed(i, v); in raw_atomic_add_return_acquire()
582 return ret; in raw_atomic_add_return_acquire()
656 int ret; in raw_atomic_fetch_add()
[all …]
/include/uapi/linux/
Dfsl_hypervisor.h55 __u32 ret; member
75 __u32 ret; member
90 __u32 ret; member
105 __u32 ret; member
142 __u32 ret; member
159 __u32 ret; member
176 __u32 ret; member
/include/linux/usb/
Dgadget_configfs.h15 int ret; \
17 ret = usb_string_copy(page, &gs->__name); \
18 if (ret) \
19 return ret; \
55 int ret; \
61 ret = check_user_usb_string(name, &new->stringtab_dev); \
62 if (ret) \
68 ret = -EEXIST; \
74 ret = -EOVERFLOW; \
82 return ERR_PTR(ret); \
/include/linux/reset/
Dbcm63xx_pmb.h61 int ret = 0; in bpcm_rd() local
63 ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_READ); in bpcm_rd()
66 return ret; in bpcm_rd()
72 int ret = 0; in bpcm_wr() local
75 ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_WRITE); in bpcm_wr()
77 return ret; in bpcm_wr()
/include/drm/
Ddrm_modeset_lock.h175 #define DRM_MODESET_LOCK_ALL_BEGIN(dev, ctx, flags, ret) \ argument
180 ret = drm_modeset_lock_all_ctx(dev, &ctx); \
181 if (ret) \
203 #define DRM_MODESET_LOCK_ALL_END(dev, ctx, ret) \ argument
205 if (ret == -EDEADLK) { \
206 ret = drm_modeset_backoff(&ctx); \
207 if (!ret) \

123456789