Home
last modified time | relevance | path

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

123

/titanic_44/usr/src/uts/common/os/
H A Dddi.c692 syncq_t *sq, *outer; in qwait_sig() local
705 sq = q->q_syncq; in qwait_sig()
706 ASSERT(sq); in qwait_sig()
707 is_sq_cioc = (sq->sq_type & SQ_CIOC) ? 1 : 0; in qwait_sig()
708 ASSERT(sq->sq_outer == NULL || sq->sq_outer->sq_flags & SQ_WRITER); in qwait_sig()
709 outer = sq->sq_outer; in qwait_sig()
717 mutex_enter(SQLOCK(sq)); in qwait_sig()
719 SQ_PUTLOCKS_ENTER(sq); in qwait_sig()
721 flags = sq->sq_flags; in qwait_sig()
726 ASSERT(sq->sq_count > 0); in qwait_sig()
[all …]
H A Dputnext.c147 syncq_t *sq; in putnext() local
174 sq = qp->q_syncq; in putnext()
175 ASSERT(sq != NULL); in putnext()
176 ASSERT(MUTEX_NOT_HELD(SQLOCK(sq))); in putnext()
179 if (sq->sq_ciputctrl != NULL) { in putnext()
181 ASSERT(sq->sq_flags & SQ_CIPUT); in putnext()
182 ix = CPU->cpu_seqid & sq->sq_nciputctrl; in putnext()
183 sqciplock = &sq->sq_ciputctrl[ix].ciputctrl_lock; in putnext()
184 sqcipcount = &sq->sq_ciputctrl[ix].ciputctrl_count; in putnext()
187 (sq->sq_flags & (SQ_STAYAWAY|SQ_EXCL|SQ_EVENTS))) { in putnext()
[all …]
H A Dstrsubr.c467 #define SQPUT_Q(sq, qp) \ argument
469 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
474 EQUIV(sq->sq_head, sq->sq_tail); \
476 ASSERT(sq == qp->q_syncq); \
478 EQUIV(sq->sq_head, (sq->sq_flags & SQ_MESSAGES)); \
480 IMPLY(sq->sq_head != NULL, sq->sq_head->q_sqprev == NULL);\
481 IMPLY(sq->sq_tail != NULL, sq->sq_tail->q_sqnext == NULL);\
487 IMPLY(sq->sq_head == NULL, sq->sq_pri == 0); \
489 EQUIV(sq->sq_head, sq->sq_nqueues); \
490 if (sq->sq_head == NULL) { \
[all …]
H A Dsemaphore.c289 kthread_t *sq, *tp; in sema_p_sig() local
293 sq = s->s_slpq; in sema_p_sig()
299 if ((sq != NULL) && (s->s_count > 0)) { 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()
[all …]
H A Dsig.c2383 sigqueue_t *sq, *next; in sigqhdralloc() local
2400 sqh->sqb_free = sq = (sigqueue_t *)(sqh + 1); in sigqhdralloc()
2402 next = (sigqueue_t *)((uintptr_t)sq + size); in sigqhdralloc()
2403 sq->sq_next = next; in sigqhdralloc()
2404 sq = next; in sigqhdralloc()
2406 sq->sq_next = NULL; in sigqhdralloc()
2422 sigqueue_t *sq = NULL; in sigqalloc() local
2434 sq = kmem_alloc(sizeof (sigqueue_t), KM_SLEEP); in sigqalloc()
2435 sq->sq_func = NULL; in sigqalloc()
2437 sq = sqh->sqb_free; in sigqalloc()
[all …]
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip_squeue.c188 squeue_t **lastsqp, *sq; in ip_squeue_set_create() local
236 sq = *defaultq_lastp; in ip_squeue_set_create()
237 *defaultq_lastp = sq->sq_next; in ip_squeue_set_create()
238 sq->sq_next = NULL; in ip_squeue_set_create()
239 if (!(sq->sq_state & SQS_DEFAULT)) { in ip_squeue_set_create()
240 mutex_enter(&sq->sq_lock); in ip_squeue_set_create()
241 sq->sq_state |= SQS_DEFAULT; in ip_squeue_set_create()
242 mutex_exit(&sq->sq_lock); in ip_squeue_set_create()
245 sq = ip_squeue_create(SQUEUE_DEFAULT_PRIORITY); in ip_squeue_set_create()
246 sq->sq_state |= SQS_DEFAULT; in ip_squeue_set_create()
[all …]
H A Dsadb.c2149 sadb_match_spi(ipsa_query_t *sq, ipsa_t *sa) in sadb_match_spi() argument
2151 return (sq->spi == sa->ipsa_spi); in sadb_match_spi()
2155 sadb_match_dst_v6(ipsa_query_t *sq, ipsa_t *sa) in sadb_match_dst_v6() argument
2157 return (IPSA_ARE_ADDR_EQUAL(sa->ipsa_dstaddr, sq->dstaddr, AF_INET6)); in sadb_match_dst_v6()
2161 sadb_match_src_v6(ipsa_query_t *sq, ipsa_t *sa) in sadb_match_src_v6() argument
2163 return (IPSA_ARE_ADDR_EQUAL(sa->ipsa_srcaddr, sq->srcaddr, AF_INET6)); in sadb_match_src_v6()
2167 sadb_match_dst_v4(ipsa_query_t *sq, ipsa_t *sa) in sadb_match_dst_v4() argument
2169 return (sq->dstaddr[0] == sa->ipsa_dstaddr[0]); in sadb_match_dst_v4()
2173 sadb_match_src_v4(ipsa_query_t *sq, ipsa_t *sa) in sadb_match_src_v4() argument
2175 return (sq->srcaddr[0] == sa->ipsa_srcaddr[0]); in sadb_match_src_v4()
[all …]
H A Dipsecesp.c3313 ipsa_query_t sq; in esp_add_sa_finish() local
3319 sq.spp = &espstack->esp_sadb; /* XXX */ in esp_add_sa_finish()
3322 &sq, diagnostic); in esp_add_sa_finish()
3332 if (sq.assoc->sadb_sa_flags & IPSA_F_INBOUND) { in esp_add_sa_finish()
3333 primary = sq.inbound; in esp_add_sa_finish()
3334 secondary = sq.outbound; in esp_add_sa_finish()
3336 if (sq.assoc->sadb_sa_flags & IPSA_F_OUTBOUND) in esp_add_sa_finish()
3338 } else if (sq.assoc->sadb_sa_flags & IPSA_F_OUTBOUND) { in esp_add_sa_finish()
3339 primary = sq.outbound; in esp_add_sa_finish()
3340 secondary = sq.inbound; in esp_add_sa_finish()
[all …]
H A Dipsecah.c782 ipsa_query_t sq; in ah_add_sa_finish() local
791 sq.spp = &ahstack->ah_sadb; in ah_add_sa_finish()
794 &sq, diagnostic); in ah_add_sa_finish()
805 primary = sq.inbound; in ah_add_sa_finish()
806 secondary = sq.outbound; in ah_add_sa_finish()
812 primary = sq.outbound; in ah_add_sa_finish()
813 secondary = sq.inbound; in ah_add_sa_finish()
836 primary = sq.inbound; in ah_add_sa_finish()
837 secondary = sq.outbound; in ah_add_sa_finish()
852 primary = sq.outbound; in ah_add_sa_finish()
[all …]
/titanic_44/usr/src/uts/common/sys/
H A Dstrsubr.h816 #define SQLOCK(sq) (&(sq)->sq_lock) argument
842 #define SQ_PUTLOCKS_ENTER(sq) { \ argument
843 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
844 if ((sq)->sq_ciputctrl != NULL) { \
846 int nlocks = (sq)->sq_nciputctrl; \
847 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
848 ASSERT((sq)->sq_type & SQ_CIPUT); \
855 #define SQ_PUTLOCKS_EXIT(sq) { \ argument
856 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
857 if ((sq)->sq_ciputctrl != NULL) { \
[all …]
/titanic_44/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()
/titanic_44/usr/src/uts/common/avs/ns/rdc/
H A Drdc_svc.c1022 rdc_sleepq_t *sq; in r_net_write6() local
1061 sq = rdc_newsleepq(); in r_net_write6()
1062 sq->seq = diskio.seq; in r_net_write6()
1063 sq->sindex = diskio.cd; in r_net_write6()
1064 sq->pindex = diskio.local_cd; in r_net_write6()
1065 sq->idx = diskio.idx; in r_net_write6()
1066 sq->qpos = diskio.qpos; in r_net_write6()
1067 sq->nocache = nocache; in r_net_write6()
1068 if (rdc_sleepq(group, sq)) { in r_net_write6()
2204 rdc_sleepq_t *sq; in rdc_newsleepq() local
[all …]
/titanic_44/usr/src/uts/common/io/
H A Dstream.c3754 syncq_t *sq; in rwnext() local
3801 sq = qp->q_syncq; in rwnext()
3802 mutex_enter(SQLOCK(sq)); in rwnext()
3804 count = sq->sq_count; in rwnext()
3805 flags = sq->sq_flags; in rwnext()
3806 ASSERT(sq->sq_ciputctrl == NULL || (flags & SQ_CIPUT)); in rwnext()
3813 mutex_exit(SQLOCK(sq)); in rwnext()
3821 sq->sq_flags = flags | SQ_WANTWAKEUP; in rwnext()
3822 cv_wait(&sq->sq_wait, SQLOCK(sq)); in rwnext()
3823 count = sq->sq_count; in rwnext()
[all …]
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dstreams.c483 syncq_t sq; in syncq() local
553 if (mdb_vread(&sq, sizeof (sq), addr) == -1) { in syncq()
558 if (mask != 0 && !(sq.sq_flags & mask)) in syncq()
561 if (not_mask != 0 && (sq.sq_flags & not_mask)) in syncq()
564 sqtype = (sq.sq_type >> 8) & 0xff; in syncq()
582 addr, sq.sq_flags & 0xff, sqtype, sq.sq_count, in syncq()
583 sq.sq_nqueues, sq.sq_outer, sq.sq_svcflags, sq.sq_pri); in syncq()
589 if (!(sq.sq_flags & (1 << i))) in syncq()
864 syncq_t sq; in syncq2q() local
871 if (mdb_vread(&sq, sizeof (sq), addr) == -1) { in syncq2q()
H A Dsobj.c172 sleepq_head_t *sq; in wchan_walk_step() local
187 sq = &ww->ww_sleepq[ww->ww_sleepq_ndx++]; in wchan_walk_step()
188 t = (uintptr_t)sq->sq_queue.sq_first; in wchan_walk_step()
/titanic_44/usr/src/cmd/factor/
H A Dfactor.c43 double sq[] = { variable
97 ii += sq[j]; in main()
/titanic_44/usr/src/cmd/lp/filter/postscript/font/devpost/charlib/
H A DMakefile31 ob rc rf rh sq
H A Dsq1 %ident "@(#)lp:filter/postscript/font/devpost/charlib/sq 1.2"
/titanic_44/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()
/titanic_44/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_sata.c93 sp = STAILQ_FIRST(&xp->sq); in pmcs_sata_special_work()
499 STAILQ_REMOVE_HEAD(&xp->sq, cmd_next); in pmcs_sata_special_work()
540 while (!STAILQ_EMPTY(&xp->sq)) { in pmcs_run_sata_special()
570 if (STAILQ_EMPTY(&xp->sq)) { in pmcs_sata_work()
/titanic_44/usr/src/cmd/mdb/common/modules/rdc/
H A Drdc.c246 rdc_sleepq_t sq; in rdc_sleepq() local
251 if (mdb_vread(&sq, sizeof (sq), addr) != sizeof (sq)) { in rdc_sleepq()
255 mdb_printf("sequence number %u qpos %d \n", sq.seq, sq.qpos); in rdc_sleepq()
256 addr = (uintptr_t)sq.next; in rdc_sleepq()
/titanic_44/usr/src/cmd/eqn/eqnchar.d/
H A Deqnchar65 tdefine square % \(sq %
69 tdefine blot % "\fB\(sq\fP" %
/titanic_44/usr/src/cmd/troff/nroff.d/terms.d/
H A Dab.X33 sq 1 \033X\115

123