/linux-6.6.21/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00reg.h | 235 #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 …]
|
D | rt2500usb.c | 117 #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))
|
D | rt2400pci.c | 40 #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))
|
D | rt61pci.c | 46 #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))
|
D | rt2500pci.c | 40 #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))
|
D | rt73usb.c | 47 #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))
|
/linux-6.6.21/include/net/netfilter/ |
D | nf_tables_offload.h | 79 #define NFT_OFFLOAD_MATCH_FLAGS(__key, __base, __field, __len, __reg, __flags) \ argument 80 (__reg)->base_offset = \ 82 (__reg)->offset = \ 84 (__reg)->len = __len; \ 85 (__reg)->key = __key; \ 86 (__reg)->flags = __flags; 88 #define NFT_OFFLOAD_MATCH(__key, __base, __field, __len, __reg) \ argument 89 NFT_OFFLOAD_MATCH_FLAGS(__key, __base, __field, __len, __reg, 0) 91 #define NFT_OFFLOAD_MATCH_EXACT(__key, __base, __field, __len, __reg) \ argument 92 NFT_OFFLOAD_MATCH(__key, __base, __field, __len, __reg) \ [all …]
|
/linux-6.6.21/drivers/pmdomain/amlogic/ |
D | meson-ee-pwrc.c | 120 #define VPU_MEMPD(__reg) \ argument 121 { __reg, GENMASK(1, 0) }, \ 122 { __reg, GENMASK(3, 2) }, \ 123 { __reg, GENMASK(5, 4) }, \ 124 { __reg, GENMASK(7, 6) }, \ 125 { __reg, GENMASK(9, 8) }, \ 126 { __reg, GENMASK(11, 10) }, \ 127 { __reg, GENMASK(13, 12) }, \ 128 { __reg, GENMASK(15, 14) }, \ 129 { __reg, GENMASK(17, 16) }, \ [all …]
|
/linux-6.6.21/drivers/mmc/host/ |
D | dw_mmc.h | 466 #define mci_fifo_readw(__reg) __raw_readw(__reg) argument 467 #define mci_fifo_readl(__reg) __raw_readl(__reg) argument 468 #define mci_fifo_readq(__reg) __raw_readq(__reg) argument 470 #define mci_fifo_writew(__value, __reg) __raw_writew(__reg, __value) argument 471 #define mci_fifo_writel(__value, __reg) __raw_writel(__reg, __value) argument 472 #define mci_fifo_writeq(__value, __reg) __raw_writeq(__reg, __value) argument 506 #define __raw_writeq(__value, __reg) \ argument 507 (*(volatile u64 __force *)(__reg) = (__value)) 508 #define __raw_readq(__reg) (*(volatile u64 __force *)(__reg)) argument
|
/linux-6.6.21/drivers/gpu/drm/armada/ |
D | armada_crtc.h | 20 struct armada_regs *__reg = _r; \ 21 __reg[_i].offset = _o; \ 22 __reg[_i].mask = ~(_m); \ 23 __reg[_i].val = _v; \
|
/linux-6.6.21/drivers/media/dvb-frontends/ |
D | stv090x_priv.h | 37 #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))
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_dkl_phy_regs.h | 23 #define DKL_REG_TC_PORT(__reg) \ argument 24 (TC_PORT_1 + ((__reg).reg - _DKL_PHY1_BASE) / (_DKL_PHY2_BASE - _DKL_PHY1_BASE)) 27 #define DKL_REG_MMIO(__reg) _MMIO((__reg).reg) argument
|
/linux-6.6.21/drivers/clk/microchip/ |
D | clk-pic32mzda.c | 27 #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), \
|
/linux-6.6.21/drivers/fsi/ |
D | fsi-master-hub.c | 200 __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()
|
/linux-6.6.21/arch/sparc/kernel/ |
D | prom_irqtrans.c | 85 #define sabre_read(__reg) \ argument 89 : "r" (__reg), "i" (ASI_PHYS_BYPASS_EC_E) \ 319 #define schizo_read(__reg) \ argument 323 : "r" (__reg), "i" (ASI_PHYS_BYPASS_EC_E) \ 327 #define schizo_write(__reg, __val) \ argument 330 : "r" (__val), "r" (__reg), \
|
D | iommu.c | 35 #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), \
|
/linux-6.6.21/include/linux/ |
D | bpf_verifier.h | 428 #define bpf_for_each_reg_in_vstate(__vst, __state, __reg, __expr) \ argument 437 __reg = &___regs[___j]; \ 440 bpf_for_each_spilled_reg(___j, __state, __reg) { \ 441 if (!__reg) \
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_init_fw_funcs.c | 185 u32 __reg = 0; \ 187 BUILD_BUG_ON(sizeof((map).reg) != sizeof(__reg)); \ 189 SET_FIELD(__reg, QM_RF_PQ_MAP_PQ_VALID, 1); \ 190 SET_FIELD(__reg, QM_RF_PQ_MAP_RL_VALID, \ 192 SET_FIELD(__reg, QM_RF_PQ_MAP_VP_PQ_ID, (vp_pq_id)); \ 193 SET_FIELD(__reg, QM_RF_PQ_MAP_RL_ID, (rl_id)); \ 194 SET_FIELD(__reg, QM_RF_PQ_MAP_VOQ, (ext_voq)); \ 195 SET_FIELD(__reg, QM_RF_PQ_MAP_WRR_WEIGHT_GROUP, \ 199 __reg); \ 200 (map).reg = cpu_to_le32(__reg); \
|
/linux-6.6.21/drivers/net/ethernet/cadence/ |
D | macb.h | 791 #define macb_or_gem_writel(__bp, __reg, __value) \ argument 794 gem_writel((__bp), __reg, __value); \ 796 macb_writel((__bp), __reg, __value); \ 799 #define macb_or_gem_readl(__bp, __reg) \ argument 803 __v = gem_readl((__bp), __reg); \ 805 __v = macb_readl((__bp), __reg); \
|
/linux-6.6.21/drivers/media/platform/samsung/s3c-camif/ |
D | camif-regs.h | 159 #define CISTATUS_FRAMECNT(__reg) (((__reg) >> 26) & 0x3) argument
|
/linux-6.6.21/drivers/net/ethernet/smsc/ |
D | smc91x.h | 35 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; \
|
/linux-6.6.21/drivers/pinctrl/spear/ |
D | pinctrl-plgpio.c | 666 #define plgpio_prepare_reg(__reg, _off, _mask, _tmp) \ argument 668 regmap_read(plgpio->regmap, plgpio->regs.__reg + _off, &_tmp); \ 670 plgpio->csave_regs[i].__reg = \ 671 _tmp | (plgpio->csave_regs[i].__reg & _mask); \
|
/linux-6.6.21/drivers/net/ethernet/sun/ |
D | sunhme.c | 208 #define hme_write32(__hp, __reg, __val) \ argument 209 ((__hp)->write32((__reg), (__val))) 210 #define hme_read32(__hp, __reg) \ argument 211 ((__hp)->read32(__reg)) 221 #define hme_write32(__hp, __reg, __val) \ argument 222 sbus_writel((__val), (__reg)) 223 #define hme_read32(__hp, __reg) \ argument 224 sbus_readl(__reg) 238 #define hme_write32(__hp, __reg, __val) \ argument 239 writel((__val), (__reg)) [all …]
|
/linux-6.6.21/drivers/thermal/mediatek/ |
D | lvts_thermal.c | 153 #define LVTS_DEBUG_FS_REGS(__reg) \ argument 155 .name = __stringify(__reg), \ 156 .offset = __reg(0), \
|
/linux-6.6.21/drivers/hwmon/ |
D | adt7411.c | 199 #define ADT7411_BIT_ATTR(__name, __reg, __bit) \ argument 201 adt7411_set_bit, __bit, __reg)
|