Home
last modified time | relevance | path

Searched refs:__reg (Results 1 – 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/
Drt2x00reg.h235 #define SET_FIELD(__reg, __type, __field, __value)\ argument
238 *(__reg) &= ~((__field).bit_mask); \
239 *(__reg) |= ((__value) << \
244 #define GET_FIELD(__reg, __type, __field) \ argument
247 ((__reg) & ((__field).bit_mask)) >> \
251 #define rt2x00_set_field32(__reg, __field, __value) \ argument
252 SET_FIELD(__reg, struct rt2x00_field32, __field, __value)
253 #define rt2x00_get_field32(__reg, __field) \ argument
254 GET_FIELD(__reg, struct rt2x00_field32, __field)
256 #define rt2x00_set_field16(__reg, __field, __value) \ argument
[all …]
Drt2500usb.c117 #define WAIT_FOR_BBP(__dev, __reg) \ argument
118 rt2500usb_regbusy_read((__dev), PHY_CSR8, PHY_CSR8_BUSY, (__reg))
119 #define WAIT_FOR_RF(__dev, __reg) \ argument
120 rt2500usb_regbusy_read((__dev), PHY_CSR10, PHY_CSR10_RF_BUSY, (__reg))
Drt2400pci.c40 #define WAIT_FOR_BBP(__dev, __reg) \ argument
41 rt2x00mmio_regbusy_read((__dev), BBPCSR, BBPCSR_BUSY, (__reg))
42 #define WAIT_FOR_RF(__dev, __reg) \ argument
43 rt2x00mmio_regbusy_read((__dev), RFCSR, RFCSR_BUSY, (__reg))
Drt61pci.c46 #define WAIT_FOR_BBP(__dev, __reg) \ argument
47 rt2x00mmio_regbusy_read((__dev), PHY_CSR3, PHY_CSR3_BUSY, (__reg))
48 #define WAIT_FOR_RF(__dev, __reg) \ argument
49 rt2x00mmio_regbusy_read((__dev), PHY_CSR4, PHY_CSR4_BUSY, (__reg))
50 #define WAIT_FOR_MCU(__dev, __reg) \ argument
52 H2M_MAILBOX_CSR_OWNER, (__reg))
Drt2500pci.c40 #define WAIT_FOR_BBP(__dev, __reg) \ argument
41 rt2x00mmio_regbusy_read((__dev), BBPCSR, BBPCSR_BUSY, (__reg))
42 #define WAIT_FOR_RF(__dev, __reg) \ argument
43 rt2x00mmio_regbusy_read((__dev), RFCSR, RFCSR_BUSY, (__reg))
Drt73usb.c47 #define WAIT_FOR_BBP(__dev, __reg) \ argument
48 rt2x00usb_regbusy_read((__dev), PHY_CSR3, PHY_CSR3_BUSY, (__reg))
49 #define WAIT_FOR_RF(__dev, __reg) \ argument
50 rt2x00usb_regbusy_read((__dev), PHY_CSR4, PHY_CSR4_BUSY, (__reg))
Drt2800lib.c51 #define WAIT_FOR_BBP(__dev, __reg) \ argument
52 rt2800_regbusy_read((__dev), BBP_CSR_CFG, BBP_CSR_CFG_BUSY, (__reg))
53 #define WAIT_FOR_RFCSR(__dev, __reg) \ argument
54 rt2800_regbusy_read((__dev), RF_CSR_CFG, RF_CSR_CFG_BUSY, (__reg))
55 #define WAIT_FOR_RFCSR_MT7620(__dev, __reg) \ argument
57 (__reg))
58 #define WAIT_FOR_RF(__dev, __reg) \ argument
59 rt2800_regbusy_read((__dev), RF_CSR_CFG0, RF_CSR_CFG0_BUSY, (__reg))
60 #define WAIT_FOR_MCU(__dev, __reg) \ argument
62 H2M_MAILBOX_CSR_OWNER, (__reg))
/kernel/linux/linux-5.10/include/net/netfilter/
Dnf_tables_offload.h78 #define NFT_OFFLOAD_MATCH_FLAGS(__key, __base, __field, __len, __reg, __flags) \ argument
79 (__reg)->base_offset = \
81 (__reg)->offset = \
83 (__reg)->len = __len; \
84 (__reg)->key = __key; \
85 (__reg)->flags = __flags;
87 #define NFT_OFFLOAD_MATCH(__key, __base, __field, __len, __reg) \ argument
88 NFT_OFFLOAD_MATCH_FLAGS(__key, __base, __field, __len, __reg, 0)
90 #define NFT_OFFLOAD_MATCH_EXACT(__key, __base, __field, __len, __reg) \ argument
91 NFT_OFFLOAD_MATCH(__key, __base, __field, __len, __reg) \
[all …]
/kernel/linux/linux-5.10/drivers/soc/amlogic/
Dmeson-ee-pwrc.c110 #define VPU_MEMPD(__reg) \ argument
111 { __reg, GENMASK(1, 0) }, \
112 { __reg, GENMASK(3, 2) }, \
113 { __reg, GENMASK(5, 4) }, \
114 { __reg, GENMASK(7, 6) }, \
115 { __reg, GENMASK(9, 8) }, \
116 { __reg, GENMASK(11, 10) }, \
117 { __reg, GENMASK(13, 12) }, \
118 { __reg, GENMASK(15, 14) }, \
119 { __reg, GENMASK(17, 16) }, \
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Ddw_mmc.h452 #define mci_fifo_readw(__reg) __raw_readw(__reg) argument
453 #define mci_fifo_readl(__reg) __raw_readl(__reg) argument
454 #define mci_fifo_readq(__reg) __raw_readq(__reg) argument
456 #define mci_fifo_writew(__value, __reg) __raw_writew(__reg, __value) argument
457 #define mci_fifo_writel(__value, __reg) __raw_writel(__reg, __value) argument
458 #define mci_fifo_writeq(__value, __reg) __raw_writeq(__reg, __value) argument
492 #define __raw_writeq(__value, __reg) \ argument
493 (*(volatile u64 __force *)(__reg) = (__value))
494 #define __raw_readq(__reg) (*(volatile u64 __force *)(__reg)) argument
/kernel/linux/linux-5.10/drivers/gpu/drm/armada/
Darmada_crtc.h20 struct armada_regs *__reg = _r; \
21 __reg[_i].offset = _o; \
22 __reg[_i].mask = ~(_m); \
23 __reg[_i].val = _v; \
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dstv090x_priv.h37 #define STV090x_READ_DEMOD(__state, __reg) (( \ argument
39 stv090x_read_reg(__state, STV090x_P2_##__reg) : \
40 stv090x_read_reg(__state, STV090x_P1_##__reg))
42 #define STV090x_WRITE_DEMOD(__state, __reg, __data) (( \ argument
44 stv090x_write_reg(__state, STV090x_P2_##__reg, __data) :\
45 stv090x_write_reg(__state, STV090x_P1_##__reg, __data))
/kernel/linux/linux-5.10/drivers/clk/microchip/
Dclk-pic32mzda.c27 #define DECLARE_PERIPHERAL_CLOCK(__clk_name, __reg, __flags) \ argument
29 .ctrl_reg = (__reg), \
41 #define DECLARE_REFO_CLOCK(__clkid, __reg) \ argument
43 .ctrl_reg = (__reg), \
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-master-hub.c200 __be32 __reg; in hub_master_probe() local
203 rc = fsi_device_read(fsi_dev, FSI_MVER, &__reg, sizeof(__reg)); in hub_master_probe()
207 reg = be32_to_cpu(__reg); in hub_master_probe()
/kernel/linux/linux-5.10/include/linux/
Dbpf_verifier.h296 #define bpf_for_each_reg_in_vstate(__vst, __state, __reg, __expr) \ argument
305 __reg = &___regs[___j]; \
308 bpf_for_each_spilled_reg(___j, __state, __reg) { \
309 if (!__reg) \
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dprom_irqtrans.c84 #define sabre_read(__reg) \ argument
88 : "r" (__reg), "i" (ASI_PHYS_BYPASS_EC_E) \
318 #define schizo_read(__reg) \ argument
322 : "r" (__reg), "i" (ASI_PHYS_BYPASS_EC_E) \
326 #define schizo_write(__reg, __val) \ argument
329 : "r" (__val), "r" (__reg), \
Diommu.c35 #define iommu_read(__reg) \ argument
39 : "r" (__reg), "i" (ASI_PHYS_BYPASS_EC_E) \
43 #define iommu_write(__reg, __val) \ argument
46 : "r" (__val), "r" (__reg), \
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c162 u32 __reg = 0; \
164 BUILD_BUG_ON(sizeof((map).reg) != sizeof(__reg)); \
166 SET_FIELD(__reg, QM_RF_PQ_MAP_##chip##_PQ_VALID, 1); \
167 SET_FIELD(__reg, QM_RF_PQ_MAP_##chip##_RL_VALID, \
169 SET_FIELD(__reg, QM_RF_PQ_MAP_##chip##_VP_PQ_ID, (vp_pq_id)); \
170 SET_FIELD(__reg, QM_RF_PQ_MAP_##chip##_RL_ID, (rl_id)); \
171 SET_FIELD(__reg, QM_RF_PQ_MAP_##chip##_VOQ, (ext_voq)); \
172 SET_FIELD(__reg, QM_RF_PQ_MAP_##chip##_WRR_WEIGHT_GROUP, \
176 __reg); \
177 (map).reg = cpu_to_le32(__reg); \
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/
Dmacb.h715 #define macb_or_gem_writel(__bp, __reg, __value) \ argument
718 gem_writel((__bp), __reg, __value); \
720 macb_writel((__bp), __reg, __value); \
723 #define macb_or_gem_readl(__bp, __reg) \ argument
727 __v = gem_readl((__bp), __reg); \
729 __v = macb_readl((__bp), __reg); \
/kernel/linux/linux-5.10/drivers/media/platform/s3c-camif/
Dcamif-regs.h159 #define CISTATUS_FRAMECNT(__reg) (((__reg) >> 26) & 0x3) argument
/kernel/linux/linux-5.10/drivers/pinctrl/spear/
Dpinctrl-plgpio.c638 #define plgpio_prepare_reg(__reg, _off, _mask, _tmp) \ argument
640 _tmp = readl_relaxed(plgpio->regs.__reg + _off); \
642 plgpio->csave_regs[i].__reg = \
643 _tmp | (plgpio->csave_regs[i].__reg & _mask); \
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
Dsmc91x.h35 unsigned int __reg = (r); \
36 SMC_outb(__val16, a, __reg); \
37 SMC_outb(__val16 >> 8, a, __reg + (1 << SMC_IO_SHIFT)); \
43 unsigned int __reg = r; \
44 __val16 = SMC_inb(a, __reg); \
45 __val16 |= SMC_inb(a, __reg + (1 << SMC_IO_SHIFT)) << 8; \
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dsunhme.c244 #define hme_write32(__hp, __reg, __val) \ argument
245 ((__hp)->write32((__reg), (__val)))
246 #define hme_read32(__hp, __reg) \ argument
247 ((__hp)->read32(__reg))
265 #define hme_write32(__hp, __reg, __val) \ argument
266 sbus_writel((__val), (__reg))
267 #define hme_read32(__hp, __reg) \ argument
268 sbus_readl(__reg)
290 #define hme_write32(__hp, __reg, __val) \ argument
291 writel((__val), (__reg))
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dadt7411.c199 #define ADT7411_BIT_ATTR(__name, __reg, __bit) \ argument
201 adt7411_set_bit, __bit, __reg)