/Linux-v4.19/drivers/clk/sunxi-ng/ |
D | ccu_div.h | 51 #define _SUNXI_CCU_DIV_TABLE_FLAGS(_shift, _width, _table, _flags) \ argument 54 .width = _width, \ 59 #define _SUNXI_CCU_DIV_TABLE(_shift, _width, _table) \ argument 60 _SUNXI_CCU_DIV_TABLE_FLAGS(_shift, _width, _table, 0) 62 #define _SUNXI_CCU_DIV_OFFSET_MAX_FLAGS(_shift, _width, _off, _max, _flags) \ argument 65 .width = _width, \ 71 #define _SUNXI_CCU_DIV_MAX_FLAGS(_shift, _width, _max, _flags) \ argument 72 _SUNXI_CCU_DIV_OFFSET_MAX_FLAGS(_shift, _width, 1, _max, _flags) 74 #define _SUNXI_CCU_DIV_FLAGS(_shift, _width, _flags) \ argument 75 _SUNXI_CCU_DIV_MAX_FLAGS(_shift, _width, 0, _flags) [all …]
|
D | ccu_mult.h | 17 #define _SUNXI_CCU_MULT_OFFSET_MIN_MAX(_shift, _width, _offset, _min, _max) \ argument 23 .width = _width, \ 26 #define _SUNXI_CCU_MULT_MIN(_shift, _width, _min) \ argument 27 _SUNXI_CCU_MULT_OFFSET_MIN_MAX(_shift, _width, 1, _min, 0) 29 #define _SUNXI_CCU_MULT_OFFSET(_shift, _width, _offset) \ argument 30 _SUNXI_CCU_MULT_OFFSET_MIN_MAX(_shift, _width, _offset, 1, 0) 32 #define _SUNXI_CCU_MULT(_shift, _width) \ argument 33 _SUNXI_CCU_MULT_OFFSET_MIN_MAX(_shift, _width, 1, 1, 0)
|
D | ccu_mux.h | 32 #define _SUNXI_CCU_MUX_TABLE(_shift, _width, _table) \ argument 35 .width = _width, \ 39 #define _SUNXI_CCU_MUX(_shift, _width) \ argument 40 _SUNXI_CCU_MUX_TABLE(_shift, _width, NULL) 51 _reg, _shift, _width, _gate, \ argument 55 .mux = _SUNXI_CCU_MUX_TABLE(_shift, _width, _table), \ 66 _shift, _width, _gate, _flags) \ argument 68 _reg, _shift, _width, _gate, \ 71 #define SUNXI_CCU_MUX(_struct, _name, _parents, _reg, _shift, _width, \ argument 74 _reg, _shift, _width, 0, _flags)
|
D | ccu_phase.h | 28 #define SUNXI_CCU_PHASE(_struct, _name, _parent, _reg, _shift, _width, _flags) \ argument 31 .width = _width, \
|
/Linux-v4.19/drivers/clk/sprd/ |
D | mux.h | 32 #define _SPRD_MUX_CLK(_shift, _width, _table) \ argument 35 .width = _width, \ 40 _reg, _shift, _width, \ argument 43 .mux = _SPRD_MUX_CLK(_shift, _width, _table), \ 55 _shift, _width, _flags) \ argument 57 _reg, _shift, _width, _flags)
|
D | div.h | 27 #define _SPRD_DIV_CLK(_shift, _width) \ argument 30 .width = _width, \ 39 _shift, _width, _flags) \ argument 41 .div = _SPRD_DIV_CLK(_shift, _width), \
|
/Linux-v4.19/drivers/clk/actions/ |
D | owl-pll.h | 39 _width, _min_mul, _max_mul, _table) \ argument 45 .width = _width, \ 52 _shift, _width, _min_mul, _max_mul, _table, _flags) \ argument 55 _width, _min_mul, \ 67 _shift, _width, _min_mul, _max_mul, _table, _flags) \ argument 70 _width, _min_mul, \
|
D | owl-mux.h | 27 #define OWL_MUX_HW(_reg, _shift, _width) \ argument 31 .width = _width, \ 35 _shift, _width, _flags) \ argument 37 .mux_hw = OWL_MUX_HW(_reg, _shift, _width), \
|
D | owl-divider.h | 29 #define OWL_DIVIDER_HW(_reg, _shift, _width, _div_flags, _table) \ argument 33 .width = _width, \ 39 _shift, _width, _table, _div_flags, _flags) \ argument 41 .div_hw = OWL_DIVIDER_HW(_reg, _shift, _width, \
|
D | owl-factor.h | 35 #define OWL_FACTOR_HW(_reg, _shift, _width, _fct_flags, _table) \ argument 39 .width = _width, \ 45 _shift, _width, _table, _fct_flags, _flags) \ argument 48 _width, _fct_flags, _table), \
|
/Linux-v4.19/drivers/clk/mediatek/ |
D | clk-mtk.h | 91 #define MUX_GATE_FLAGS(_id, _name, _parents, _reg, _shift, _width, \ argument 97 .mux_width = _width, \ 110 #define MUX_GATE(_id, _name, _parents, _reg, _shift, _width, _gate) \ argument 111 MUX_GATE_FLAGS(_id, _name, _parents, _reg, _shift, _width, \ 114 #define MUX(_id, _name, _parents, _reg, _shift, _width) { \ argument 119 .mux_width = _width, \ 180 #define DIV_ADJ(_id, _name, _parent, _reg, _shift, _width) { \ argument 186 .div_width = _width, \
|
/Linux-v4.19/drivers/clk/zte/ |
D | clk.h | 101 #define MUX_F(_id, _name, _parent, _reg, _shift, _width, _flag, _mflag) \ argument 105 .mask = BIT(_width) - 1, \ 117 #define MUX(_id, _name, _parent, _reg, _shift, _width) \ argument 118 MUX_F(_id, _name, _parent, _reg, _shift, _width, 0, 0) 125 #define DIV_T(_id, _name, _parent, _reg, _shift, _width, _flag, _table) \ argument 130 .width = _width, \
|
/Linux-v4.19/drivers/clk/pistachio/ |
D | clk.h | 62 #define DIV(_id, _name, _pname, _reg, _width) \ argument 66 .width = _width, \ 72 #define DIV_F(_id, _name, _pname, _reg, _width, _div_flags) \ argument 76 .width = _width, \
|
/Linux-v4.19/drivers/pinctrl/berlin/ |
D | berlin.h | 37 #define BERLIN_PINCTRL_GROUP(_name, _offset, _width, _lsb, ...) \ argument 41 .bit_width = _width, \
|
/Linux-v4.19/drivers/clk/bcm/ |
D | clk-kona.h | 299 #define DIVIDER(_offset, _shift, _width) \ argument 303 .u.s.width = (_width), \ 309 #define FRAC_DIVIDER(_offset, _shift, _width, _frac_width) \ argument 313 .u.s.width = (_width), \ 350 #define SELECTOR(_offset, _shift, _width) \ argument 354 .width = (_width), \
|
/Linux-v4.19/drivers/clk/meson/ |
D | clk-phase.c | 10 #define phase_step(_width) (360 / (1 << (_width))) argument
|
D | axg-audio.c | 56 #define AXG_AUD_DIV(_name, _reg, _shift, _width, _dflags, _pname, _iflags) \ argument 61 .width = (_width), \ 208 #define AXG_AUD_TRIPHASE(_name, _reg, _width, _shift0, _shift1, _shift2, \ argument 215 .width = (_width), \ 220 .width = (_width), \ 225 .width = (_width), \
|
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-common.h | 1388 #define GET_BITS(_var, _index, _width) \ argument 1389 (((_var) >> (_index)) & ((0x1 << (_width)) - 1)) 1391 #define SET_BITS(_var, _index, _width, _val) \ argument 1393 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \ 1394 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \ 1397 #define GET_BITS_LE(_var, _index, _width) \ argument 1398 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1)) 1400 #define SET_BITS_LE(_var, _index, _width, _val) \ argument 1402 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \ 1404 ((0x1 << (_width)) - 1)) << (_index))); \
|
/Linux-v4.19/drivers/clk/ |
D | clk-stm32mp1.c | 1119 #define DIV_TABLE(_id, _name, _parent, _flags, _offset, _shift, _width,\ argument 1129 .width = _width,\ 1136 #define DIV(_id, _name, _parent, _flags, _offset, _shift, _width, _div_flags)\ argument 1137 DIV_TABLE(_id, _name, _parent, _flags, _offset, _shift, _width,\ 1140 #define MUX(_id, _name, _parents, _flags, _offset, _shift, _width, _mux_flags)\ argument 1150 .width = _width,\ 1246 #define _STM32_MUX(_offset, _shift, _width, _mux_flags, _mmux, _ops)\ argument 1251 .width = _width,\ 1259 #define _MUX(_offset, _shift, _width, _mux_flags)\ argument 1260 _STM32_MUX(_offset, _shift, _width, _mux_flags, NULL, NULL)\ [all …]
|
/Linux-v4.19/include/uapi/linux/ |
D | v4l2-dv-timings.h | 25 #define V4L2_INIT_BT_TIMINGS(_width, args...) \ argument 26 { .bt = { _width , ## args } } 28 #define V4L2_INIT_BT_TIMINGS(_width, args...) \ argument 29 .bt = { _width , ## args }
|
/Linux-v4.19/drivers/soc/sunxi/ |
D | sunxi_sram.c | 51 #define SUNXI_SRAM_DATA(_name, _reg, _off, _width, ...) \ argument 56 .width = _width, \
|
/Linux-v4.19/drivers/net/ethernet/intel/ice/ |
D | ice_lan_tx_rx.h | 297 #define ICE_CTX_STORE(_struct, _ele, _width, _lsb) { \ argument 300 .width = _width, \
|
/Linux-v4.19/drivers/gpu/drm/gma500/ |
D | framebuffer.c | 49 #define CMAP_TOHW(_val, _width) ((((_val) << (_width)) + 0x7FFF - (_val)) >> 16) argument
|
/Linux-v4.19/drivers/clk/nxp/ |
D | clk-lpc18xx-cgu.c | 171 #define LPC1XX_CGU_SRC_CLK_DIV(_id, _width, _table) \ argument 177 .width = _width, \
|
/Linux-v4.19/drivers/infiniband/core/ |
D | sysfs.c | 438 #define PORT_PMA_ATTR(_name, _counter, _width, _offset) \ argument 441 .index = (_offset) | ((_width) << 16) | ((_counter) << 24), \ 445 #define PORT_PMA_ATTR_EXT(_name, _width, _offset) \ argument 448 .index = (_offset) | ((_width) << 16), \
|