Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 1184) sorted by relevance

12345678910>>...48

/dragonfly/sys/netgraph7/bluetooth/include/
H A Dng_bluetooth.h88 #define NG_BT_MBUFQ_FIRST(q) (q)->head argument
90 #define NG_BT_MBUFQ_LEN(q) (q)->len argument
92 #define NG_BT_MBUFQ_FULL(q) ((q)->len >= (q)->maxlen) argument
94 #define NG_BT_MBUFQ_DROP(q) (q)->drops ++ argument
106 (q)->len ++; \
113 (q)->head = (q)->head->m_nextpkt; \
117 (q)->len --; \
173 #define NG_BT_ITEMQ_FIRST(q) STAILQ_FIRST(&(q)->queue) argument
175 #define NG_BT_ITEMQ_LEN(q) NG_BT_MBUFQ_LEN((q)) argument
177 #define NG_BT_ITEMQ_FULL(q) NG_BT_MBUFQ_FULL((q)) argument
[all …]
/dragonfly/sys/net/netmap/
H A Dnetmap_mbq.c37 q->head = q->tail = NULL; in __mbq_init()
38 q->count = 0; in __mbq_init()
44 __mbq_init(q); in mbq_safe_init()
49 __mbq_init(q); in mbq_init()
55 if (q->tail) { in __mbq_enqueue()
57 q->tail = m; in __mbq_enqueue()
59 q->head = q->tail = m; in __mbq_enqueue()
61 q->count++; in __mbq_enqueue()
80 if (q->head) { in __mbq_dequeue()
86 q->count--; in __mbq_dequeue()
[all …]
/dragonfly/usr.sbin/ypserv/
H A Dyp_dnslookup.c276 inet_ntoa(q->client_addr.sin_addr), q->id); in yp_send_dns_reply()
294 xid = svcudp_set_xid(q->xprt, q->xid); in yp_send_dns_reply()
296 q->xprt->xp_raddr = q->client_addr; in yp_send_dns_reply()
331 q = n; in yp_prune_dnsq()
401 free(q); in yp_run_dnsq()
442 q->xid = svcudp_get_xid(q->xprt); in yp_async_lookup_name()
443 q->client_addr = q->xprt->xp_raddr; in yp_async_lookup_name()
445 q->id = yp_send_dns_query(name, q->type); in yp_async_lookup_name()
528 q->xid = svcudp_get_xid(q->xprt); in yp_async_lookup_addr()
529 q->client_addr = q->xprt->xp_raddr; in yp_async_lookup_addr()
[all …]
/dragonfly/sys/net/altq/
H A Daltq_classq.h66 #define qtype(q) (q)->qtype_ /* Get queue type */ argument
67 #define qlimit(q) (q)->qlim_ /* Max packets to be queued */ argument
68 #define qlen(q) (q)->qlen_ /* Current queue length. */ argument
70 #define qhead(q) classq_head(&(q)->que_) argument
75 #define q_is_red_or_rio(q) ((q)->qtype_ == Q_RED || (q)->qtype_ == Q_RIO) argument
81 qlen(q)++; in _addq()
91 qlen(q)--; in _getq()
112 qlen(q)--; in _getq_tail()
140 qlen(q)--; in _getq_random()
150 m0 = qtail(q); in _removeq()
[all …]
/dragonfly/usr.sbin/pw/
H A Dpw_conf.c217 return q; in newstr()
296 config.home = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
321 q = unquote(q); in read_userconfig()
322 config.default_group = (q == NULL || !boolean_val(q, 1) || GETGRNAM(q) == NULL) in read_userconfig()
326 for (i = 0; q != NULL; q = strtok(NULL, toks)) { in read_userconfig()
339 if ((q = unquote(q)) != NULL && isdigit(*q)) in read_userconfig()
343 if ((q = unquote(q)) != NULL && isdigit(*q)) in read_userconfig()
347 if ((q = unquote(q)) != NULL && isdigit(*q)) in read_userconfig()
351 if ((q = unquote(q)) != NULL && isdigit(*q)) in read_userconfig()
355 if ((q = unquote(q)) != NULL && isdigit(*q)) in read_userconfig()
[all …]
/dragonfly/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_xmit.c143 int q; in ar9300_setup_tx_queue() local
166 for (q = 0; in ar9300_setup_tx_queue()
168 q++) in ar9300_setup_tx_queue()
215 return q; in ar9300_setup_tx_queue()
431 OS_REG_WRITE(ah, AR_DMISC(q), OS_REG_READ(ah, AR_DMISC(q)) in ar9300_reset_tx_queue()
448 OS_REG_WRITE(ah, AR_DMISC(q), OS_REG_READ(ah, AR_DMISC(q)) in ar9300_reset_tx_queue()
647 __func__, ar9300_num_tx_pending(ah, q), q); in ar9300_stop_tx_dma()
752 __func__, ar9300_num_tx_pending(ah, q), q); in ar9300_stop_tx_dma_indv_que()
814 int i, q; in ar9300_abort_tx_dma() local
889 for (q = AR_NUM_QCU - 1; q >= 0; q--) { in ar9300_abort_tx_dma()
[all …]
/dragonfly/contrib/gdb-7/gdb/common/
H A Dqueue.h139 q->tail = p; \
140 q->head = p; \
145 q->tail = p; \
156 p = q->head; \
159 if (q->head == q->tail) \
165 q->head = q->head->next; \
195 if (iter->p == q->head || iter->p == q->tail) \
238 q->head = NULL; \
239 q->tail = NULL; \
241 return q; \
[all …]
/dragonfly/tools/regression/lib/libm/
H A Dtest-rem.c112 int q; in test_invalid() local
145 int q; in testl() local
148 q = random(); in testl()
159 q = abs(q); in testl()
160 assert(q == (abs(expected_quo) & mask(q))); in testl()
167 int q; in testd() local
181 q = abs(q); in testd()
182 assert(q == (abs(expected_quo) & mask(q))); in testd()
189 int q; in testf() local
203 q = abs(q); in testf()
[all …]
/dragonfly/sys/dev/netif/ath/ath_hal/ar5211/
H A Dar5211_xmit.c86 __func__, q); in ar5211SetTxQueueProps()
102 __func__, q); in ar5211GetTxQueueProps()
117 int q; in ar5211SetupTxQueue() local
121 q = 9; in ar5211SetupTxQueue()
124 q = 8; in ar5211SetupTxQueue()
127 q = 0; in ar5211SetupTxQueue()
129 return q; in ar5211SetupTxQueue()
142 __func__, q); in ar5211SetupTxQueue()
162 return q; in ar5211SetupTxQueue()
206 __func__, q); in ar5211ReleaseTxQueue()
[all …]
/dragonfly/gnu/usr.bin/rcs/
H A Drcstest64 -v) q=; set -x;;
65 '') q=-q;;
103 co $l $q a.c &&
110 co $q a.c &&
124 co -l $q a.c &&
130 co -l $q a.c &&
137 co -l $q a.c &&
194 co -l $q a.c &&
279 co $q a.c &&
306 co $q a.c &&
[all …]
/dragonfly/crypto/libressl/crypto/whrlpool/
H A Dwp_block.c484 S.q[0] ^= (K.q[0] = H->q[0]); in whirlpool_block()
485 S.q[1] ^= (K.q[1] = H->q[1]); in whirlpool_block()
486 S.q[2] ^= (K.q[2] = H->q[2]); in whirlpool_block()
487 S.q[3] ^= (K.q[3] = H->q[3]); in whirlpool_block()
488 S.q[4] ^= (K.q[4] = H->q[4]); in whirlpool_block()
489 S.q[5] ^= (K.q[5] = H->q[5]); in whirlpool_block()
490 S.q[6] ^= (K.q[6] = H->q[6]); in whirlpool_block()
491 S.q[7] ^= (K.q[7] = H->q[7]); in whirlpool_block()
527 K.q[0] = L0; K.q[1] = L1; K.q[2] = L2; K.q[3] = L3; in whirlpool_block()
528 K.q[4] = L4; K.q[5] = L5; K.q[6] = L6; K.q[7] = L7; in whirlpool_block()
[all …]
/dragonfly/usr.bin/systat/
H A Daltqs.c164 queue_stats_t *q; in closealtqs() local
171 free(q); in closealtqs()
437 q = calloc(1, sizeof(*q)); in load_altqs()
438 q->pa = pa; in load_altqs()
443 q->ostats = q->nstats; in load_altqs()
444 q->pq.nr = i; in load_altqs()
445 q->pq.ticket = q->pa.ticket; in load_altqs()
446 q->pq.buf = &q->nstats; in load_altqs()
447 q->pq.nbytes = sizeof(q->nstats); in load_altqs()
450 free(q); in load_altqs()
[all …]
/dragonfly/contrib/gmp/mpn/generic/
H A Dudiv_w_sdiv.c36 mp_limb_t q, r; in mpn_udiv_w_sdiv() local
72 if (r >= q) in mpn_udiv_w_sdiv()
73 r = r - q; in mpn_udiv_w_sdiv()
76 r = r - q + d; in mpn_udiv_w_sdiv()
77 q--; in mpn_udiv_w_sdiv()
82 q -= 2; in mpn_udiv_w_sdiv()
93 q = ~q; /* (A/2)/b1 */ in mpn_udiv_w_sdiv()
101 r = r - q; in mpn_udiv_w_sdiv()
105 q--; in mpn_udiv_w_sdiv()
110 q -= 2; in mpn_udiv_w_sdiv()
[all …]
H A Dhgcd2.c50 q = 0; in div1()
53 q <<= 1; in div1()
71 q = 0; in div1()
75 q <<= 1; in div1()
85 return q; in div1()
107 q <<= 1; in div2()
131 q <<= 1; in div2()
286 q++; in mpn_hgcd2()
328 q++; in mpn_hgcd2()
366 q++; in mpn_hgcd2()
[all …]
/dragonfly/sys/net/dummynet/
H A Dip_dummynet.c556 q->S = q->F; /* Update start time */ in ready_event_wfq()
560 heap_insert(&p->idle_heap, q->F, q); in ready_event_wfq()
569 heap_insert(neh, q->S, q); in ready_event_wfq()
571 heap_insert(sch, q->F, q); in ready_event_wfq()
591 heap_insert(sch, q->F, q); in ready_event_wfq()
606 q->S = q->F + 1; in ready_event_wfq()
649 q->S = q->F + 1; /* Mark timestamp as invalid */ in dn_expire_pipe_cb()
718 if (!TAILQ_EMPTY(&q->queue) || q->S != q->F + 1) in expire_queues()
817 q->S == q->F + 1) { in find_queue()
1134 q->S = MAX64(q->F, pipe->V); in dummynet_io()
[all …]
/dragonfly/sys/net/dummynet3/
H A Dip_dummynet3.c575 q->S = q->F; /* Update start time */ in ready_event_wfq()
579 heap_insert(&p->idle_heap, q->F, q); in ready_event_wfq()
588 heap_insert(neh, q->S, q); in ready_event_wfq()
590 heap_insert(sch, q->F, q); in ready_event_wfq()
610 heap_insert(sch, q->F, q); in ready_event_wfq()
625 q->S = q->F + 1; in ready_event_wfq()
737 if (!TAILQ_EMPTY(&q->queue) || q->S != q->F + 1) in expire_queues()
836 q->S == q->F + 1) { in find_queue()
1153 q->S = MAX64(q->F, pipe->V); in dummynet_io()
1181 heap_insert(&pipe->scheduler_heap, q->F, q); in dummynet_io()
[all …]
/dragonfly/sys/dev/netif/ath/ath_hal/ar5210/
H A Dar5210_xmit.c42 __func__, q); in ar5210SetTxQueueProps()
58 __func__, q); in ar5210GetTxQueueProps()
73 int q; in ar5210SetupTxQueue() local
77 q = 2; in ar5210SetupTxQueue()
80 q = 1; in ar5210SetupTxQueue()
83 q = 0; in ar5210SetupTxQueue()
96 __func__, q); in ar5210SetupTxQueue()
116 return q; in ar5210SetupTxQueue()
130 __func__, q); in ar5210ReleaseTxQueue()
136 __func__, q); in ar5210ReleaseTxQueue()
[all …]
/dragonfly/sys/crypto/twofish/
H A Dtwofish.c311 #define q20(x) q(0,q(0,x) ^ extract_byte(key[1],0)) ^ extract_byte(key[0],0)
312 #define q21(x) q(0,q(1,x) ^ extract_byte(key[1],1)) ^ extract_byte(key[0],1)
313 #define q22(x) q(1,q(0,x) ^ extract_byte(key[1],2)) ^ extract_byte(key[0],2)
316 #define q30(x) q(0,q(0,q(1, x) ^ extract_byte(key[2],0)) ^ extract_byte(key[1],0)) ^ extract_byte(…
317 #define q31(x) q(0,q(1,q(1, x) ^ extract_byte(key[2],1)) ^ extract_byte(key[1],1)) ^ extract_byte(…
318 #define q32(x) q(1,q(0,q(0, x) ^ extract_byte(key[2],2)) ^ extract_byte(key[1],2)) ^ extract_byte(…
319 #define q33(x) q(1,q(1,q(0, x) ^ extract_byte(key[2],3)) ^ extract_byte(key[1],3)) ^ extract_byte(…
321 #define q40(x) q(0,q(0,q(1, q(1, x) ^ extract_byte(key[3],0)) ^ extract_byte(key[2],0)) ^ extract_…
322 #define q41(x) q(0,q(1,q(1, q(0, x) ^ extract_byte(key[3],1)) ^ extract_byte(key[2],1)) ^ extract_…
323 #define q42(x) q(1,q(0,q(0, q(0, x) ^ extract_byte(key[3],2)) ^ extract_byte(key[2],2)) ^ extract_…
[all …]
/dragonfly/sys/dev/netif/ath/ath_hal/ar5212/
H A Dar5212_xmit.c93 __func__, q); in ar5212SetTxQueueProps()
111 __func__, q); in ar5212GetTxQueueProps()
127 int q, defqflags; in ar5212SetupTxQueue() local
160 for (q = 0; q < pCap->halTotalQueues; q++) in ar5212SetupTxQueue()
180 __func__, q); in ar5212SetupTxQueue()
198 return q; in ar5212SetupTxQueue()
239 __func__, q); in ar5212ReleaseTxQueue()
245 __func__, q); in ar5212ReleaseTxQueue()
279 __func__, q); in ar5212ResetTxQueue()
285 __func__, q); in ar5212ResetTxQueue()
[all …]
/dragonfly/lib/libalias/
H A Dalias_nbt.c287 if (q == NULL || (char *)(q + 1) > pmax) { in AliasHandleQuestion()
296 q= q+1; in AliasHandleQuestion()
341 if (q == NULL || (char *)(q + 1) > pmax) in AliasHandleResourceNB()
410 if (q == NULL || (char *)(q + 1) > pmax) in AliasHandleResourceA()
467 if (q == NULL || (char *)(q + 1) > pmax) in AliasHandleResourceNULL()
500 if (q == NULL || (char *)(q + 1) > pmax) in AliasHandleResourceNS()
531 if (q == NULL || (char *)(q + 1) > pmax) in AliasHandleResourceNBSTAT()
558 if (q == NULL || (char *)(q + 1) > pmax) in AliasHandleResource()
568 q, in AliasHandleResource()
582 q, in AliasHandleResource()
[all …]
/dragonfly/tools/tools/net80211/w00t/redir/
H A Dredir.c157 struct queue *q = p->q; in enque() local
173 q = q->next; in enque()
178 q = (struct queue*) malloc(sizeof(*q)); in enque()
179 if (!q) in enque()
181 memset(q, 0, sizeof(*q)); in enque()
185 p->q = q; in enque()
323 struct queue *q = p->q; in send_queue() local
336 struct queue *q = p->q; in send_data() local
479 struct queue *q = p->q; in read_buddy_data() local
511 rem = q->len - sizeof(*q->wh) - 4 - 4; in read_buddy_data()
[all …]
/dragonfly/tools/regression/bin/sh/parameters/
H A Dpositional2.022 testcase 'set -- a b; set -- p$@q' '2|pa|bq'
23 testcase 'set -- a b; set -- $@q' '2|a|bq'
26 testcase 'set -- a b; set -- $@q' '2|a|bq'
29 testcase 'set -- a b; set -- $*q' '2|a|bq'
32 testcase 'set -- a b; set -- $*q' '2|a|bq'
46 testcase 'set -- a; set -- p$@q' '1|paq'
47 testcase 'set -- a; set -- $@q' '1|aq'
49 testcase 'set -- a; set -- p$@q' '1|paq'
50 testcase 'set -- a; set -- $@q' '1|aq'
53 testcase 'set -- a; set -- $*q' '1|aq'
[all …]
/dragonfly/lib/libevtr/
H A Devtr.c299 q->cbs[q->ncbs - 1] = cb; in evtr_register_callback()
427 return q->err || (q->errmsg != NULL) || evtr_error(q->evtr); in evtr_query_error()
433 return q->errmsg ? q->errmsg : in evtr_query_errmsg()
434 (q->err ? strerror(q->err) : in evtr_query_errmsg()
779 if (evtr_filter_match(q, &q->filt[i], ev)) { in evtr_match_filters()
805 q->errmsg = &q->parse_err_buf[0]; in parse_callback()
1903 if (!(q = malloc(sizeof(*q)))) { in evtr_query_init()
1907 if (!(q->buf = malloc(q->bufsize))) { in evtr_query_init()
1958 evtr_deregister_filters(q, q->filt, q->nfilt); in evtr_query_destroy()
1970 if (q->off != q->evtr->bytes) { in evtr_query_next()
[all …]
/dragonfly/contrib/mpfr/src/
H A Dexp_2.c47 if (q < 0 || (mpfr_uexp_t) k > (mpfr_uexp_t) q) in mpz_normalize()
84 mpfr_prec_t q, precy; in mpfr_exp_2() local
134 q = precy + err + K + 8; in mpfr_exp_2()
137 q += expx; in mpfr_exp_2()
142 mpfr_init2 (r, q + error_r); in mpfr_exp_2()
143 mpfr_init2 (s, q + error_r); in mpfr_exp_2()
148 MPFR_ZIV_INIT (loop, q); in mpfr_exp_2()
202 l, (unsigned long) q, (K + l) * (double) q * q)); in mpfr_exp_2()
270 mpz_mul_2exp(s, s, q-1); in mpfr_exp2_aux()
345 expR[2] = 1 - q; in mpfr_exp2_aux2()
[all …]
/dragonfly/tools/tools/net80211/w00t/expand/
H A Dexpand.c116 struct queue *q = p->q; in enque() local
131 last = q; in enque()
132 q = q->next; in enque()
136 if (!q) { in enque()
137 q = (struct queue*) malloc(sizeof(*q)); in enque()
138 if (!q) in enque()
140 memset(q, 0, sizeof(*q)); in enque()
144 p->q = q; in enque()
183 struct queue *q = p->q; in send_mcast() local
306 struct queue *q = p->q; in send_queue() local
[all …]

12345678910>>...48