Home
last modified time | relevance | path

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

12

/Linux-v6.6/include/linux/
Dhwmon-sysfs.h20 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument
22 .index = _index }
24 #define SENSOR_ATTR_RO(_name, _func, _index) \ argument
25 SENSOR_ATTR(_name, 0444, _func##_show, NULL, _index)
27 #define SENSOR_ATTR_RW(_name, _func, _index) \ argument
28 SENSOR_ATTR(_name, 0644, _func##_show, _func##_store, _index)
30 #define SENSOR_ATTR_WO(_name, _func, _index) \ argument
31 SENSOR_ATTR(_name, 0200, NULL, _func##_store, _index)
33 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument
35 = SENSOR_ATTR(_name, _mode, _show, _store, _index)
[all …]
Dreset-controller.h46 #define RESET_LOOKUP(_provider, _index, _dev_id, _con_id) \ argument
49 .index = _index, \
Dpwm.h553 #define PWM_LOOKUP_WITH_MODULE(_provider, _index, _dev_id, _con_id, \ argument
557 .index = _index, \
565 #define PWM_LOOKUP(_provider, _index, _dev_id, _con_id, _period, _polarity) \ argument
566 PWM_LOOKUP_WITH_MODULE(_provider, _index, _dev_id, _con_id, _period, \
Dpagemap.h1249 pgoff_t _index; member
1261 ._index = i, \
1325 ractl->_index += ractl->_batch_count; in __readahead_folio()
1332 folio = xa_load(&ractl->mapping->i_pages, ractl->_index); in __readahead_folio()
1381 rac->_index += rac->_batch_count; in __readahead_batch()
1384 xas_set(&xas, rac->_index); in __readahead_batch()
1386 xas_for_each(&xas, page, rac->_index + rac->_nr_pages - 1) { in __readahead_batch()
1421 return (loff_t)rac->_index * PAGE_SIZE; in readahead_pos()
1439 return rac->_index; in readahead_index()
/Linux-v6.6/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, \
/Linux-v6.6/drivers/net/ethernet/sfc/siena/
Dmcdi.h293 #define _MCDI_ARRAY_PTR(_buf, _field, _index, _align) \ argument
295 + (_index) * _MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _LEN, _align))
298 #define MCDI_ARRAY_STRUCT_PTR(_buf, _field, _index) \ argument
299 ((efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4))
303 #define MCDI_ARRAY_WORD(_buf, _field, _index) \ argument
306 _MCDI_ARRAY_PTR(_buf, _field, _index, 2)))
307 #define _MCDI_ARRAY_DWORD(_buf, _field, _index) \ argument
309 (efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4))
310 #define MCDI_SET_ARRAY_DWORD(_buf, _field, _index, _value) \ argument
311 EFX_SET_DWORD_FIELD(*_MCDI_ARRAY_DWORD(_buf, _field, _index), \
[all …]
/Linux-v6.6/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 …]
/Linux-v6.6/drivers/iio/adc/
Dlpc32xx_adc.c104 #define LPC32XX_ADC_CHANNEL_BASE(_index) \ argument
107 .channel = _index, \
109 .address = LPC32XXAD_IN * _index, \
110 .scan_index = _index,
112 #define LPC32XX_ADC_CHANNEL(_index) { \ argument
113 LPC32XX_ADC_CHANNEL_BASE(_index) \
116 #define LPC32XX_ADC_SCALE_CHANNEL(_index) { \ argument
117 LPC32XX_ADC_CHANNEL_BASE(_index) \
Dina2xx-adc.c616 #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 …]
Dad799x.c579 #define _AD799X_CHANNEL(_index, _realbits, _ev_spec, _num_ev_spec) { \ argument
582 .channel = (_index), \
585 .scan_index = (_index), \
597 #define AD799X_CHANNEL(_index, _realbits) \ argument
598 _AD799X_CHANNEL(_index, _realbits, NULL, 0)
600 #define AD799X_CHANNEL_WITH_EVENTS(_index, _realbits) \ argument
601 _AD799X_CHANNEL(_index, _realbits, ad799x_events, \
Dviperboard_adc.c35 #define VPRBRD_ADC_CHANNEL(_index) { \ argument
38 .channel = _index, \
/Linux-v6.6/drivers/net/ethernet/sfc/
Dmcdi.h346 #define _MCDI_ARRAY_PTR(_buf, _field, _index, _align) \ argument
348 + (_index) * _MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _LEN, _align))
351 #define MCDI_ARRAY_STRUCT_PTR(_buf, _field, _index) \ argument
352 ((efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4))
356 #define MCDI_ARRAY_WORD(_buf, _field, _index) \ argument
359 _MCDI_ARRAY_PTR(_buf, _field, _index, 2)))
360 #define _MCDI_ARRAY_DWORD(_buf, _field, _index) \ argument
362 (efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4))
363 #define MCDI_SET_ARRAY_DWORD(_buf, _field, _index, _value) \ argument
364 EFX_SET_DWORD_FIELD(*_MCDI_ARRAY_DWORD(_buf, _field, _index), \
[all …]
/Linux-v6.6/drivers/memory/
Ddfl-emif.c106 #define emif_state_attr(_name, _shift, _index) \ argument
107 static struct emif_attr emif_attr_##inf##_index##_##_name = \
108 { .attr = __ATTR(inf##_index##_##_name, 0444, \
110 .shift = (_shift), .index = (_index) }
112 #define emif_clear_attr(_index) \ argument
113 static struct emif_attr emif_attr_##inf##_index##_clear = \
114 { .attr = __ATTR(inf##_index##_clear, 0200, \
116 .index = (_index) }
/Linux-v6.6/arch/xtensa/kernel/
Dhead.S132 .set _index, 0 define
134 wsr a0, SREG_DBREAKC + _index
135 .set _index, _index + 1 define
151 .set _index, 0 define
153 wsr a0, SREG_CCOMPARE + _index
154 .set _index, _index + 1 define
Dentry.S865 .set _index, 0 define
867 l32i a0, a3, DT_DBREAKC_SAVE + _index * 4
868 wsr a0, SREG_DBREAKC + _index
869 .set _index, _index + 1 define
883 .set _index, 0 define
886 xsr a0, SREG_DBREAKC + _index
887 s32i a0, a3, DT_DBREAKC_SAVE + _index * 4
888 .set _index, _index + 1 define
/Linux-v6.6/drivers/ufs/host/
Dufs-renesas.c41 #define PARAM_RESTORE(_reg, _index) \ argument
42 { .mode = MODE_RESTORE, .reg = _reg, .index = _index }
43 #define PARAM_SET(_index, _set) \ argument
44 { .mode = MODE_SET, .index = _index, .u.set = _set }
45 #define PARAM_SAVE(_reg, _mask, _index) \ argument
47 .index = _index }
66 #define PARAM_RESTORE_800_80C_POLL(_index) \ argument
69 PARAM_RESTORE(0xd4, _index), \
/Linux-v6.6/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); \
/Linux-v6.6/mm/
Dreadahead.c242 ractl->_index++; in page_cache_ra_unbounded()
243 i = ractl->_index + ractl->_nr_pages - index - 1; in page_cache_ra_unbounded()
254 ractl->_index++; in page_cache_ra_unbounded()
255 i = ractl->_index + ractl->_nr_pages - index - 1; in page_cache_ra_unbounded()
329 ractl->_index = index; in force_page_cache_ra()
667 ractl->_index = ra->start; in ondemand_readahead()
788 while (ractl->_index > new_index) { in readahead_expand()
789 unsigned long index = ractl->_index - 1; in readahead_expand()
808 ractl->_index = folio->index; in readahead_expand()
816 unsigned long index = ractl->_index + ractl->_nr_pages; in readahead_expand()
/Linux-v6.6/arch/xtensa/include/asm/
Dcacheasm.h46 .set _index, 0
48 \insn \ar, _index << (\line_width)
49 .set _index, _index + 1
/Linux-v6.6/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_temp.h11 #define INV_ICM42600_TEMP_CHAN(_index) \ argument
18 .scan_index = _index, \
/Linux-v6.6/drivers/iio/common/ssp_sensors/
Dssp_iio_sensor.h5 #define SSP_CHANNEL_AG(_type, _mod, _index) \ argument
11 .scan_index = _index,\
/Linux-v6.6/drivers/misc/
Dsmpro-errmon.c402 #define ERROR_OVERFLOW_RO(_error, _index) \ argument
407 return smpro_overflow_data_read(dev, da, buf, _index); \
420 #define ERROR_RO(_error, _index) \ argument
425 return smpro_error_data_read(dev, da, buf, _index); \
462 #define EVENT_RO(_event, _index) \ argument
467 return smpro_event_data_read(dev, da, buf, _index); \
/Linux-v6.6/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h1448 #define GET_BITS(_var, _index, _width) \ argument
1449 (((_var) >> (_index)) & ((0x1 << (_width)) - 1))
1451 #define SET_BITS(_var, _index, _width, _val) \ argument
1453 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \
1454 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \
1457 #define GET_BITS_LE(_var, _index, _width) \ argument
1458 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1))
1460 #define SET_BITS_LE(_var, _index, _width, _val) \ argument
1462 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \
1464 ((0x1 << (_width)) - 1)) << (_index))); \
/Linux-v6.6/drivers/hwmon/
Dnct6683.c376 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument
378 .u.index = _index, \
382 _nr, _index) \ argument
384 .u.s.index = _index, \
388 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument
391 _index)
394 _nr, _index) \ argument
397 _nr, _index)
/Linux-v6.6/drivers/regulator/
Dpcap-regulator.c99 #define VREG_INFO(_vreg, _reg, _en, _index, _stby, _lowpwr) \ argument
103 .index = _index, \

12