Home
last modified time | relevance | path

Searched refs:_reg (Results 1 – 25 of 26) sorted by relevance

12

/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h990 #define XGMAC_IOREAD(_pdata, _reg) \ argument
991 ioread32((_pdata)->xgmac_regs + _reg)
993 #define XGMAC_IOREAD_BITS(_pdata, _reg, _field) \ argument
994 GET_BITS(XGMAC_IOREAD((_pdata), _reg), \
995 _reg##_##_field##_INDEX, \
996 _reg##_##_field##_WIDTH)
998 #define XGMAC_IOWRITE(_pdata, _reg, _val) \ argument
999 iowrite32((_val), (_pdata)->xgmac_regs + _reg)
1001 #define XGMAC_IOWRITE_BITS(_pdata, _reg, _field, _val) \ argument
1003 u32 reg_val = XGMAC_IOREAD((_pdata), _reg); \
[all …]
/drivers/regulator/
Dmc13xxx.h59 #define MC13xxx_DEFINE(prefix, _name, _reg, _vsel_reg, _voltages, _ops) \ argument
70 .reg = prefix ## _reg, \
71 .enable_bit = prefix ## _reg ## _ ## _name ## EN, \
77 #define MC13xxx_FIXED_DEFINE(prefix, _name, _reg, _voltages, _ops) \ argument
88 .reg = prefix ## _reg, \
89 .enable_bit = prefix ## _reg ## _ ## _name ## EN, \
92 #define MC13xxx_GPO_DEFINE(prefix, _name, _reg, _voltages, _ops) \ argument
103 .reg = prefix ## _reg, \
104 .enable_bit = prefix ## _reg ## _ ## _name ## EN, \
107 #define MC13xxx_DEFINE_SW(_name, _reg, _vsel_reg, _voltages, ops) \ argument
[all …]
Dmc13783-regulator.c247 #define MC13783_DEFINE_SW(_name, _reg, _vsel_reg, _voltages) \ argument
248 MC13783_DEFINE(REG, _name, _reg, _vsel_reg, _voltages)
249 #define MC13783_DEFINE_REGU(_name, _reg, _vsel_reg, _voltages) \ argument
250 MC13783_DEFINE(REG, _name, _reg, _vsel_reg, _voltages)
Dpcap-regulator.c107 #define VREG_INFO(_vreg, _reg, _en, _index, _stby, _lowpwr) \ argument
109 .reg = _reg, \
Dtps6524x-regulator.c372 #define __MK_FIELD(_reg, _mask, _shift) \ argument
373 { .reg = (_reg), .mask = (_mask), .shift = (_shift), }
Dda9063-regulator.c33 #define BFIELD(_reg, _mask) \ argument
34 REG_FIELD(_reg, __builtin_ffs((int)_mask) - 1, \
Dmax8998.c198 int *_reg, int *_shift, int *_mask) in max8998_get_voltage_register() argument
253 *_reg = reg; in max8998_get_voltage_register()
Dmax8997.c302 int *_reg, int *_shift, int *_mask) in max8997_get_voltage_register() argument
360 *_reg = reg; in max8997_get_voltage_register()
/drivers/reset/sti/
Dreset-stih416.c49 #define STIH416_SRST_CPU(_reg, _bit) \ argument
50 _SYSCFG_RST_CH_NO_ACK(stih416_cpu, _reg, _bit)
52 #define STIH416_SRST_FRONT(_reg, _bit) \ argument
53 _SYSCFG_RST_CH_NO_ACK(stih416_front, _reg, _bit)
55 #define STIH416_SRST_REAR(_reg, _bit) \ argument
56 _SYSCFG_RST_CH_NO_ACK(stih416_rear, _reg, _bit)
58 #define STIH416_SRST_LPM(_reg, _bit) \ argument
59 _SYSCFG_RST_CH_NO_ACK(stih416_lpm, _reg, _bit)
61 #define STIH416_SRST_SBC(_reg, _bit) \ argument
62 _SYSCFG_RST_CH_NO_ACK(stih416_sbc, _reg, _bit)
Dreset-stih415.c34 #define STIH415_SRST_REAR(_reg, _bit) \ argument
35 _SYSCFG_RST_CH_NO_ACK(stih415_rear, _reg, _bit)
37 #define STIH415_SRST_SBC(_reg, _bit) \ argument
38 _SYSCFG_RST_CH_NO_ACK(stih415_sbc, _reg, _bit)
40 #define STIH415_SRST_FRONT(_reg, _bit) \ argument
41 _SYSCFG_RST_CH_NO_ACK(stih415_front, _reg, _bit)
43 #define STIH415_SRST_LPM(_reg, _bit) \ argument
44 _SYSCFG_RST_CH_NO_ACK(stih415_lpm, _reg, _bit)
/drivers/net/phy/
Damd-xgbe-phy.c227 #define XSIR0_IOREAD(_priv, _reg) \ argument
228 ioread16((_priv)->sir0_regs + _reg)
230 #define XSIR0_IOREAD_BITS(_priv, _reg, _field) \ argument
231 GET_BITS(XSIR0_IOREAD((_priv), _reg), \
232 _reg##_##_field##_INDEX, \
233 _reg##_##_field##_WIDTH)
235 #define XSIR0_IOWRITE(_priv, _reg, _val) \ argument
236 iowrite16((_val), (_priv)->sir0_regs + _reg)
238 #define XSIR0_IOWRITE_BITS(_priv, _reg, _field, _val) \ argument
240 u16 reg_val = XSIR0_IOREAD((_priv), _reg); \
[all …]
/drivers/media/tuners/
Dmc44s803_priv.h193 #define MC44S803_REG_SM(_val, _reg) \ argument
194 (((_val) << _reg##_S) & (_reg))
197 #define MC44S803_REG_MS(_val, _reg) \ argument
198 (((_val) & (_reg)) >> _reg##_S)
/drivers/net/wireless/ath/ath5k/
Dath5k.h124 #define AR5K_REG_WRITE_BITS(ah, _reg, _flags, _val) \ argument
125 ath5k_hw_reg_write(ah, (ath5k_hw_reg_read(ah, _reg) & ~(_flags)) | \
126 (((_val) << _flags##_S) & (_flags)), _reg)
128 #define AR5K_REG_MASKED_BITS(ah, _reg, _flags, _mask) \ argument
129 ath5k_hw_reg_write(ah, (ath5k_hw_reg_read(ah, _reg) & \
130 (_mask)) | (_flags), _reg)
132 #define AR5K_REG_ENABLE_BITS(ah, _reg, _flags) \ argument
133 ath5k_hw_reg_write(ah, ath5k_hw_reg_read(ah, _reg) | (_flags), _reg)
135 #define AR5K_REG_DISABLE_BITS(ah, _reg, _flags) \ argument
136 ath5k_hw_reg_write(ah, ath5k_hw_reg_read(ah, _reg) & ~(_flags), _reg)
[all …]
/drivers/net/ethernet/freescale/fs_enet/
Dmac-fec.c67 #define FW(_fecp, _reg, _v) __fs_out32(&(_fecp)->fec_ ## _reg, (_v)) argument
70 #define FR(_fecp, _reg) __fs_in32(&(_fecp)->fec_ ## _reg) argument
73 #define FS(_fecp, _reg, _v) FW(_fecp, _reg, FR(_fecp, _reg) | (_v)) argument
76 #define FC(_fecp, _reg, _v) FW(_fecp, _reg, FR(_fecp, _reg) & ~(_v)) argument
/drivers/media/i2c/smiapp/
Dsmiapp-quirk.h71 #define SMIAPP_MK_QUIRK_REG_8(_reg, _val) \ argument
73 .reg = (u16)_reg, \
/drivers/net/wireless/ath/
Dhw.c24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) argument
Dkey.c26 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) argument
/drivers/mfd/
Dtps80031.c83 #define TPS80031_IRQ(_reg, _mask) \ argument
85 .reg_offset = (TPS80031_INT_MSK_LINE_##_reg) - \
126 #define PUPD_DATA(_reg, _pulldown_bit, _pullup_bit) \ argument
128 .reg = TPS80031_CFG_INPUT_PUPD##_reg, \
Drc5t583.c43 #define DEEPSLEEP_INIT(_id, _reg, _pos) \ argument
45 .reg_add = RC5T583_##_reg, \
Dtps6586x.c62 #define TPS6586X_IRQ(_reg, _mask) \ argument
64 .mask_reg = (_reg) - TPS6586X_INT_MASK1, \
/drivers/net/wireless/ath/ath9k/
Dhw.h77 #define REG_WRITE(_ah, _reg, _val) \ argument
78 (_ah)->reg_ops.write((_ah), (_val), (_reg))
80 #define REG_READ(_ah, _reg) \ argument
81 (_ah)->reg_ops.read((_ah), (_reg))
86 #define REG_RMW(_ah, _reg, _set, _clr) \ argument
87 (_ah)->reg_ops.rmw((_ah), (_reg), (_set), (_clr))
Ddebug.c24 #define REG_WRITE_D(_ah, _reg, _val) \ argument
25 ath9k_hw_common(_ah)->ops->write((_ah), (_val), (_reg))
26 #define REG_READ_D(_ah, _reg) \ argument
27 ath9k_hw_common(_ah)->ops->read((_ah), (_reg))
/drivers/misc/
Dad525x_dpot.c505 #define DPOT_DEVICE_SHOW(_name, _reg) static ssize_t \ argument
509 return sysfs_show_reg(dev, attr, buf, _reg); \
512 #define DPOT_DEVICE_SET(_name, _reg) static ssize_t \ argument
517 return sysfs_set_reg(dev, attr, buf, count, _reg); \
/drivers/staging/rtl8723au/include/
Dodm_interface.h44 #define ODM_REG(_name, _pDM_Odm) _cat(_name, _reg)
/drivers/net/ethernet/micrel/
Dks8851.c150 #define MK_OP(_byteen, _reg) (BYTE_EN(_byteen) | (_reg) << (8+2) | (_reg) >> 6) argument

12