| /include/ |
| A D | compiler.h | 96 # define cpu_to_le16(x) (x) argument 97 # define cpu_to_le32(x) (x) argument 98 # define cpu_to_le64(x) (x) argument 99 # define le16_to_cpu(x) (x) argument 100 # define le32_to_cpu(x) (x) argument 101 # define le64_to_cpu(x) (x) argument 115 # define cpu_to_be16(x) (x) argument 116 # define cpu_to_be32(x) (x) argument 117 # define cpu_to_be64(x) (x) argument 118 # define be16_to_cpu(x) (x) argument [all …]
|
| A D | fsl_dspi.h | 31 #define DSPI_MCR_DCONF(x) (((x) & 0x03) << 28) argument 36 #define DSPI_MCR_PCSIS(x) (1 << (16 + (x))) argument 52 #define DSPI_MCR_SMPL_PT(x) (((x) & 0x03) << 8) argument 61 #define DSPI_CTAR(x) (0x0c + (x * 4)) argument 63 #define DSPI_CTAR_TRSZ(x) (((x) & 0x0F) << 27) argument 77 #define DSPI_CTAR_PDT(x) (((x) & 0x03) << 18) argument 82 #define DSPI_CTAR_PBR(x) (((x) & 0x03) << 16) argument 88 #define DSPI_CTAR_ASC(x) (((x) & 0x0F) << 8) argument 89 #define DSPI_CTAR_DT(x) (((x) & 0x0F) << 4) argument 90 #define DSPI_CTAR_BR(x) ((x) & 0x0F) argument [all …]
|
| A D | imx_lpi2c.h | 114 #define LPI2C_MCR_MEN(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MCR_MEN_SHIF… argument 117 #define LPI2C_MCR_RST(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MCR_RST_SHIF… argument 126 #define LPI2C_MCR_RTF(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MCR_RTF_SHIF… argument 129 #define LPI2C_MCR_RRF(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MCR_RRF_SHIF… argument 134 #define LPI2C_MSR_TDF(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MSR_TDF_SHIF… argument 137 #define LPI2C_MSR_RDF(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MSR_RDF_SHIF… argument 140 #define LPI2C_MSR_EPF(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MSR_EPF_SHIF… argument 143 #define LPI2C_MSR_SDF(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MSR_SDF_SHIF… argument 146 #define LPI2C_MSR_NDF(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MSR_NDF_SHIF… argument 149 #define LPI2C_MSR_ALF(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MSR_ALF_SHIF… argument [all …]
|
| A D | dw-i3c.h | 26 #define DEV_ADDR_DYNAMIC(x) (((x) << 16) & GENMASK(22, 16)) argument 34 #define COMMAND_PORT_SPEED(x) (((x) << 21) & GENMASK(23, 21)) argument 37 #define COMMAND_PORT_CMD(x) (((x) << 7) & GENMASK(14, 7)) argument 38 #define COMMAND_PORT_TID(x) (((x) << 3) & GENMASK(6, 3)) argument 67 #define RESPONSE_PORT_DATA_LEN(x) ((x) & GENMASK(15, 0)) argument 73 #define QUEUE_THLD_CTRL_RESP_BUF(x) (((x) - 1) << 8) argument 130 #define QUEUE_STATUS_LEVEL_CMD(x) ((x) & GENMASK(7, 0)) argument 139 #define DEVICE_ADDR_TABLE_ADDR(x) ((x) & GENMASK(7, 0)) argument 154 #define SCL_I3C_TIMING_LCNT(x) ((x) & GENMASK(7, 0)) argument 169 #define SCL_EXT_LCNT_1(x) ((x) & GENMASK(7, 0)) argument [all …]
|
| A D | zfs_common.h | 37 #define zfs_to_cpu16(x, a) (((a) == BIG_ENDIAN) ? be16_to_cpu(x) \ argument 38 : le16_to_cpu(x)) 39 #define cpu_to_zfs16(x, a) (((a) == BIG_ENDIAN) ? cpu_to_be16(x) \ argument 40 : cpu_to_le16(x)) 42 #define zfs_to_cpu32(x, a) (((a) == BIG_ENDIAN) ? be32_to_cpu(x) \ argument 43 : le32_to_cpu(x)) 44 #define cpu_to_zfs32(x, a) (((a) == BIG_ENDIAN) ? cpu_to_be32(x) \ argument 45 : cpu_to_le32(x)) 47 #define zfs_to_cpu64(x, a) (((a) == BIG_ENDIAN) ? be64_to_cpu(x) \ argument 48 : le64_to_cpu(x)) [all …]
|
| /include/linux/byteorder/ |
| A D | swab.h | 42 #define ___constant_swab16(x) ___swab16(x) argument 43 #define ___constant_swab32(x) ___swab32(x) argument 50 # define __arch__swab16(x) ___swab16(x) argument 53 # define __arch__swab32(x) ___swab32(x) argument 56 # define __arch__swab64(x) ___swab64(x) argument 70 # define __arch__swab16s(x) do { *(x) = __swab16p((x)); } while (0) argument 73 # define __arch__swab32s(x) do { *(x) = __swab32p((x)); } while (0) argument 76 # define __arch__swab64s(x) do { *(x) = __swab64p((x)); } while (0) argument 96 # define __swab16(x) __fswab16(x) argument 97 # define __swab32(x) __fswab32(x) argument [all …]
|
| A D | big_endian.h | 16 #define __constant_htonl(x) ((__force __be32)(__u32)(x)) argument 17 #define __constant_ntohl(x) ((__force __u32)(__be32)(x)) argument 18 #define __constant_htons(x) ((__force __be16)(__u16)(x)) argument 19 #define __constant_ntohs(x) ((__force __u16)(__be16)(x)) argument 38 #define __cpu_to_be64(x) ((__force __be64)(__u64)(x)) argument 93 #define __cpu_to_le64s(x) __swab64s((x)) argument 94 #define __le64_to_cpus(x) __swab64s((x)) argument 95 #define __cpu_to_le32s(x) __swab32s((x)) argument 96 #define __le32_to_cpus(x) __swab32s((x)) argument 97 #define __cpu_to_le16s(x) __swab16s((x)) argument [all …]
|
| A D | little_endian.h | 32 #define __cpu_to_le64(x) ((__force __le64)(__u64)(x)) argument 33 #define __le64_to_cpu(x) ((__force __u64)(__le64)(x)) argument 34 #define __cpu_to_le32(x) ((__force __le32)(__u32)(x)) argument 35 #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) argument 36 #define __cpu_to_le16(x) ((__force __le16)(__u16)(x)) argument 99 #define __cpu_to_be64s(x) __swab64s((x)) argument 100 #define __be64_to_cpus(x) __swab64s((x)) argument 101 #define __cpu_to_be32s(x) __swab32s((x)) argument 102 #define __be32_to_cpus(x) __swab32s((x)) argument 103 #define __cpu_to_be16s(x) __swab16s((x)) argument [all …]
|
| /include/power/ |
| A D | mp5416.h | 30 #define MP5416_VSET_SW1_GVAL(x) ((((x) & 0x7f) * 12500) + 600000) argument 31 #define MP5416_VSET_SW2_GVAL(x) ((((x) & 0x7f) * 25000) + 800000) argument 32 #define MP5416_VSET_SW3_GVAL(x) ((((x) & 0x7f) * 12500) + 600000) argument 33 #define MP5416_VSET_SW4_GVAL(x) ((((x) & 0x7f) * 25000) + 800000) argument 34 #define MP5416_VSET_LDO_GVAL(x) ((((x) & 0x7f) * 25000) + 800000) argument 35 #define MP5416_VSET_LDO_SVAL(x) (((x) - 800000) / 25000) argument 36 #define MP5416_VSET_SW1_SVAL(x) (((x) - 600000) / 12500) argument 37 #define MP5416_VSET_SW2_SVAL(x) (((x) - 800000) / 25000) argument 38 #define MP5416_VSET_SW3_SVAL(x) (((x) - 600000) / 12500) argument 39 #define MP5416_VSET_SW4_SVAL(x) (((x) - 800000) / 25000) argument
|
| /include/faraday/ |
| A D | ftsmc020.h | 34 #define FTSMC020_BANK_BASE(x) ((x) & 0x0fff1000) argument 62 #define FTSMC020_TPR_ETRNA(x) (((x) & 0xf) << 28) argument 63 #define FTSMC020_TPR_EATI(x) (((x) & 0xf) << 24) argument 65 #define FTSMC020_TPR_AST(x) (((x) & 0x3) << 18) argument 66 #define FTSMC020_TPR_CTW(x) (((x) & 0x3) << 16) argument 67 #define FTSMC020_TPR_ATI(x) (((x) & 0xf) << 12) argument 68 #define FTSMC020_TPR_AT2(x) (((x) & 0x3) << 8) argument 69 #define FTSMC020_TPR_WTC(x) (((x) & 0x3) << 6) argument 70 #define FTSMC020_TPR_AHT(x) (((x) & 0x3) << 4) argument 71 #define FTSMC020_TPR_TRNA(x) (((x) & 0xf) << 0) argument
|
| A D | ftsdc010.h | 81 #define FTSDC010_CMD_IDX(x) (((x) & 0x3f) << 0) argument 90 #define FTSDC010_RSP_CMD_IDX(x) (((x) >> 0) & 0x3f) argument 94 #define FTSDC010_DCR_BLK_SIZE(x) (((x) & 0xf) << 0) argument 100 #define FTSDC010_DCR_DMA_TYPE(x) (((x) & 0x3) << 8) argument 186 #define FTSDC010_PCR_POWER(x) (((x) & 0xf) << 0) argument 190 #define FTSDC010_CCR_CLK_DIV(x) (((x) & 0x7f) << 0) argument 213 #define FTSDC010_FEATURE_FIFO_DEPTH(x) (((x) >> 0) & 0xff) argument 221 #define FTSDC010_REV_REVISION(x) (((x) & 0xff) >> 0) argument 222 #define FTSDC010_REV_MINOR(x) (((x) & 0xff00) >> 8) argument 223 #define FTSDC010_REV_MAJOR(x) (((x) & 0xffff0000) >> 16) argument [all …]
|
| A D | ftwdt010_wdt.h | 37 #define FTWDT010_WDLOAD(x) ((x) & 0xffffffff) argument 70 #define FTWDT010_WDSTATUS(x) ((x) & 0x1) argument 83 #define FTWDT010_WDINTRLEN(x) ((x) & 0xff) argument
|
| /include/asm-generic/bitops/ |
| A D | fls.h | 16 if (!x) in fls() 18 if (!(x & 0xffff0000u)) { in fls() 19 x <<= 16; in fls() 22 if (!(x & 0xff000000u)) { in fls() 23 x <<= 8; in fls() 26 if (!(x & 0xf0000000u)) { in fls() 27 x <<= 4; in fls() 30 if (!(x & 0xc0000000u)) { in fls() 31 x <<= 2; in fls() 34 if (!(x & 0x80000000u)) { in fls() [all …]
|
| A D | fls64.h | 18 static __always_inline int fls64(__u64 x) in fls64() argument 20 __u32 h = x >> 32; in fls64() 23 return fls(x); in fls64() 26 static __always_inline int fls64(__u64 x) in fls64() argument 28 if (x == 0) in fls64() 30 return __fls(x) + 1; in fls64()
|
| A D | builtin-fls.h | 12 static __always_inline int fls(unsigned int x) in fls() argument 14 return x ? sizeof(x) * 8 - __builtin_clz(x) : 0; in fls()
|
| /include/u-boot/ |
| A D | variadic-macro.h | 16 #define _VM_HELP_1(_call, x, ...) _call(x) argument 17 #define _VM_HELP_2(_call, x, ...) _call(x) _VM_HELP_1(_call, __VA_ARGS__) argument 18 #define _VM_HELP_3(_call, x, ...) _call(x) _VM_HELP_2(_call, __VA_ARGS__) argument 19 #define _VM_HELP_4(_call, x, ...) _call(x) _VM_HELP_3(_call, __VA_ARGS__) argument 20 #define _VM_HELP_5(_call, x, ...) _call(x) _VM_HELP_4(_call, __VA_ARGS__) argument 21 #define _VM_HELP_6(_call, x, ...) _call(x) _VM_HELP_5(_call, __VA_ARGS__) argument 22 #define _VM_HELP_7(_call, x, ...) _call(x) _VM_HELP_6(_call, __VA_ARGS__) argument 23 #define _VM_HELP_8(_call, x, ...) _call(x) _VM_HELP_7(_call, __VA_ARGS__) argument 24 #define _VM_HELP_9(_call, x, ...) _call(x) _VM_HELP_8(_call, __VA_ARGS__) argument 25 #define _VM_HELP_10(_call, x, ...) _call(x) _VM_HELP_9(_call, __VA_ARGS__) argument [all …]
|
| /include/linux/ |
| A D | completion.h | 34 #define init_completion_map(x, m) __init_completion(x) argument 35 #define init_completion(x) __init_completion(x) argument 90 x->done = 0; in __init_completion() 92 init_waitqueue_head(&x->wait); in __init_completion() 105 x->done = 0; in reinit_completion() 118 struct completion *x, unsigned long timeout); 120 struct completion *x, unsigned long timeout); 129 #define wait_for_completion(x) do {} while (0) argument 130 #define wait_for_completion_io(x) do {} while (0) argument 169 #define complete(x) do {} while (0) argument [all …]
|
| A D | kernel.h | 12 #define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1) argument 16 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) argument 18 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) argument 27 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) argument 28 #define round_down(x, y) ((x) & ~__round_mask(x, y)) argument 55 typeof(x) __x = (x); \ 67 typeof(x) __x = x; \ 145 typeof(x) _min1 = (x); \ 156 #define min3(x, y, z) min((typeof(x))min(x, y), z) argument 157 #define max3(x, y, z) max((typeof(x))max(x, y), z) argument [all …]
|
| A D | const.h | 25 #define _UL(x) (_AC(x, UL)) argument 26 #define _ULL(x) (_AC(x, ULL)) argument 28 #define _BITUL(x) (_UL(1) << (x)) argument 29 #define _BITULL(x) (_ULL(1) << (x)) argument 31 #define UL(x) (_UL(x)) argument 32 #define ULL(x) (_ULL(x)) argument
|
| A D | bitrev.h | 23 return (__bitrev8(x & 0xff) << 8) | __bitrev8(x >> 8); in __bitrev16() 28 return (__bitrev16(x & 0xffff) << 16) | __bitrev16(x >> 16); in __bitrev32() 33 #define __bitrev8x4(x) (__bitrev32(swab32(x))) argument 37 u32 __x = x; \ 48 u16 __x = x; \ 58 u32 __x = x; \ 67 u8 __x = x; \ 76 u32 __x = x; \ 84 u16 __x = x; \ 92 u32 __x = x; \ [all …]
|
| A D | libfdt_env.h | 22 #define fdt32_to_cpu(x) be32_to_cpu(x) argument 23 #define cpu_to_fdt32(x) cpu_to_be32(x) argument 24 #define fdt64_to_cpu(x) be64_to_cpu(x) argument 25 #define cpu_to_fdt64(x) cpu_to_be64(x) argument
|
| A D | bitops.h | 50 if (!x) in generic_ffs() 53 x >>= 16; in generic_ffs() 57 x >>= 8; in generic_ffs() 61 x >>= 4; in generic_ffs() 65 x >>= 2; in generic_ffs() 69 x >>= 1; in generic_ffs() 86 if (!x) in generic_fls() 93 x <<= 8; in generic_fls() 97 x <<= 4; in generic_fls() 101 x <<= 2; in generic_fls() [all …]
|
| A D | stringify.h | 9 #define __stringify_1(x...) #x argument 10 #define __stringify(x...) __stringify_1(x) argument
|
| /include/cramfs/ |
| A D | cramfs_fs.h | 87 #define CRAMFS_16(x) (x) argument 88 #define CRAMFS_24(x) (x) argument 89 #define CRAMFS_32(x) (x) argument 90 #define CRAMFS_GET_NAMELEN(x) ((x)->namelen) argument 91 #define CRAMFS_GET_OFFSET(x) ((x)->offset) argument 92 #define CRAMFS_SET_OFFSET(x,y) ((x)->offset = (y)) argument 93 #define CRAMFS_SET_NAMELEN(x,y) ((x)->namelen = (y)) argument
|
| /include/zfs/ |
| A D | spa.h | 16 #define BF32_DECODE(x, low, len) P2PHASE((x) >> (low), 1U << (len)) argument 17 #define BF64_DECODE(x, low, len) P2PHASE((x) >> (low), 1ULL << (len)) argument 18 #define BF32_ENCODE(x, low, len) (P2PHASE((x), 1U << (len)) << (low)) argument 19 #define BF64_ENCODE(x, low, len) (P2PHASE((x), 1ULL << (len)) << (low)) argument 21 #define BF32_GET(x, low, len) BF32_DECODE(x, low, len) argument 22 #define BF64_GET(x, low, len) BF64_DECODE(x, low, len) argument 25 ((x) ^= BF32_ENCODE((x >> low) ^ (val), low, len)) 27 ((x) ^= BF64_ENCODE((x >> low) ^ (val), low, len)) 184 #define BP_SET_TYPE(bp, x) BF64_SET((bp)->blk_prop, 48, 8, x) argument 187 #define BP_SET_LEVEL(bp, x) BF64_SET((bp)->blk_prop, 56, 5, x) argument [all …]
|