Lines Matching defs:typ
47 #define __mlx5_nullp(typ) ((struct mlx5_ifc_##typ##_bits *)0) argument
48 #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld) argument
49 #define __mlx5_bit_off(typ, fld) __offsetof(struct mlx5_ifc_##typ##_bits, fld) argument
50 #define __mlx5_16_off(typ, fld) (__mlx5_bit_off(typ, fld) / 16) argument
51 #define __mlx5_dw_off(typ, fld) (__mlx5_bit_off(typ, fld) / 32) argument
52 #define __mlx5_64_off(typ, fld) (__mlx5_bit_off(typ, fld) / 64) argument
53 #define __mlx5_16_bit_off(typ, fld) (16 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0xf… argument
54 #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1… argument
55 #define __mlx5_mask(typ, fld) ((u32)((1ull << __mlx5_bit_sz(typ, fld)) - 1)) argument
56 #define __mlx5_dw_mask(typ, fld) (__mlx5_mask(typ, fld) << __mlx5_dw_bit_off(typ, fld)) argument
57 #define __mlx5_mask16(typ, fld) ((u16)((1ull << __mlx5_bit_sz(typ, fld)) - 1)) argument
58 #define __mlx5_16_mask(typ, fld) (__mlx5_mask16(typ, fld) << __mlx5_16_bit_off(typ, fld)) argument
59 #define __mlx5_st_sz_bits(typ) sizeof(struct mlx5_ifc_##typ##_bits) argument
61 #define MLX5_FLD_SZ_BYTES(typ, fld) (__mlx5_bit_sz(typ, fld) / 8) argument
62 #define MLX5_ST_SZ_BYTES(typ) (sizeof(struct mlx5_ifc_##typ##_bits) / 8) argument
63 #define MLX5_ST_SZ_DW(typ) (sizeof(struct mlx5_ifc_##typ##_bits) / 32) argument
64 #define MLX5_ST_SZ_QW(typ) (sizeof(struct mlx5_ifc_##typ##_bits) / 64) argument
65 #define MLX5_UN_SZ_BYTES(typ) (sizeof(union mlx5_ifc_##typ##_bits) / 8) argument
66 #define MLX5_UN_SZ_DW(typ) (sizeof(union mlx5_ifc_##typ##_bits) / 32) argument
67 #define MLX5_BYTE_OFF(typ, fld) (__mlx5_bit_off(typ, fld) / 8) argument
68 #define MLX5_ADDR_OF(typ, p, fld) ((char *)(p) + MLX5_BYTE_OFF(typ, fld)) argument
71 #define MLX5_SET(typ, p, fld, v) do { \ argument
80 #define MLX5_SET_TO_ONES(typ, p, fld) do { \ argument
89 #define MLX5_GET(typ, p, fld) ((be32_to_cpu(*((__be32 *)(p) +\ argument
93 #define MLX5_GET_PR(typ, p, fld) ({ \ argument
99 #define __MLX5_SET64(typ, p, fld, v) do { \ argument
104 #define MLX5_SET64(typ, p, fld, v) do { \ argument
109 #define MLX5_ARRAY_SET64(typ, p, fld, idx, v) do { \ argument
114 #define MLX5_GET64(typ, p, fld) be64_to_cpu(*((__be64 *)(p) + __mlx5_64_off(typ, fld))) argument
116 #define MLX5_GET16(typ, p, fld) ((be16_to_cpu(*((__be16 *)(p) +\ argument
120 #define MLX5_SET16(typ, p, fld, v) do { \ argument
129 #define MLX5_GET64_BE(typ, p, fld) (*((__be64 *)(p) +\ argument
132 #define MLX5_GET_BE(type_t, typ, p, fld) ({ \ argument
161 #define MLX5_VSC_SET(typ, p, fld, v) do { \ argument
170 #define MLX5_VSC_GET(typ, p, fld) ((le32_to_cpu(*((__le32 *)(p) +\ argument
174 #define MLX5_VSC_GET_PR(typ, p, fld) ({ \ argument