Home
last modified time | relevance | path

Searched refs:_width (Results 1 – 11 of 11) sorted by relevance

/linux-4.1.27/drivers/staging/fsl-mc/include/
Dmc-cmd.h37 #define MAKE_UMASK64(_width) \ argument
38 ((uint64_t)((_width) < 64 ? ((uint64_t)1 << (_width)) - 1 : -1))
89 #define MC_EXT_OP(_ext, _param, _offset, _width, _type, _arg) \ argument
90 ((_ext)[_param] |= mc_enc((_offset), (_width), _arg))
92 #define MC_CMD_OP(_cmd, _param, _offset, _width, _type, _arg) \ argument
93 ((_cmd).params[_param] |= mc_enc((_offset), (_width), _arg))
95 #define MC_RSP_OP(_cmd, _param, _offset, _width, _type, _arg) \ argument
96 (_arg = (_type)mc_dec(_cmd.params[_param], (_offset), (_width)))
/linux-4.1.27/drivers/clk/pistachio/
Dclk.h62 #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-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h988 #define GET_BITS(_var, _index, _width) \ argument
989 (((_var) >> (_index)) & ((0x1 << (_width)) - 1))
991 #define SET_BITS(_var, _index, _width, _val) \ argument
993 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \
994 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \
997 #define GET_BITS_LE(_var, _index, _width) \ argument
998 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1))
1000 #define SET_BITS_LE(_var, _index, _width, _val) \ argument
1002 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \
1004 ((0x1 << (_width)) - 1)) << (_index))); \
/linux-4.1.27/drivers/pinctrl/berlin/
Dberlin.h40 #define BERLIN_PINCTRL_GROUP(_name, _offset, _width, _lsb, ...) \ argument
44 .bit_width = _width, \
/linux-4.1.27/drivers/clk/bcm/
Dclk-kona.h299 #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-4.1.27/include/uapi/linux/
Dv4l2-dv-timings.h29 #define V4L2_INIT_BT_TIMINGS(_width, args...) \ argument
30 { .bt = { _width , ## args } }
32 #define V4L2_INIT_BT_TIMINGS(_width, args...) \ argument
33 .bt = { _width , ## args }
/linux-4.1.27/drivers/net/phy/
Damd-xgbe-phy.c237 #define GET_BITS(_var, _index, _width) \ argument
238 (((_var) >> (_index)) & ((0x1 << (_width)) - 1))
240 #define SET_BITS(_var, _index, _width, _val) \ argument
242 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \
243 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \
/linux-4.1.27/drivers/gpu/drm/gma500/
Dframebuffer.c53 #define CMAP_TOHW(_val, _width) ((((_val) << (_width)) + 0x7FFF - (_val)) >> 16) argument
/linux-4.1.27/drivers/infiniband/core/
Dsysfs.c314 #define PORT_PMA_ATTR(_name, _counter, _width, _offset) \ argument
317 .index = (_offset) | ((_width) << 16) | ((_counter) << 24) \
/linux-4.1.27/drivers/video/fbdev/vermilion/
Dvermilion.c50 #define VML_TOHW(_val, _width) ((((_val) << (_width)) + 0x7FFF - (_val)) >> 16) argument
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_state.c1824 #define RADEON_COPY_MT(_buf, _data, _width) \ in radeon_cp_dispatch_texture() argument
1826 if (copy_from_user(_buf, _data, (_width))) {\ in radeon_cp_dispatch_texture()
1827 DRM_ERROR("EFAULT on pad, %d bytes\n", (_width)); \ in radeon_cp_dispatch_texture()