Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 2982) sorted by relevance

12345678910>>...120

/linux-6.1.9/include/linux/
Dptr_ring.h49 static inline bool __ptr_ring_full(struct ptr_ring *r) in __ptr_ring_full() argument
51 return r->queue[r->producer]; in __ptr_ring_full()
54 static inline bool ptr_ring_full(struct ptr_ring *r) in ptr_ring_full() argument
58 spin_lock(&r->producer_lock); in ptr_ring_full()
59 ret = __ptr_ring_full(r); in ptr_ring_full()
60 spin_unlock(&r->producer_lock); in ptr_ring_full()
65 static inline bool ptr_ring_full_irq(struct ptr_ring *r) in ptr_ring_full_irq() argument
69 spin_lock_irq(&r->producer_lock); in ptr_ring_full_irq()
70 ret = __ptr_ring_full(r); in ptr_ring_full_irq()
71 spin_unlock_irq(&r->producer_lock); in ptr_ring_full_irq()
[all …]
Drefcount.h127 void refcount_warn_saturate(refcount_t *r, enum refcount_saturation_type t);
134 static inline void refcount_set(refcount_t *r, int n) in refcount_set() argument
136 atomic_set(&r->refs, n); in refcount_set()
145 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() argument
147 return atomic_read(&r->refs); in refcount_read()
150 static inline __must_check bool __refcount_add_not_zero(int i, refcount_t *r, int *oldp) in __refcount_add_not_zero() argument
152 int old = refcount_read(r); in __refcount_add_not_zero()
157 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i)); in __refcount_add_not_zero()
163 refcount_warn_saturate(r, REFCOUNT_ADD_NOT_ZERO_OVF); in __refcount_add_not_zero()
186 static inline __must_check bool refcount_add_not_zero(int i, refcount_t *r) in refcount_add_not_zero() argument
[all …]
/linux-6.1.9/arch/x86/um/shared/sysdep/
Dptrace.h11 #define REGS_IP(r) ((r)[HOST_IP]) argument
12 #define REGS_SP(r) ((r)[HOST_SP]) argument
13 #define REGS_EFLAGS(r) ((r)[HOST_EFLAGS]) argument
14 #define REGS_AX(r) ((r)[HOST_AX]) argument
15 #define REGS_BX(r) ((r)[HOST_BX]) argument
16 #define REGS_CX(r) ((r)[HOST_CX]) argument
17 #define REGS_DX(r) ((r)[HOST_DX]) argument
18 #define REGS_SI(r) ((r)[HOST_SI]) argument
19 #define REGS_DI(r) ((r)[HOST_DI]) argument
20 #define REGS_BP(r) ((r)[HOST_BP]) argument
[all …]
Dptrace_64.h13 #define REGS_R8(r) ((r)[HOST_R8]) argument
14 #define REGS_R9(r) ((r)[HOST_R9]) argument
15 #define REGS_R10(r) ((r)[HOST_R10]) argument
16 #define REGS_R11(r) ((r)[HOST_R11]) argument
17 #define REGS_R12(r) ((r)[HOST_R12]) argument
18 #define REGS_R13(r) ((r)[HOST_R13]) argument
19 #define REGS_R14(r) ((r)[HOST_R14]) argument
20 #define REGS_R15(r) ((r)[HOST_R15]) argument
44 #define UPT_R8(r) REGS_R8((r)->gp) argument
45 #define UPT_R9(r) REGS_R9((r)->gp) argument
[all …]
/linux-6.1.9/drivers/gpu/drm/exynos/
Dregs-scaler.h79 #define _SCALER_HCOEF_DELTA(r, c) ((r) * 0x10 + (c) * 0x4) argument
80 #define _SCALER_VCOEF_DELTA(r, c) ((r) * 0x8 + (c) * 0x4) argument
82 #define SCALER_YHCOEF(r, c) (0x60 + _SCALER_HCOEF_DELTA((r), (c))) argument
83 #define SCALER_YVCOEF(r, c) (0xf0 + _SCALER_VCOEF_DELTA((r), (c))) argument
84 #define SCALER_CHCOEF(r, c) (0x140 + _SCALER_HCOEF_DELTA((r), (c))) argument
85 #define SCALER_CVCOEF(r, c) (0x1d0 + _SCALER_VCOEF_DELTA((r), (c))) argument
205 #define SCALER_SRC_CFG_GET_BYTE_SWAP(r) SCALER_GET(r, 6, 5) argument
207 #define SCALER_SRC_CFG_GET_COLOR_FORMAT(r) SCALER_GET(r, 4, 0) argument
231 #define SCALER_SRC_SPAN_GET_C_SPAN(r) SCALER_GET(r, 29, 16) argument
233 #define SCALER_SRC_SPAN_GET_Y_SPAN(r) SCALER_GET(r, 13, 0) argument
[all …]
/linux-6.1.9/drivers/net/wireless/zydas/zd1211rw/
Dzd_rf_al7230b.c64 int r; in zd1211b_al7230b_finalize() local
73 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_al7230b_finalize()
74 if (r) in zd1211b_al7230b_finalize()
75 return r; in zd1211b_al7230b_finalize()
79 r = zd_iowrite16_locked(chip, 0xe5, ZD_CR9); in zd1211b_al7230b_finalize()
80 if (r) in zd1211b_al7230b_finalize()
81 return r; in zd1211b_al7230b_finalize()
89 int r; in zd1211_al7230b_init_hw() local
158 r = zd_iowrite16a_locked(chip, ioreqs_1, ARRAY_SIZE(ioreqs_1)); in zd1211_al7230b_init_hw()
159 if (r) in zd1211_al7230b_init_hw()
[all …]
Dzd_rf_al2230.c68 int r; in zd1211b_al2230_finalize_rf() local
78 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_al2230_finalize_rf()
79 if (r) in zd1211b_al2230_finalize_rf()
80 return r; in zd1211b_al2230_finalize_rf()
84 r = zd_iowrite16_locked(chip, 0xe1, ZD_CR9); in zd1211b_al2230_finalize_rf()
85 if (r) in zd1211b_al2230_finalize_rf()
86 return r; in zd1211b_al2230_finalize_rf()
94 int r; in zd1211_al2230_init_hw() local
167 r = zd_iowrite16a_locked(chip, ioreqs_init, ARRAY_SIZE(ioreqs_init)); in zd1211_al2230_init_hw()
168 if (r) in zd1211_al2230_init_hw()
[all …]
Dzd_chip.c95 int r; in zd_ioread32v_locked() local
116 r = zd_ioread16v_locked(chip, v16, a16, count16); in zd_ioread32v_locked()
117 if (r) { in zd_ioread32v_locked()
119 "error: %s. Error number %d\n", __func__, r); in zd_ioread32v_locked()
120 return r; in zd_ioread32v_locked()
135 int i, j, r; in _zd_iowrite32v_async_locked() local
160 r = zd_usb_iowrite16v_async(&chip->usb, ioreqs16, count16); in _zd_iowrite32v_async_locked()
162 if (r) { in _zd_iowrite32v_async_locked()
164 "error %d in zd_usb_write16v\n", r); in _zd_iowrite32v_async_locked()
167 return r; in _zd_iowrite32v_async_locked()
[all …]
/linux-6.1.9/arch/x86/um/asm/
Dptrace.h11 #define user_mode(r) UPT_IS_USER(&(r)->regs) argument
13 #define PT_REGS_AX(r) UPT_AX(&(r)->regs) argument
14 #define PT_REGS_BX(r) UPT_BX(&(r)->regs) argument
15 #define PT_REGS_CX(r) UPT_CX(&(r)->regs) argument
16 #define PT_REGS_DX(r) UPT_DX(&(r)->regs) argument
18 #define PT_REGS_SI(r) UPT_SI(&(r)->regs) argument
19 #define PT_REGS_DI(r) UPT_DI(&(r)->regs) argument
20 #define PT_REGS_BP(r) UPT_BP(&(r)->regs) argument
21 #define PT_REGS_EFLAGS(r) UPT_EFLAGS(&(r)->regs) argument
23 #define PT_REGS_CS(r) UPT_CS(&(r)->regs) argument
[all …]
/linux-6.1.9/sound/pci/ice1712/
Dhoontech.h30 #define ICE1712_STDSP24_0_BOX(r, x) r[0] = ((r[0] & ~3) | ((x)&3)) argument
31 #define ICE1712_STDSP24_0_DAREAR(r, x) r[0] = ((r[0] & ~4) | (((x)&1)<<2)) argument
32 #define ICE1712_STDSP24_1_CHN1(r, x) r[1] = ((r[1] & ~1) | ((x)&1)) argument
33 #define ICE1712_STDSP24_1_CHN2(r, x) r[1] = ((r[1] & ~2) | (((x)&1)<<1)) argument
34 #define ICE1712_STDSP24_1_CHN3(r, x) r[1] = ((r[1] & ~4) | (((x)&1)<<2)) argument
35 #define ICE1712_STDSP24_2_CHN4(r, x) r[2] = ((r[2] & ~1) | ((x)&1)) argument
36 #define ICE1712_STDSP24_2_MIDIIN(r, x) r[2] = ((r[2] & ~2) | (((x)&1)<<1)) argument
37 #define ICE1712_STDSP24_2_MIDI1(r, x) r[2] = ((r[2] & ~4) | (((x)&1)<<2)) argument
38 #define ICE1712_STDSP24_3_MIDI2(r, x) r[3] = ((r[3] & ~1) | ((x)&1)) argument
39 #define ICE1712_STDSP24_3_MUTE(r, x) r[3] = ((r[3] & ~2) | (((x)&1)<<1)) argument
[all …]
/linux-6.1.9/lib/
Dlinear_ranges.c27 unsigned int linear_range_values_in_range(const struct linear_range *r) in linear_range_values_in_range() argument
29 if (!r) in linear_range_values_in_range()
31 return r->max_sel - r->min_sel + 1; in linear_range_values_in_range()
46 unsigned int linear_range_values_in_range_array(const struct linear_range *r, in linear_range_values_in_range_array() argument
54 values = linear_range_values_in_range(&r[i]); in linear_range_values_in_range_array()
70 unsigned int linear_range_get_max_value(const struct linear_range *r) in linear_range_get_max_value() argument
72 return r->min + (r->max_sel - r->min_sel) * r->step; in linear_range_get_max_value()
87 int linear_range_get_value(const struct linear_range *r, unsigned int selector, in linear_range_get_value() argument
90 if (r->min_sel > selector || r->max_sel < selector) in linear_range_get_value()
93 *val = r->min + (selector - r->min_sel) * r->step; in linear_range_get_value()
[all …]
/linux-6.1.9/fs/dlm/
Drecover.c250 static void recover_list_add(struct dlm_rsb *r) in recover_list_add() argument
252 struct dlm_ls *ls = r->res_ls; in recover_list_add()
255 if (list_empty(&r->res_recover_list)) { in recover_list_add()
256 list_add_tail(&r->res_recover_list, &ls->ls_recover_list); in recover_list_add()
258 dlm_hold_rsb(r); in recover_list_add()
263 static void recover_list_del(struct dlm_rsb *r) in recover_list_del() argument
265 struct dlm_ls *ls = r->res_ls; in recover_list_del()
268 list_del_init(&r->res_recover_list); in recover_list_del()
272 dlm_put_rsb(r); in recover_list_del()
277 struct dlm_rsb *r, *s; in recover_list_clear() local
[all …]
/linux-6.1.9/drivers/gpio/
Dgpio-reg.c27 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction() local
29 return r->direction & BIT(offset) ? GPIO_LINE_DIRECTION_IN : in gpio_reg_get_direction()
36 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output() local
38 if (r->direction & BIT(offset)) in gpio_reg_direction_output()
47 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input() local
49 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input()
54 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_set() local
58 spin_lock_irqsave(&r->lock, flags); in gpio_reg_set()
59 val = r->out; in gpio_reg_set()
64 r->out = val; in gpio_reg_set()
[all …]
/linux-6.1.9/include/drm/
Ddrm_rect.h74 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1 argument
87 #define DRM_RECT_FP_ARG(r) \ argument
88 drm_rect_width(r) >> 16, ((drm_rect_width(r) & 0xffff) * 15625) >> 10, \
89 drm_rect_height(r) >> 16, ((drm_rect_height(r) & 0xffff) * 15625) >> 10, \
90 (r)->x1 >> 16, (((r)->x1 & 0xffff) * 15625) >> 10, \
91 (r)->y1 >> 16, (((r)->y1 & 0xffff) * 15625) >> 10
101 static inline void drm_rect_init(struct drm_rect *r, int x, int y, in drm_rect_init() argument
104 r->x1 = x; in drm_rect_init()
105 r->y1 = y; in drm_rect_init()
106 r->x2 = x + width; in drm_rect_init()
[all …]
/linux-6.1.9/sound/firewire/
Diso-resources.c26 int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) in fw_iso_resources_init() argument
28 r->channels_mask = ~0uLL; in fw_iso_resources_init()
29 r->unit = unit; in fw_iso_resources_init()
30 mutex_init(&r->mutex); in fw_iso_resources_init()
31 r->allocated = false; in fw_iso_resources_init()
41 void fw_iso_resources_destroy(struct fw_iso_resources *r) in fw_iso_resources_destroy() argument
43 WARN_ON(r->allocated); in fw_iso_resources_destroy()
44 mutex_destroy(&r->mutex); in fw_iso_resources_destroy()
105 int fw_iso_resources_allocate(struct fw_iso_resources *r, in fw_iso_resources_allocate() argument
108 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_allocate()
[all …]
/linux-6.1.9/arch/powerpc/platforms/ps3/
Dmm.c217 static int __init ps3_mm_get_repository_highmem(struct mem_region *r) in ps3_mm_get_repository_highmem() argument
223 result = ps3_repository_read_highmem_info(0, &r->base, &r->size); in ps3_mm_get_repository_highmem()
228 if (!r->base || !r->size) { in ps3_mm_get_repository_highmem()
233 r->offset = r->base - map.rm.size; in ps3_mm_get_repository_highmem()
236 __func__, __LINE__, r->base, r->size); in ps3_mm_get_repository_highmem()
243 r->size = r->base = r->offset = 0; in ps3_mm_get_repository_highmem()
247 static int ps3_mm_set_repository_highmem(const struct mem_region *r) in ps3_mm_set_repository_highmem() argument
251 return r ? ps3_repository_write_highmem_info(0, r->base, r->size) : in ps3_mm_set_repository_highmem()
264 static int ps3_mm_region_create(struct mem_region *r, unsigned long size) in ps3_mm_region_create() argument
269 r->size = ALIGN_DOWN(size, 1 << PAGE_SHIFT_16M); in ps3_mm_region_create()
[all …]
/linux-6.1.9/kernel/
Dresource_kunit.c31 struct resource r; member
37 .r1 = &r1, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
39 .r1 = &r2, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
41 .r1 = &r3, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
43 .r1 = &r4, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
49 .r1 = &r4, .r2 = &r1, .r.start = R1_START, .r.end = R4_END, .ret = true,
53 .r1 = &r2, .r2 = &r4, .r.start = R4_START, .r.end = R4_END, .ret = true,
55 .r1 = &r3, .r2 = &r4, .r.start = R4_START, .r.end = R3_END, .ret = true,
61 .r1 = &r1, .r2 = &r0, .r.start = R1_START, .r.end = R1_END, .ret = true,
63 .r1 = &r2, .r2 = &r0, .r.start = R2_START, .r.end = R2_END, .ret = true,
[all …]
/linux-6.1.9/drivers/net/wireless/ath/wil6210/
Drx_reorder.c28 static inline int reorder_index(struct wil_tid_ampdu_rx *r, u16 seq) in reorder_index() argument
30 return seq_sub(seq, r->ssn) % r->buf_size; in reorder_index()
34 struct wil_tid_ampdu_rx *r, in wil_release_reorder_frame() argument
37 struct sk_buff *skb = r->reorder_buf[index]; in wil_release_reorder_frame()
43 r->stored_mpdu_num--; in wil_release_reorder_frame()
44 r->reorder_buf[index] = NULL; in wil_release_reorder_frame()
48 r->head_seq_num = seq_inc(r->head_seq_num); in wil_release_reorder_frame()
52 struct wil_tid_ampdu_rx *r, in wil_release_reorder_frames() argument
63 while (seq_less(r->head_seq_num, hseq) && r->stored_mpdu_num) { in wil_release_reorder_frames()
64 index = reorder_index(r, r->head_seq_num); in wil_release_reorder_frames()
[all …]
/linux-6.1.9/drivers/md/
Ddm-thin-metadata.c450 int r; in __superblock_all_zeroes() local
459 r = dm_bm_read_lock(bm, THIN_SUPERBLOCK_LOCATION, NULL, &b); in __superblock_all_zeroes()
460 if (r) in __superblock_all_zeroes()
461 return r; in __superblock_all_zeroes()
517 int r; in save_sm_roots() local
520 r = dm_sm_root_size(pmd->metadata_sm, &len); in save_sm_roots()
521 if (r < 0) in save_sm_roots()
522 return r; in save_sm_roots()
524 r = dm_sm_copy_root(pmd->metadata_sm, &pmd->metadata_space_map_root, len); in save_sm_roots()
525 if (r < 0) in save_sm_roots()
[all …]
/linux-6.1.9/arch/x86/kernel/cpu/resctrl/
Dcore.c53 struct rdt_resource *r);
55 cat_wrmsr(struct rdt_domain *d, struct msr_param *m, struct rdt_resource *r);
58 struct rdt_resource *r);
126 struct rdt_resource *r = &hw_res->r_resctrl; in cache_alloc_hsw_probe() local
139 r->default_ctrl = max_cbm; in cache_alloc_hsw_probe()
140 r->cache.cbm_len = 20; in cache_alloc_hsw_probe()
141 r->cache.shareable_bits = 0xc0000; in cache_alloc_hsw_probe()
142 r->cache.min_cbm_bits = 2; in cache_alloc_hsw_probe()
143 r->alloc_capable = true; in cache_alloc_hsw_probe()
148 bool is_mba_sc(struct rdt_resource *r) in is_mba_sc() argument
[all …]
/linux-6.1.9/drivers/clk/sifive/
Dsifive-prci.c58 static void __prci_wrpll_unpack(struct wrpll_cfg *c, u32 r) in __prci_wrpll_unpack() argument
62 v = r & PRCI_COREPLLCFG0_DIVR_MASK; in __prci_wrpll_unpack()
66 v = r & PRCI_COREPLLCFG0_DIVF_MASK; in __prci_wrpll_unpack()
70 v = r & PRCI_COREPLLCFG0_DIVQ_MASK; in __prci_wrpll_unpack()
74 v = r & PRCI_COREPLLCFG0_RANGE_MASK; in __prci_wrpll_unpack()
102 u32 r = 0; in __prci_wrpll_pack() local
104 r |= c->divr << PRCI_COREPLLCFG0_DIVR_SHIFT; in __prci_wrpll_pack()
105 r |= c->divf << PRCI_COREPLLCFG0_DIVF_SHIFT; in __prci_wrpll_pack()
106 r |= c->divq << PRCI_COREPLLCFG0_DIVQ_SHIFT; in __prci_wrpll_pack()
107 r |= c->range << PRCI_COREPLLCFG0_RANGE_SHIFT; in __prci_wrpll_pack()
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/include/
Dinstructions.h80 #define __PPC_PREFIX_R(r) (((r) & 0x1) << 20) argument
98 #define PREFIX_MLS(instr, t, a, r, d) stringify_in_c(.balign 64, , 4;) \ argument
100 __PPC_PREFIX_R(r) | \
107 #define PREFIX_8LS(instr, t, a, r, d) stringify_in_c(.balign 64, , 4;) \ argument
109 __PPC_PREFIX_R(r) | \
117 #define PLBZ(t, a, r, d) PREFIX_MLS(PPC_INST_LBZ, t, a, r, d) argument
118 #define PLHZ(t, a, r, d) PREFIX_MLS(PPC_INST_LHZ, t, a, r, d) argument
119 #define PLHA(t, a, r, d) PREFIX_MLS(PPC_INST_LHA, t, a, r, d) argument
120 #define PLWZ(t, a, r, d) PREFIX_MLS(PPC_INST_LWZ, t, a, r, d) argument
121 #define PLWA(t, a, r, d) PREFIX_8LS(0xa4000000, t, a, r, d) argument
[all …]
/linux-6.1.9/crypto/
Dcast5_generic.c295 #define F1(D, m, r) ((I = ((m) + (D))), (I = rol32(I, (r))), \ argument
297 #define F2(D, m, r) ((I = ((m) ^ (D))), (I = rol32(I, (r))), \ argument
299 #define F3(D, m, r) ((I = ((m) - (D))), (I = rol32(I, (r))), \ argument
305 u32 l, r, t; in __cast5_encrypt() local
317 r = get_unaligned_be32(inbuf + 4); in __cast5_encrypt()
327 t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]); in __cast5_encrypt()
328 t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]); in __cast5_encrypt()
329 t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]); in __cast5_encrypt()
330 t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]); in __cast5_encrypt()
331 t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]); in __cast5_encrypt()
[all …]
/linux-6.1.9/drivers/media/radio/
Dradio-wl1273.c100 int i, r = 0; in wl1273_fm_write_fw() local
112 r = i2c_transfer(client->adapter, &msg, 1); in wl1273_fm_write_fw()
113 if (r < 0 && i < len + 1) in wl1273_fm_write_fw()
121 if (i == len || r == 1) in wl1273_fm_write_fw()
122 r = 0; in wl1273_fm_write_fw()
124 return r; in wl1273_fm_write_fw()
152 int r; in wl1273_fm_rds() local
157 r = core->read(core, WL1273_RDS_SYNC_GET, &val); in wl1273_fm_rds()
158 if (r) in wl1273_fm_rds()
159 return r; in wl1273_fm_rds()
[all …]
/linux-6.1.9/drivers/dma-buf/
Dst-dma-resv.c42 int r; in sanitycheck() local
54 r = dma_resv_lock(&resv, NULL); in sanitycheck()
55 if (r) in sanitycheck()
60 return r; in sanitycheck()
68 int r; in test_signaling() local
77 r = dma_resv_lock(&resv, NULL); in test_signaling()
78 if (r) { in test_signaling()
83 r = dma_resv_reserve_fences(&resv, 1); in test_signaling()
84 if (r) { in test_signaling()
92 r = -EINVAL; in test_signaling()
[all …]

12345678910>>...120