/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-common.h | 990 #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/ |
D | mc13xxx.h | 59 #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 …]
|
D | mc13783-regulator.c | 247 #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)
|
D | pcap-regulator.c | 107 #define VREG_INFO(_vreg, _reg, _en, _index, _stby, _lowpwr) \ argument 109 .reg = _reg, \
|
D | tps6524x-regulator.c | 372 #define __MK_FIELD(_reg, _mask, _shift) \ argument 373 { .reg = (_reg), .mask = (_mask), .shift = (_shift), }
|
D | da9063-regulator.c | 33 #define BFIELD(_reg, _mask) \ argument 34 REG_FIELD(_reg, __builtin_ffs((int)_mask) - 1, \
|
D | max8998.c | 198 int *_reg, int *_shift, int *_mask) in max8998_get_voltage_register() argument 253 *_reg = reg; in max8998_get_voltage_register()
|
D | max8997.c | 302 int *_reg, int *_shift, int *_mask) in max8997_get_voltage_register() argument 360 *_reg = reg; in max8997_get_voltage_register()
|
/drivers/reset/sti/ |
D | reset-stih416.c | 49 #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)
|
D | reset-stih415.c | 34 #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/ |
D | amd-xgbe-phy.c | 227 #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/ |
D | mc44s803_priv.h | 193 #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/ |
D | ath5k.h | 124 #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/ |
D | mac-fec.c | 67 #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/ |
D | smiapp-quirk.h | 71 #define SMIAPP_MK_QUIRK_REG_8(_reg, _val) \ argument 73 .reg = (u16)_reg, \
|
/drivers/net/wireless/ath/ |
D | hw.c | 24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) argument
|
D | key.c | 26 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) argument
|
/drivers/mfd/ |
D | tps80031.c | 83 #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, \
|
D | rc5t583.c | 43 #define DEEPSLEEP_INIT(_id, _reg, _pos) \ argument 45 .reg_add = RC5T583_##_reg, \
|
D | tps6586x.c | 62 #define TPS6586X_IRQ(_reg, _mask) \ argument 64 .mask_reg = (_reg) - TPS6586X_INT_MASK1, \
|
/drivers/net/wireless/ath/ath9k/ |
D | hw.h | 77 #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))
|
D | debug.c | 24 #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/ |
D | ad525x_dpot.c | 505 #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/ |
D | odm_interface.h | 44 #define ODM_REG(_name, _pDM_Odm) _cat(_name, _reg)
|
/drivers/net/ethernet/micrel/ |
D | ks8851.c | 150 #define MK_OP(_byteen, _reg) (BYTE_EN(_byteen) | (_reg) << (8+2) | (_reg) >> 6) argument
|