Searched refs:_channel (Results 1 - 20 of 20) sorted by relevance

/linux-4.4.14/drivers/staging/iio/frequency/
H A Ddds.h15 #define IIO_DEV_ATTR_FREQ(_channel, _num, _mode, _show, _store, _addr) \
16 IIO_DEVICE_ATTR(out_altvoltage##_channel##_frequency##_num, \
23 #define IIO_CONST_ATTR_FREQ_SCALE(_channel, _string) \
24 IIO_CONST_ATTR(out_altvoltage##_channel##_frequency_scale, _string)
30 #define IIO_DEV_ATTR_FREQSYMBOL(_channel, _mode, _show, _store, _addr) \
31 IIO_DEVICE_ATTR(out_altvoltage##_channel##_frequencysymbol, \
38 #define IIO_DEV_ATTR_PHASE(_channel, _num, _mode, _show, _store, _addr) \
39 IIO_DEVICE_ATTR(out_altvoltage##_channel##_phase##_num, \
46 #define IIO_CONST_ATTR_PHASE_SCALE(_channel, _string) \
47 IIO_CONST_ATTR(out_altvoltage##_channel##_phase_scale, _string)
53 #define IIO_DEV_ATTR_PHASESYMBOL(_channel, _mode, _show, _store, _addr) \
54 IIO_DEVICE_ATTR(out_altvoltage##_channel##_phasesymbol, \
61 #define IIO_DEV_ATTR_PINCONTROL_EN(_channel, _mode, _show, _store, _addr)\
62 IIO_DEVICE_ATTR(out_altvoltage##_channel##_pincontrol_en, \
69 #define IIO_DEV_ATTR_PINCONTROL_FREQ_EN(_channel, _mode, _show, _store, _addr)\
70 IIO_DEVICE_ATTR(out_altvoltage##_channel##_pincontrol_frequency_en,\
77 #define IIO_DEV_ATTR_PINCONTROL_PHASE_EN(_channel, _mode, _show, _store, _addr)\
78 IIO_DEVICE_ATTR(out_altvoltage##_channel##_pincontrol_phase_en, \
85 #define IIO_DEV_ATTR_OUT_ENABLE(_channel, _mode, _show, _store, _addr) \
86 IIO_DEVICE_ATTR(out_altvoltage##_channel##_out_enable, \
93 #define IIO_DEV_ATTR_OUTY_ENABLE(_channel, _output, \
95 IIO_DEVICE_ATTR(out_altvoltage##_channel##_out##_output##_enable,\
102 #define IIO_DEV_ATTR_OUT_WAVETYPE(_channel, _output, _store, _addr) \
103 IIO_DEVICE_ATTR(out_altvoltage##_channel##_out##_output##_wavetype,\
110 #define IIO_CONST_ATTR_OUT_WAVETYPES_AVAILABLE(_channel, _output, _modes)\
112 out_altvoltage##_channel##_out##_output##_wavetype_available, _modes)
/linux-4.4.14/include/linux/iio/adc/
H A Dad_sigma_delta.h154 #define AD_SD_SHORTED_CHANNEL(_si, _channel, _address, _bits, \
156 __AD_SD_CHANNEL(_si, _channel, _channel, _address, _bits, \
159 #define AD_SD_CHANNEL(_si, _channel, _address, _bits, \
161 __AD_SD_CHANNEL(_si, _channel, -1, _address, _bits, \
168 #define AD_SD_SUPPLY_CHANNEL(_si, _channel, _address, _bits, _storagebits, \
170 __AD_SD_CHANNEL(_si, _channel, -1, _address, _bits, \
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Dnet_driver.h1387 #define efx_for_each_channel(_channel, _efx) \
1388 for (_channel = (_efx)->channel[0]; \
1389 _channel; \
1390 _channel = (_channel->channel + 1 < (_efx)->n_channels) ? \
1391 (_efx)->channel[_channel->channel + 1] : NULL)
1394 #define efx_for_each_channel_rev(_channel, _efx) \
1395 for (_channel = (_efx)->channel[(_efx)->n_channels - 1]; \
1396 _channel; \
1397 _channel = _channel->channel ? \
1398 (_efx)->channel[_channel->channel - 1] : NULL)
1429 #define efx_for_each_channel_tx_queue(_tx_queue, _channel) \
1430 if (!efx_channel_has_tx_queues(_channel)) \
1433 for (_tx_queue = (_channel)->tx_queue; \
1434 _tx_queue < (_channel)->tx_queue + EFX_TXQ_TYPES && \
1439 #define efx_for_each_possible_channel_tx_queue(_tx_queue, _channel) \
1440 if (!efx_channel_has_tx_queues(_channel)) \
1443 for (_tx_queue = (_channel)->tx_queue; \
1444 _tx_queue < (_channel)->tx_queue + EFX_TXQ_TYPES; \
1460 #define efx_for_each_channel_rx_queue(_rx_queue, _channel) \
1461 if (!efx_channel_has_rx_queue(_channel)) \
1464 for (_rx_queue = &(_channel)->rx_queue; \
H A Dethtool.c239 #define EFX_CHANNEL_NAME(_channel) "chan%d", _channel->channel
H A Dfarch.c69 #define EFX_CHANNEL_MAGIC_TEST(_channel) \
70 _EFX_CHANNEL_MAGIC(_EFX_CHANNEL_MAGIC_TEST, (_channel)->channel)
/linux-4.4.14/drivers/iio/amplifiers/
H A Dad8366.c123 #define AD8366_CHAN(_channel) { \
127 .channel = _channel, \
/linux-4.4.14/drivers/net/wireless/cw1200/
H A Dmain.c104 #define CHAN2G(_channel, _freq, _flags) { \
107 .hw_value = (_channel), \
113 #define CHAN5G(_channel, _flags) { \
115 .center_freq = 5000 + (5 * (_channel)), \
116 .hw_value = (_channel), \
/linux-4.4.14/drivers/pwm/
H A Dpwm-fsl-ftm.c39 #define FTM_CSC(_channel) (FTM_CSC_BASE + ((_channel) * 8))
42 #define FTM_CV(_channel) (FTM_CV_BASE + ((_channel) * 8))
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-common.h1171 #define XGMAC_DMA_IOREAD(_channel, _reg) \
1172 ioread32((_channel)->dma_regs + _reg)
1174 #define XGMAC_DMA_IOREAD_BITS(_channel, _reg, _field) \
1175 GET_BITS(XGMAC_DMA_IOREAD((_channel), _reg), \
1179 #define XGMAC_DMA_IOWRITE(_channel, _reg, _val) \
1180 iowrite32((_val), (_channel)->dma_regs + _reg)
1182 #define XGMAC_DMA_IOWRITE_BITS(_channel, _reg, _field, _val) \
1184 u32 reg_val = XGMAC_DMA_IOREAD((_channel), _reg); \
1188 XGMAC_DMA_IOWRITE((_channel), _reg, reg_val); \
/linux-4.4.14/drivers/iio/light/
H A Dlm3533-als.c228 #define CHANNEL_CURRENT(_channel) \
231 .channel = _channel, \
585 #define ALS_TARGET_ATTR_RW(_channel, _zone) \
586 LM3533_ALS_ATTR(out_current##_channel##_current##_zone##_raw, \
589 LM3533_ATTR_TYPE_TARGET, _channel, _zone)
/linux-4.4.14/arch/frv/kernel/
H A Ddma.c124 static irqreturn_t dma_irq_handler(int irq, void *_channel) dma_irq_handler() argument
126 struct frv_dma_channel *channel = _channel; dma_irq_handler()
/linux-4.4.14/drivers/iio/adc/
H A Dtwl4030-madc.c106 #define TWL4030_ADC_CHANNEL(_channel, _type, _name) { \
108 .channel = _channel, \
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
H A Dcfg80211.c21 #define CHAN60G(_channel, _flags) { \
23 .center_freq = 56160 + (2160 * (_channel)), \
24 .hw_value = (_channel), \
/linux-4.4.14/drivers/net/wireless/b43/
H A Dmain.c189 #define CHAN2G(_channel, _freq, _flags) { \
192 .hw_value = (_channel), \
218 #define CHAN4G(_channel, _flags) { \
220 .center_freq = 4000 + (5 * (_channel)), \
221 .hw_value = (_channel), \
226 #define CHAN5G(_channel, _flags) { \
228 .center_freq = 5000 + (5 * (_channel)), \
229 .hw_value = (_channel), \
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
H A Dioctl_cfg80211.c41 #define CHAN2G(_channel, _freq, _flags) { \
44 .hw_value = (_channel), \
50 #define CHAN5G(_channel, _flags) { \
52 .center_freq = 5000 + (5 * (_channel)), \
53 .hw_value = (_channel), \
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
H A Dcfg80211.c36 #define CHAN2G(_channel, _freq, _flags) { \
38 .hw_value = (_channel), \
45 #define CHAN5G(_channel, _flags) { \
47 .hw_value = (_channel), \
48 .center_freq = 5000 + (5 * (_channel)), \
/linux-4.4.14/drivers/net/wireless/libertas/
H A Dcfg.c25 #define CHAN2G(_channel, _freq, _flags) { \
28 .hw_value = (_channel), \
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dcfg80211.c135 #define CHAN2G(_channel, _freq) { \
138 .hw_value = (_channel), \
144 #define CHAN5G(_channel) { \
146 .center_freq = 5000 + (5 * (_channel)), \
147 .hw_value = (_channel), \
/linux-4.4.14/drivers/staging/wilc1000/
H A Dwilc_wfi_cfgoperations.c39 #define CHAN2G(_channel, _freq, _flags) { \
42 .hw_value = (_channel), \
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
H A Dmac.c6834 #define CHAN2G(_channel, _freq, _flags) { \
6836 .hw_value = (_channel), \
6843 #define CHAN5G(_channel, _freq, _flags) { \
6845 .hw_value = (_channel), \

Completed in 2136 milliseconds