Home
last modified time | relevance | path

Searched refs:sq (Results 1 – 25 of 178) sorted by relevance

12345678

/netbsd-src/external/bsd/unbound/dist/services/
H A Doutside_network.c84 static void serviced_tcp_initiate(struct serviced_query* sq, sldns_buffer* buff);
94 static int serviced_udp_send(struct serviced_query* sq, sldns_buffer* buff);
97 static int serviced_tcp_send(struct serviced_query* sq, sldns_buffer* buff);
100 static void serviced_callbacks(struct serviced_query* sq, int error,
1006 if(outnet->dtenv && pend_tcp && w && w->sq &&
1011 dt_msg_send_outside_query(outnet->dtenv, &w->sq->addr,
1012 &pend_tcp->pi->addr, comm_tcp, w->sq->zone,
1013 w->sq->zonelen, &tmp);
1447 log_assert(!pend->sq->busy);
1448 pend->sq->busy = 1;
[all …]
H A Doutside_network.h334 struct serviced_query* sq; member
423 struct serviced_query* sq; member
597 struct pending* pending_udp_query(struct serviced_query* sq,
613 struct waiting_tcp* pending_tcp_query(struct serviced_query* sq,
674 void outnet_serviced_query_stop(struct serviced_query* sq, void* cb_arg);
691 size_t serviced_get_mem(struct serviced_query* sq);
/netbsd-src/external/bsd/unbound/dist/edns-subnet/
H A Dsubnetmod.c90 struct subnet_qstate *sq = (struct subnet_qstate*)regional_alloc( in subnet_new_qstate() local
92 if(!sq) in subnet_new_qstate()
94 qstate->minfo[id] = sq; in subnet_new_qstate()
95 memset(sq, 0, sizeof(*sq)); in subnet_new_qstate()
96 sq->started_no_cache_store = qstate->no_cache_store; in subnet_new_qstate()
97 sq->started_no_cache_lookup = qstate->no_cache_lookup; in subnet_new_qstate()
146 struct subnet_qstate *sq; in ecs_whitelist_check() local
149 if(!(sq=(struct subnet_qstate*)qstate->minfo[id])) in ecs_whitelist_check()
159 sq->subnet_sent_no_subnet = 0; in ecs_whitelist_check()
160 if(sq->ecs_server_out.subnet_validdata && ((sq->subnet_downstream && in ecs_whitelist_check()
[all …]
/netbsd-src/sys/kern/
H A Dkern_sleepq.c101 sleepq_init(sleepq_t *sq) in sleepq_init() argument
104 LIST_INIT(sq); in sleepq_init()
120 sleepq_remove(sleepq_t *sq, lwp_t *l, bool wakeup) in sleepq_remove() argument
128 KASSERT(sq != NULL); in sleepq_remove()
131 KASSERT(sq == NULL); in sleepq_remove()
191 sleepq_insert(sleepq_t *sq, lwp_t *l, syncobj_t *sobj) in sleepq_insert() argument
195 KASSERT(sq == NULL); in sleepq_insert()
198 KASSERT(sq != NULL); in sleepq_insert()
204 LIST_FOREACH(l2, sq, l_sleepchain) { in sleepq_insert()
220 LIST_INSERT_HEAD(sq, l, l_sleepchain); in sleepq_insert()
[all …]
H A Dkern_condvar.c127 sleepq_t *sq; in cv_enter() local
136 sq = CV_SLEEPQ(cv); in cv_enter()
137 nlocks = sleepq_enter(sq, l, mp); in cv_enter()
138 sleepq_enqueue(sq, cv, CV_WMESG(cv), &cv_syncobj, catch_p); in cv_enter()
485 sleepq_t *sq; in cv_wakeup_one() local
490 sq = CV_SLEEPQ(cv); in cv_wakeup_one()
491 if (__predict_true((l = LIST_FIRST(sq)) != NULL)) { in cv_wakeup_one()
492 KASSERT(l->l_sleepq == sq); in cv_wakeup_one()
495 sleepq_remove(sq, l, true); in cv_wakeup_one()
532 sleepq_t *sq; in cv_wakeup_all() local
[all …]
H A Dkern_turnstile.c376 sleepq_t *sq; in turnstile_block() local
419 sq = &ts->ts_sleepq[q]; in turnstile_block()
421 nlocks = sleepq_enter(sq, l, lock); in turnstile_block()
423 sleepq_enqueue(sq, obj, sobj->sobj_name, sobj, false); in turnstile_block()
446 sleepq_t *sq; in turnstile_wakeup() local
453 sq = &ts->ts_sleepq[q]; in turnstile_wakeup()
471 LIST_FOREACH(l, sq, l_sleepchain) { in turnstile_wakeup()
481 l = LIST_FIRST(sq); in turnstile_wakeup()
H A Dkern_synch.c188 sleepq_t *sq; in tsleep() local
203 sq = sleeptab_lookup(&sleeptab, ident, &mp); in tsleep()
204 nlocks = sleepq_enter(sq, l, mp); in tsleep()
205 sleepq_enqueue(sq, ident, wmesg, &sleep_syncobj, catch_p); in tsleep()
214 sleepq_t *sq; in mtsleep() local
228 sq = sleeptab_lookup(&sleeptab, ident, &mp); in mtsleep()
229 nlocks = sleepq_enter(sq, l, mp); in mtsleep()
230 sleepq_enqueue(sq, ident, wmesg, &sleep_syncobj, catch_p); in mtsleep()
274 sleepq_t *sq; in wakeup() local
280 sq = sleeptab_lookup(&sleeptab, ident, &mp); in wakeup()
[all …]
/netbsd-src/games/sail/
H A Ddr_1.c77 struct ship *sp, *sq; in boardcomp() local
91 foreachship(sq) { in boardcomp()
92 if (!Xsnagged2(sp, sq)) in boardcomp()
94 if (meleeing(sp, sq)) in boardcomp()
96 if (!sq->file->dir in boardcomp()
97 || sp->nationality == capship(sq)->nationality) in boardcomp()
99 switch (sp->specs->class - sq->specs->class) { in boardcomp()
103 sendbp(sp, sq, crew[0]*100, 0); in boardcomp()
107 sendbp(sp, sq, crew[1]*10, 0); in boardcomp()
114 sendbp(sp, sq, crew[0]*100+crew[1]*10, in boardcomp()
[all …]
H A Ddr_2.c65 struct ship *sp, *sq; in thinkofgrapples() local
71 foreachship(sq) { in thinkofgrapples()
72 friendly = sp->nationality == capship(sq)->nationality; in thinkofgrapples()
76 if (range(sp, sq) != 1) in thinkofgrapples()
78 if (grappled2(sp, sq)) { in thinkofgrapples()
79 if (is_toughmelee(sp, sq, 0, 0)) in thinkofgrapples()
80 ungrap(sp, sq); in thinkofgrapples()
82 grap(sp, sq); in thinkofgrapples()
83 } else if (couldwin(sp, sq)) { in thinkofgrapples()
84 grap(sp, sq); in thinkofgrapples()
[all …]
H A Ddr_3.c55 struct ship *sp, *sq; in moveall() local
130 foreachship(sq) { in moveall()
133 if (sp == sq) in moveall()
135 if (sq->file->dir == 0) in moveall()
137 if (!push(sp, sq)) in moveall()
139 if (snagged2(sp, sq) && range(sp, sq) > 1) in moveall()
141 if (!range(sp, sq) && !fouled2(sp, sq)) { in moveall()
142 makesignal(sp, "collision with $$", sq); in moveall()
145 sq); in moveall()
147 send_foul(sq, n); in moveall()
[all …]
/netbsd-src/sys/rump/librump/rumpkern/
H A Dsleepq.c45 sleepq_init(sleepq_t *sq) in sleepq_init() argument
48 LIST_INIT(sq); in sleepq_init()
49 cv_init(&sq->sq_cv, "sleepq"); in sleepq_init()
53 sleepq_destroy(sleepq_t *sq) in sleepq_destroy() argument
56 cv_destroy(&sq->sq_cv); in sleepq_destroy()
60 sleepq_enter(sleepq_t *sq, lwp_t *l, kmutex_t *mp) in sleepq_enter() argument
75 sleepq_enqueue(sleepq_t *sq, wchan_t wc, const char *wmsg, syncobj_t *sob, in sleepq_enqueue() argument
82 l->l_sleepq = sq; in sleepq_enqueue()
83 LIST_INSERT_HEAD(sq, l, l_sleepchain); in sleepq_enqueue()
113 sleepq_wake(sleepq_t *sq, wchan_t wchan, u_int expected, kmutex_t *mp) in sleepq_wake() argument
[all …]
/netbsd-src/external/gpl3/binutils/dist/ld/
H A Dlibdep_plugin.c141 char *sq, *dq; in str2vec() local
160 sq = NULL; in str2vec()
172 if (sq || dq) in str2vec()
181 if (sq) in str2vec()
183 memmove (sq, sq+1, s-sq-1); in str2vec()
187 sq = NULL; in str2vec()
191 sq = s; in str2vec()
194 if (*s == '"' && !sq) in str2vec()
/netbsd-src/external/gpl3/binutils.old/dist/ld/
H A Dlibdep_plugin.c141 char *sq, *dq; in str2vec() local
160 sq = NULL; in str2vec()
172 if (sq || dq) in str2vec()
181 if (sq) in str2vec()
183 memmove (sq, sq+1, s-sq-1); in str2vec()
187 sq = NULL; in str2vec()
191 sq = s; in str2vec()
194 if (*s == '"' && !sq) in str2vec()
/netbsd-src/games/monop/
H A Dhouses.c148 pp = mp->sq[i]->desc; in buy_h()
151 printf("%s (H):\n", mp->sq[i]->name); in buy_h()
157 mp->sq[i]->name, pp->houses); in buy_h()
210 mp->sq[i]->desc->houses = result[i]; in buy_h()
281 pp = mp->sq[i]->desc; in sell_h()
284 printf("%s (0):\n", mp->sq[i]->name); in sell_h()
290 mp->sq[i]->name,pp->houses); in sell_h()
293 mp->sq[i]->name); in sell_h()
318 mp->sq[i]->desc->houses = temp[i]; in sell_h()
330 sqp = mp->sq[i]; in list_cur()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dtls13encryptiontest.c242 unsigned char *pt = NULL, *sq = NULL, *ivtmp = NULL; in load_record() local
247 sq = OPENSSL_hexstr2buf(recd->seq, NULL); in load_record()
250 if (*key == NULL || ivtmp == NULL || sq == NULL || pt == NULL) in load_record()
261 memcpy(seq, sq, SEQ_NUM_SIZE); in load_record()
262 OPENSSL_free(sq); in load_record()
271 OPENSSL_free(sq); in load_record()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dtls13encryptiontest.c253 unsigned char *pt = NULL, *sq = NULL, *ivtmp = NULL; in load_record() local
258 sq = OPENSSL_hexstr2buf(recd->seq, NULL); in load_record()
261 if (*key == NULL || ivtmp == NULL || sq == NULL || pt == NULL) in load_record()
272 memcpy(seq, sq, SEQ_NUM_SIZE); in load_record()
273 OPENSSL_free(sq); in load_record()
282 OPENSSL_free(sq); in load_record()
/netbsd-src/external/historical/nawk/dist/testdir/
H A Dt.addops22 sq = sprintf("%.10g", NR * sqrt(NR))
23 if (ns != sq) print NR, "urk2 ^=", ns, sq
/netbsd-src/sys/arch/sgimips/hpc/
H A Dfiles.hpc3 device sq: arp, ether, ifnet
4 attach sq at hpc
5 file arch/sgimips/hpc/if_sq.c sq
/netbsd-src/external/lgpl3/mpfr/dist/src/
H A Dsum.c539 mpfr_prec_t sq; in sum_aux() local
566 sq = MPFR_GET_PREC (sum); in sum_aux()
573 ws = MPFR_PREC2LIMBS (cq + sq + logn + 2); in sum_aux()
575 MPFR_ASSERTD (wq - cq - sq >= 4); in sum_aux()
578 zs = MPFR_PREC2LIMBS (wq - sq); in sum_aux()
580 MPFR_LOG_MSG (("cq=%d sq=%Pd logn=%d wq=%Pd\n", cq, sq, logn, wq)); in sum_aux()
634 MPFR_ASSERTD (wq >= logn + sq + 5); in sum_aux()
636 logn, sq + 3, &e, &minexp, &maxexp); in sum_aux()
656 u = e - sq; /* e being the exponent, u is the ulp of the target */ in sum_aux()
1048 [cancel2 == 0 ? 1 : sst+1][neg][sq > MPFR_PREC_MIN]); in sum_aux()
[all …]
/netbsd-src/sys/external/bsd/ena-com/
H A Dena_com.c123 struct ena_com_admin_sq *sq = &queue->sq; in ena_com_admin_init_sq() local
126 ENA_MEM_ALLOC_COHERENT(queue->q_dmadev, size, sq->entries, sq->dma_addr, in ena_com_admin_init_sq()
127 sq->mem_handle); in ena_com_admin_init_sq()
129 if (!sq->entries) { in ena_com_admin_init_sq()
134 sq->head = 0; in ena_com_admin_init_sq()
135 sq->tail = 0; in ena_com_admin_init_sq()
136 sq->phase = 1; in ena_com_admin_init_sq()
138 sq->db_addr = NULL; in ena_com_admin_init_sq()
249 tail_masked = admin_queue->sq.tail & queue_size_mask; in __ena_com_submit_admin_cmd()
261 cmd->aq_common_descriptor.flags |= admin_queue->sq.phase & in __ena_com_submit_admin_cmd()
[all …]
/netbsd-src/sys/sys/
H A Dsleeptab.h64 sleepq_t *sq; in sleeptab_lookup() local
68 sq = &st->st_queue[hash]; in sleeptab_lookup()
71 return sq; in sleeptab_lookup()
/netbsd-src/sys/ddb/
H A Ddb_xxx.c350 sleepq_t sq; in db_show_sleepq() local
353 db_read_bytes(addr, sizeof(lp), (char *)&sq); in db_show_sleepq()
355 if ((lp = LIST_FIRST(&sq)) == NULL) { in db_show_sleepq()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
H A Dhash.c59 unsigned long int sq = divn * divn; in is_prime() local
61 while (sq < candidate && candidate % divn != 0) in is_prime()
64 sq += 4 * divn; in is_prime()
/netbsd-src/external/gpl2/gettext/dist/gnulib-local/lib/
H A Dhash.c59 unsigned long int sq = divn * divn; in is_prime() local
61 while (sq < candidate && candidate % divn != 0) in is_prime()
64 sq += 4 * divn; in is_prime()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dhash.c59 unsigned long int sq = divn * divn; in is_prime() local
61 while (sq < candidate && candidate % divn != 0) in is_prime()
64 sq += 4 * divn; in is_prime()

12345678