/freebsd/contrib/bearssl/src/rsa/ |
H A D | rsa_i15_modulus.c | 34 size_t nlen, plen, qlen, tlen; in br_rsa_i15_compute_modulus() local 46 qlen = sk->qlen; in br_rsa_i15_compute_modulus() 47 while (qlen > 0 && *qbuf == 0) { in br_rsa_i15_compute_modulus() 49 qlen --; in br_rsa_i15_compute_modulus() 70 if ((15 * tlen) < (qlen << 3) + 15) { in br_rsa_i15_compute_modulus() 73 br_i15_decode(t, qbuf, qlen); in br_rsa_i15_compute_modulus() 75 qlen = (q[0] + 31) >> 4; in br_rsa_i15_compute_modulus() 76 t += qlen; in br_rsa_i15_compute_modulus() 77 tlen -= qlen; in br_rsa_i15_compute_modulus() 83 if (tlen < (plen + qlen + 1)) { in br_rsa_i15_compute_modulus()
|
H A D | rsa_i31_modulus.c | 34 size_t nlen, plen, qlen, tlen; in br_rsa_i31_compute_modulus() local 46 qlen = sk->qlen; in br_rsa_i31_compute_modulus() 47 while (qlen > 0 && *qbuf == 0) { in br_rsa_i31_compute_modulus() 49 qlen --; in br_rsa_i31_compute_modulus() 70 if ((31 * tlen) < (qlen << 3) + 31) { in br_rsa_i31_compute_modulus() 73 br_i31_decode(t, qbuf, qlen); in br_rsa_i31_compute_modulus() 75 qlen = (q[0] + 63) >> 5; in br_rsa_i31_compute_modulus() 76 t += qlen; in br_rsa_i31_compute_modulus() 77 tlen -= qlen; in br_rsa_i31_compute_modulus() 83 if (tlen < (plen + qlen + 1)) { in br_rsa_i31_compute_modulus()
|
H A D | rsa_i15_privexp.c | 64 size_t plen, qlen, u, len, dlen; in br_rsa_i15_compute_privexp() local 90 qlen = sk->qlen; in br_rsa_i15_compute_privexp() 91 while (qlen > 0 && *qbuf == 0) { in br_rsa_i15_compute_privexp() 93 qlen --; in br_rsa_i15_compute_privexp() 95 if (qlen < 5 || qlen > (BR_MAX_RSA_FACTOR / 8) in br_rsa_i15_compute_privexp() 96 || (qbuf[qlen - 1] & 1) != 1) in br_rsa_i15_compute_privexp() 113 br_i15_decode(q, qbuf, qlen); in br_rsa_i15_compute_privexp() 114 qlen = (q[0] + 15) >> 4; in br_rsa_i15_compute_privexp() 125 phi = q + 1 + qlen; in br_rsa_i15_compute_privexp()
|
H A D | rsa_i31_privexp.c | 64 size_t plen, qlen, u, len, dlen; in br_rsa_i31_compute_privexp() local 90 qlen = sk->qlen; in br_rsa_i31_compute_privexp() 91 while (qlen > 0 && *qbuf == 0) { in br_rsa_i31_compute_privexp() 93 qlen --; in br_rsa_i31_compute_privexp() 95 if (qlen < 5 || qlen > (BR_MAX_RSA_FACTOR / 8) in br_rsa_i31_compute_privexp() 96 || (qbuf[qlen - 1] & 1) != 1) in br_rsa_i31_compute_privexp() 113 br_i31_decode(q, qbuf, qlen); in br_rsa_i31_compute_privexp() 114 qlen = (q[0] + 31) >> 5; in br_rsa_i31_compute_privexp() 125 phi = q + 1 + qlen; in br_rsa_i31_compute_privexp()
|
H A D | rsa_i15_priv.c | 35 size_t plen, qlen; in br_rsa_i15_private() local 56 qlen = sk->qlen; in br_rsa_i15_private() 57 while (qlen > 0 && *q == 0) { in br_rsa_i15_private() 59 qlen --; in br_rsa_i15_private() 65 z = (long)(plen > qlen ? plen : qlen) << 3; in br_rsa_i15_private() 99 br_i15_decode(mq, q, qlen); in br_rsa_i15_private()
|
H A D | rsa_i31_priv.c | 35 size_t plen, qlen; in br_rsa_i31_private() local 56 qlen = sk->qlen; in br_rsa_i31_private() 57 while (qlen > 0 && *q == 0) { in br_rsa_i31_private() 59 qlen --; in br_rsa_i31_private() 65 z = (long)(plen > qlen ? plen : qlen) << 3; in br_rsa_i31_private() 93 br_i31_decode(mq, q, qlen); in br_rsa_i31_private()
|
H A D | rsa_i62_priv.c | 37 size_t plen, qlen; in br_rsa_i62_private() local 58 qlen = sk->qlen; in br_rsa_i62_private() 59 while (qlen > 0 && *q == 0) { in br_rsa_i62_private() 61 qlen --; in br_rsa_i62_private() 67 z = (long)(plen > qlen ? plen : qlen) << 3; in br_rsa_i62_private() 95 br_i31_decode(mq, q, qlen); in br_rsa_i62_private()
|
H A D | rsa_i32_priv.c | 34 size_t plen, qlen; in br_rsa_i32_private() local 68 qlen = sk->qlen; in br_rsa_i32_private() 69 while (qlen > 0 && *q == 0) { in br_rsa_i32_private() 71 qlen --; in br_rsa_i32_private() 74 || qlen > (BR_MAX_RSA_FACTOR >> 3)) in br_rsa_i32_private() 83 br_i32_decode(mq, q, qlen); in br_rsa_i32_private()
|
H A D | rsa_i15_keygen.c | 443 size_t plen, qlen, tlen; in br_rsa_i15_keygen() local 463 sk->qlen = (esize_q + 7) >> 3; in br_rsa_i15_keygen() 464 sk->dp = sk->q + sk->qlen; in br_rsa_i15_keygen() 467 sk->dqlen = sk->qlen; in br_rsa_i15_keygen() 492 qlen = (esize_q + 15) >> 4; in br_rsa_i15_keygen() 495 t = q + 1 + qlen; in br_rsa_i15_keygen() 496 tlen = ((sizeof tmp) / sizeof(uint16_t)) - (2 + plen + qlen); in br_rsa_i15_keygen() 519 if (invert_pubexp(t, q, pubexp, t + 1 + qlen)) { in br_rsa_i15_keygen() 522 br_i15_encode(sk->q, sk->qlen, q); in br_rsa_i15_keygen() 563 if (plen > qlen) { in br_rsa_i15_keygen()
|
H A D | rsa_i31_keygen_inner.c | 464 size_t plen, qlen, tlen; in br_rsa_i31_keygen_inner() local 487 sk->qlen = (esize_q + 7) >> 3; in br_rsa_i31_keygen_inner() 488 sk->dp = sk->q + sk->qlen; in br_rsa_i31_keygen_inner() 491 sk->dqlen = sk->qlen; in br_rsa_i31_keygen_inner() 517 qlen = (esize_q + 31) >> 5; in br_rsa_i31_keygen_inner() 520 t = q + 1 + qlen; in br_rsa_i31_keygen_inner() 521 tlen = ((sizeof tmp.t32) / sizeof(uint32_t)) - (2 + plen + qlen); in br_rsa_i31_keygen_inner() 544 if (invert_pubexp(t, q, pubexp, t + 1 + qlen)) { in br_rsa_i31_keygen_inner() 547 br_i31_encode(sk->q, sk->qlen, q); in br_rsa_i31_keygen_inner() 588 if (plen > qlen) { in br_rsa_i31_keygen_inner()
|
/freebsd/sys/net/altq/ |
H A D | altq_classq.h | 71 #define qlen(q) (q)->qlen_ /* Current queue length. */ macro 106 qlen(q)++; in _addq() 121 qlen(q)--; in _getq() 144 qlen(q)--; in _getq_tail() 163 n = random() % qlen(q) + 1; in _getq_random() 172 qlen(q)--; in _getq_random() 192 qlen(q)--; in _removeq()
|
H A D | altq_rio.c | 355 avg += (prec->qlen << FP_SHIFT) - (avg >> rp->rio_wshift); in rio_addq() 369 if (avg >= prec->th_min_s && prec->qlen > 1) { in rio_addq() 390 if (droptype == DTYPE_NODROP && qlen(q) >= qlimit(q)) in rio_addq() 409 rp->rio_precstate[i].qlen++; in rio_addq() 439 if (--rp->rio_precstate[i].qlen == 0) { in rio_getq()
|
H A D | altq_rmclass.c | 241 qlen(cl->q_) = 0; in rmc_newclass() 799 if (qlen(cl->q_) > qlimit(cl->q_)) { in rmc_queue_packet() 849 if (!cl->sleeping_ && (qlen(cl->q_) > cl->qthresh_)) in rmc_satisfied() 1387 if ((qlen(cl->q_) <= 0) || TV_LT(nowp, &borrowed->undertime_)) { in rmc_update_class_util() 1395 if ((qlen(cl->q_) <= 1) || TV_LT(&now, &borrowed->undertime_)) { in rmc_update_class_util() 1432 ASSERT(qlen(cl->q_) > 0); in rmc_drop_action() 1724 qlen(q)++; in _addq() 1737 ASSERT(qlen(q) == 1); in _getq() 1740 qlen(q)--; in _getq() 1759 ASSERT(qlen(q) == 1); in _getq_tail() [all …]
|
/freebsd/contrib/unbound/ipset/ |
H A D | ipset.c | 226 struct ub_packed_rrset_key *rrset, const char *qname, int qlen, in ipset_check_zones_for_rrset() argument 244 if (qname[qlen - 1] == '.') { in ipset_check_zones_for_rrset() 245 qlen--; in ipset_check_zones_for_rrset() 259 if (qlen == plen || (qlen > plen && qname[qlen - plen - 1] == '.' )) { in ipset_check_zones_for_rrset() 260 qs = qname + (qlen - plen); in ipset_check_zones_for_rrset() 280 int qlen; in ipset_update() local 294 qlen = sldns_wire2str_dname_buf(qinfo.qname, qinfo.qname_len, in ipset_update() 296 if(qlen == 0) { in ipset_update() 316 qlen, setname, af) == -1) in ipset_update()
|
/freebsd/usr.sbin/bluetooth/btpand/ |
H A D | channel.c | 136 chan->qlen--; in channel_close() 154 assert(chan->qlen == 0); in channel_free() 179 while (chan->qlen > 0) { in channel_start() 193 chan->qlen--; in channel_start() 252 if (chan->qlen > CHANNEL_MAXQLEN) in channel_dispatch() 267 if (chan->qlen > CHANNEL_MAXQLEN) { in channel_dispatch() 285 chan->qlen++; in channel_put()
|
/freebsd/contrib/bearssl/src/x509/ |
H A D | encode_ec_rawder.c | 104 len_publicKey_bits = 2 + len_of_len(pk->qlen) + pk->qlen; in br_encode_ec_raw_der_inner() 145 buf += br_asn1_encode_length(buf, pk->qlen + 1); in br_encode_ec_raw_der_inner() 147 memcpy(buf, pk->q, pk->qlen); in br_encode_ec_raw_der_inner()
|
/freebsd/sys/amd64/vmm/amd/ |
H A D | amdvi_hw.c | 144 int qlen = -1; in amdvi_find_ats_qlen() local 156 qlen = (cap & 0x1F); in amdvi_find_ats_qlen() 157 qlen = qlen ? qlen : 32; in amdvi_find_ats_qlen() 161 qlen); in amdvi_find_ats_qlen() 162 qlen = (cap & PCIM_ATS_EN) ? qlen : -1; in amdvi_find_ats_qlen() 165 return (qlen); in amdvi_find_ats_qlen() 175 int qlen, i; in amdvi_dev_support_iotlb() local 178 qlen = amdvi_find_ats_qlen(devid); in amdvi_dev_support_iotlb() 179 if (qlen < 0) in amdvi_dev_support_iotlb() 194 pci_ats = (qlen < 0) ? false : true; in amdvi_dev_support_iotlb() [all …]
|
/freebsd/sys/net80211/ |
H A D | ieee80211_power.c | 130 ieee80211_node_psq_dequeue(struct ieee80211_node *ni, int *qlen) in ieee80211_node_psq_dequeue() argument 153 if (qlen != NULL) in ieee80211_node_psq_dequeue() 154 *qlen = psq->psq_len; in ieee80211_node_psq_dequeue() 183 int qlen; in psq_drain() local 186 qlen = psq->psq_len; in psq_drain() 202 return qlen; in psq_drain() 330 int qlen, age; in ieee80211_pwrsave() local 397 qlen = ++(psq->psq_len); in ieee80211_pwrsave() 401 "save frame with age %d, %u now queued", age, qlen); in ieee80211_pwrsave() 403 if (qlen == 1 && vap->iv_set_tim != NULL) in ieee80211_pwrsave()
|
/freebsd/contrib/bearssl/tools/ |
H A D | xmem.c | 93 pk2->key.ec.q = xblobdup(pk->key.ec.q, pk->key.ec.qlen); in xpkeydup() 94 pk2->key.ec.qlen = pk->key.ec.qlen; in xpkeydup()
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | skbuff.h | 114 size_t qlen; member 525 return (q->qlen == 0); in skb_queue_empty() 533 q->qlen = 0; in __skb_queue_head_init() 553 q->qlen++; in __skb_insert() 619 head->qlen--; in __skb_unlink() 690 return (head->qlen); in skb_queue_len() 698 return (READ_ONCE(head->qlen)); in skb_queue_len_lockless() 860 to->qlen += from->qlen; in skb_queue_splice_init() 874 to->qlen += from->qlen; in skb_queue_splice_tail_init()
|
/freebsd/tests/sys/auditpipe/ |
H A D | auditpipe_test.c | 48 int qlen = -1; in ATF_TC_BODY() local 50 ATF_REQUIRE_EQ(0, ioctl(filedesc, AUDITPIPE_GET_QLEN, &qlen)); in ATF_TC_BODY() 51 ATF_REQUIRE(qlen != -1); in ATF_TC_BODY()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_dns_pxy.c | 225 ipf_p_dns_match_names(ipf_dns_filter_t *idns, char *query, int qlen) in ipf_p_dns_match_names() argument 233 if (blen > qlen) in ipf_p_dns_match_names() 236 if (blen == qlen) in ipf_p_dns_match_names() 237 return (strncasecmp(base, query, qlen)); in ipf_p_dns_match_names() 253 return (strncasecmp(base, query + qlen - blen, blen)); in ipf_p_dns_match_names()
|
/freebsd/sys/dev/firewire/ |
H A D | fwcrom.c | 189 int i, qlen; in crom_parse_text() local 211 qlen = textleaf->crc_len - 2; in crom_parse_text() 212 if (len < qlen * 4) in crom_parse_text() 213 qlen = len/4; in crom_parse_text() 214 for (i = 0; i < qlen; i++) in crom_parse_text() 217 if (len <= qlen * 4) in crom_parse_text() 220 buf[qlen * 4] = 0; in crom_parse_text()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_event.c | 114 long int qlen, orig_qlen; in _bump_event_queue_length() local 125 orig_qlen = qlen = strtol(qlen_buf, NULL, 10); in _bump_event_queue_length() 129 if (qlen <= 0) in _bump_event_queue_length() 130 qlen = 512; /* default zfs_zevent_len_max value */ in _bump_event_queue_length() 132 qlen *= 2; in _bump_event_queue_length() 138 if (qlen > max_zevent_buf_len) in _bump_event_queue_length() 139 qlen = max_zevent_buf_len; in _bump_event_queue_length() 140 if (qlen == orig_qlen) in _bump_event_queue_length() 142 wr = snprintf(qlen_buf, sizeof (qlen_buf), "%ld", qlen); in _bump_event_queue_length() 151 zed_log_msg(LOG_WARNING, "Bumping queue length to %ld", qlen); in _bump_event_queue_length()
|
/freebsd/tools/tools/net80211/w00t/expand/ |
H A D | expand.c | 115 int qlen = 0; in enque() local 122 qlen++; in enque() 154 qlen++; in enque() 156 if (qlen > 5) in enque() 157 printf("Enque. Size: %d\n", qlen); in enque()
|