/titanic_41/usr/src/uts/common/sys/fs/ |
H A D | hsfs_spec.h | 52 #define ZERO(x) (uint_t)(((uchar_t *)(x))[0]) argument 53 #define ONE(x) (uint_t)(((uchar_t *)(x))[1]) argument 54 #define TWO(x) (uint_t)(((uchar_t *)(x))[2]) argument 55 #define THREE(x) (uint_t)(((uchar_t *)(x))[3]) argument 57 #define MSB_INT(x) \ argument 58 ((((((ZERO(x) << 8) | ONE(x)) << 8) | TWO(x)) << 8) | THREE(x)) 59 #define LSB_INT(x) \ argument 60 ((((((THREE(x) << 8) | TWO(x)) << 8) | ONE(x)) << 8) | ZERO(x)) 61 #define MSB_SHORT(x) ((ZERO(x) << 8) | ONE(x)) argument 62 #define LSB_SHORT(x) ((ONE(x) << 8) | ZERO(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 44 ((((((ZERO(x) << 8) | ONE(x)) << 8) | TWO(x)) << 8) | THREE(x)) 45 #define LSB_INT(x) \ argument 46 ((((((THREE(x) << 8) | TWO(x)) << 8) | ONE(x)) << 8) | ZERO(x)) 47 #define MSB_SHORT(x) ((ZERO(x) << 8) | ONE(x)) argument 48 #define LSB_SHORT(x) ((ONE(x) << 8) | ZERO(x)) argument [all …]
|
H A D | hsfs_rrip.h | 110 #define RRIP_TF_FLAGS(x) *(RRIP_tf_flags(x)) argument 111 #define RRIP_tf_flags(x) (&((uchar_t *)(x))[4]) argument 115 #define RRIP_TF_TIME_LENGTH(x) (IS_TIME_BIT_SET(RRIP_TF_FLAGS(x), \ argument 133 #define RRIP_tf_creation(x) (&((uchar_t *)x)[RRIP_TIME_START_BP]) argument 134 #define RRIP_tf_modify(x) (&((uchar_t *)x)[RRIP_TIME_START_BP + \ argument 135 (RRIP_TF_TIME_LENGTH(x) * \ 136 (IS_TIME_BIT_SET(RRIP_TF_FLAGS(x), \ 139 #define RRIP_tf_access(x) (&((uchar_t *)x)[RRIP_TIME_START_BP + \ argument 140 (RRIP_TF_TIME_LENGTH(x) * \ 141 (IS_TIME_BIT_SET(RRIP_TF_FLAGS(x), \ [all …]
|
H A D | hsfs_susp.h | 90 #define SUF_LEN(x) *(SUF_len(x)) /* SUF length */ argument 91 #define SUF_len(x) (&((uchar_t *)x)[2]) /* SUF length */ argument 93 #define SUF_VER(x) *(SUF_ver(x)) /* SUF version */ argument 94 #define SUF_ver(x) (&((uchar_t *)x)[3]) /* SUF version */ argument 100 #define ER_ID_LEN(x) *(ER_id_len(x)) /* Extension ref id length */ argument 101 #define ER_id_len(x) (&((uchar_t *)x)[4]) /* Extension ref id length */ argument 104 #define ER_DES_LEN(x) *(ER_des_len(x)) /* Extension ref description */ argument 106 #define ER_des_len(x) (&((uchar_t *)x)[5]) /* Extension ref description */ argument 109 #define ER_SRC_LEN(x) *(ER_src_len(x)) /* Extension ref source */ argument 112 #define ER_src_len(x) (&((uchar_t *)x)[6]) /* Extension ref source */ argument [all …]
|
/titanic_41/usr/src/uts/common/io/cxgbe/common/ |
H A D | t4_regs.h | 274 #define V_QID(x) ((x) << S_QID) argument 275 #define G_QID(x) (((x) >> S_QID) & M_QID) argument 278 #define V_DBPRIO(x) ((x) << S_DBPRIO) argument 283 #define V_PIDX(x) ((x) << S_PIDX) argument 284 #define G_PIDX(x) (((x) >> S_PIDX) & M_PIDX) argument 291 #define V_INGRESSQID(x) ((x) << S_INGRESSQID) argument 292 #define G_INGRESSQID(x) (((x) >> S_INGRESSQID) & M_INGRESSQID) argument 296 #define V_TIMERREG(x) ((x) << S_TIMERREG) argument 297 #define G_TIMERREG(x) (((x) >> S_TIMERREG) & M_TIMERREG) argument 300 #define V_SEINTARM(x) ((x) << S_SEINTARM) argument [all …]
|
H A D | t4_tcb.h | 32 #define V_TCB_ULP_TYPE(x) ((x) << S_TCB_ULP_TYPE) argument 38 #define V_TCB_ULP_RAW(x) ((x) << S_TCB_ULP_RAW) argument 44 #define V_TCB_L2T_IX(x) ((x) << S_TCB_L2T_IX) argument 50 #define V_TCB_SMAC_SEL(x) ((x) << S_TCB_SMAC_SEL) argument 56 #define V_TCB_T_FLAGS(x) ((__u64)(x) << S_TCB_T_FLAGS) argument 62 #define V_TCB_RSS_INFO(x) ((x) << S_TCB_RSS_INFO) argument 68 #define V_TCB_TOS(x) ((x) << S_TCB_TOS) argument 74 #define V_TCB_T_STATE(x) ((x) << S_TCB_T_STATE) argument 80 #define V_TCB_MAX_RT(x) ((x) << S_TCB_MAX_RT) argument 86 #define V_TCB_T_MAXSEG(x) ((x) << S_TCB_T_MAXSEG) argument [all …]
|
H A D | t4_msg.h | 244 #define V_CPL_OPCODE(x) ((x) << S_CPL_OPCODE) argument 245 #define G_CPL_OPCODE(x) (((x) >> S_CPL_OPCODE) & 0xFF) argument 246 #define G_TID(x) ((x) & 0xFFFFFF) argument 259 #define V_TID_TID(x) ((x) << S_TID_TID) argument 260 #define G_TID_TID(x) (((x) >> S_TID_TID) & M_TID_TID) argument 264 #define V_TID_QID(x) ((x) << S_TID_QID) argument 265 #define G_TID_QID(x) (((x) >> S_TID_QID) & M_TID_QID) argument 313 #define G_HASHTYPE(x) (((x) >> S_HASHTYPE) & M_HASHTYPE) argument 317 #define G_QNUM(x) (((x) >> S_QNUM) & M_QNUM) argument 329 #define V_WR_LEN16(x) ((x) << S_WR_LEN16) argument [all …]
|
/titanic_41/usr/src/uts/common/io/chxge/com/ |
H A D | regs.h | 30 #define V_CMDQ0_ENABLE(x) ((x) << S_CMDQ0_ENABLE) argument 34 #define V_CMDQ1_ENABLE(x) ((x) << S_CMDQ1_ENABLE) argument 38 #define V_FL0_ENABLE(x) ((x) << S_FL0_ENABLE) argument 42 #define V_FL1_ENABLE(x) ((x) << S_FL1_ENABLE) argument 46 #define V_CPL_ENABLE(x) ((x) << S_CPL_ENABLE) argument 50 #define V_RESPONSE_QUEUE_ENABLE(x) ((x) << S_RESPONSE_QUEUE_ENABLE) argument 55 #define V_CMDQ_PRIORITY(x) ((x) << S_CMDQ_PRIORITY) argument 56 #define G_CMDQ_PRIORITY(x) (((x) >> S_CMDQ_PRIORITY) & M_CMDQ_PRIORITY) argument 59 #define V_DISABLE_CMDQ0_GTS(x) ((x) << S_DISABLE_CMDQ0_GTS) argument 63 #define V_DISABLE_CMDQ1_GTS(x) ((x) << S_DISABLE_CMDQ1_GTS) argument [all …]
|
H A D | fpga_defs.h | 80 #define V_MI0_CLK_DIV(x) ((x) << S_MI0_CLK_DIV) argument 81 #define G_MI0_CLK_DIV(x) (((x) >> S_MI0_CLK_DIV) & M_MI0_CLK_DIV) argument 85 #define V_MI0_CLK_CNT(x) ((x) << S_MI0_CLK_CNT) argument 86 #define G_MI0_CLK_CNT(x) (((x) >> S_MI0_CLK_CNT) & M_MI0_CLK_CNT) argument 91 #define V_MI0_CSR_POLL(x) ((x) << S_MI0_CSR_POLL) argument 95 #define V_MI0_PREAMBLE(x) ((x) << S_MI0_PREAMBLE) argument 99 #define V_MI0_INTR_ENABLE(x) ((x) << S_MI0_INTR_ENABLE) argument 103 #define V_MI0_BUSY(x) ((x) << S_MI0_BUSY) argument 107 #define V_MI0_MDIO(x) ((x) << S_MI0_MDIO) argument 114 #define V_MI0_PHY_REG_ADDR(x) ((x) << S_MI0_PHY_REG_ADDR) argument [all …]
|
/titanic_41/usr/src/lib/libshell/common/tests/ |
H A D | sun_solaris_builtin_sum.sh | 45 typeset x 50 x="$(print 'hello' | /usr/bin/sum)" || err_exit "/usr/bin/sum pipe failed." 51 [[ "$x" == "542 1" ]] || err_exit "print 'hello' | /usr/bin/sum did not return 542 1, got $x" 52 x="$(print 'hello' | sum)" || err_exit "sum builtin pipe failed." 53 [[ "$x" == "542 1" ]] || err_exit "print 'hello' | sum builtin did not return 542 1, got $x" 54 x="$(print 'hello' | sum -x md5)" || err_exit "sum md5 builtin pipe failed." 55 …[ "$x" == "b1946ac92492d2347c6235b4d2611184" ]] || err_exit "print 'hello' | sum md5 builtin did n… 56 x="$(print 'hello' | sum -x sha1)" || err_exit "sum sha1 builtin pipe failed." 57 …x" == "f572d396fae9206628714fb2ce00f72e94f2258f" ]] || err_exit "print 'hello' | sum sha1 builtin … 58 x="$(print 'hello' | sum -x sha256)" || err_exit "sum sha256 builtin pipe failed." [all …]
|
/titanic_41/usr/src/uts/common/io/cxgbe/firmware/ |
H A D | t4fw_interface.h | 129 #define V_FW_WR_OP(x) ((x) << S_FW_WR_OP) argument 130 #define G_FW_WR_OP(x) (((x) >> S_FW_WR_OP) & M_FW_WR_OP) argument 135 #define V_FW_WR_ATOMIC(x) ((x) << S_FW_WR_ATOMIC) argument 136 #define G_FW_WR_ATOMIC(x) \ argument 137 (((x) >> S_FW_WR_ATOMIC) & M_FW_WR_ATOMIC) 146 #define V_FW_WR_FLUSH(x) ((x) << S_FW_WR_FLUSH) argument 147 #define G_FW_WR_FLUSH(x) \ argument 148 (((x) >> S_FW_WR_FLUSH) & M_FW_WR_FLUSH) 154 #define V_FW_WR_COMPL(x) ((x) << S_FW_WR_COMPL) argument 155 #define G_FW_WR_COMPL(x) \ argument [all …]
|
/titanic_41/usr/src/common/crypto/aes/amd64/ |
H A D | aes_amd64.s | 223 #define f2(x) [[x<<1]^[[[x>>7]&1]*0x11b]] argument 224 #define f4(x) [[x<<2]^[[[x>>6]&1]*0x11b]^[[[x>>6]&2]*0x11b]] argument 225 #define f8(x) [[x<<3]^[[[x>>5]&1]*0x11b]^[[[x>>5]&2]*0x11b]^[[[x>>5]&4]*0x11b]] argument 229 #define f3(x) [[f2(x)] ^ [x]] argument 230 #define f9(x) [[f8(x)] ^ [x]] argument 231 #define fb(x) [[f8(x)] ^ [f2(x)] ^ [x]] argument 232 #define fd(x) [[f8(x)] ^ [f4(x)] ^ [x]] argument 233 #define fe(x) [[f8(x)] ^ [f4(x)] ^ [f2(x)]] argument 237 #define u8(x) [f2(x)], [x], [x], [f3(x)], [f2(x)], [x], [x], [f3(x)] argument 238 #define v8(x) [fe(x)], [f9(x)], [fd(x)], [fb(x)], [fe(x)], [f9(x)], [fd(x)], [x] argument [all …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_compat.h | 18 # define __P(x) x argument 20 # define __P(x) () argument 243 # define ATOMIC_INCL(x) atomic_inc_ulong((uint32_t *)&(x)) argument 244 # define ATOMIC_DECL(x) atomic_dec_ulong((uint32_t *)&(x)) argument 246 # define ATOMIC_INCL(x) atomic_inc_ulong(&(x)) argument 247 # define ATOMIC_DECL(x) atomic_dec_ulong(&(x)) argument 249 # define ATOMIC_INC64(x) atomic_inc_64((uint64_t *)&(x)) argument 250 # define ATOMIC_INC32(x) atomic_inc_32((uint32_t *)&(x)) argument 251 # define ATOMIC_INC16(x) atomic_inc_16((uint16_t *)&(x)) argument 252 # define ATOMIC_DEC64(x) atomic_dec_64((uint64_t *)&(x)) argument [all …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libm1/common/ |
H A D | libmv1.c | 96 __libm__rem_pio2(double x, double *y) { in __libm__rem_pio2() argument 102 __libm__rem_pio2m(double *x, double *y, int e0, int nx, int p, const int *ip) { in __libm__rem_pio2m() argument 108 __acos(double x) { in __acos() argument 114 __acosh(double x) { in __acosh() argument 120 __asin(double x) { in __asin() argument 126 __asinh(double x) { in __asinh() argument 132 __atan(double x) { in __atan() argument 138 __atan2(double y, double x) { in __atan2() argument 144 __atanh(double x) { in __atanh() argument 150 __cbrt(double x) { in __cbrt() argument [all …]
|
/titanic_41/usr/src/cmd/audio/include/ |
H A D | AudioTypes.h | 84 inline Boolean(aud_bool_t x = FALSE): value(x) // Constructor in value() argument 86 inline Boolean(int x) // Constructor from int in Boolean() argument 87 { value = (x == 0) ? FALSE : TRUE; } in Boolean() 88 inline Boolean operator=(int x) // Assignment from int 89 { return (value = (x == 0) ? FALSE : TRUE); } 106 FileAccess(fileaccess_t x = NoAccess): mode(x) { } // Constructor in mode() argument 138 Double(double x = 0.): val(x) { } in val() argument 139 Double(const Double &x): val(x.val) { } in Double() argument 153 inline double min(const Double& x, const Double& y) { in min() argument 154 return (((double)x < (double)y) ? (double)x : (double)y); in min() [all …]
|
/titanic_41/usr/src/cmd/oawk/ |
H A D | parse.c | 34 register NODE *x; in nodealloc() local 35 x = (NODE *) malloc(sizeof (NODE) + (n-1)*sizeof (NODE *)); in nodealloc() 36 if (x == NULL) in nodealloc() 38 return (x); in nodealloc() 55 register NODE *x; in node0() local 56 x = nodealloc(0); in node0() 57 x->nnext = NULL; in node0() 58 x->nobj = a; in node0() 59 return (x); in node0() 67 register NODE *x; local [all …]
|
H A D | run.c | 96 CELL *x; in execute() local 107 x = (*proc)(a->narg, a->nobj); in execute() 108 if (isfld(x)) in execute() 111 return (x); in execute() 113 if (isjump(x)) in execute() 114 return (x); in execute() 116 return (x); in execute() 117 tempfree(x); in execute() 127 CELL *x; in program() local 130 x = execute(a[0]); in program() [all …]
|
/titanic_41/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 111 (((uint32_t)(x) << 8) & 0xff0000) | \ [all …]
|
H A D | sysmacros.h | 74 #define BYTE_TO_BCD(x) byte_to_bcd[(x) & 0xff] argument 75 #define BCD_TO_BYTE(x) bcd_to_byte[(x) & 0xff] argument 120 #define major(x) (major_t)((((unsigned)(x)) >> O_BITSMINOR) & O_MAXMAJ) argument 121 #define bmajor(x) (major_t)((((unsigned)(x)) >> O_BITSMINOR) & O_MAXMAJ) argument 125 #define getmajor(x) (major_t)((((dev_t)(x)) >> L_BITSMINOR) & L_MAXMAJ) argument 129 #define minor(x) (minor_t)((x) & O_MAXMIN) argument 133 #define getminor(x) (minor_t)((x) & L_MAXMIN) argument 139 #define major(x) (major_t)((((unsigned)(x)) >> O_BITSMINOR) & O_MAXMAJ) argument 143 #define minor(x) (minor_t)((x) & O_MAXMIN) argument 149 #define makedev(x, y) (unsigned short)(((x) << O_BITSMINOR) | ((y) & O_MAXMIN)) argument [all …]
|
/titanic_41/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() argument 48 u32_t diff = _ABS_DIFF(x,y); in _cyclic_lt() 49 return (diff < d) ? x < y : x > y; in _cyclic_lt() 52 static __inline u8_t _cyclic_le(u32_t x, u32_t y, u32_t d) in _cyclic_le() argument 54 u32_t diff = _ABS_DIFF(x,y); in _cyclic_le() 55 return (diff < d) ? x <= y : x >= y; 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 [all …]
|
/titanic_41/usr/src/lib/libbc/inc/include/sun4/ |
H A D | a.out.h | 50 #define N_BADMAG(x) \ argument 51 ((x).a_magic!=OMAGIC && (x).a_magic!=NMAGIC && (x).a_magic!=ZMAGIC) 60 #define N_PAGSIZ(x) \ argument 61 ((x).a_machtype == M_OLDSUN2? OLD_PAGSIZ : PAGSIZ) 62 #define N_SEGSIZ(x) \ argument 63 ((x).a_machtype == M_OLDSUN2? OLD_SEGSIZ : SEGSIZ) 69 #define N_TXTOFF(x) \ argument 71 ( (x).a_machtype == M_OLDSUN2 \ 72 ? ((x).a_magic==ZMAGIC ? N_PAGSIZ(x) : sizeof (struct exec)) \ 73 : ((x).a_magic==ZMAGIC ? 0 : sizeof (struct exec)) ) [all …]
|
/titanic_41/usr/src/lib/libast/common/uwin/ |
H A D | support.c | 95 extern double _scalb(x,N) 96 double x; double N; 101 unsigned short *px=(unsigned short *) &x + 3; 103 unsigned short *px=(unsigned short *) &x; 106 if( x == zero ) return(x); 113 return(copysign(infnan(ERANGE),x)); 119 x *= scalb(1.0,prep1); N -= prep1; return(scalb(x,N));} 124 else x=novf+novf; /* overflow */ 128 {*px=(*px&~mexp)|(short)(1<<gap); x *= scalb(1.0,k-1);} 132 return(x); [all …]
|
/titanic_41/usr/src/lib/libm/common/C/ |
H A D | j1.c | 92 j1(GENERIC x) { in j1() argument 96 if (!finite(x)) in j1() 97 return (one/x); in j1() 98 sgn = signbit(x); in j1() 99 x = fabs(x); in j1() 100 if (x > 8.00) { in j1() 101 s = sin(x); in j1() 102 c = cos(x); in j1() 115 if (x > 8.9e307) { /* x+x may overflow */ in j1() 120 ss = cos(x+x)/cc; in j1() [all …]
|