/drivers/net/ethernet/sfc/ |
D | mcdi.h | 291 #define _MCDI_ARRAY_PTR(_buf, _field, _index, _align) \ argument 293 + (_index) * _MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _LEN, _align)) 296 #define MCDI_ARRAY_STRUCT_PTR(_buf, _field, _index) \ argument 297 ((efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4)) 301 #define MCDI_ARRAY_WORD(_buf, _field, _index) \ argument 304 _MCDI_ARRAY_PTR(_buf, _field, _index, 2))) 305 #define _MCDI_ARRAY_DWORD(_buf, _field, _index) \ argument 307 (efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4)) 308 #define MCDI_SET_ARRAY_DWORD(_buf, _field, _index, _value) \ argument 309 EFX_SET_DWORD_FIELD(*_MCDI_ARRAY_DWORD(_buf, _field, _index), \ [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | mac.h | 21 #define set11nTries(_series, _index) \ argument 22 (SM((_series)[_index].Tries, AR_XmitDataTries##_index)) 24 #define set11nRate(_series, _index) \ argument 25 (SM((_series)[_index].Rate, AR_XmitRate##_index)) 27 #define set11nPktDurRTSCTS(_series, _index) \ argument 28 (SM((_series)[_index].PktDuration, AR_PacketDur##_index) | \ 29 ((_series)[_index].RateFlags & ATH9K_RATESERIES_RTS_CTS ? \ 30 AR_RTSCTSQual##_index : 0)) 32 #define set11nRateFlags(_series, _index) \ argument 33 (((_series)[_index].RateFlags & ATH9K_RATESERIES_2040 ? \ [all …]
|
/drivers/iio/health/ |
D | afe440x.h | 83 #define AFE440X_INTENSITY_CHAN(_index, _mask) \ argument 86 .channel = _index, \ 87 .address = _index, \ 88 .scan_index = _index, \ 100 #define AFE440X_CURRENT_CHAN(_index) \ argument 103 .channel = _index, \ 104 .address = _index, \
|
/drivers/iio/adc/ |
D | lpc32xx_adc.c | 101 #define LPC32XX_ADC_CHANNEL_BASE(_index) \ argument 104 .channel = _index, \ 106 .address = LPC32XXAD_IN * _index, \ 107 .scan_index = _index, 109 #define LPC32XX_ADC_CHANNEL(_index) { \ argument 110 LPC32XX_ADC_CHANNEL_BASE(_index) \ 113 #define LPC32XX_ADC_SCALE_CHANNEL(_index) { \ argument 114 LPC32XX_ADC_CHANNEL_BASE(_index) \
|
D | ina2xx-adc.c | 616 #define INA219_CHAN(_type, _index, _address) { \ argument 620 .channel = (_index), \ 624 .scan_index = (_index), \ 633 #define INA226_CHAN(_type, _index, _address) { \ argument 637 .channel = (_index), \ 642 .scan_index = (_index), \ 655 #define INA219_CHAN_VOLTAGE(_index, _address, _shift) { \ argument 659 .channel = (_index), \ 667 .scan_index = (_index), \ 677 #define INA226_CHAN_VOLTAGE(_index, _address) { \ argument [all …]
|
D | ad799x.c | 570 #define _AD799X_CHANNEL(_index, _realbits, _ev_spec, _num_ev_spec) { \ argument 573 .channel = (_index), \ 576 .scan_index = (_index), \ 588 #define AD799X_CHANNEL(_index, _realbits) \ argument 589 _AD799X_CHANNEL(_index, _realbits, NULL, 0) 591 #define AD799X_CHANNEL_WITH_EVENTS(_index, _realbits) \ argument 592 _AD799X_CHANNEL(_index, _realbits, ad799x_events, \
|
D | viperboard_adc.c | 35 #define VPRBRD_ADC_CHANNEL(_index) { \ argument 38 .channel = _index, \
|
D | rockchip_saradc.c | 137 #define SARADC_CHANNEL(_index, _id, _res) { \ argument 140 .channel = _index, \ 144 .scan_index = _index, \
|
D | mcp3422.c | 49 #define MCP3422_CHAN(_index) \ argument 53 .channel = _index, \
|
D | cpcap-adc.c | 334 #define CPCAP_CHAN(_type, _index, _address, _datasheet_name) { \ argument 338 .channel = (_index), \ 341 .scan_index = (_index), \
|
D | bcm_iproc_adc.c | 486 #define IPROC_ADC_CHANNEL(_index, _id) { \ argument 489 .channel = _index, \
|
D | exynos_adc.c | 701 #define ADC_CHANNEL(_index, _id) { \ argument 704 .channel = _index, \ 705 .address = _index, \
|
/drivers/memory/ |
D | dfl-emif.c | 93 #define emif_state_attr(_name, _shift, _index) \ argument 94 static struct emif_attr emif_attr_##inf##_index##_##_name = \ 95 { .attr = __ATTR(inf##_index##_##_name, 0444, \ 97 .shift = (_shift), .index = (_index) } 99 #define emif_clear_attr(_index) \ argument 100 static struct emif_attr emif_attr_##inf##_index##_clear = \ 101 { .attr = __ATTR(inf##_index##_clear, 0200, \ 103 .index = (_index) }
|
/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_temp.h | 11 #define INV_ICM42600_TEMP_CHAN(_index) \ argument 18 .scan_index = _index, \
|
D | inv_icm42600_gyro.c | 22 #define INV_ICM42600_GYRO_CHAN(_modifier, _index, _ext_info) \ argument 39 .scan_index = _index, \
|
/drivers/iio/common/ssp_sensors/ |
D | ssp_iio_sensor.h | 5 #define SSP_CHANNEL_AG(_type, _mod, _index) \ argument 11 .scan_index = _index,\
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-common.h | 1408 #define GET_BITS(_var, _index, _width) \ argument 1409 (((_var) >> (_index)) & ((0x1 << (_width)) - 1)) 1411 #define SET_BITS(_var, _index, _width, _val) \ argument 1413 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \ 1414 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \ 1417 #define GET_BITS_LE(_var, _index, _width) \ argument 1418 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1)) 1420 #define SET_BITS_LE(_var, _index, _width, _val) \ argument 1422 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \ 1424 ((0x1 << (_width)) - 1)) << (_index))); \
|
/drivers/hwmon/ |
D | nct6683.c | 374 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument 376 .u.index = _index, \ 380 _nr, _index) \ argument 382 .u.s.index = _index, \ 386 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument 389 _index) 392 _nr, _index) \ argument 395 _nr, _index)
|
D | acpi_power_meter.c | 465 #define RO_SENSOR_TEMPLATE(_label, _show, _index) \ argument 469 .index = _index, \ 472 #define RW_SENSOR_TEMPLATE(_label, _show, _set, _index) \ argument 477 .index = _index, \
|
/drivers/regulator/ |
D | pcap-regulator.c | 99 #define VREG_INFO(_vreg, _reg, _en, _index, _stby, _lowpwr) \ argument 103 .index = _index, \
|
/drivers/iio/chemical/ |
D | pms7003.c | 172 #define PMS7003_CHAN(_index, _mod, _addr) { \ argument 178 .scan_index = _index, \
|
D | sps30.c | 293 #define SPS30_CHAN(_index, _mod) { \ argument 300 .scan_index = _index, \
|
/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_core.c | 1061 #define INV_MPU6050_CHAN(_type, _channel2, _index) \ argument 1069 .scan_index = _index, \ 1080 #define INV_MPU6050_TEMP_CHAN(_index) \ argument 1086 .scan_index = _index, \ 1136 #define INV_MPU9X50_MAGN_CHAN(_chan2, _bits, _index) \ argument 1143 .scan_index = _index, \
|
/drivers/hwmon/occ/ |
D | common.c | 763 #define SENSOR_ATTR_OCC(_name, _mode, _show, _store, _nr, _index) { \ argument 765 .index = _index, \ 769 #define OCC_INIT_ATTR(_name, _mode, _show, _store, _nr, _index) \ argument 771 SENSOR_ATTR_OCC(_name, _mode, _show, _store, _nr, _index))
|
/drivers/scsi/ufs/ |
D | ufs-sysfs.c | 796 #define UFS_POWER_DESC_PARAM(_name, _uname, _index) \ argument 797 static ssize_t _name##_index##_show(struct device *dev, \ 802 PWR_DESC##_uname##_0 + _index * 2, buf, 2); \ 804 static DEVICE_ATTR_RO(_name##_index)
|