Home
last modified time | relevance | path

Searched refs:_idx (Results 1 – 25 of 76) sorted by relevance

1234

/linux/drivers/clk/starfive/
H A Dclk-starfive-jh71x0.h32 #define JH71X0_GATE(_idx, _name, _flags, _parent) \ argument
33 [_idx] = { \
40 #define JH71X0__DIV(_idx, _name, _max, _parent) \ argument
41 [_idx] = { \
48 #define JH71X0_GDIV(_idx, _name, _flags, _max, _parent) \ argument
49 [_idx] = { \
56 #define JH71X0_FDIV(_idx, _name, _parent) \ argument
57 [_idx] = { \
64 #define JH71X0__MUX(_idx, _name, _flags, _nparents, ...) \ argument
65 [_idx] = { \
[all …]
H A Dclk-starfive-jh7110-pll.c111 #define _JH7110_PLL(_idx, _name, _presets) \ argument
112 [_idx] = { \
117 .pd = JH7110_PLL##_idx##_PD_OFFSET, \
118 .fbdiv = JH7110_PLL##_idx##_FBDIV_OFFSET, \
119 .frac = JH7110_PLL##_idx##_FRAC_OFFSET, \
120 .prediv = JH7110_PLL##_idx##_PREDIV_OFFSET, \
123 .dacpd = JH7110_PLL##_idx##_DACPD_MASK, \
124 .dsmpd = JH7110_PLL##_idx##_DSMPD_MASK, \
125 .fbdiv = JH7110_PLL##_idx##_FBDIV_MASK, \
128 .dacpd = JH7110_PLL##_idx##_DACPD_SHIFT, \
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.h283 #define GLTSYN_AUX_OUT(_chan, _idx) (GLTSYN_AUX_OUT_0(_idx) + ((_chan) * 8)) argument
284 #define GLTSYN_AUX_IN(_chan, _idx) (GLTSYN_AUX_IN_0(_idx) + ((_chan) * 8)) argument
285 #define GLTSYN_CLKO(_chan, _idx) (GLTSYN_CLKO_0(_idx) + ((_chan) * 8)) argument
286 #define GLTSYN_TGT_L(_chan, _idx) (GLTSYN_TGT_L_0(_idx) + ((_chan) * 16)) argument
287 #define GLTSYN_TGT_H(_chan, _idx) (GLTSYN_TGT_H_0(_idx) + ((_chan) * 16)) argument
288 #define GLTSYN_EVNT_L(_chan, _idx) (GLTSYN_EVNT_L_0(_idx) + ((_chan) * 16)) argument
289 #define GLTSYN_EVNT_H(_chan, _idx) (GLTSYN_EVNT_H_0(_idx) + ((_chan) * 16)) argument
/linux/include/linux/
H A Dgeneric-radix-tree.h128 #define __genradix_idx_to_offset(_radix, _idx) \ argument
129 __idx_to_offset(_idx, __genradix_obj_size(_radix))
140 #define genradix_ptr(_radix, _idx) \ argument
143 __genradix_idx_to_offset(_radix, _idx)))
156 #define genradix_ptr_alloc(_radix, _idx, _gfp) \ argument
159 __genradix_idx_to_offset(_radix, _idx), \
172 #define genradix_iter_init(_radix, _idx) \ argument
174 .pos = (_idx), \
175 .offset = __genradix_idx_to_offset((_radix), (_idx)),\
H A Dlinear_range.h37 #define LINEAR_RANGE_IDX(_idx, _min, _min_sel, _max_sel, _step) \ argument
38 [_idx] = LINEAR_RANGE(_min, _min_sel, _max_sel, _step)
/linux/tools/perf/tests/
H A Dfdarray.c102 #define FDA_CHECK(_idx, _fd, _revents) \ in test__fdarray__add() argument
103 if (fda->entries[_idx].fd != _fd) { \ in test__fdarray__add()
105 __LINE__, _idx, fda->entries[1].fd, _fd); \ in test__fdarray__add()
108 if (fda->entries[_idx].events != (_revents)) { \ in test__fdarray__add()
110 __LINE__, _idx, fda->entries[_idx].fd, _revents); \ in test__fdarray__add()
114 #define FDA_ADD(_idx, _fd, _revents, _nr) \ in test__fdarray__add() argument
125 FDA_CHECK(_idx, _fd, _revents) in test__fdarray__add()
/linux/drivers/clk/uniphier/
H A Dclk-uniphier.h69 #define UNIPHIER_CLK_CPUGEAR(_name, _idx, _regbase, _mask, \ argument
74 .idx = (_idx), \
83 #define UNIPHIER_CLK_FACTOR(_name, _idx, _parent, _mult, _div) \ argument
87 .idx = (_idx), \
95 #define UNIPHIER_CLK_GATE(_name, _idx, _parent, _reg, _bit) \ argument
99 .idx = (_idx), \
H A Dclk-uniphier-mio.c21 #define UNIPHIER_MIO_CLK_SD(_idx, ch) \ argument
61 UNIPHIER_CLK_GATE("sd" #ch, (_idx), "sd" #ch "-sel", 0x20 + 0x200 * (ch), 8)
/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dpmu.h44 #define FIXED_PMC_GLOBAL_CTRL_ENABLE(_idx) BIT_ULL((32 + (_idx))) argument
51 #define FIXED_PMC_CTRL(_idx, _val) ((_val) << ((_idx) * FIXED_PMC_NR_BITS)) argument
/linux/drivers/usb/gadget/udc/
H A Dpxa27x_udc.h263 #define PXA_EP_DEF(_idx, _addr, dir, _type, maxpkt, _config, iface, altset) \ argument
266 .name = "ep" #_idx, \
267 .idx = _idx, .enabled = 0, \
272 #define PXA_EP_BULK(_idx, addr, dir, config, iface, alt) \ argument
273 PXA_EP_DEF(_idx, addr, dir, USB_ENDPOINT_XFER_BULK, BULK_FIFO_SIZE, \
275 #define PXA_EP_ISO(_idx, addr, dir, config, iface, alt) \ argument
276 PXA_EP_DEF(_idx, addr, dir, USB_ENDPOINT_XFER_ISOC, ISO_FIFO_SIZE, \
278 #define PXA_EP_INT(_idx, addr, dir, config, iface, alt) \ argument
279 PXA_EP_DEF(_idx, addr, dir, USB_ENDPOINT_XFER_INT, INT_FIFO_SIZE, \
/linux/include/rdma/
H A Duverbs_ioctl.h956 #define uverbs_get_const_signed(_to, _attrs_bundle, _idx) \ argument
960 _uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \
967 #define uverbs_get_const_unsigned(_to, _attrs_bundle, _idx) \ argument
971 _uverbs_get_const_unsigned(&_val, _attrs_bundle, _idx, \
977 #define uverbs_get_const_default_signed(_to, _attrs_bundle, _idx, _default) \ argument
982 _uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \
989 #define uverbs_get_const_default_unsigned(_to, _attrs_bundle, _idx, _default) \ argument
994 _uverbs_get_const_unsigned(&_val, _attrs_bundle, _idx, \
1000 #define uverbs_get_const(_to, _attrs_bundle, _idx) \ argument
1002 uverbs_get_const_signed(_to, _attrs_bundle, _idx) : \
[all …]
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dregs.h592 #define MT_SKEY_0(_bss, _idx) \ argument
593 (MT_SKEY_BASE_0 + (4 * (_bss) + _idx) * 32)
594 #define MT_SKEY_1(_bss, _idx) \ argument
595 (MT_SKEY_BASE_1 + (4 * ((_bss) & 7) + _idx) * 32)
596 #define MT_SKEY(_bss, _idx) \ argument
597 ((_bss & 8) ? MT_SKEY_1(_bss, _idx) : MT_SKEY_0(_bss, _idx))
608 #define MT_SKEY_MODE_SHIFT(_bss, _idx) (4 * ((_idx) + 4 * (_bss & 1))) argument
H A Dinit.c465 #define CHAN2G(_idx, _freq) { \ argument
468 .hw_value = (_idx), \
489 #define CCK_RATE(_idx, _rate) { \ argument
492 .hw_value = (MT_PHY_TYPE_CCK << 8) | _idx, \
493 .hw_value_short = (MT_PHY_TYPE_CCK << 8) | (8 + _idx), \
496 #define OFDM_RATE(_idx, _rate) { \ argument
498 .hw_value = (MT_PHY_TYPE_OFDM << 8) | _idx, \
499 .hw_value_short = (MT_PHY_TYPE_OFDM << 8) | _idx, \
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_regs.h668 #define MT_SKEY_0(_bss, _idx) (MT_SKEY_BASE_0 + (4 * (_bss) + (_idx)) * 32) argument
669 #define MT_SKEY_1(_bss, _idx) (MT_SKEY_BASE_1 + (4 * ((_bss) & 7) + (_idx)) * 32) argument
670 #define MT_SKEY(_bss, _idx) (((_bss) & 8) ? MT_SKEY_1(_bss, _idx) : MT_SKEY_0(_bss, _idx)) argument
678 #define MT_SKEY_MODE_SHIFT(_bss, _idx) (4 * ((_idx) + 4 * ((_bss) & 1))) argument
/linux/drivers/net/wireless/ath/ath9k/
H A Dcommon-init.c21 #define CHAN2G(_freq, _idx) { \ argument
24 .hw_value = (_idx), \
28 #define CHAN5G(_freq, _idx) { \ argument
31 .hw_value = (_idx), \
/linux/drivers/clk/nxp/
H A Dclk-lpc32xx.c189 #define LPC32XX_CLK_DEFINE(_idx, _name, _flags, ...) \ argument
190 [CLK_PREFIX(_idx)] = { \
1083 #define LPC32XX_DEFINE_FIXED(_idx, _rate) \ argument
1084 [CLK_PREFIX(_idx)] = { \
1093 #define LPC32XX_DEFINE_PLL(_idx, _name, _reg, _enable) \ argument
1094 [CLK_PREFIX(_idx)] = { \
1109 #define LPC32XX_DEFINE_MUX(_idx, _reg, _shift, _mask, _table, _flags) \ argument
1110 [CLK_PREFIX(_idx)] = { \
1130 #define LPC32XX_DEFINE_DIV(_idx, _reg, _shift, _width, _table, _flags) \ argument
1131 [CLK_PREFIX(_idx)] = { \
[all …]
/linux/drivers/clk/tegra/
H A Dclk-tegra-periph.c136 _clk_num, _gate_flags, _clk_id, _parents##_idx, 0,\
143 _clk_num, _gate_flags, _clk_id, _parents##_idx, flags,\
150 _clk_num, _gate_flags, _clk_id, _parents##_idx, 0,\
157 _parents##_idx, 0, _lock)
163 _parents##_idx, 0, NULL)
170 _clk_id, _parents##_idx, 0, NULL)
177 _clk_id, _parents##_idx, flags, NULL)
184 _clk_id, _parents##_idx, 0, NULL)
191 _parents##_idx, 0, NULL)
198 _parents##_idx, 0, NULL)
[all …]
/linux/fs/bcachefs/
H A Dbtree_node_scan.c421 #define for_each_found_btree_node_in_range(_f, _search, _idx) \ argument
422 for (size_t _idx = eytzinger0_find_gt((_f)->nodes.data, (_f)->nodes.nr, \
425 _idx < (_f)->nodes.nr && \
426 (_f)->nodes.data[_idx].btree_id == _search.btree_id && \
427 (_f)->nodes.data[_idx].level == _search.level && \
428 bpos_lt((_f)->nodes.data[_idx].min_key, _search.max_key); \
429 _idx = eytzinger0_next(_idx, (_f)->nodes.nr))
H A Dbtree_iter.h77 #define trans_for_each_path_idx_from(_paths_allocated, _nr, _idx, _start)\ argument
78 for (_idx = _start; \
79 (_idx = find_next_bit(_paths_allocated, _nr, _idx)) < _nr; \
80 _idx++)
110 #define trans_for_each_path_from(_trans, _path, _idx, _start) \ argument
111 for (_idx = _start; \
112 (_path = __trans_next_path((_trans), &_idx)); \
113 _idx++)
115 #define trans_for_each_path(_trans, _path, _idx) \ argument
116 trans_for_each_path_from(_trans, _path, _idx, 1)
H A Dvstructs.h60 #define vstruct_idx(_s, _idx) \ argument
61 ((typeof(&(_s)->start[0])) ((_s)->_data + (_idx)))
/linux/drivers/perf/
H A Dapple_m1_cpu_pmu.c180 #define PMU_READ_COUNTER(_idx) \ argument
181 case _idx: return read_sysreg_s(SYS_IMP_APL_PMC## _idx ##_EL1)
183 #define PMU_WRITE_COUNTER(_val, _idx) \ argument
184 case _idx: \
185 write_sysreg_s(_val, SYS_IMP_APL_PMC## _idx ##_EL1); \
/linux/include/linux/gpio/
H A Dmachine.h89 #define GPIO_LOOKUP_IDX(_key, _chip_hwnum, _con_id, _idx, _flags) \ argument
94 .idx = _idx, \
/linux/drivers/iio/adc/
H A Dmt6360-adc.c227 #define MT6360_ADC_CHAN(_idx, _type) { \ argument
229 .channel = MT6360_CHAN_##_idx, \
230 .scan_index = MT6360_CHAN_##_idx, \
231 .datasheet_name = #_idx, \
/linux/include/xen/interface/io/
H A Dring.h193 #define RING_GET_REQUEST(_r, _idx) \ argument
194 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
196 #define RING_GET_RESPONSE(_r, _idx) \ argument
197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
/linux/drivers/regulator/
H A Dmax77826-regulator.c135 #define MAX77826_BUCK(_idx, _id, _ops) \ argument
146 .enable_mask = BIT(_idx * 2 + 1), \
147 .vsel_reg = MAX77826_REG_BUCK_VOUT + _idx * 2, \

1234