Home
last modified time | relevance | path

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

12345678910>>...125

/linux-6.12.1/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.12.1/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.h116 void refcount_warn_saturate(refcount_t *r, enum refcount_saturation_type t);
123 static inline void refcount_set(refcount_t *r, int n) in refcount_set() argument
125 atomic_set(&r->refs, n); in refcount_set()
134 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() argument
136 return atomic_read(&r->refs); in refcount_read()
140 bool __refcount_add_not_zero(int i, refcount_t *r, int *oldp) in __refcount_add_not_zero() argument
142 int old = refcount_read(r); in __refcount_add_not_zero()
147 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i)); in __refcount_add_not_zero()
153 refcount_warn_saturate(r, REFCOUNT_ADD_NOT_ZERO_OVF); in __refcount_add_not_zero()
176 static inline __must_check bool refcount_add_not_zero(int i, refcount_t *r) in refcount_add_not_zero() argument
[all …]
/linux-6.12.1/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.12.1/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.12.1/lib/
Dbuildid.c33 static void freader_init_from_file(struct freader *r, void *buf, u32 buf_sz, in freader_init_from_file() argument
36 memset(r, 0, sizeof(*r)); in freader_init_from_file()
37 r->buf = buf; in freader_init_from_file()
38 r->buf_sz = buf_sz; in freader_init_from_file()
39 r->file = file; in freader_init_from_file()
40 r->may_fault = may_fault; in freader_init_from_file()
43 static void freader_init_from_mem(struct freader *r, const char *data, u64 data_sz) in freader_init_from_mem() argument
45 memset(r, 0, sizeof(*r)); in freader_init_from_mem()
46 r->data = data; in freader_init_from_mem()
47 r->data_sz = data_sz; in freader_init_from_mem()
[all …]
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.12.1/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.12.1/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.12.1/fs/dlm/
Drecover.c251 static void recover_list_add(struct dlm_rsb *r) in recover_list_add() argument
253 struct dlm_ls *ls = r->res_ls; in recover_list_add()
256 if (list_empty(&r->res_recover_list)) { in recover_list_add()
257 list_add_tail(&r->res_recover_list, &ls->ls_recover_list); in recover_list_add()
259 dlm_hold_rsb(r); in recover_list_add()
264 static void recover_list_del(struct dlm_rsb *r) in recover_list_del() argument
266 struct dlm_ls *ls = r->res_ls; in recover_list_del()
269 list_del_init(&r->res_recover_list); in recover_list_del()
273 dlm_put_rsb(r); in recover_list_del()
278 struct dlm_rsb *r, *s; in recover_list_clear() local
[all …]
Dlock.c78 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb);
79 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb);
80 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb);
81 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb);
82 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb);
83 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode);
84 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb);
85 static int send_remove(struct dlm_rsb *r);
86 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
87 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
[all …]
/linux-6.12.1/drivers/gpio/
Dgpio-reg.c35 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction() local
37 return r->direction & BIT(offset) ? GPIO_LINE_DIRECTION_IN : in gpio_reg_get_direction()
44 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output() local
46 if (r->direction & BIT(offset)) in gpio_reg_direction_output()
55 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input() local
57 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input()
62 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_set() local
66 spin_lock_irqsave(&r->lock, flags); in gpio_reg_set()
67 val = r->out; in gpio_reg_set()
72 r->out = val; in gpio_reg_set()
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/drivers/md/
Ddm-thin-metadata.c456 int r; in __superblock_all_zeroes() local
465 r = dm_bm_read_lock(bm, THIN_SUPERBLOCK_LOCATION, NULL, &b); in __superblock_all_zeroes()
466 if (r) in __superblock_all_zeroes()
467 return r; in __superblock_all_zeroes()
523 int r; in save_sm_roots() local
526 r = dm_sm_root_size(pmd->metadata_sm, &len); in save_sm_roots()
527 if (r < 0) in save_sm_roots()
528 return r; in save_sm_roots()
530 r = dm_sm_copy_root(pmd->metadata_sm, &pmd->metadata_space_map_root, len); in save_sm_roots()
531 if (r < 0) in save_sm_roots()
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/tools/lib/bpf/
Dbtf_relocate.c66 static int btf_relocate_rewrite_type_id(struct btf_relocate *r, __u32 i) in btf_relocate_rewrite_type_id() argument
68 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_type_id()
78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id()
132 static int btf_mark_embedded_composite_type_ids(struct btf_relocate *r, __u32 i) in btf_mark_embedded_composite_type_ids() argument
134 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_mark_embedded_composite_type_ids()
150 t = btf_type_by_id(r->btf, next_id); in btf_mark_embedded_composite_type_ids()
167 if (next_id < r->nr_dist_base_types) in btf_mark_embedded_composite_type_ids()
168 r->id_map[next_id] = BTF_IS_EMBEDDED; in btf_mark_embedded_composite_type_ids()
184 static int btf_relocate_map_distilled_base(struct btf_relocate *r) in btf_relocate_map_distilled_base() argument
195 info = calloc(r->nr_dist_base_types, sizeof(*info)); in btf_relocate_map_distilled_base()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_mm.c43 static inline unsigned long sgt_pfn(const struct remap_pfn *r) in sgt_pfn() argument
45 if (use_dma(r->iobase)) in sgt_pfn()
46 return (r->sgt.dma + r->sgt.curr + r->iobase) >> PAGE_SHIFT; in sgt_pfn()
48 return r->sgt.pfn + (r->sgt.curr >> PAGE_SHIFT); in sgt_pfn()
53 struct remap_pfn *r = data; in remap_sg() local
55 if (GEM_WARN_ON(!r->sgt.sgp)) in remap_sg()
59 set_pte_at(r->mm, addr, pte, in remap_sg()
60 pte_mkspecial(pfn_pte(sgt_pfn(r), r->prot))); in remap_sg()
61 r->pfn++; /* track insertions in case we need to unwind later */ in remap_sg()
63 r->sgt.curr += PAGE_SIZE; in remap_sg()
[all …]

12345678910>>...125