/freebsd/bin/sh/tests/expansion/ |
H A D | trim9.0 | 9 code="$1" 24 testcase 'shift $#; set -- "${*#Q}"' '1|' 25 testcase 'shift $#; set -- "${*##Q}"' '1|' 26 testcase 'shift $#; set -- "${*%Q}"' '1|' 27 testcase 'shift $#; set -- "${*%%Q}"' '1|' 28 testcase 'set -- Q R; set -- "${*#Q}"' '1| R' 29 testcase 'set -- Q R; set -- "${*##Q}"' '1| R' 30 testcase 'set -- Q R; set -- "${*%R}"' '1|Q ' 31 testcase 'set -- Q R; set -- "${*%%R}"' '1|Q ' 32 testcase 'set -- Q R; set -- "${*#S}"' '1|Q R' [all …]
|
/freebsd/sys/sys/ |
H A D | qmath.h | 8 * 1. Redistributions of source code must retain the above copyright 28 * Data types and APIs for fixed-point math based on the "Q" number format. 33 * bits 1-2 specify the radix point shift index i.e. 00,01,10,11 == 1,2,3,4 34 * bit 3 specifies the radix point shift index multiplier as 2 (0) or 16 (1) 36 * This scheme can therefore represent Q numbers with [2,4,6,8,16,32,48,64] bits 61 #define Q_BT(q) __typeof(1 * q) argument 63 /* The underlying base type of 'q'. */ 64 #define Q_BT(q) __typeof(q) argument 67 /* Type-cast variable 'v' to the same underlying type as 'q'. */ 68 #define Q_TC(q, v) ((__typeof(q))(v)) argument [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | dma.c | 188 mt76_dma_sync_idx(struct mt76_dev *dev, struct mt76_queue *q) in mt76_dma_sync_idx() argument 190 Q_WRITE(dev, q, desc_base, q->desc_dma); in mt76_dma_sync_idx() 191 Q_WRITE(dev, q, ring_size, q->ndesc); in mt76_dma_sync_idx() 192 q->head = Q_READ(dev, q, dma_idx); in mt76_dma_sync_idx() 193 q->tail = q->head; in mt76_dma_sync_idx() 197 mt76_dma_queue_reset(struct mt76_dev *dev, struct mt76_queue *q) in mt76_dma_queue_reset() argument 201 if (!q || !q->ndesc) in mt76_dma_queue_reset() 205 for (i = 0; i < q->ndesc; i++) in mt76_dma_queue_reset() 206 q->desc[i].ctrl = cpu_to_le32(MT_DMA_CTL_DMA_DONE); in mt76_dma_queue_reset() 208 Q_WRITE(dev, q, cpu_idx, 0); in mt76_dma_queue_reset() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_xmit.c | 80 ar5211SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo) in ar5211SetTxQueueProps() argument 84 if (q >= HAL_NUM_TX_QUEUES) { in ar5211SetTxQueueProps() 86 __func__, q); in ar5211SetTxQueueProps() 89 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5211SetTxQueueProps() 96 ar5211GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo) in ar5211GetTxQueueProps() argument 100 if (q >= HAL_NUM_TX_QUEUES) { in ar5211GetTxQueueProps() 102 __func__, q); in ar5211GetTxQueueProps() 105 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5211GetTxQueueProps() 117 int q; in ar5211SetupTxQueue() local 121 q = 9; in ar5211SetupTxQueue() [all …]
|
/freebsd/crypto/openssl/test/recipes/04-test_pem_reading_data/ |
H A D | cert-onecolumn.pem | 12 Q 15 Q 33 q 43 Q 136 1 180 Q 195 1 239 1 264 Q 285 1 [all …]
|
H A D | dsa-onecolumn.pem | 11 Q 17 Q 42 q 75 q 83 Q 98 q 100 Q 103 1 137 q 185 q [all …]
|
/freebsd/usr.sbin/ypserv/ |
H A D | yp_dnslookup.c | 10 * 1. Redistributions of source code must retain the above copyright 81 len = strlen(addr) + 1 + strlen(hp->h_name); in parse() 83 len += strlen(hp->h_aliases[i]) + 1; in parse() 102 #define BY_DNS_ID 1 132 if (!(_res.options & RES_INIT) && res_init() == -1) { in yp_init_resolver() 134 return(1); in yp_init_resolver() 136 if ((resfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) { in yp_init_resolver() 138 return(1); in yp_init_resolver() 140 if (fcntl(resfd, F_SETFL, O_NONBLOCK) == -1) { in yp_init_resolver() 142 return(1); in yp_init_resolver() [all …]
|
/freebsd/contrib/netbsd-tests/fs/ffs/ |
H A D | t_quotalimit.sh | 9 # 1. Redistributions of source code must retain the above copyright 29 for v in 1; do 30 for q in "user" "group"; do 31 test_case_root limit_${e}_${v}_${q} limit_quota \ 32 "hit hard limit quota with ${q} enabled" -b ${e} ${v} ${q} 33 test_case_root limit_${e}_${v}_${q}_log limit_quota \ 34 "hit hard limit quota with ${q} enabled, WAPBL" -bl ${e} ${v} ${q} 35 test_case_root slimit_${e}_${v}_${q} limit_softquota \ 36 "hit soft limit quota with ${q} enabled after grace time" \ 37 -b ${e} ${v} ${q} [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | dn_sched_qfq.c | 10 * 1. Redistributions of source code must retain the above copyright 60 static void dump_sched(struct qfq_sched *q, const char *msg); 71 * NOTE: fls() returns 1 for the least significant bit, 80 for (i = 0; n > 0; n >>= 1, i++) in fls() 89 return fls(word) - 1; in __fls() 99 return *p & (1<<ix); in test_bit() 105 *p |= (1<<ix); in __set_bit() 111 *p &= ~(1<<ix); in __clear_bit() 115 #define test_bit(ix, pData) ((*pData) & (1<<(ix))) 116 #define __set_bit(ix, pData) (*pData) |= (1<<(ix)) [all …]
|
/freebsd/bin/sh/tests/parameters/ |
H A D | positional2.0 | 6 code="$1" 21 testcase 'set -- a b; set -- p$@q' '2|pa|bq' 22 testcase 'set -- a b; set -- $@q' '2|a|bq' 24 testcase 'set -- a b; set -- p$@q' '2|pa|bq' 25 testcase 'set -- a b; set -- $@q' '2|a|bq' 27 testcase 'set -- a b; set -- p$*q' '2|pa|bq' 28 testcase 'set -- a b; set -- $*q' '2|a|bq' 30 testcase 'set -- a b; set -- p$*q' '2|pa|bq' 31 testcase 'set -- a b; set -- $*q' '2|a|bq' 33 testcase 'set -- a b; set -- "p$@q"' '2|pa|bq' [all …]
|
/freebsd/contrib/unbound/libunbound/ |
H A D | context.c | 70 ctx_logfile_overridden = 1; in context_finalize() 89 if(!auth_zones_apply_cfg(ctx->env->auth_zones, cfg, 1, &is_rpz, in context_finalize() 117 ctx->finalized = 1; in context_finalize() 124 return -1; in context_query_cmp() 126 return 1; in context_query_cmp() 131 context_query_delete(struct ctx_query* q) in context_query_delete() argument 133 if(!q) return; in context_query_delete() 134 ub_resolve_free(q->res); in context_query_delete() 135 free(q->msg); in context_query_delete() 136 free(q); in context_query_delete() [all …]
|
/freebsd/contrib/bearssl/src/symcipher/ |
H A D | aes_ct64.c | 29 br_aes_ct64_bitslice_Sbox(uint64_t *q) in br_aes_ct64_bitslice_Sbox() argument 56 x0 = q[7]; in br_aes_ct64_bitslice_Sbox() 57 x1 = q[6]; in br_aes_ct64_bitslice_Sbox() 58 x2 = q[5]; in br_aes_ct64_bitslice_Sbox() 59 x3 = q[4]; in br_aes_ct64_bitslice_Sbox() 60 x4 = q[3]; in br_aes_ct64_bitslice_Sbox() 61 x5 = q[2]; in br_aes_ct64_bitslice_Sbox() 62 x6 = q[1]; in br_aes_ct64_bitslice_Sbox() 63 x7 = q[0]; in br_aes_ct64_bitslice_Sbox() 194 q[7] = s0; in br_aes_ct64_bitslice_Sbox() [all …]
|
H A D | aes_ct64_dec.c | 29 br_aes_ct64_bitslice_invSbox(uint64_t *q) in br_aes_ct64_bitslice_invSbox() argument 37 q0 = ~q[0]; in br_aes_ct64_bitslice_invSbox() 38 q1 = ~q[1]; in br_aes_ct64_bitslice_invSbox() 39 q2 = q[2]; in br_aes_ct64_bitslice_invSbox() 40 q3 = q[3]; in br_aes_ct64_bitslice_invSbox() 41 q4 = q[4]; in br_aes_ct64_bitslice_invSbox() 42 q5 = ~q[5]; in br_aes_ct64_bitslice_invSbox() 43 q6 = ~q[6]; in br_aes_ct64_bitslice_invSbox() 44 q7 = q[7]; in br_aes_ct64_bitslice_invSbox() 45 q[7] = q1 ^ q4 ^ q6; in br_aes_ct64_bitslice_invSbox() [all …]
|
H A D | aes_ct_dec.c | 29 br_aes_ct_bitslice_invSbox(uint32_t *q) in br_aes_ct_bitslice_invSbox() argument 51 q0 = ~q[0]; in br_aes_ct_bitslice_invSbox() 52 q1 = ~q[1]; in br_aes_ct_bitslice_invSbox() 53 q2 = q[2]; in br_aes_ct_bitslice_invSbox() 54 q3 = q[3]; in br_aes_ct_bitslice_invSbox() 55 q4 = q[4]; in br_aes_ct_bitslice_invSbox() 56 q5 = ~q[5]; in br_aes_ct_bitslice_invSbox() 57 q6 = ~q[6]; in br_aes_ct_bitslice_invSbox() 58 q7 = q[7]; in br_aes_ct_bitslice_invSbox() 59 q[7] = q1 ^ q4 ^ q6; in br_aes_ct_bitslice_invSbox() [all …]
|
H A D | aes_ct.c | 29 br_aes_ct_bitslice_Sbox(uint32_t *q) in br_aes_ct_bitslice_Sbox() argument 56 x0 = q[7]; in br_aes_ct_bitslice_Sbox() 57 x1 = q[6]; in br_aes_ct_bitslice_Sbox() 58 x2 = q[5]; in br_aes_ct_bitslice_Sbox() 59 x3 = q[4]; in br_aes_ct_bitslice_Sbox() 60 x4 = q[3]; in br_aes_ct_bitslice_Sbox() 61 x5 = q[2]; in br_aes_ct_bitslice_Sbox() 62 x6 = q[1]; in br_aes_ct_bitslice_Sbox() 63 x7 = q[0]; in br_aes_ct_bitslice_Sbox() 194 q[7] = s0; in br_aes_ct_bitslice_Sbox() [all …]
|
H A D | aes_ct_ctrcbc.c | 74 uint32_t q[8], carry; in br_aes_ct_ctrcbc_ctr() local 81 q[0] = br_swap32(iv0); in br_aes_ct_ctrcbc_ctr() 82 q[2] = br_swap32(iv1); in br_aes_ct_ctrcbc_ctr() 83 q[4] = br_swap32(iv2); in br_aes_ct_ctrcbc_ctr() 84 q[6] = br_swap32(iv3); in br_aes_ct_ctrcbc_ctr() 92 q[1] = br_swap32(iv0); in br_aes_ct_ctrcbc_ctr() 93 q[3] = br_swap32(iv1); in br_aes_ct_ctrcbc_ctr() 94 q[5] = br_swap32(iv2); in br_aes_ct_ctrcbc_ctr() 95 q[7] = br_swap32(iv3); in br_aes_ct_ctrcbc_ctr() 106 br_aes_ct_ortho(q); in br_aes_ct_ctrcbc_ctr() [all …]
|
/freebsd/lib/msun/tests/ |
H A D | rem_test.c | 8 * 1. Redistributions of source code must retain the above copyright 63 test(4, 4, 0, 1); in ATF_TC_BODY() 65 testd(0x1p-1074, 1, 0x1p-1074, 0); in ATF_TC_BODY() 66 testf(0x1p-149, 1, 0x1p-149, 0); in ATF_TC_BODY() 67 test(3.0, 4, -1, 1); in ATF_TC_BODY() 68 test(3.0, -4, -1, -1); in ATF_TC_BODY() 71 testf(0x1.9044f6p-1, 0x1.ce662ep-1, -0x1.f109cp-4, 1); in ATF_TC_BODY() 74 0x1.b72ea61d950c862p-2001L, -1); in ATF_TC_BODY() 99 testd(-0x1.0000000000003p+0, 0x1.0000000000003p+0, -0.0, -1); in ATF_TC_BODY() 100 testl(-0x1.0000000000003p+0, 0x1.0000000000003p+0, -0.0, -1); in ATF_TC_BODY() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_xmit.c | 36 ar5210SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo) in ar5210SetTxQueueProps() argument 40 if (q >= HAL_NUM_TX_QUEUES) { in ar5210SetTxQueueProps() 42 __func__, q); in ar5210SetTxQueueProps() 45 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5210SetTxQueueProps() 52 ar5210GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo) in ar5210GetTxQueueProps() argument 56 if (q >= HAL_NUM_TX_QUEUES) { in ar5210GetTxQueueProps() 58 __func__, q); in ar5210GetTxQueueProps() 61 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5210GetTxQueueProps() 73 int q; in ar5210SetupTxQueue() local 77 q = 2; in ar5210SetupTxQueue() [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | nmreplay.c | 7 * 1. Redistributions of source code must retain the above copyright 50 * within each function, q is used as a pointer to the queue holding 59 * q->cur_pkt points to the buffer containing the packet 60 * q->cur_len packet length, excluding CRC 61 * q->cur_caplen available packet length (may be shorter than cur_len) 62 * q->cur_tt transmission time for the packet, computed from the trace. 66 * q->c_loss (set with the -L command line option) decides 69 * The function is supposed to set q->c_drop = 1 if the 72 * q->c_bw (set with the -B command line option) is used to 74 * in q->cur_tt the transmission time (in nanoseconds) of [all …]
|
/freebsd/usr.sbin/pw/ |
H A D | pw_conf.c | 10 * 1. Redistributions of source code must retain the above copyright 75 "yes", "true", "1", "on", NULL 162 char *p = strchr(str + 1, *str); in unquote() 179 return 1; in boolean_val() 208 errx(1, "Invalid value for default password"); in passwd_val() 229 char *q; in newstr() local 234 if ((q = strdup(p)) == NULL) in newstr() 235 err(1, "strdup()"); in newstr() 237 return (q); in newstr() 258 char *q = strtok(NULL, toks); in read_userconfig() local [all …]
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_xmit.c | 97 ar9300_set_tx_queue_props(struct ath_hal *ah, int q, const HAL_TXQ_INFO *q_info) in ar9300_set_tx_queue_props() argument 102 if (q >= p_cap->halTotalQueues) { in ar9300_set_tx_queue_props() 103 HALDEBUG(ah, HAL_DEBUG_QUEUE, "%s: invalid queue num %u\n", __func__, q); in ar9300_set_tx_queue_props() 106 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], q_info); in ar9300_set_tx_queue_props() 113 ar9300_get_tx_queue_props(struct ath_hal *ah, int q, HAL_TXQ_INFO *q_info) in ar9300_get_tx_queue_props() argument 119 if (q >= p_cap->halTotalQueues) { in ar9300_get_tx_queue_props() 120 HALDEBUG(ah, HAL_DEBUG_QUEUE, "%s: invalid queue num %u\n", __func__, q); in ar9300_get_tx_queue_props() 123 return ath_hal_getTxQProps(ah, q_info, &ahp->ah_txq[q]); in ar9300_get_tx_queue_props() 127 AH_TX_QUEUE_MINUS_OFFSET_BEACON = 1, 143 int q; in ar9300_setup_tx_queue() local [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_string.c | 41 char *p, *q, c; in stresc2chr() local 45 for (p = q = s; (c = *p) != '\0'; p++) { in stresc2chr() 49 case '1': in stresc2chr() 69 *q++ = c; in stresc2chr() 73 *q++ = '\a'; in stresc2chr() 76 *q++ = '\b'; in stresc2chr() 79 *q++ = '\f'; in stresc2chr() 82 *q++ = '\n'; in stresc2chr() 85 *q++ = '\r'; in stresc2chr() 88 *q++ = '\t'; in stresc2chr() [all …]
|
/freebsd/sys/crypto/openssl/aarch64/ |
H A D | ghashv8-armx.S | 17 dup v17.4s,v17.s[1] 22 shl v3.2d,v3.2d,#1 25 orr v3.16b,v3.16b,v18.16b //H<<<=1 31 pmull v0.1q,v20.1d,v20.1d 33 pmull2 v2.1q,v20.2d,v20.2d 34 pmull v1.1q,v16.1d,v16.1d 40 pmull v18.1q,v0.1d,v19.1d //1st phase 42 ins v2.d[0],v1.d[1] 43 ins v1.d[1],v0.d[0] 47 pmull v0.1q,v0.1d,v19.1d [all …]
|
/freebsd/contrib/llvm-project/libcxx/src/ |
H A D | hash.cpp | 20 // handle all next_prime(i) for i in [1, 210), special case 0 26 // potential primes = 210*k + indices[i], k >= 1 30 1, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71 if (n <= small_primes[N - 1]) 85 // 1. The division is even, so try next potential prime. 91 for (size_t j = 5; j < N - 1; ++j) { 93 const std::size_t q = n / p; 94 if (q < p) 96 if (n == q * p) 103 std::size_t q 198 const std::size_t q = n / p; __next_prime() local 209 std::size_t q = n / i; __next_prime() local [all...] |
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_xmit.c | 86 ar5212SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo) in ar5212SetTxQueueProps() argument 91 if (q >= pCap->halTotalQueues) { in ar5212SetTxQueueProps() 93 __func__, q); in ar5212SetTxQueueProps() 96 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5212SetTxQueueProps() 103 ar5212GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo) in ar5212GetTxQueueProps() argument 108 if (q >= pCap->halTotalQueues) { in ar5212GetTxQueueProps() 110 __func__, q); in ar5212GetTxQueueProps() 113 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5212GetTxQueueProps() 126 int q, defqflags; in ar5212SetupTxQueue() local 136 q = pCap->halTotalQueues-1; /* highest priority */ in ar5212SetupTxQueue() [all …]
|