Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/uts/common/os/
H A Dddi.c706 ASSERT(sq); in qwait_sig()
765 ret = cv_wait_sig(&sq->sq_exitwait, SQLOCK(sq)); in qwait_sig()
818 ASSERT(sq); in qwait()
877 cv_wait(&sq->sq_exitwait, SQLOCK(sq)); in qwait()
907 syncq_t *sq; in qwait_rw() local
920 ASSERT(sq); in qwait_rw()
960 if (cv_wait_sig(&sq->sq_exitwait, SQLOCK(sq)) <= 0) { in qwait_rw()
996 syncq_t *sq; in qtimeout() local
1025 syncq_t *sq; in qbufcall() local
1074 cv_wait(&sq->sq_wait, SQLOCK(sq)); in quntimeout()
[all …]
H A Dputnext.c147 syncq_t *sq; in putnext() local
174 sq = qp->q_syncq; in putnext()
175 ASSERT(sq != NULL); in putnext()
207 sq->sq_count++; in putnext()
223 qp, mp, sq); in putnext()
371 sq->sq_count--; in putnext()
429 syncq_t *sq; in put() local
444 sq = qp->q_syncq; in put()
474 sq->sq_count++; in put()
490 qp, mp, sq); in put()
[all …]
H A Dstrsubr.c478 EQUIV(sq->sq_head, sq->sq_tail); \
495 sq->sq_head = sq->sq_tail = qp; \
519 sq->sq_pri = sq->sq_head->q_spri; \
1701 cv_wait(&sq->sq_wait, SQLOCK(sq)); in wait_syncq()
2694 sq->sq_onext = sq->sq_oprev = sq; in hold_dm()
5680 (sq->sq_onext == sq && sq->sq_oprev == sq)); in free_syncq()
5777 for (sq = outer->sq_onext; sq != outer; sq = sq->sq_onext) { in outer_enter()
5802 for (sq = outer->sq_onext; sq != outer; sq = sq->sq_onext) { in outer_enter()
5873 for (sq = outer->sq_onext; sq != outer; sq = sq->sq_onext) in outer_exit()
5880 for (sq = outer->sq_onext; sq != outer; sq = sq->sq_onext) in outer_exit()
[all …]
H A Dsemaphore.c289 kthread_t *sq, *tp; in sema_p_sig() local
293 sq = s->s_slpq; in sema_p_sig()
300 tp = sq; in sema_p_sig()
302 sq = sq->t_link; in sema_p_sig()
309 s->s_slpq = sq; in sema_p_sig()
335 kthread_t *sq, *tp; in sema_v() local
346 sq = s->s_slpq; in sema_v()
347 if (sq != NULL) { in sema_v()
348 tp = sq; in sema_v()
350 sq = sq->t_link; in sema_v()
[all …]
H A Dsig.c2399 sigqueue_t *sq, *next; in sigqhdralloc() local
2419 sq->sq_next = next; in sigqhdralloc()
2420 sq = next; in sigqhdralloc()
2422 sq->sq_next = NULL; in sigqhdralloc()
2438 sigqueue_t *sq = NULL; in sigqalloc() local
2451 sq->sq_func = NULL; in sigqalloc()
2453 sq = sqh->sqb_free; in sigqalloc()
2460 sq->sq_next = NULL; in sigqalloc()
2461 sq->sq_external = 0; in sigqalloc()
2466 return (sq); in sigqalloc()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_squeue.c239 sq->sq_set = sqs; in ip_squeue_set_create()
257 squeue_t *sq; in ip_squeue_getfree() local
260 for (sq = sqs->sqs_head; sq != NULL; sq = sq->sq_next) { in ip_squeue_getfree()
269 if (sq == NULL) { in ip_squeue_getfree()
271 sq->sq_set = sqs; in ip_squeue_getfree()
296 return (sq); in ip_squeue_getfree()
349 squeue_t *sq; in ip_squeue_random() local
374 ASSERT(sq); in ip_squeue_random()
375 return (sq); in ip_squeue_random()
394 set = sq->sq_set; in ip_squeue_set_move()
[all …]
H A Dsadb.c2356 sq->sp = &sq->spp->s_v6; in sadb_form_query()
2358 sq->sp = &sq->spp->s_v4; in sadb_form_query()
2365 sq->inbound = &sq->sp->sdb_if[sq->inhash]; in sadb_form_query()
2373 sq->outhash = OUTBOUND_HASH_V6(sq->sp, *(sq->dstaddr)); in sadb_form_query()
2377 sq->outbound = &sq->sp->sdb_of[sq->outhash]; in sadb_form_query()
2480 ipsa_query_t *sq = &ps->sq; in sadb_delpair_state_one() local
2698 sq->assoc->sadb_sa_spi, sq->srcaddr, sq->dstaddr, sq->af); in get_ipsa_pair()
2705 sq->assoc->sadb_sa_spi, sq->srcaddr, sq->dstaddr, in get_ipsa_pair()
2714 sq->assoc->sadb_sa_spi, sq->srcaddr, sq->dstaddr, sq->af); in get_ipsa_pair()
2720 sq->assoc->sadb_sa_spi, sq->srcaddr, sq->dstaddr, in get_ipsa_pair()
[all …]
H A Dipsecesp.c3071 ipsa_query_t sq; in esp_add_sa_finish() local
3080 &sq, diagnostic); in esp_add_sa_finish()
3091 primary = sq.inbound; in esp_add_sa_finish()
3092 secondary = sq.outbound; in esp_add_sa_finish()
3097 primary = sq.outbound; in esp_add_sa_finish()
3098 secondary = sq.inbound; in esp_add_sa_finish()
3121 primary = sq.inbound; in esp_add_sa_finish()
3136 primary = sq.outbound; in esp_add_sa_finish()
3158 acq_bucket = &(sq.sp->sdb_acq[sq.outhash]); in esp_add_sa_finish()
3196 larval = ipsec_getassocbyspi(sq.inbound, sq.assoc->sadb_sa_spi, in esp_add_sa_finish()
[all …]
H A Dipsecah.c770 ipsa_query_t sq; in ah_add_sa_finish() local
782 &sq, diagnostic); in ah_add_sa_finish()
793 primary = sq.inbound; in ah_add_sa_finish()
794 secondary = sq.outbound; in ah_add_sa_finish()
800 primary = sq.outbound; in ah_add_sa_finish()
801 secondary = sq.inbound; in ah_add_sa_finish()
824 primary = sq.inbound; in ah_add_sa_finish()
840 primary = sq.outbound; in ah_add_sa_finish()
862 acq_bucket = &(sq.sp->sdb_acq[sq.outhash]); in ah_add_sa_finish()
902 larval = ipsec_getassocbyspi(sq.inbound, sq.assoc->sadb_sa_spi, in ah_add_sa_finish()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dstrsubr.h834 #define SQLOCK(sq) (&(sq)->sq_lock) argument
886 #define SQ_PUTCOUNT_SETFAST(sq) { \ argument
887 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
888 if ((sq)->sq_ciputctrl != NULL) { \
890 int nlocks = (sq)->sq_nciputctrl; \
892 ASSERT((sq)->sq_type & SQ_CIPUT); \
901 #define SQ_PUTCOUNT_CLRFAST(sq) { \ argument
902 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
903 if ((sq)->sq_ciputctrl != NULL) { \
905 int nlocks = (sq)->sq_nciputctrl; \
[all …]
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dremquof.c58 int hx, ix, iy, iz, k, ny, nd, m, sq; in fmodquof() local
63 sq = (iy ^ hx) & is; /* sign of x/y */ in fmodquof()
75 *quo = 1 + (sq >> 30); in fmodquof()
165 *quo = sq >= 0 ? m : -m; in fmodquof()
187 *quo = sq >= 0 ? m : -m; in fmodquof()
215 int hx, hy, sx, sq; in remquof() local
221 sq = (hx ^ hy) & is; /* sign of x/y */ in remquof()
264 if (sq != 0) in remquof()
H A Dremquo.c61 int n, hx, hy, hz, ix, iy, sx, sq, i, m; in fmodquo() local
69 sq = (hx ^ hy) & 0x80000000; /* sign of x/y */ in fmodquo()
82 *quo = 1 + (sq >> 30); in fmodquo()
157 *quo = sq >= 0 ? m : -m; in fmodquo()
175 *quo = sq >= 0 ? m : -m; in fmodquo()
213 int hx, hy, sx, sq; in remquo() local
221 sq = (hx ^ hy) & 0x80000000; /* sign of x/y */ in remquo()
263 if (sq != 0) in remquo()
H A Dremquol.c60 int n, ix, iy, k, sx, sq, m; in fmodquol() local
75 sq = (hx ^ y0) & is; in fmodquol()
85 *quo = 1 + (sq >> 30); in fmodquol()
189 *quo = sq >= 0 ? m : -m; in fmodquol()
233 *quo = sq >= 0 ? m : -m; in fmodquol()
295 int hx, hy, sx, sq; in remquol() local
301 sq = (hx ^ hy) & is; /* sign of x/y */ in remquol()
343 if (sq != 0) in remquol()
/illumos-gate/usr/src/uts/common/io/
H A Dstream.c3735 syncq_t *sq; in rwnext() local
3782 sq = qp->q_syncq; in rwnext()
3785 count = sq->sq_count; in rwnext()
3803 cv_wait(&sq->sq_wait, SQLOCK(sq)); in rwnext()
3865 sq->sq_count--; in rwnext()
3923 syncq_t *sq; in infonext() local
3947 sq = qp->q_syncq; in infonext()
3959 cv_wait(&sq->sq_wait, SQLOCK(sq)); in infonext()
3975 sq->sq_count--; in infonext()
4049 ASSERT(sq != NULL); in create_syncq_putlocks()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/
H A Dt.addops22 sq = sprintf("%.10g", NR * sqrt(NR))
23 if (ns != sq) print NR, "urk2 ^=", ns, sq
/illumos-gate/usr/src/uts/common/io/ena/
H A Dena_admin.c117 ena_admin_sq_t *sq = &aq->ea_sq; in ena_admin_submit_cmd() local
122 uint16_t tail_mod = sq->eas_tail & modulo_mask; in ena_admin_submit_cmd()
136 cmd->ecd_flags = sq->eas_phase & ENAHW_CMD_PHASE_MASK; in ena_admin_submit_cmd()
138 bcopy(cmd, &sq->eas_entries[tail_mod], sizeof (*cmd)); in ena_admin_submit_cmd()
139 ENA_DMA_SYNC(sq->eas_dma, DDI_DMA_SYNC_FORDEV); in ena_admin_submit_cmd()
141 sq->eas_tail++; in ena_admin_submit_cmd()
149 lctx, uint16_t, tail_mod, uint8_t, sq->eas_phase); in ena_admin_submit_cmd()
151 if ((sq->eas_tail & modulo_mask) == 0) { in ena_admin_submit_cmd()
152 sq->eas_phase ^= 1; in ena_admin_submit_cmd()
155 ena_hw_abs_write32(ena, sq->eas_dbaddr, sq->eas_tail); in ena_admin_submit_cmd()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dstreams.c487 syncq_t sq; in syncq() local
557 if (mdb_vread(&sq, sizeof (sq), addr) == -1) { in syncq()
562 if (mask != 0 && !(sq.sq_flags & mask)) in syncq()
565 if (not_mask != 0 && (sq.sq_flags & not_mask)) in syncq()
568 sqtype = (sq.sq_type >> 8) & 0xff; in syncq()
586 addr, sq.sq_flags & 0xff, sqtype, sq.sq_count, in syncq()
587 sq.sq_nqueues, sq.sq_outer, sq.sq_svcflags, sq.sq_pri); in syncq()
593 if (!(sq.sq_flags & (1 << i))) in syncq()
868 syncq_t sq; in syncq2q() local
875 if (mdb_vread(&sq, sizeof (sq), addr) == -1) { in syncq2q()
/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx_gld.c508 mlxcx_work_queue_t *sq = (mlxcx_work_queue_t *)arg; in mlxcx_mac_ring_tx() local
509 mlxcx_t *mlxp = sq->mlwq_mlx; in mlxcx_mac_ring_tx()
557 atomic_or_uint(&sq->mlwq_state, MLXCX_WQ_BLOCKED_MAC); in mlxcx_mac_ring_tx()
561 mutex_enter(&sq->mlwq_mtx); in mlxcx_mac_ring_tx()
563 cq = sq->mlwq_cq; in mlxcx_mac_ring_tx()
570 mutex_exit(&sq->mlwq_mtx); in mlxcx_mac_ring_tx()
577 mutex_exit(&sq->mlwq_mtx); in mlxcx_mac_ring_tx()
593 if (sq->mlwq_wqebb_used >= sq->mlwq_bufhwm) { in mlxcx_mac_ring_tx()
594 atomic_or_uint(&sq->mlwq_state, MLXCX_WQ_BLOCKED_MAC); in mlxcx_mac_ring_tx()
615 mutex_exit(&sq->mlwq_mtx); in mlxcx_mac_ring_tx()
[all …]
H A Dmlxcx_ring.c1325 mlxcx_work_queue_t *sq; in mlxcx_tx_group_setup() local
1372 sq = &g->mlg_wqs[i]; in mlxcx_tx_group_setup()
1377 sq->mlwq_group = g; in mlxcx_tx_group_setup()
1387 mlxcx_work_queue_t *sq) in mlxcx_tx_ring_start() argument
1395 cq = sq->mlwq_cq; in mlxcx_tx_ring_start()
1399 mutex_enter(&sq->mlwq_mtx); in mlxcx_tx_ring_start()
1401 mutex_exit(&sq->mlwq_mtx); in mlxcx_tx_ring_start()
1425 mlxcx_shard_ready(sq->mlwq_bufs); in mlxcx_tx_ring_start()
1429 mutex_exit(&sq->mlwq_mtx); in mlxcx_tx_ring_start()
1436 (void) mlxcx_sq_add_nop(mlxp, sq); in mlxcx_tx_ring_start()
[all …]
H A Dmlxcx.c1663 if (!mlxcx_cmd_query_sq(mlxp, sq, &ctx)) in mlxcx_check_sq()
1670 if (sq->mlwq_state & MLXCX_WQ_STARTED) { in mlxcx_check_sq()
1672 sq->mlwq_num, "RST", state); in mlxcx_check_sq()
1673 sq->mlwq_fm_repd_qstate = B_TRUE; in mlxcx_check_sq()
1677 if (!(sq->mlwq_state & MLXCX_WQ_STARTED)) { in mlxcx_check_sq()
1679 sq->mlwq_num, "RDY", state); in mlxcx_check_sq()
1680 sq->mlwq_fm_repd_qstate = B_TRUE; in mlxcx_check_sq()
1685 sq->mlwq_num, "ERR", state); in mlxcx_check_sq()
1686 sq->mlwq_fm_repd_qstate = B_TRUE; in mlxcx_check_sq()
1690 sq->mlwq_num, "???", state); in mlxcx_check_sq()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_nvme.c1207 cqe->sqhd = sq->head; in pci_nvme_cq_update()
2045 sq = &sc->submit_queues[0]; in pci_nvme_handle_admin_cmd()
2050 sqhead = sq->head; in pci_nvme_handle_admin_cmd()
2054 cmd = &(sq->qbase)[sqhead]; in pci_nvme_handle_admin_cmd()
2141 sq->head = sqhead; in pci_nvme_handle_admin_cmd()
2298 __func__, sq->cqid); in pci_nvme_set_completion()
2742 sqhead = sq->head; in pci_nvme_handle_io_cmd()
2744 idx, sqhead, sq->tail, sq->qbase); in pci_nvme_handle_io_cmd()
2756 cmd = &sq->qbase[sqhead]; in pci_nvme_handle_io_cmd()
2775 req->nvme_sq = sq; in pci_nvme_handle_io_cmd()
[all …]
/illumos-gate/usr/src/cmd/factor/
H A Dfactor.c41 double sq[] = { variable
95 ii += sq[j]; in main()
/illumos-gate/usr/src/uts/i86pc/io/
H A Dimmu_intrmap.c443 uchar_t svt, sq; in get_sid() local
453 sq = SQ_VERIFY_ALL; in get_sid()
465 sq = SQ_VERIFY_ALL; in get_sid()
471 sq = SQ_VERIFY_ALL; in get_sid()
475 return (sid | (svt << 18) | (sq << 16)); in get_sid()
/illumos-gate/usr/src/cmd/lp/filter/postscript/font/devpost/charlib/
H A DMakefile31 ob rc rf rh sq
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_sata.c94 sp = STAILQ_FIRST(&xp->sq); in pmcs_sata_special_work()
500 STAILQ_REMOVE_HEAD(&xp->sq, cmd_next); in pmcs_sata_special_work()
541 while (!STAILQ_EMPTY(&xp->sq)) { in pmcs_run_sata_special()
571 if (STAILQ_EMPTY(&xp->sq)) { in pmcs_sata_work()

123