/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | hsfs_spec.h | 50 #define ZERO(x) (uint_t)(((uchar_t *)(x))[0]) argument 51 #define ONE(x) (uint_t)(((uchar_t *)(x))[1]) argument 52 #define TWO(x) (uint_t)(((uchar_t *)(x))[2]) argument 53 #define THREE(x) (uint_t)(((uchar_t *)(x))[3]) argument 55 #define MSB_INT(x) \ argument 57 #define LSB_INT(x) \ argument 59 #define MSB_SHORT(x) ((ZERO(x) << 8) | ONE(x)) argument 60 #define LSB_SHORT(x) ((ONE(x) << 8) | ZERO(x)) argument 63 #define BOTH_SHORT(x) (short)*((short *)x) argument 64 #define BOTH_INT(x) (int)*((int *)x) argument [all …]
|
H A D | hsfs_isospec.h | 38 #define ZERO(x) (uint_t)(((uchar_t *)(x))[0]) argument 39 #define ONE(x) (uint_t)(((uchar_t *)(x))[1]) argument 40 #define TWO(x) (uint_t)(((uchar_t *)(x))[2]) argument 41 #define THREE(x) (uint_t)(((uchar_t *)(x))[3]) argument 43 #define MSB_INT(x) \ argument 45 #define LSB_INT(x) \ argument 47 #define MSB_SHORT(x) ((ZERO(x) << 8) | ONE(x)) argument 48 #define LSB_SHORT(x) ((ONE(x) << 8) | ZERO(x)) argument 51 #define BOTH_SHORT(x) (short)*((short *)x) argument 52 #define BOTH_INT(x) (int)*((int *)x) argument [all …]
|
H A D | hsfs_rrip.h | 108 #define RRIP_TF_FLAGS(x) *(RRIP_tf_flags(x)) argument 109 #define RRIP_tf_flags(x) (&((uchar_t *)(x))[4]) argument 113 #define RRIP_TF_TIME_LENGTH(x) (IS_TIME_BIT_SET(RRIP_TF_FLAGS(x), \ argument 131 #define RRIP_tf_creation(x) (&((uchar_t *)x)[RRIP_TIME_START_BP]) argument 132 #define RRIP_tf_modify(x) (&((uchar_t *)x)[RRIP_TIME_START_BP + \ argument 137 #define RRIP_tf_access(x) (&((uchar_t *)x)[RRIP_TIME_START_BP + \ argument 144 #define RRIP_tf_attributes(x) (&((uchar_t *)x)[RRIP_TIME_START_BP + \ argument 161 #define IS_TIME_BIT_SET(x, y) (((x) & (y)) ? 1 : 0) argument 162 #define SET_TIME_BIT(x, y) ((x) |= (y)) argument 168 #define RRIP_mode(x) (&((uchar_t *)x)[4]) argument [all …]
|
/illumos-gate/usr/src/head/ |
H A D | tgmath.h | 41 #define acos(x) __tgmath_acos(x) argument 43 #define asin(x) __tgmath_asin(x) argument 45 #define atan(x) __tgmath_atan(x) argument 47 #define acosh(x) __tgmath_acosh(x) argument 49 #define asinh(x) __tgmath_asinh(x) argument 51 #define atanh(x) __tgmath_atanh(x) argument 53 #define cos(x) __tgmath_cos(x) argument 55 #define sin(x) __tgmath_sin(x) argument 57 #define tan(x) __tgmath_tan(x) argument 59 #define cosh(x) __tgmath_cosh(x) argument [all …]
|
/illumos-gate/usr/src/lib/libm1/common/ |
H A D | libmv1.c | 96 __libm__rem_pio2(double x, double *y) { in __libm__rem_pio2() 102 __libm__rem_pio2m(double *x, double *y, int e0, int nx, int p, const int *ip) { in __libm__rem_pio2m() 108 __acos(double x) { in __acos() 114 __acosh(double x) { in __acosh() 120 __asin(double x) { in __asin() 126 __asinh(double x) { in __asinh() 132 __atan(double x) { in __atan() 138 __atan2(double y, double x) { in __atan2() 144 __atanh(double x) { in __atanh() 150 __cbrt(double x) { in __cbrt() [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | regs.h | 28 #define V_CMDQ0_ENABLE(x) ((x) << S_CMDQ0_ENABLE) argument 32 #define V_CMDQ1_ENABLE(x) ((x) << S_CMDQ1_ENABLE) argument 36 #define V_FL0_ENABLE(x) ((x) << S_FL0_ENABLE) argument 40 #define V_FL1_ENABLE(x) ((x) << S_FL1_ENABLE) argument 44 #define V_CPL_ENABLE(x) ((x) << S_CPL_ENABLE) argument 48 #define V_RESPONSE_QUEUE_ENABLE(x) ((x) << S_RESPONSE_QUEUE_ENABLE) argument 53 #define V_CMDQ_PRIORITY(x) ((x) << S_CMDQ_PRIORITY) argument 54 #define G_CMDQ_PRIORITY(x) (((x) >> S_CMDQ_PRIORITY) & M_CMDQ_PRIORITY) argument 57 #define V_DISABLE_CMDQ0_GTS(x) ((x) << S_DISABLE_CMDQ0_GTS) argument 61 #define V_DISABLE_CMDQ1_GTS(x) ((x) << S_DISABLE_CMDQ1_GTS) argument [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/common/ |
H A D | t4_regs.h | 497 #define V_QID(x) ((x) << S_QID) argument 498 #define G_QID(x) (((x) >> S_QID) & M_QID) argument 501 #define V_DBPRIO(x) ((x) << S_DBPRIO) argument 506 #define V_PIDX(x) ((x) << S_PIDX) argument 507 #define G_PIDX(x) (((x) >> S_PIDX) & M_PIDX) argument 512 #define V_DBTYPE(x) ((x) << S_DBTYPE) argument 517 #define V_PIDX_T5(x) ((x) << S_PIDX_T5) argument 518 #define G_PIDX_T5(x) (((x) >> S_PIDX_T5) & M_PIDX_T5) argument 521 #define V_SYNC_T6(x) ((x) << S_SYNC_T6) argument 528 #define V_INGRESSQID(x) ((x) << S_INGRESSQID) argument [all …]
|
H A D | t4_msg.h | 293 #define V_CPL_OPCODE(x) ((x) << S_CPL_OPCODE) argument 294 #define G_CPL_OPCODE(x) (((x) >> S_CPL_OPCODE) & 0xFF) argument 295 #define G_TID(x) ((x) & 0xFFFFFF) argument 308 #define V_TID_TID(x) ((x) << S_TID_TID) argument 309 #define G_TID_TID(x) (((x) >> S_TID_TID) & M_TID_TID) argument 313 #define V_TID_QID(x) ((x) << S_TID_QID) argument 314 #define G_TID_QID(x) (((x) >> S_TID_QID) & M_TID_QID) argument 362 #define G_HASHTYPE(x) (((x) >> S_HASHTYPE) & M_HASHTYPE) argument 366 #define G_QNUM(x) (((x) >> S_QNUM) & M_QNUM) argument 384 #define V_WR_LEN16(x) ((x) << S_WR_LEN16) argument [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | bool-cast-restricted.c | 4 _Bool lfoo(large_t x) { return x; } in lfoo() 5 _Bool qfoo(large_t x) { _Bool r = x; return r; } in qfoo() 6 _Bool xfoo(large_t x) { return (_Bool)x; } in xfoo() 7 _Bool lbar(large_t x) { return ~x; } in lbar() 8 _Bool qbar(large_t x) { _Bool r = ~x; return r; } in qbar() 9 _Bool xbar(large_t x) { return (_Bool)~x; } in xbar() 10 _Bool lbaz(large_t x) { return !x; } in lbaz() 11 _Bool qbaz(large_t x) { _Bool r = !x; return r; } in qbaz() 12 _Bool xbaz(large_t x) { return (_Bool)!x; } in xbaz() 13 _Bool lqux(large_t x) { return x & LBIT; } in lqux() [all …]
|
/illumos-gate/usr/src/uts/common/sys/usb/hcd/xhci/ |
H A D | xhcireg.h | 61 #define XHCI_VERSION_MASK(x) (((x) >> 16) & 0xffff) argument 67 #define XHCI_HCS1_DEVSLOT_MAX(x) ((x) & 0xFF) argument 68 #define XHCI_HCS1_IRQ_MAX(x) (((x) >> 8) & 0x3FF) argument 69 #define XHCI_HCS1_N_PORTS(x) (((x) >> 24) & 0xFF) argument 75 #define XHCI_HCS2_IST(x) ((x) & 0x7) argument 76 #define XHCI_HCS2_IST_MICRO(x) (!((x) & 0x8)) argument 77 #define XHCI_HCS2_ERST_MAX(x) (((x) >> 4) & 0xF) argument 78 #define XHCI_HCS2_SPR(x) (((x) >> 24) & 0x1) argument 79 #define XHCI_HCS2_SPB_MAX(x) ((((x) >> 16) & 0x3e0) | (((x) >> 27) & 0x1f)) argument 85 #define XHCI_HCS3_U1_DEL(x) ((x) & 0xFF) argument [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/backend/ |
H A D | arithmetic-ops.c | 1 static int add(int x, int y) in add() 6 static unsigned int uadd(unsigned int x, unsigned int y) in uadd() 11 static float fadd(float x, float y) in fadd() 16 static double dadd(double x, double y) in dadd() 21 static int sub(int x, int y) in sub() 26 static unsigned int usub(unsigned int x, unsigned int y) in usub() 31 static float fsub(float x, float y) in fsub() 36 static double dsub(double x, double y) in dsub() 41 static int mul(int x, int y) in mul() 46 static unsigned int umul(unsigned int x, unsigned int y) in umul() [all …]
|
H A D | cmp-ops.c | 1 static int sete(int x, int y) in sete() 6 static int setne(int x, int y) in setne() 11 static int setl(int x, int y) in setl() 16 static int setg(int x, int y) in setg() 21 static int setle(int x, int y) in setle() 26 static int setge(int x, int y) in setge() 31 static int setb(unsigned int x, unsigned int y) in setb() 36 static int seta(unsigned int x, unsigned int y) in seta() 41 static int setbe(unsigned int x, unsigned int y) in setbe() 46 static int setae(unsigned int x, unsigned int y) in setae() [all …]
|
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
H A D | pmcs_mpi.h | 34 #define PMCS_DWRD(x) (x << 2) argument 60 #define PMCS_MSGL(x) (x & 0xffff) argument 61 #define PMCS_MD(x) ((x >> 16) & 0xffff) argument 65 #define PMCS_MNIQ(x) (x & 0xff) /* Max # of Inbound Queues */ argument 66 #define PMCS_MNOQ(x) ((x >> 8) & 0xff) /* Max # of Outbound Queues */ argument 67 #define PMCS_HPIQ(x) ((x >> 16) & 0x1) /* High Pri Queue Supported */ argument 68 #define PMCS_ICS(x) ((x >> 18) & 0x1) /* Interrupt Coalescing */ argument 69 #define PMCS_NPHY(x) ((x >> 19) & 0x3f) /* Numbers of PHYs */ argument 70 #define PMCS_SASREV(x) ((x >> 25) & 0x7) /* SAS Revision Specification */ argument 173 #define PMCS_GST_PHY_INFO(x) (PMCS_GST_BASE + PMCS_DWRD(0x6) + PMCS_DWRD(x)) argument [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/ |
H A D | cyclic_oper.h | 44 #define _ABS_DIFF(x, y) ((x) > (y) ? (x) - (y) : (y) - (x)) argument 46 static __inline u8_t _cyclic_lt(u32_t x, u32_t y, u32_t d) in _cyclic_lt() 52 static __inline u8_t _cyclic_le(u32_t x, u32_t y, u32_t d) in _cyclic_le() 58 #define CYCLIC_LT_8(x, y) (_cyclic_lt(x, y, 128)) argument 59 #define CYCLIC_LT_16(x, y) (_cyclic_lt(x, y, 32768)) argument 60 #define CYCLIC_LT_24(x, y) (_cyclic_lt(x, y, 8388608)) argument 61 #define CYCLIC_LT_32(x, y) (_cyclic_lt(x, y, 2147483648)) argument 63 #define CYCLIC_LE_8(x, y) (_cyclic_le(x, y, 128)) argument 64 #define CYCLIC_LE_16(x, y) (_cyclic_le(x, y, 32768)) argument 65 #define CYCLIC_LE_24(x, y) (_cyclic_le(x, y, 8388608)) argument [all …]
|
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_compat.h | 18 # define __P(x) x argument 20 # define __P(x) () argument 248 # define ATOMIC_INCL(x) atomic_inc_ulong((uint32_t *)&(x)) argument 249 # define ATOMIC_DECL(x) atomic_dec_ulong((uint32_t *)&(x)) argument 251 # define ATOMIC_INCL(x) atomic_inc_ulong(&(x)) argument 252 # define ATOMIC_DECL(x) atomic_dec_ulong(&(x)) argument 254 # define ATOMIC_INC64(x) atomic_inc_64((uint64_t *)&(x)) argument 255 # define ATOMIC_INC32(x) atomic_inc_32((uint32_t *)&(x)) argument 256 # define ATOMIC_INC16(x) atomic_inc_16((uint16_t *)&(x)) argument 257 # define ATOMIC_DEC64(x) atomic_dec_64((uint64_t *)&(x)) argument [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_xhci.h | 92 #define XHCI_SCTX_0_ROUTE_SET(x) ((x) & 0xFFFFF) argument 93 #define XHCI_SCTX_0_ROUTE_GET(x) ((x) & 0xFFFFF) argument 94 #define XHCI_SCTX_0_SPEED_SET(x) (((x) & 0xF) << 20) argument 95 #define XHCI_SCTX_0_SPEED_GET(x) (((x) >> 20) & 0xF) argument 96 #define XHCI_SCTX_0_MTT_SET(x) (((x) & 0x1) << 25) argument 97 #define XHCI_SCTX_0_MTT_GET(x) (((x) >> 25) & 0x1) argument 98 #define XHCI_SCTX_0_HUB_SET(x) (((x) & 0x1) << 26) argument 99 #define XHCI_SCTX_0_HUB_GET(x) (((x) >> 26) & 0x1) argument 100 #define XHCI_SCTX_0_CTX_NUM_SET(x) (((x) & 0x1F) << 27) argument 101 #define XHCI_SCTX_0_CTX_NUM_GET(x) (((x) >> 27) & 0x1F) argument [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/optim/ |
H A D | shift-shift.c | 1 unsigned int shl0(unsigned int x) in shl0() 6 unsigned int shl1(unsigned int x) in shl1() 11 unsigned int shl2(unsigned int x) in shl2() 16 unsigned int shl3(unsigned int x) in shl3() 22 unsigned int lsr0(unsigned int x) in lsr0() 27 unsigned int lsr1(unsigned int x) in lsr1() 32 unsigned int lsr2(unsigned int x) in lsr2() 37 unsigned int lsr3(unsigned int x) in lsr3() 43 int asr0(int x) in asr0() 48 int asr1(int x) in asr1() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | little_bswap.h | 4 #define ntohl(x) __bswap_32(x) argument 5 #define htonl(x) __bswap_32(x) argument 6 #define ntohs(x) __bswap_16(x) argument 7 #define htons(x) __bswap_16(x) argument 8 #define cpu_to_le32(x) (x) argument 9 #define cpu_to_le16(x) (x) argument 10 #define cpu_to_be32(x) __bswap_32(x) argument 11 #define cpu_to_be16(x) __bswap_16(x) argument 12 #define le32_to_cpu(x) (x) argument 13 #define le16_to_cpu(x) (x) argument [all …]
|
H A D | big_bswap.h | 4 #define ntohl(x) (x) argument 5 #define htonl(x) (x) argument 6 #define ntohs(x) (x) argument 7 #define htons(x) (x) argument 8 #define cpu_to_le32(x) __bswap_32(x) argument 9 #define cpu_to_le16(x) __bswap_16(x) argument 10 #define cpu_to_be32(x) (x) argument 11 #define cpu_to_be16(x) (x) argument 12 #define le32_to_cpu(x) __bswap_32(x) argument 13 #define le16_to_cpu(x) __bswap_16(x) argument [all …]
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | endian.h | 59 #define bswap16(x) __bswap16(x) argument 60 #define bswap32(x) __bswap32(x) argument 61 #define bswap64(x) __bswap64(x) argument 68 #define htobe16(x) bswap16((x)) argument 69 #define htobe32(x) bswap32((x)) argument 70 #define htobe64(x) bswap64((x)) argument 71 #define htole16(x) ((uint16_t)(x)) argument 72 #define htole32(x) ((uint32_t)(x)) argument 73 #define htole64(x) ((uint64_t)(x)) argument 75 #define be16toh(x) bswap16((x)) argument [all …]
|
/illumos-gate/usr/src/contrib/bhyve/dev/usb/controller/ |
H A D | xhcireg.h | 49 #define XHCI_HCS1_DEVSLOT_MAX(x)((x) & 0xFF) argument 50 #define XHCI_HCS1_IRQ_MAX(x) (((x) >> 8) & 0x3FF) argument 51 #define XHCI_HCS1_N_PORTS(x) (((x) >> 24) & 0xFF) argument 53 #define XHCI_HCS2_IST(x) ((x) & 0xF) argument 54 #define XHCI_HCS2_ERST_MAX(x) (((x) >> 4) & 0xF) argument 55 #define XHCI_HCS2_SPR(x) (((x) >> 26) & 0x1) argument 56 #define XHCI_HCS2_SPB_MAX(x) ((((x) >> 16) & 0x3E0) | (((x) >> 27) & 0x1F)) argument 58 #define XHCI_HCS3_U1_DEL(x) ((x) & 0xFF) argument 59 #define XHCI_HCS3_U2_DEL(x) (((x) >> 16) & 0xFFFF) argument 61 #define XHCI_HCS0_AC64(x) ((x) & 0x1) /* 64-bit capable */ argument [all …]
|
/illumos-gate/usr/src/uts/common/netsmb/ |
H A D | mchain.h | 52 #define htoles(x) ((uint16_t)(x)) argument 53 #define letohs(x) ((uint16_t)(x)) argument 54 #define htolel(x) ((uint32_t)(x)) argument 55 #define letohl(x) ((uint32_t)(x)) argument 56 #define htoleq(x) ((uint64_t)(x)) argument 57 #define letohq(x) ((uint64_t)(x)) argument 65 #define htobes(x) BSWAP_16(x) argument 66 #define betohs(x) BSWAP_16(x) argument 67 #define htobel(x) BSWAP_32(x) argument 68 #define betohl(x) BSWAP_32(x) argument [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | byteorder.h | 61 #define ntohl(x) (x) argument 62 #define ntohs(x) (x) argument 63 #define htonl(x) (x) argument 64 #define htons(x) (x) argument 66 #define ntohll(x) (x) argument 67 #define htonll(x) (x) argument 107 #define BSWAP_8(x) ((x) & 0xff) argument 109 #define BSWAP_16(x) ((BSWAP_8(x) << 8) | BSWAP_8((x) >> 8)) argument 110 #define BSWAP_32(x) (((uint32_t)(x) << 24) | \ argument 121 #define BSWAP_64(x) (((uint64_t)(x) << 56) | \ argument [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/firmware/ |
H A D | t4fw_interface.h | 155 #define V_FW_WR_OP(x) ((x) << S_FW_WR_OP) argument 156 #define G_FW_WR_OP(x) (((x) >> S_FW_WR_OP) & M_FW_WR_OP) argument 162 #define V_FW_WR_ATOMIC(x) ((x) << S_FW_WR_ATOMIC) argument 163 #define G_FW_WR_ATOMIC(x) \ argument 172 #define V_FW_WR_FLUSH(x) ((x) << S_FW_WR_FLUSH) argument 173 #define G_FW_WR_FLUSH(x) \ argument 181 #define V_FW_WR_COMPL(x) ((x) << S_FW_WR_COMPL) argument 182 #define G_FW_WR_COMPL(x) \ argument 191 #define V_FW_WR_IMMDLEN(x) ((x) << S_FW_WR_IMMDLEN) argument 192 #define G_FW_WR_IMMDLEN(x) \ argument [all …]
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | byteorder.h | 36 #define swap32(x) \ argument 42 #define swap16(x) \ argument 50 #define CPU_TO_LE32(x) swap32(x) argument 51 #define CPU_TO_LE16(x) swap16(x) argument 52 #define CPU_TO_BE32(x) (x) argument 53 #define CPU_TO_BE16(x) (x) argument 61 #define LE32_TO_CPU(x) CPU_TO_LE32(x) argument 62 #define LE16_TO_CPU(x) CPU_TO_LE16(x) argument 63 #define BE32_TO_CPU(x) CPU_TO_BE32(x) argument 64 #define BE16_TO_CPU(x) CPU_TO_BE16(x) argument
|