/netbsd/sys/dev/raidframe/ |
H A D | rf_sstf.c | 56 #define QSUM(_sstfq_) (((_sstfq_)->lopri.qlen)+((_sstfq_)->left.qlen)+((_sstfq_)->right.qlen)) 123 (_q_)->qlen--; \ 140 (_q_)->qlen--; \ 297 sstfq->left.qlen, sstfq->right.qlen, in rf_SstfEnqueue() 302 sstfq->lopri.qlen++; in rf_SstfEnqueue() 306 sstfq->left.qlen++; in rf_SstfEnqueue() 335 queue->qlen--; in do_dequeue() 357 sstfq->left.qlen, sstfq->right.qlen, sstfq->lopri.qlen); in rf_SstfDequeue() 421 scanq->left.qlen, scanq->right.qlen, scanq->lopri.qlen); in rf_ScanDequeue() 477 cscanq->left.qlen, cscanq->right.qlen, in rf_CscanDequeue() [all …]
|
/netbsd/regress/sys/uvm/pdsim/ |
H A D | lru.hs | 38 do_lru1 npg n q qlen [] = (reverse n, q) 39 do_lru1 npg n q qlen rs@(r:rs2) = 44 do_lru1 npg n (r:nq) qlen rs2 45 else if qlen < npg then 46 do_lru1 npg (r:n) (r:q) (qlen+1) rs2 49 nq = take (qlen-1) q 51 do_lru1 npg (r:n) (r:nq) qlen rs2
|
H A D | rand.hs | 42 do_rand1 rg npg n q qlen [] = (reverse n, q) 43 do_rand1 rg npg n q qlen rs@(r:rs2) = 45 do_rand1 rg npg n q qlen rs2 46 else if qlen < npg then 47 do_rand1 rg npg (r:n) (r:q) (qlen+1) rs2 54 do_rand1 nrg npg (r:n) (r:nq) qlen rs2
|
H A D | lfu.hs | 49 do_lfu1 npg n q qlen [] = (reverse n, q) 50 do_lfu1 npg n q qlen rs@(r:rs2) = 60 do_lfu1 npg n (pg:nq) qlen rs2 61 else if qlen < npg then 62 do_lfu1 npg (r:n) ((r,1):q) (qlen+1) rs2 68 do_lfu1 npg (r:n) ((r,1):nq) qlen rs2
|
/netbsd/sys/altq/ |
H A D | altq_classq.h | 70 #define qlen(q) (q)->qlen_ /* Current queue length. */ macro 103 qlen(q)++; in _addq() 117 qlen(q)--; in _getq() 139 qlen(q)--; in _getq_tail() 158 n = random() % qlen(q) + 1; in _getq_random() 167 qlen(q)--; in _getq_random() 187 qlen(q)--; in _removeq()
|
H A D | altq_rmclass.c | 253 qlen(cl->q_) = 0; in rmc_newclass() 1440 ASSERT(qlen(cl->q_) > 0); in rmc_drop_action() 1733 qlen(q)++; in _addq() 1746 ASSERT(qlen(q) == 1); in _getq() 1749 qlen(q)--; in _getq() 1768 ASSERT(qlen(q) == 1); in _getq_tail() 1772 qlen(q)--; in _getq_tail() 1787 ASSERT(qlen(q) == 1); in _getq_random() 1801 qlen(q)--; in _getq_random() 1821 qlen(q)--; in _removeq() [all …]
|
H A D | altq_rio.c | 369 avg += (prec->qlen << FP_SHIFT) - (avg >> rp->rio_wshift); in rio_addq() 383 if (avg >= prec->th_min_s && prec->qlen > 1) { in rio_addq() 404 if (droptype == DTYPE_NODROP && qlen(q) >= qlimit(q)) in rio_addq() 423 rp->rio_precstate[i].qlen++; in rio_addq() 453 if (--rp->rio_precstate[i].qlen == 0) { in rio_getq() 562 qlen(rqp->rq_q) = 0; in rioioctl() 613 q_stats->q_len[i] = rp->rio_precstate[i].qlen; in rioioctl()
|
H A D | altq_blue.c | 226 qlen(rqp->rq_q) = 0; in blueioctl() 271 q_stats->q_len = qlen(rqp->rq_q); in blueioctl() 442 if (drop_early(rp) && qlen(q) > 1) { in blue_addq() 459 if (droptype == DTYPE_NODROP && qlen(q) >= qlimit(q)) in blue_addq()
|
/netbsd/sys/dev/pci/cxgb/ |
H A D | cxgb_mbuf.h | 38 uint32_t qlen; member 57 return (l->qlen); in mbufq_len() 64 l->qlen++; in mbufq_tail() 79 l->qlen--; in mbufq_dequeue()
|
/netbsd/usr.sbin/btpand/ |
H A D | channel.c | 131 chan->qlen--; in channel_close() 144 assert(chan->qlen == 0); in channel_free() 162 while (chan->qlen > 0) { in channel_start() 176 chan->qlen--; in channel_start() 235 if (chan->qlen > CHANNEL_MAXQLEN) in channel_dispatch() 250 if (chan->qlen > CHANNEL_MAXQLEN) { in channel_dispatch() 268 chan->qlen++; in channel_put()
|
/netbsd/external/gpl3/gcc/dist/gcc/ |
H A D | lcm.c | 89 unsigned int qlen; in compute_antinout_edge() local 123 while (qlen) in compute_antinout_edge() 127 qlen--; in compute_antinout_edge() 155 qlen++; in compute_antinout_edge() 237 unsigned int qlen; in compute_laterin() local 292 while (qlen) in compute_laterin() 297 qlen--; in compute_laterin() 319 qlen++; in compute_laterin() 536 while (qlen) in compute_available() 540 qlen--; in compute_available() [all …]
|
H A D | lcm.cc | 89 unsigned int qlen; in compute_antinout_edge() local 123 while (qlen) in compute_antinout_edge() 127 qlen--; in compute_antinout_edge() 155 qlen++; in compute_antinout_edge() 237 unsigned int qlen; in compute_laterin() local 292 while (qlen) in compute_laterin() 297 qlen--; in compute_laterin() 319 qlen++; in compute_laterin() 536 while (qlen) in compute_available() 540 qlen--; in compute_available() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/gcc/ |
H A D | lcm.c | 89 unsigned int qlen; in compute_antinout_edge() local 123 while (qlen) in compute_antinout_edge() 127 qlen--; in compute_antinout_edge() 155 qlen++; in compute_antinout_edge() 237 unsigned int qlen; in compute_laterin() local 292 while (qlen) in compute_laterin() 297 qlen--; in compute_laterin() 319 qlen++; in compute_laterin() 536 while (qlen) in compute_available() 540 qlen--; in compute_available() [all …]
|
/netbsd/external/bsd/unbound/dist/ipset/ |
H A D | ipset.c | 141 const char *qname, const int qlen, const char *setname, int af) in ipset_check_zones_for_rrset() argument 164 if (qlen >= plen) { in ipset_check_zones_for_rrset() 165 qs = qname + (qlen - plen); in ipset_check_zones_for_rrset() 187 int qlen; in ipset_update() local 199 qlen = sldns_wire2str_dname_buf(qinfo.qname, qinfo.qname_len, in ipset_update() 201 if(qlen == 0) { in ipset_update() 221 qname, qlen, setname, af) == -1) in ipset_update()
|
/netbsd/external/bsd/unbound/dist/testcode/ |
H A D | testpkts.c | 1225 qb = memdup(q, qlen); in match_question() 1229 zerottls(qb, qlen); in match_question() 1232 lowercase_pkt(qb, qlen); in match_question() 1292 qb = memdup(q, qlen); in match_answer() 1296 zerottls(qb, qlen); in match_answer() 1299 lowercase_pkt(qb, qlen); in match_answer() 1375 qb = memdup(q, qlen); in match_all() 1380 zerottls(qb, qlen); in match_all() 1383 lowercase_pkt(qb, qlen); in match_all() 1435 (void)sldns_wire2str_dname_scan(&qn, &qlen, &qss, &qslen, q, qlen, &comprloop); in equal_dname() [all …]
|
/netbsd/external/bsd/ipf/dist/ |
H A D | ip_dns_pxy.c | 240 ipf_p_dns_match_names(idns, query, qlen) in ipf_p_dns_match_names() argument 243 int qlen; 251 if (blen > qlen) 254 if (blen == qlen) 255 return strncasecmp(base, query, qlen); 271 return strncasecmp(base, query + qlen - blen, blen);
|
/netbsd/sys/external/bsd/ipf/netinet/ |
H A D | ip_dns_pxy.c | 228 ipf_p_dns_match_names(ipf_dns_filter_t *idns, char *query, int qlen) in ipf_p_dns_match_names() argument 236 if (blen > qlen) in ipf_p_dns_match_names() 239 if (blen == qlen) in ipf_p_dns_match_names() 240 return strncasecmp(base, query, qlen); in ipf_p_dns_match_names() 256 return strncasecmp(base, query + qlen - blen, blen); in ipf_p_dns_match_names()
|
/netbsd/sys/dev/ieee1394/ |
H A D | fwcrom.c | 174 int i, qlen; in crom_parse_text() local 202 qlen = textleaf->crc_len - 2; in crom_parse_text() 203 if (len < qlen * 4) in crom_parse_text() 204 qlen = len/4; in crom_parse_text() 205 for (i = 0; i < qlen; i++) in crom_parse_text() 208 if (len <= qlen * 4) in crom_parse_text() 211 buf[qlen * 4] = 0; in crom_parse_text()
|
/netbsd/external/gpl3/gcc/dist/gcc/d/dmd/ |
H A D | dmangle.c | 703 size_t qlen; in visit() local 712 qlen = e->len; in visit() 727 qlen = tmp.offset; in visit() 741 qlen = tmp.offset; in visit() 747 buf->reserve(1 + 11 + 2 * qlen); in visit() 749 buf->print(qlen); in visit() 752 for (utf8_t *p = (utf8_t *)buf->data + buf->offset, *pend = p + 2 * qlen; in visit() 760 buf->offset += 2 * qlen; in visit()
|
/netbsd/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
H A D | dmangle.c | 703 size_t qlen; in visit() local 712 qlen = e->len; in visit() 727 qlen = tmp.offset; in visit() 741 qlen = tmp.offset; in visit() 747 buf->reserve(1 + 11 + 2 * qlen); in visit() 749 buf->print(qlen); in visit() 752 for (utf8_t *p = (utf8_t *)buf->data + buf->offset, *pend = p + 2 * qlen; in visit() 760 buf->offset += 2 * qlen; in visit()
|
/netbsd/libexec/identd/ |
H A D | identd.c | 337 size_t qlen; in idhandle() local 365 qlen = 0; in idhandle() 367 if ((n = recv(fd, &buf[qlen], sizeof(buf) - qlen, 0)) < 0) { in idhandle() 379 qlen += n; in idhandle() 380 if (qlen >= sizeof(buf)) { in idhandle() 384 if ((qlen >= 2) && (buf[qlen - 2] == '\r') && in idhandle() 385 (buf[qlen - 1] == '\n')) in idhandle() 388 buf[qlen - 2] = '\0'; in idhandle()
|
/netbsd/crypto/external/bsd/openssl/dist/test/helpers/ |
H A D | predefined_dhparams.c | 51 unsigned char *qdata, size_t qlen) in get_dh_from_pg() argument 60 if (qdata != NULL && (q = BN_bin2bn(qdata, qlen, NULL)) == NULL) in get_dh_from_pg()
|
/netbsd/sys/dev/ic/ |
H A D | ispvar.h | 178 #define ISP_NXT_QENTRY(idx, qlen) (((idx) + 1) & ((qlen)-1)) argument 179 #define ISP_QFREE(in, out, qlen) \ argument 180 ((in == out)? (qlen - 1) : ((in > out)? \ 181 ((qlen - 1) - (in - out)) : (out - in - 1)))
|
/netbsd/lib/libc/net/ |
H A D | gethnamaddr.c | 219 size_t qlen; in getanswer() local 497 qlen = (n + 1) * sizeof(*hent->h_aliases); in getanswer() 498 if ((size_t)(ep - bp) < qlen) in getanswer() 501 memcpy(bp, aliases, qlen); in getanswer() 505 bp += qlen; in getanswer() 507 qlen = (n + 1) * sizeof(*hent->h_addr_list); in getanswer() 508 if ((size_t)(ep - bp) < qlen) in getanswer() 511 memcpy(bp, addr_ptrs, qlen); in getanswer()
|
/netbsd/sys/dev/usb/ |
H A D | if_urndis.c | 492 void *qbuf, size_t qlen, in urndis_ctrl_query() argument 499 msg = kmem_alloc(sizeof(*msg) + qlen, KM_SLEEP); in urndis_ctrl_query() 501 msg->rm_len = htole32(sizeof(*msg) + qlen); in urndis_ctrl_query() 504 msg->rm_infobuflen = htole32(qlen); in urndis_ctrl_query() 505 if (qlen != 0) { in urndis_ctrl_query() 507 memcpy((char*)msg + 20, qbuf, qlen); in urndis_ctrl_query() 524 kmem_free(msg, sizeof(*msg) + qlen); in urndis_ctrl_query()
|