/linux/drivers/clk/starfive/ |
H A D | clk-starfive-jh71x0.h | 32 #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 D | clk-starfive-jh7110-pll.c | 111 #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/include/linux/ |
H A D | generic-radix-tree.h | 182 #define __genradix_idx_to_offset(_radix, _idx) \ argument 183 __idx_to_offset(_idx, __genradix_obj_size(_radix)) 204 #define genradix_ptr_inlined(_radix, _idx) \ argument 207 __genradix_idx_to_offset(_radix, _idx))) 218 #define genradix_ptr(_radix, _idx) \ argument 221 __genradix_idx_to_offset(_radix, _idx))) 226 #define genradix_ptr_alloc_inlined(_radix, _idx, _gfp) \ argument 229 __genradix_idx_to_offset(_radix, _idx)) ?: \ 231 __genradix_idx_to_offset(_radix, _idx), \ 234 #define genradix_ptr_alloc_preallocated_inlined(_radix, _idx, _new_node, _gfp)\ argument [all …]
|
H A D | min_heap.h | 306 #define min_heap_sift_up_inline(_heap, _idx, _func, _args) \ argument 307 __min_heap_sift_up_inline((min_heap_char *)_heap, __minheap_obj_size(_heap), _idx, \ 413 #define min_heap_del_inline(_heap, _idx, _func, _args) \ argument 414 __min_heap_del_inline((min_heap_char *)_heap, __minheap_obj_size(_heap), _idx, \ 443 #define min_heap_sift_up(_heap, _idx, _func, _args) \ argument 444 __min_heap_sift_up((min_heap_char *)_heap, __minheap_obj_size(_heap), _idx, _func, _args) 454 #define min_heap_del(_heap, _idx, _func, _args) \ argument 455 __min_heap_del((min_heap_char *)_heap, __minheap_obj_size(_heap), _idx, _func, _args)
|
H A D | linear_range.h | 37 #define LINEAR_RANGE_IDX(_idx, _min, _min_sel, _max_sel, _step) \ argument 38 [_idx] = LINEAR_RANGE(_min, _min_sel, _max_sel, _step)
|
/linux/drivers/clk/renesas/ |
H A D | rcar-gen4-cpg.h | 49 #define DEF_GEN4_PLL_F8_25(_name, _idx, _id, _parent) \ argument 50 DEF_BASE(_name, _id, CLK_TYPE_GEN4_PLL_F8_25, _parent, .offset = _idx) 52 #define DEF_GEN4_PLL_V8_25(_name, _idx, _id, _parent) \ argument 53 DEF_BASE(_name, _id, CLK_TYPE_GEN4_PLL_V8_25, _parent, .offset = _idx) 55 #define DEF_GEN4_PLL_F9_24(_name, _idx, _id, _parent) \ argument 56 DEF_BASE(_name, _id, CLK_TYPE_GEN4_PLL_F9_24, _parent, .offset = _idx) 58 #define DEF_GEN4_PLL_V9_24(_name, _idx, _id, _parent) \ argument 59 DEF_BASE(_name, _id, CLK_TYPE_GEN4_PLL_V9_24, _parent, .offset = _idx)
|
/linux/tools/perf/tests/ |
H A D | fdarray.c | 102 #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 D | clk-uniphier.h | 69 #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 D | clk-uniphier-mio.c | 21 #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 D | pmu.h | 44 #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 D | pxa27x_udc.h | 263 #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 D | uverbs_ioctl.h | 956 #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 D | regs.h | 592 #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 D | init.c | 465 #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 D | mt76x02_regs.h | 668 #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 D | common-init.c | 21 #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 D | clk-lpc32xx.c | 189 #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 D | clk-tegra-periph.c | 136 _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/drivers/perf/ |
H A D | apple_m1_cpu_pmu.c | 212 #define PMU_READ_COUNTER(_idx) \ argument 213 case _idx: return read_sysreg_s(SYS_IMP_APL_PMC## _idx ##_EL1) 215 #define PMU_WRITE_COUNTER(_val, _idx) \ argument 216 case _idx: \ 217 write_sysreg_s(_val, SYS_IMP_APL_PMC## _idx ##_EL1); \
|
/linux/fs/bcachefs/ |
H A D | btree_iter.h | 95 #define trans_for_each_path_idx_from(_paths_allocated, _nr, _idx, _start)\ argument 96 for (_idx = _start; \ 97 (_idx = find_next_bit(_paths_allocated, _nr, _idx)) < _nr; \ 98 _idx++) 128 #define trans_for_each_path_from(_trans, _path, _idx, _start) \ argument 129 for (_idx = _start; \ 130 (_path = __trans_next_path((_trans), &_idx)); \ 131 _idx++) 133 #define trans_for_each_path(_trans, _path, _idx) \ argument 134 trans_for_each_path_from(_trans, _path, _idx, 1)
|
H A D | btree_node_scan.c | 446 #define for_each_found_btree_node_in_range(_f, _search, _idx) \ argument 447 for (size_t _idx = eytzinger0_find_gt((_f)->nodes.data, (_f)->nodes.nr, \ 450 _idx < (_f)->nodes.nr && \ 451 (_f)->nodes.data[_idx].btree_id == _search.btree_id && \ 452 (_f)->nodes.data[_idx].level == _search.level && \ 453 bpos_lt((_f)->nodes.data[_idx].min_key, _search.max_key); \ 454 _idx = eytzinger0_next(_idx, (_f)->nodes.nr))
|
H A D | vstructs.h | 60 #define vstruct_idx(_s, _idx) \ argument 61 ((typeof(&(_s)->start[0])) ((_s)->_data + (_idx)))
|
/linux/include/linux/gpio/ |
H A D | machine.h | 89 #define GPIO_LOOKUP_IDX(_key, _chip_hwnum, _con_id, _idx, _flags) \ argument 94 .idx = _idx, \
|
/linux/include/xen/interface/io/ |
H A D | ring.h | 193 #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 D | max77826-regulator.c | 135 #define MAX77826_BUCK(_idx, _id, _ops) \ argument 146 .enable_mask = BIT(_idx * 2 + 1), \ 147 .vsel_reg = MAX77826_REG_BUCK_VOUT + _idx * 2, \
|