Home
last modified time | relevance | path

Searched refs:_index (Results 1 – 25 of 41) sorted by relevance

12

/kernel/linux/linux-5.10/include/linux/
Dhwmon-sysfs.h19 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument
21 .index = _index }
23 #define SENSOR_ATTR_RO(_name, _func, _index) \ argument
24 SENSOR_ATTR(_name, 0444, _func##_show, NULL, _index)
26 #define SENSOR_ATTR_RW(_name, _func, _index) \ argument
27 SENSOR_ATTR(_name, 0644, _func##_show, _func##_store, _index)
29 #define SENSOR_ATTR_WO(_name, _func, _index) \ argument
30 SENSOR_ATTR(_name, 0200, NULL, _func##_store, _index)
32 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument
34 = SENSOR_ATTR(_name, _mode, _show, _store, _index)
[all …]
Dpagemap.h799 pgoff_t _index; member
808 ._index = i, \
880 rac->_index += rac->_batch_count; in readahead_page()
887 page = xa_load(&rac->mapping->i_pages, rac->_index); in readahead_page()
903 rac->_index += rac->_batch_count; in __readahead_batch()
906 xas_set(&xas, rac->_index); in __readahead_batch()
908 xas_for_each(&xas, page, rac->_index + rac->_nr_pages - 1) { in __readahead_batch()
923 xas_set(&xas, rac->_index + rac->_batch_count); in __readahead_batch()
953 return (loff_t)rac->_index * PAGE_SIZE; in readahead_pos()
971 return rac->_index; in readahead_index()
Dreset-controller.h46 #define RESET_LOOKUP(_provider, _index, _dev_id, _con_id) \ argument
49 .index = _index, \
Dpwm.h578 #define PWM_LOOKUP_WITH_MODULE(_provider, _index, _dev_id, _con_id, \ argument
582 .index = _index, \
590 #define PWM_LOOKUP(_provider, _index, _dev_id, _con_id, _period, _polarity) \ argument
591 PWM_LOOKUP_WITH_MODULE(_provider, _index, _dev_id, _con_id, _period, \
/kernel/linux/linux-5.10/drivers/iio/health/
Dafe440x.h83 #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, \
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dmcdi.h291 #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 …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dmac.h21 #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 …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dlpc32xx_adc.c101 #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) \
Dina2xx-adc.c613 #define INA219_CHAN(_type, _index, _address) { \ argument
617 .channel = (_index), \
621 .scan_index = (_index), \
630 #define INA226_CHAN(_type, _index, _address) { \ argument
634 .channel = (_index), \
639 .scan_index = (_index), \
652 #define INA219_CHAN_VOLTAGE(_index, _address, _shift) { \ argument
656 .channel = (_index), \
664 .scan_index = (_index), \
674 #define INA226_CHAN_VOLTAGE(_index, _address) { \ argument
[all …]
Dad799x.c576 #define _AD799X_CHANNEL(_index, _realbits, _ev_spec, _num_ev_spec) { \ argument
579 .channel = (_index), \
582 .scan_index = (_index), \
594 #define AD799X_CHANNEL(_index, _realbits) \ argument
595 _AD799X_CHANNEL(_index, _realbits, NULL, 0)
597 #define AD799X_CHANNEL_WITH_EVENTS(_index, _realbits) \ argument
598 _AD799X_CHANNEL(_index, _realbits, ad799x_events, \
Dviperboard_adc.c35 #define VPRBRD_ADC_CHANNEL(_index) { \ argument
38 .channel = _index, \
Drockchip_saradc.c141 #define SARADC_CHANNEL(_index, _id, _res) { \ argument
144 .channel = _index, \
148 .scan_index = _index, \
Dmcp3422.c49 #define MCP3422_CHAN(_index) \ argument
53 .channel = _index, \
/kernel/linux/linux-5.10/arch/xtensa/kernel/
Dhead.S129 .set _index, 0 define
131 wsr a0, SREG_DBREAKC + _index
132 .set _index, _index + 1 define
148 .set _index, 0 define
150 wsr a0, SREG_CCOMPARE + _index
151 .set _index, _index + 1 define
Dentry.S850 .set _index, 0 define
852 l32i a0, a3, DT_DBREAKC_SAVE + _index * 4
853 wsr a0, SREG_DBREAKC + _index
854 .set _index, _index + 1 define
868 .set _index, 0 define
871 xsr a0, SREG_DBREAKC + _index
872 s32i a0, a3, DT_DBREAKC_SAVE + _index * 4
873 .set _index, _index + 1 define
/kernel/linux/linux-5.10/include/rdma/
Drdma_netlink.h32 #define MODULE_ALIAS_RDMA_NETLINK(_index, _val) \ argument
33 static inline void __maybe_unused __chk_##_index(void) \
35 BUILD_BUG_ON(_index != _val); \
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
Dcacheasm.h46 .set _index, 0
48 \insn \ar, _index << (\line_width)
49 .set _index, _index + 1
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_temp.h11 #define INV_ICM42600_TEMP_CHAN(_index) \ argument
18 .scan_index = _index, \
/kernel/linux/linux-5.10/drivers/iio/common/ssp_sensors/
Dssp_iio_sensor.h5 #define SSP_CHANNEL_AG(_type, _mod, _index) \ argument
11 .scan_index = _index,\
/kernel/linux/linux-5.10/mm/
Dreadahead.c141 rac->_index += rac->_nr_pages; in read_pages()
157 rac->_index++; in read_pages()
201 BUG_ON(index + i != ractl->_index + ractl->_nr_pages); in page_cache_ra_unbounded()
297 ractl->_index = index; in force_page_cache_ra()
548 ractl->_index = ra->start; in ondemand_readahead()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h1408 #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))); \
/kernel/linux/linux-5.10/drivers/hwmon/
Dnct6683.c364 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument
366 .u.index = _index, \
370 _nr, _index) \ argument
372 .u.s.index = _index, \
376 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument
379 _index)
382 _nr, _index) \ argument
385 _nr, _index)
Dacpi_power_meter.c456 #define RO_SENSOR_TEMPLATE(_label, _show, _index) \ argument
460 .index = _index, \
463 #define RW_SENSOR_TEMPLATE(_label, _show, _set, _index) \ argument
468 .index = _index, \
/kernel/linux/linux-5.10/drivers/regulator/
Dpcap-regulator.c99 #define VREG_INFO(_vreg, _reg, _en, _index, _stby, _lowpwr) \ argument
103 .index = _index, \
/kernel/linux/linux-5.10/drivers/iio/chemical/
Dpms7003.c172 #define PMS7003_CHAN(_index, _mod, _addr) { \ argument
178 .scan_index = _index, \

12