Home
last modified time | relevance | path

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

12345678910>>...115

/Linux-v5.4/include/linux/
Dptr_ring.h48 static inline bool __ptr_ring_full(struct ptr_ring *r) in __ptr_ring_full() argument
50 return r->queue[r->producer]; in __ptr_ring_full()
53 static inline bool ptr_ring_full(struct ptr_ring *r) in ptr_ring_full() argument
57 spin_lock(&r->producer_lock); in ptr_ring_full()
58 ret = __ptr_ring_full(r); in ptr_ring_full()
59 spin_unlock(&r->producer_lock); in ptr_ring_full()
64 static inline bool ptr_ring_full_irq(struct ptr_ring *r) in ptr_ring_full_irq() argument
68 spin_lock_irq(&r->producer_lock); in ptr_ring_full_irq()
69 ret = __ptr_ring_full(r); in ptr_ring_full_irq()
70 spin_unlock_irq(&r->producer_lock); in ptr_ring_full_irq()
[all …]
Drefcount.h30 static inline void refcount_set(refcount_t *r, unsigned int n) in refcount_set() argument
32 atomic_set(&r->refs, n); in refcount_set()
41 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() argument
43 return atomic_read(&r->refs); in refcount_read()
46 extern __must_check bool refcount_add_not_zero_checked(unsigned int i, refcount_t *r);
47 extern void refcount_add_checked(unsigned int i, refcount_t *r);
49 extern __must_check bool refcount_inc_not_zero_checked(refcount_t *r);
50 extern void refcount_inc_checked(refcount_t *r);
52 extern __must_check bool refcount_sub_and_test_checked(unsigned int i, refcount_t *r);
54 extern __must_check bool refcount_dec_and_test_checked(refcount_t *r);
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/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-v5.4/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-v5.4/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 …]
Dlock.c76 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb);
77 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb);
78 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb);
79 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb);
80 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb);
81 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode);
82 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb);
83 static int send_remove(struct dlm_rsb *r);
84 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
85 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
[all …]
/Linux-v5.4/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) ? 1 : 0; in gpio_reg_get_direction()
35 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output() local
37 if (r->direction & BIT(offset)) in gpio_reg_direction_output()
46 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input() local
48 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input()
53 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_set() local
57 spin_lock_irqsave(&r->lock, flags); in gpio_reg_set()
58 val = r->out; in gpio_reg_set()
63 r->out = val; in gpio_reg_set()
[all …]
/Linux-v5.4/include/drm/
Ddrm_rect.h53 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1 argument
66 #define DRM_RECT_FP_ARG(r) \ argument
67 drm_rect_width(r) >> 16, ((drm_rect_width(r) & 0xffff) * 15625) >> 10, \
68 drm_rect_height(r) >> 16, ((drm_rect_height(r) & 0xffff) * 15625) >> 10, \
69 (r)->x1 >> 16, (((r)->x1 & 0xffff) * 15625) >> 10, \
70 (r)->y1 >> 16, (((r)->y1 & 0xffff) * 15625) >> 10
84 static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh) in drm_rect_adjust_size() argument
86 r->x1 -= dw >> 1; in drm_rect_adjust_size()
87 r->y1 -= dh >> 1; in drm_rect_adjust_size()
88 r->x2 += (dw + 1) >> 1; in drm_rect_adjust_size()
[all …]
/Linux-v5.4/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-v5.4/arch/powerpc/platforms/ps3/
Dmm.c214 static int ps3_mm_get_repository_highmem(struct mem_region *r) in ps3_mm_get_repository_highmem() argument
220 result = ps3_repository_read_highmem_info(0, &r->base, &r->size); in ps3_mm_get_repository_highmem()
225 if (!r->base || !r->size) { in ps3_mm_get_repository_highmem()
230 r->offset = r->base - map.rm.size; in ps3_mm_get_repository_highmem()
233 __func__, __LINE__, r->base, r->size); in ps3_mm_get_repository_highmem()
240 r->size = r->base = r->offset = 0; in ps3_mm_get_repository_highmem()
244 static int ps3_mm_set_repository_highmem(const struct mem_region *r) in ps3_mm_set_repository_highmem() argument
248 return r ? ps3_repository_write_highmem_info(0, r->base, r->size) : in ps3_mm_set_repository_highmem()
261 static int ps3_mm_region_create(struct mem_region *r, unsigned long size) in ps3_mm_region_create() argument
266 r->size = _ALIGN_DOWN(size, 1 << PAGE_SHIFT_16M); in ps3_mm_region_create()
[all …]
/Linux-v5.4/arch/powerpc/net/
Dbpf_jit32.h75 #define PPC_LBZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LBZ(r, base, i); \ argument
76 else { PPC_ADDIS(r, base, IMM_HA(i)); \
77 PPC_LBZ(r, r, IMM_L(i)); } } while(0)
79 #define PPC_LD_OFFS(r, base, i) do { if ((i) < 32768) PPC_LD(r, base, i); \ argument
80 else { PPC_ADDIS(r, base, IMM_HA(i)); \
81 PPC_LD(r, r, IMM_L(i)); } } while(0)
83 #define PPC_LWZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LWZ(r, base, i); \ argument
84 else { PPC_ADDIS(r, base, IMM_HA(i)); \
85 PPC_LWZ(r, r, IMM_L(i)); } } while(0)
87 #define PPC_LHZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LHZ(r, base, i); \ argument
[all …]
/Linux-v5.4/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);
176 static unsigned int cbm_idx(struct rdt_resource *r, unsigned int closid) in cbm_idx() argument
178 return closid * r->cache.cbm_idx_mult + r->cache.cbm_idx_offset; in cbm_idx()
201 struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_L3]; in cache_alloc_hsw_probe() local
213 r->num_closid = 4; in cache_alloc_hsw_probe()
214 r->default_ctrl = max_cbm; in cache_alloc_hsw_probe()
215 r->cache.cbm_len = 20; in cache_alloc_hsw_probe()
216 r->cache.shareable_bits = 0xc0000; in cache_alloc_hsw_probe()
[all …]
/Linux-v5.4/drivers/net/wireless/ath/wil6210/
Drx_reorder.c39 static inline int reorder_index(struct wil_tid_ampdu_rx *r, u16 seq) in reorder_index() argument
41 return seq_sub(seq, r->ssn) % r->buf_size; in reorder_index()
45 struct wil_tid_ampdu_rx *r, in wil_release_reorder_frame() argument
48 struct sk_buff *skb = r->reorder_buf[index]; in wil_release_reorder_frame()
54 r->stored_mpdu_num--; in wil_release_reorder_frame()
55 r->reorder_buf[index] = NULL; in wil_release_reorder_frame()
59 r->head_seq_num = seq_inc(r->head_seq_num); in wil_release_reorder_frame()
63 struct wil_tid_ampdu_rx *r, in wil_release_reorder_frames() argument
74 while (seq_less(r->head_seq_num, hseq) && r->stored_mpdu_num) { in wil_release_reorder_frames()
75 index = reorder_index(r, r->head_seq_num); in wil_release_reorder_frames()
[all …]
/Linux-v5.4/drivers/md/
Ddm-thin-metadata.c419 int r; in __superblock_all_zeroes() local
428 r = dm_bm_read_lock(bm, THIN_SUPERBLOCK_LOCATION, NULL, &b); in __superblock_all_zeroes()
429 if (r) in __superblock_all_zeroes()
430 return r; in __superblock_all_zeroes()
486 int r; in save_sm_roots() local
489 r = dm_sm_root_size(pmd->metadata_sm, &len); in save_sm_roots()
490 if (r < 0) in save_sm_roots()
491 return r; in save_sm_roots()
493 r = dm_sm_copy_root(pmd->metadata_sm, &pmd->metadata_space_map_root, len); in save_sm_roots()
494 if (r < 0) in save_sm_roots()
[all …]
/Linux-v5.4/include/media/
Dv4l2-rect.h18 static inline void v4l2_rect_set_size_to(struct v4l2_rect *r, in v4l2_rect_set_size_to() argument
21 r->width = size->width; in v4l2_rect_set_size_to()
22 r->height = size->height; in v4l2_rect_set_size_to()
30 static inline void v4l2_rect_set_min_size(struct v4l2_rect *r, in v4l2_rect_set_min_size() argument
33 if (r->width < min_size->width) in v4l2_rect_set_min_size()
34 r->width = min_size->width; in v4l2_rect_set_min_size()
35 if (r->height < min_size->height) in v4l2_rect_set_min_size()
36 r->height = min_size->height; in v4l2_rect_set_min_size()
44 static inline void v4l2_rect_set_max_size(struct v4l2_rect *r, in v4l2_rect_set_max_size() argument
47 if (r->width > max_size->width) in v4l2_rect_set_max_size()
[all …]
/Linux-v5.4/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
307 u32 l, r, t; in __cast5_encrypt() local
319 r = be32_to_cpu(src[1]); in __cast5_encrypt()
329 t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]); in __cast5_encrypt()
330 t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]); in __cast5_encrypt()
331 t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]); in __cast5_encrypt()
332 t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]); in __cast5_encrypt()
333 t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]); in __cast5_encrypt()
[all …]
/Linux-v5.4/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-v5.4/drivers/phy/renesas/
Dphy-rcar-gen3-usb3.c57 static void write_clkset1_for_usb_extal(struct rcar_gen3_usb3 *r, bool reset) in write_clkset1_for_usb_extal() argument
65 writew(val, r->base + USB30_CLKSET1); in write_clkset1_for_usb_extal()
68 static void rcar_gen3_phy_usb3_enable_ssc(struct rcar_gen3_usb3 *r) in rcar_gen3_phy_usb3_enable_ssc() argument
72 switch (r->ssc_range) { in rcar_gen3_phy_usb3_enable_ssc()
83 dev_err(&r->phy->dev, "%s: unsupported range (%x)\n", __func__, in rcar_gen3_phy_usb3_enable_ssc()
84 r->ssc_range); in rcar_gen3_phy_usb3_enable_ssc()
88 writew(val, r->base + USB30_SSC_SET); in rcar_gen3_phy_usb3_enable_ssc()
91 static void rcar_gen3_phy_usb3_select_usb_extal(struct rcar_gen3_usb3 *r) in rcar_gen3_phy_usb3_select_usb_extal() argument
93 write_clkset1_for_usb_extal(r, false); in rcar_gen3_phy_usb3_select_usb_extal()
94 if (r->ssc_range) in rcar_gen3_phy_usb3_select_usb_extal()
[all …]
/Linux-v5.4/arch/mips/alchemy/common/
Dusb.c100 unsigned long r, s; in __au1300_usb_phyctl() local
102 r = __raw_readl(base + USB_DWC_CTRL2); in __au1300_usb_phyctl()
110 r |= USB_DWC_CTRL2_PHY1RS | USB_DWC_CTRL2_PHY0RS | in __au1300_usb_phyctl()
112 __raw_writel(r, base + USB_DWC_CTRL2); in __au1300_usb_phyctl()
116 r &= ~(USB_DWC_CTRL2_PHY1RS | USB_DWC_CTRL2_PHY0RS | in __au1300_usb_phyctl()
118 __raw_writel(r, base + USB_DWC_CTRL2); in __au1300_usb_phyctl()
125 unsigned long r; in __au1300_ohci_control() local
131 r = __raw_readl(base + USB_DWC_CTRL3); /* enable OHCI block */ in __au1300_ohci_control()
132 r |= (id == 0) ? USB_DWC_CTRL3_OHCI0_CKEN in __au1300_ohci_control()
134 __raw_writel(r, base + USB_DWC_CTRL3); in __au1300_ohci_control()
[all …]

12345678910>>...115