Home
last modified time | relevance | path

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

/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h936 #define GET_BITS(_var, _index, _width) \ argument
937 (((_var) >> (_index)) & ((0x1 << (_width)) - 1))
939 #define SET_BITS(_var, _index, _width, _val) \ argument
941 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \
942 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \
945 #define GET_BITS_LE(_var, _index, _width) \ argument
946 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1))
948 #define SET_BITS_LE(_var, _index, _width, _val) \ argument
950 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \
952 ((0x1 << (_width)) - 1)) << (_index))); \
/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), \
/drivers/pinctrl/berlin/
Dberlin.h40 #define BERLIN_PINCTRL_GROUP(_name, _offset, _width, _lsb, ...) \ argument
44 .bit_width = _width, \
/drivers/net/phy/
Damd-xgbe-phy.c201 #define GET_BITS(_var, _index, _width) \ argument
202 (((_var) >> (_index)) & ((0x1 << (_width)) - 1))
204 #define SET_BITS(_var, _index, _width, _val) \ argument
206 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \
207 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \
/drivers/gpu/drm/gma500/
Dframebuffer.c53 #define CMAP_TOHW(_val, _width) ((((_val) << (_width)) + 0x7FFF - (_val)) >> 16) argument
/drivers/infiniband/core/
Dsysfs.c314 #define PORT_PMA_ATTR(_name, _counter, _width, _offset) \ argument
317 .index = (_offset) | ((_width) << 16) | ((_counter) << 24) \
/drivers/video/fbdev/vermilion/
Dvermilion.c50 #define VML_TOHW(_val, _width) ((((_val) << (_width)) + 0x7FFF - (_val)) >> 16) argument
/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()