Home
last modified time | relevance | path

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

12345678910>>...110

/Linux-v4.19/include/linux/
Dptr_ring.h53 static inline bool __ptr_ring_full(struct ptr_ring *r) in __ptr_ring_full() argument
55 return r->queue[r->producer]; in __ptr_ring_full()
58 static inline bool ptr_ring_full(struct ptr_ring *r) in ptr_ring_full() argument
62 spin_lock(&r->producer_lock); in ptr_ring_full()
63 ret = __ptr_ring_full(r); in ptr_ring_full()
64 spin_unlock(&r->producer_lock); in ptr_ring_full()
69 static inline bool ptr_ring_full_irq(struct ptr_ring *r) in ptr_ring_full_irq() argument
73 spin_lock_irq(&r->producer_lock); in ptr_ring_full_irq()
74 ret = __ptr_ring_full(r); in ptr_ring_full_irq()
75 spin_unlock_irq(&r->producer_lock); in ptr_ring_full_irq()
[all …]
/Linux-v4.19/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-v4.19/drivers/gpu/drm/exynos/
Dregs-scaler.h82 #define _SCALER_HCOEF_DELTA(r, c) ((r) * 0x10 + (c) * 0x4) argument
83 #define _SCALER_VCOEF_DELTA(r, c) ((r) * 0x8 + (c) * 0x4) argument
85 #define SCALER_YHCOEF(r, c) (0x60 + _SCALER_HCOEF_DELTA((r), (c))) argument
86 #define SCALER_YVCOEF(r, c) (0xf0 + _SCALER_VCOEF_DELTA((r), (c))) argument
87 #define SCALER_CHCOEF(r, c) (0x140 + _SCALER_HCOEF_DELTA((r), (c))) argument
88 #define SCALER_CVCOEF(r, c) (0x1d0 + _SCALER_VCOEF_DELTA((r), (c))) argument
208 #define SCALER_SRC_CFG_GET_BYTE_SWAP(r) SCALER_GET(r, 6, 5) argument
210 #define SCALER_SRC_CFG_GET_COLOR_FORMAT(r) SCALER_GET(r, 4, 0) argument
234 #define SCALER_SRC_SPAN_GET_C_SPAN(r) SCALER_GET(r, 29, 16) argument
236 #define SCALER_SRC_SPAN_GET_Y_SPAN(r) SCALER_GET(r, 13, 0) argument
[all …]
/Linux-v4.19/drivers/net/wireless/zydas/zd1211rw/
Dzd_rf_al7230b.c76 int r; in zd1211b_al7230b_finalize() local
85 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_al7230b_finalize()
86 if (r) in zd1211b_al7230b_finalize()
87 return r; in zd1211b_al7230b_finalize()
91 r = zd_iowrite16_locked(chip, 0xe5, ZD_CR9); in zd1211b_al7230b_finalize()
92 if (r) in zd1211b_al7230b_finalize()
93 return r; in zd1211b_al7230b_finalize()
101 int r; in zd1211_al7230b_init_hw() local
170 r = zd_iowrite16a_locked(chip, ioreqs_1, ARRAY_SIZE(ioreqs_1)); in zd1211_al7230b_init_hw()
171 if (r) in zd1211_al7230b_init_hw()
[all …]
Dzd_rf_al2230.c80 int r; in zd1211b_al2230_finalize_rf() local
90 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_al2230_finalize_rf()
91 if (r) in zd1211b_al2230_finalize_rf()
92 return r; in zd1211b_al2230_finalize_rf()
96 r = zd_iowrite16_locked(chip, 0xe1, ZD_CR9); in zd1211b_al2230_finalize_rf()
97 if (r) in zd1211b_al2230_finalize_rf()
98 return r; in zd1211b_al2230_finalize_rf()
106 int r; in zd1211_al2230_init_hw() local
179 r = zd_iowrite16a_locked(chip, ioreqs_init, ARRAY_SIZE(ioreqs_init)); in zd1211_al2230_init_hw()
180 if (r) in zd1211_al2230_init_hw()
[all …]
Dzd_chip.c108 int r; in zd_ioread32v_locked() local
129 r = zd_ioread16v_locked(chip, v16, a16, count16); in zd_ioread32v_locked()
130 if (r) { in zd_ioread32v_locked()
132 "error: %s. Error number %d\n", __func__, r); in zd_ioread32v_locked()
133 return r; in zd_ioread32v_locked()
148 int i, j, r; in _zd_iowrite32v_async_locked() local
173 r = zd_usb_iowrite16v_async(&chip->usb, ioreqs16, count16); in _zd_iowrite32v_async_locked()
175 if (r) { in _zd_iowrite32v_async_locked()
177 "error %d in zd_usb_write16v\n", r); in _zd_iowrite32v_async_locked()
180 return r; in _zd_iowrite32v_async_locked()
[all …]
/Linux-v4.19/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-v4.19/sound/pci/ice1712/
Dhoontech.h44 #define ICE1712_STDSP24_0_BOX(r, x) r[0] = ((r[0] & ~3) | ((x)&3)) argument
45 #define ICE1712_STDSP24_0_DAREAR(r, x) r[0] = ((r[0] & ~4) | (((x)&1)<<2)) argument
46 #define ICE1712_STDSP24_1_CHN1(r, x) r[1] = ((r[1] & ~1) | ((x)&1)) argument
47 #define ICE1712_STDSP24_1_CHN2(r, x) r[1] = ((r[1] & ~2) | (((x)&1)<<1)) argument
48 #define ICE1712_STDSP24_1_CHN3(r, x) r[1] = ((r[1] & ~4) | (((x)&1)<<2)) argument
49 #define ICE1712_STDSP24_2_CHN4(r, x) r[2] = ((r[2] & ~1) | ((x)&1)) argument
50 #define ICE1712_STDSP24_2_MIDIIN(r, x) r[2] = ((r[2] & ~2) | (((x)&1)<<1)) argument
51 #define ICE1712_STDSP24_2_MIDI1(r, x) r[2] = ((r[2] & ~4) | (((x)&1)<<2)) argument
52 #define ICE1712_STDSP24_3_MIDI2(r, x) r[3] = ((r[3] & ~1) | ((x)&1)) argument
53 #define ICE1712_STDSP24_3_MUTE(r, x) r[3] = ((r[3] & ~2) | (((x)&1)<<1)) argument
[all …]
/Linux-v4.19/Documentation/cpuidle/
Dsysfs.txt38 -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
39 -rw-r--r-- 1 root root 4096 Feb 8 10:42 disable
40 -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
41 -r--r--r-- 1 root root 4096 Feb 8 10:42 name
42 -r--r--r-- 1 root root 4096 Feb 8 10:42 power
43 -r--r--r-- 1 root root 4096 Feb 8 10:42 residency
44 -r--r--r-- 1 root root 4096 Feb 8 10:42 time
45 -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
49 -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
50 -rw-r--r-- 1 root root 4096 Feb 8 10:42 disable
[all …]
/Linux-v4.19/fs/dlm/
Drecover.c252 static void recover_list_add(struct dlm_rsb *r) in recover_list_add() argument
254 struct dlm_ls *ls = r->res_ls; in recover_list_add()
257 if (list_empty(&r->res_recover_list)) { in recover_list_add()
258 list_add_tail(&r->res_recover_list, &ls->ls_recover_list); in recover_list_add()
260 dlm_hold_rsb(r); in recover_list_add()
265 static void recover_list_del(struct dlm_rsb *r) in recover_list_del() argument
267 struct dlm_ls *ls = r->res_ls; in recover_list_del()
270 list_del_init(&r->res_recover_list); in recover_list_del()
274 dlm_put_rsb(r); in recover_list_del()
279 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-v4.19/drivers/gpio/
Dgpio-reg.c30 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction() local
32 return r->direction & BIT(offset) ? 1 : 0; in gpio_reg_get_direction()
38 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output() local
40 if (r->direction & BIT(offset)) in gpio_reg_direction_output()
49 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input() local
51 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input()
56 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_set() local
60 spin_lock_irqsave(&r->lock, flags); in gpio_reg_set()
61 val = r->out; in gpio_reg_set()
66 r->out = val; in gpio_reg_set()
[all …]
/Linux-v4.19/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-v4.19/arch/powerpc/platforms/ps3/
Dmm.c226 static int ps3_mm_get_repository_highmem(struct mem_region *r) in ps3_mm_get_repository_highmem() argument
232 result = ps3_repository_read_highmem_info(0, &r->base, &r->size); in ps3_mm_get_repository_highmem()
237 if (!r->base || !r->size) { in ps3_mm_get_repository_highmem()
242 r->offset = r->base - map.rm.size; in ps3_mm_get_repository_highmem()
245 __func__, __LINE__, r->base, r->size); in ps3_mm_get_repository_highmem()
252 r->size = r->base = r->offset = 0; in ps3_mm_get_repository_highmem()
256 static int ps3_mm_set_repository_highmem(const struct mem_region *r) in ps3_mm_set_repository_highmem() argument
260 return r ? ps3_repository_write_highmem_info(0, r->base, r->size) : in ps3_mm_set_repository_highmem()
273 static int ps3_mm_region_create(struct mem_region *r, unsigned long size) in ps3_mm_region_create() argument
278 r->size = _ALIGN_DOWN(size, 1 << PAGE_SHIFT_16M); in ps3_mm_region_create()
[all …]
/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/drivers/nfc/nxp-nci/
Di2c.c78 int r; in nxp_nci_i2c_write() local
85 r = i2c_master_send(client, skb->data, skb->len); in nxp_nci_i2c_write()
86 if (r < 0) { in nxp_nci_i2c_write()
89 r = i2c_master_send(client, skb->data, skb->len); in nxp_nci_i2c_write()
92 if (r < 0) { in nxp_nci_i2c_write()
93 nfc_err(&client->dev, "Error %d on I2C send\n", r); in nxp_nci_i2c_write()
94 } else if (r != skb->len) { in nxp_nci_i2c_write()
97 r, skb->len); in nxp_nci_i2c_write()
98 r = -EREMOTEIO; in nxp_nci_i2c_write()
101 r = 0; in nxp_nci_i2c_write()
[all …]
/Linux-v4.19/drivers/md/
Ddm-thin-metadata.c386 int r; in __superblock_all_zeroes() local
395 r = dm_bm_read_lock(bm, THIN_SUPERBLOCK_LOCATION, NULL, &b); in __superblock_all_zeroes()
396 if (r) in __superblock_all_zeroes()
397 return r; in __superblock_all_zeroes()
453 int r; in save_sm_roots() local
456 r = dm_sm_root_size(pmd->metadata_sm, &len); in save_sm_roots()
457 if (r < 0) in save_sm_roots()
458 return r; in save_sm_roots()
460 r = dm_sm_copy_root(pmd->metadata_sm, &pmd->metadata_space_map_root, len); in save_sm_roots()
461 if (r < 0) in save_sm_roots()
[all …]
/Linux-v4.19/arch/powerpc/net/
Dbpf_jit32.h79 #define PPC_LBZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LBZ(r, base, i); \ argument
80 else { PPC_ADDIS(r, base, IMM_HA(i)); \
81 PPC_LBZ(r, r, IMM_L(i)); } } while(0)
83 #define PPC_LD_OFFS(r, base, i) do { if ((i) < 32768) PPC_LD(r, base, i); \ argument
84 else { PPC_ADDIS(r, base, IMM_HA(i)); \
85 PPC_LD(r, r, IMM_L(i)); } } while(0)
87 #define PPC_LWZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LWZ(r, base, i); \ argument
88 else { PPC_ADDIS(r, base, IMM_HA(i)); \
89 PPC_LWZ(r, r, IMM_L(i)); } } while(0)
91 #define PPC_LHZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LHZ(r, base, i); \ argument
[all …]
/Linux-v4.19/crypto/
Dcast5_generic.c302 #define F1(D, m, r) ((I = ((m) + (D))), (I = rol32(I, (r))), \ argument
304 #define F2(D, m, r) ((I = ((m) ^ (D))), (I = rol32(I, (r))), \ argument
306 #define F3(D, m, r) ((I = ((m) - (D))), (I = rol32(I, (r))), \ argument
314 u32 l, r, t; in __cast5_encrypt() local
326 r = be32_to_cpu(src[1]); in __cast5_encrypt()
336 t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]); in __cast5_encrypt()
337 t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]); in __cast5_encrypt()
338 t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]); in __cast5_encrypt()
339 t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]); in __cast5_encrypt()
340 t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]); in __cast5_encrypt()
[all …]
/Linux-v4.19/drivers/media/radio/
Dradio-wl1273.c108 int i, r = 0; in wl1273_fm_write_fw() local
120 r = i2c_transfer(client->adapter, &msg, 1); in wl1273_fm_write_fw()
121 if (r < 0 && i < len + 1) in wl1273_fm_write_fw()
129 if (i == len || r == 1) in wl1273_fm_write_fw()
130 r = 0; in wl1273_fm_write_fw()
132 return r; in wl1273_fm_write_fw()
160 int r; in wl1273_fm_rds() local
165 r = core->read(core, WL1273_RDS_SYNC_GET, &val); in wl1273_fm_rds()
166 if (r) in wl1273_fm_rds()
167 return r; in wl1273_fm_rds()
[all …]
/Linux-v4.19/drivers/phy/renesas/
Dphy-rcar-gen3-usb3.c60 static void write_clkset1_for_usb_extal(struct rcar_gen3_usb3 *r, bool reset) in write_clkset1_for_usb_extal() argument
68 writew(val, r->base + USB30_CLKSET1); in write_clkset1_for_usb_extal()
71 static void rcar_gen3_phy_usb3_enable_ssc(struct rcar_gen3_usb3 *r) in rcar_gen3_phy_usb3_enable_ssc() argument
75 switch (r->ssc_range) { in rcar_gen3_phy_usb3_enable_ssc()
86 dev_err(&r->phy->dev, "%s: unsupported range (%x)\n", __func__, in rcar_gen3_phy_usb3_enable_ssc()
87 r->ssc_range); in rcar_gen3_phy_usb3_enable_ssc()
91 writew(val, r->base + USB30_SSC_SET); in rcar_gen3_phy_usb3_enable_ssc()
94 static void rcar_gen3_phy_usb3_select_usb_extal(struct rcar_gen3_usb3 *r) in rcar_gen3_phy_usb3_select_usb_extal() argument
96 write_clkset1_for_usb_extal(r, false); in rcar_gen3_phy_usb3_select_usb_extal()
97 if (r->ssc_range) in rcar_gen3_phy_usb3_select_usb_extal()
[all …]
/Linux-v4.19/arch/mips/alchemy/common/
Dusb.c99 unsigned long r, s; in __au1300_usb_phyctl() local
101 r = __raw_readl(base + USB_DWC_CTRL2); in __au1300_usb_phyctl()
109 r |= USB_DWC_CTRL2_PHY1RS | USB_DWC_CTRL2_PHY0RS | in __au1300_usb_phyctl()
111 __raw_writel(r, base + USB_DWC_CTRL2); in __au1300_usb_phyctl()
115 r &= ~(USB_DWC_CTRL2_PHY1RS | USB_DWC_CTRL2_PHY0RS | in __au1300_usb_phyctl()
117 __raw_writel(r, base + USB_DWC_CTRL2); in __au1300_usb_phyctl()
124 unsigned long r; in __au1300_ohci_control() local
130 r = __raw_readl(base + USB_DWC_CTRL3); /* enable OHCI block */ in __au1300_ohci_control()
131 r |= (id == 0) ? USB_DWC_CTRL3_OHCI0_CKEN in __au1300_ohci_control()
133 __raw_writel(r, base + USB_DWC_CTRL3); in __au1300_ohci_control()
[all …]

12345678910>>...110