Home
last modified time | relevance | path

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

12

/linux/include/linux/
H A 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 …]
H A Dpagemap.h1352 pgoff_t _index; member
1365 ._index = i, \
1428 ractl->_index += ractl->_batch_count; in __readahead_folio()
1435 folio = xa_load(&ractl->mapping->i_pages, ractl->_index); in __readahead_folio()
1468 rac->_index += rac->_batch_count; in __readahead_batch()
1471 xas_set(&xas, rac->_index); in __readahead_batch()
1473 xas_for_each(&xas, folio, rac->_index + rac->_nr_pages - 1) { in __readahead_batch()
1493 return (loff_t)rac->_index * PAGE_SIZE; in readahead_pos()
1511 return rac->_index; in readahead_index()
/linux/drivers/net/ethernet/sfc/siena/
H A 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/drivers/iio/health/
H A 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/drivers/iio/adc/
H A 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) \
H A 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 …]
H A Dpac1934.c321 #define PAC1934_VPOWER_ACC_CHANNEL(_index, _si, _address) { \ argument
325 .channel = (_index), \
340 #define PAC1934_VBUS_CHANNEL(_index, _si, _address) { \ argument
344 .channel = (_index), \
358 #define PAC1934_VBUS_AVG_CHANNEL(_index, _si, _address) { \ argument
362 .channel = (_index), \
376 #define PAC1934_VSENSE_CHANNEL(_index, _si, _address) { \ argument
380 .channel = (_index), \
394 #define PAC1934_VSENSE_AVG_CHANNEL(_index, _si, _address) { \ argument
398 .channel = (_index), \
[all …]
H A Dmcp3422.c49 #define MCP3422_CHAN(_index) \ argument
53 .channel = _index, \
/linux/drivers/net/ethernet/sfc/
H A Dmcdi.h338 #define _MCDI_ARRAY_PTR(_buf, _field, _index, _align) \ argument
340 + (_index) * _MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _LEN, _align))
343 #define MCDI_ARRAY_STRUCT_PTR(_buf, _field, _index) \ argument
344 ((efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4))
348 #define MCDI_ARRAY_WORD(_buf, _field, _index) \ argument
351 _MCDI_ARRAY_PTR(_buf, _field, _index, 2)))
352 #define _MCDI_ARRAY_DWORD(_buf, _field, _index) \ argument
354 (efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4))
355 #define MCDI_SET_ARRAY_DWORD(_buf, _field, _index, _value) \ argument
356 EFX_SET_DWORD_FIELD(*_MCDI_ARRAY_DWORD(_buf, _field, _index), \
[all …]
/linux/drivers/memory/
H A 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/arch/xtensa/kernel/
H A 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
H A 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/mm/
H A Dreadahead.c251 ractl->_index = index; in page_cache_ra_unbounded()
270 ractl->_index += min_nrpages; in page_cache_ra_unbounded()
271 i = ractl->_index + ractl->_nr_pages - index; in page_cache_ra_unbounded()
286 ractl->_index += min_nrpages; in page_cache_ra_unbounded()
287 i = ractl->_index + ractl->_nr_pages - index; in page_cache_ra_unbounded()
500 ractl->_index = mapping_align_index(mapping, index); in page_cache_ra_order()
625 ractl->_index = ra->start; in page_cache_sync_ra()
696 ractl->_index = ra->start; in page_cache_async_ra()
778 VM_BUG_ON(!IS_ALIGNED(ractl->_index, min_nrpages)); in readahead_expand()
781 while (ractl->_index > new_index) { in readahead_expand()
[all …]
/linux/include/rdma/
H A Drdma_netlink.h34 #define MODULE_ALIAS_RDMA_NETLINK(_index, _val) \ argument
35 static inline void __maybe_unused __chk_##_index(void) \
37 BUILD_BUG_ON(_index != _val); \
/linux/arch/xtensa/include/asm/
H A Dcacheasm.h46 .set _index, 0
48 \insn \ar, _index << (\line_width)
49 .set _index, _index + 1
/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_temp.h11 #define INV_ICM42600_TEMP_CHAN(_index) \ argument
18 .scan_index = _index, \
/linux/drivers/iio/common/ssp_sensors/
H A Dssp_iio_sensor.h5 #define SSP_CHANNEL_AG(_type, _mod, _index) \ argument
11 .scan_index = _index,\
/linux/drivers/misc/
H A 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/drivers/iio/imu/
H A Dsmi240.c71 #define SMI240_DATA_CHANNEL(_type, _axis, _index) { \ argument
81 .scan_index = _index, \
90 #define SMI240_TEMP_CHANNEL(_index) { \ argument
97 .scan_index = _index, \
/linux/drivers/regulator/
H A Dpcap-regulator.c99 #define VREG_INFO(_vreg, _reg, _en, _index, _stby, _lowpwr) \ argument
103 .index = _index, \
/linux/drivers/iio/imu/inv_icm45600/
H A Dinv_icm45600.h340 #define INV_ICM45600_TEMP_CHAN(_index) \ argument
347 .scan_index = _index, \
/linux/drivers/iio/chemical/
H A Dpms7003.c173 #define PMS7003_CHAN(_index, _mod, _addr) { \ argument
179 .scan_index = _index, \
H A Dsps30.c293 #define SPS30_CHAN(_index, _mod) { \ argument
300 .scan_index = _index, \
/linux/drivers/clk/renesas/
H A Drzv2h-cpg.h116 #define FIXED_MOD_CONF_PACK(_index, _bit) \ argument
118 .mon_index = (_index), \
/linux/rust/kernel/
H A Dcpufreq.rs784 fn target_index(_policy: &mut Policy, _index: TableIndex) -> Result { in target_index()
799 fn get_intermediate(_policy: &mut Policy, _index: TableIndex) -> u32 { in get_intermediate()
804 fn target_intermediate(_policy: &mut Policy, _index: TableIndex) -> Result { in target_intermediate()

12