/illumos-gate/usr/src/uts/common/io/vuidmice/ |
H A D | vuidps2.c | 229 put1(WR(qp), MSESETRES); in vuidmice_start_wdc_or_setres() 232 put1(WR(qp), MSECHGMOD); in vuidmice_start_wdc_or_setres() 246 put1(WR(qp), MSERESET); in VUID_OPEN() 331 put1(WR(qp), MSERESET); in VUID_INIT_TIMEOUT() 446 put1(WR(qp), MSERESET); in VUID_QUEUE() 463 put1(WR(qp), MSERESET); in VUID_QUEUE() 469 put1(WR(qp), MSERESET); in VUID_QUEUE() 642 put1(WR(qp), MSERESET); in VUID_QUEUE() 669 put1(WR(qp), MSESETRES); in VUID_QUEUE() 677 put1(WR(qp), 0); in VUID_QUEUE() [all …]
|
/illumos-gate/usr/src/cmd/tail/ |
H A D | read.c | 84 WR(t + 1, len); in bytes() 92 WR(t + 1, len); in bytes() 96 WR(sp, tlen); in bytes() 101 WR(t + 1, len); in bytes() 103 WR(sp, tlen); in bytes() 107 WR(p, len); in bytes() 110 WR(sp, len); in bytes() 186 WR(llines[cnt].l, llines[cnt].len); in lines() 189 WR(llines[cnt].l, llines[cnt].len); in lines() 193 WR(llines[cnt].l, llines[cnt].len); in lines() [all …]
|
H A D | reverse.c | 250 WR(p + 1, llen); in r_buf() 256 WR(tr->l, tr->len); in r_buf() 268 WR(tl->l, tl->len); in r_buf() 272 WR(tl->l, tl->len); in r_buf()
|
H A D | extern.h | 38 #define WR(p, size) do { \ macro
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | clone.c | 238 winit = WR(rq)->q_qinfo; in clnopen() 308 if (backq(WR(rq)) && backq(WR(rq))->q_next == WR(rq)) in clnopen() 311 rq->q_next = WR(rq)->q_next = NULL; in clnopen() 313 ASSERT(flush_syncq(WR(rq)->q_syncq, WR(rq)) == 0); in clnopen() 314 rq->q_ptr = WR(rq)->q_ptr = NULL; in clnopen()
|
H A D | zcons.c | 487 WR(rqp)->q_ptr = rqp->q_ptr = zcs; in zc_manager_open() 536 ASSERT((rqp != NULL) && (WR(rqp)->q_ptr == zcs)); in zc_subsidiary_open() 567 WR(rqp)->q_ptr = rqp->q_ptr = zcs; in zc_subsidiary_open() 651 qenable(WR(zcs->zc_subsid_rdq)); in zc_close() 655 WR(rqp)->q_ptr = rqp->q_ptr = NULL; in zc_close() 663 wqp = WR(rqp); in zc_close() 678 qenable(WR(zcs->zc_manager_rdq)); in zc_close() 681 WR(rqp)->q_ptr = rqp->q_ptr = NULL; in zc_close() 767 if (zcs->zc_manager_rdq != NULL && qp == WR(zcs->zc_manager_rdq) && in zc_wput() 968 qenable(WR(zc_switch(qp))); in zc_rsrv()
|
H A D | pts.c | 385 WR(rqp)->q_ptr = rqp->q_ptr = ptsp; in ptsopen() 466 wqp = WR(rqp); in ptsclose() 488 qenable(WR(ptsp->ptm_rdq)); in ptsclose() 496 WR(rqp)->q_ptr = NULL; in ptsclose() 679 qenable(WR(ptsp->ptm_rdq)); in ptsrsrv()
|
H A D | tirdwr.c | 180 WR(q)->q_ptr = (caddr_t)trwptr; in tirdwropen() 185 (void) strqset(WR(q), QMAXPSZ, 0, (uintptr_t)WR(q)->q_next->q_maxpsz); in tirdwropen() 227 putnext(WR(q), mp); in tirdwrclose()
|
H A D | ptm.c | 368 WR(rqp)->q_ptr = rqp->q_ptr = ptmp; in ptmopen() 440 qenable(WR(ptmp->pts_rdq)); in ptmclose() 447 WR(rqp)->q_ptr = NULL; in ptmclose() 638 qenable(WR(ptmp->pts_rdq)); in ptmrsrv()
|
H A D | logindmux.c | 323 WR(q)->q_ptr = tmxp; in logdmuxopen() 375 WR(q)->q_ptr = NULL; in logdmuxclose() 732 logdmux_finish_unlink(WR(qp), mp->b_cont); in logdmuxlrput() 935 qenable(WR(tmxp->rdq)); in logdmuxlwsrv() 1079 while ((mp = getq(WR(q))) != NULL) in logdmux_finish_unlink() 1181 ASSERT(WR(q)->q_next == NULL); /* Called from upper queue only */ in recover()
|
H A D | ldterm.c | 721 WR(q)->q_ptr = (caddr_t)tp; in ldtermopen() 822 WR(q)->q_ptr = NULL; in ldtermopen() 897 if (!putq(WR(q), bp)) in ldtermclose() 898 putnext(WR(q), bp); in ldtermclose() 953 queue_t *wrq = WR(q); /* write queue of ldterm mod */ in ldtermrput() 1528 (void) putctl(WR(q), M_STARTI); in ldtermrsrv() 1572 if (canputnext(WR(q))) in ldtermrmsg() 1573 ldterm_outchar(CTRL('g'), WR(q), 4, tp); in ldtermrmsg() 1621 (void) putnextctl(WR(q), M_START); in ldtermrmsg() 1637 (void) putctl1(WR(q), M_FLUSH, FLUSHR); in ldtermrmsg() [all …]
|
H A D | log.c | 131 WR(q)->q_ptr = lp; in log_open() 153 WR(q)->q_ptr = NULL; in log_close()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_helper_stream.c | 80 connp->conn_helper_info->iphs_wq = WR(q); in ip_helper_share_conn() 81 WR(q)->q_ptr = RD(q)->q_ptr = (void *)connp; in ip_helper_share_conn() 83 connp->conn_wq = WR(q); in ip_helper_share_conn() 145 RD(q)->q_ptr = WR(q)->q_ptr = ip_minfop; in ip_helper_stream_setup() 151 WR(q)->q_qinfo = &ip_helper_stream_winit; in ip_helper_stream_setup() 168 WR(q)->q_ptr = NULL; in ip_helper_stream_close()
|
H A D | keysock.c | 490 if (WR(q)->q_next) { in keysock_close() 606 kc->kc_wq = WR(q); in keysock_open() 609 WR(q)->q_ptr = kc; in keysock_open() 626 WR(q)->q_ptr = NULL; in keysock_open() 664 ks->keysock_wq = WR(q); in keysock_open() 669 WR(q)->q_ptr = ks; in keysock_open() 686 WR(q)->q_hiwat = keystack->keystack_xmit_hiwat; in keysock_open() 687 WR(q)->q_lowat = keystack->keystack_xmit_lowat; in keysock_open() 1707 ASSERT(WR(q)->q_next == NULL); in keysock_parse() 1961 if (WR(q)->q_next) { in keysock_wput() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rpcmod.c | 491 WR(q)->q_ptr = (void *)t; in rmm_open() 510 putnext(WR(q), bp); in rmm_open() 613 WR(q)->q_ptr = (void *)rmp; in rpcmodopen() 646 qenable(WR(q)); in rpcmodclose() 681 WR(q)->q_ptr = NULL; in rpcmodclose() 1151 mir_svc_start_close(WR(q), mir); in mir_close() 1174 qenable(WR(q)); in mir_close() 1310 WR(q)->q_ptr = (char *)mir; in mir_open() 1637 "ref cnt going to non zero\n", (void *)WR(q)); in mir_rput() 1638 mir_svc_idle_stop(WR(q), mir); in mir_rput() [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/ac97/ |
H A D | ac97.c | 289 #define WR(r, v) (ac)->wr((ac)->private, (r), (v)) macro 319 WR(reg, 0xffff); in ac_probe_reg() 324 WR(reg, val); in ac_probe_reg() 553 WR(AC97_THREE_D_CONTROL_REGISTER, mask); in ac_probe_3d_impl() 558 WR(AC97_THREE_D_CONTROL_REGISTER, val); in ac_probe_3d_impl() 1108 WR(AC97_RESET_REGISTER, 0); in ac_analog_reset() 1112 WR(AC97_POWERDOWN_CTRL_STAT_REGISTER, 0); in ac_analog_reset() 1164 WR(AC97_VENDOR_REGISTER_11, 8); in ac_hw_reset() 1169 WR(AC97_VENDOR_REGISTER_13, in ac_hw_reset() 1174 WR(AC97_VENDOR_REGISTER_15, 0xC420); in ac_hw_reset() [all …]
|
/illumos-gate/usr/src/uts/common/io/softmac/ |
H A D | softmac_dev.c | 264 slp->sl_wq = WR(rq); in softmac_cmn_open() 268 rq->q_ptr = WR(rq)->q_ptr = slp; in softmac_cmn_open() 279 WR(rq)->q_qinfo = &softmac_dld_w_qinit; in softmac_cmn_open() 293 ASSERT(WR(rq)->q_next != NULL); in softmac_mod_close() 321 ASSERT(WR(rq)->q_next != NULL); in softmac_mod_rput() 549 sup->su_wq = WR(rq); in softmac_drv_open() 580 ASSERT(WR(rq)->q_next == NULL); in softmac_drv_close()
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 189 q->q_ptr = WR(q)->q_ptr = (caddr_t)sps; in sppp_open() 198 noenable(WR(q)); in sppp_open() 387 qenable(WR(sib->sps_rq)); in sppp_close() 452 q->q_ptr = WR(q)->q_ptr = NULL; in sppp_close() 517 (WR(nextsib->sps_rq)->q_first != NULL)) { in sppp_ioctl() 518 qenable(WR(nextsib->sps_rq)); in sppp_ioctl() 1345 if (WR(sps->sps_rq)->q_first != NULL) in sppp_outer_ioctl() 1346 qenable(WR(sps->sps_rq)); in sppp_outer_ioctl() 1350 if (WR(nextsib->sps_rq)->q_first != NULL) { in sppp_outer_ioctl() 1351 qenable(WR(nextsib->sps_rq)); in sppp_outer_ioctl() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ddi.h | 145 #undef WR 151 extern struct queue *WR(queue_t *);
|
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu_ioctl_lrp.c | 197 (void) oplmsu_cmn_put_xoffxon(WR(lrq), MSU_XON_4); in oplmsu_lrioctl_termios() 228 temp_queue = WR(ctrl->queue); in oplmsu_lrioctl_termios() 593 noenable(WR(ctrl->queue)); in oplmsu_lrmsg_error() 710 noenable(WR(ctrl->queue)); in oplmsu_lrdata_xoffxon() 736 (void) putq(WR(lrq), fmp); in oplmsu_lrdata_xoffxon() 739 (void) oplmsu_cmn_put_xoffxon(WR(lrq), MSU_XON_4); in oplmsu_lrdata_xoffxon() 751 noenable(WR(ctrl->queue)); in oplmsu_lrdata_xoffxon() 783 temp_queue = WR(ctrl->queue); in oplmsu_lrdata_xoffxon()
|
H A D | oplmsu.c | 575 WR(urq)->q_ptr = ctrl; in oplmsu_open() 628 (WR(urq) == lpath->hndl_uqueue)) && in oplmsu_close() 647 flushq(WR(urq), FLUSHALL); in oplmsu_close() 678 WR(urq)->q_ptr = NULL; in oplmsu_close() 728 oplmsu_wcmn_high_qenable(WR(uwq), RW_READER); in oplmsu_uwput() 730 (void) putq(WR(uwq), mp); in oplmsu_uwput() 834 OPLMSU_TRACE(WR(lwq), mp, MSU_TRC_LO); in oplmsu_lwsrv() 835 putnext(WR(lwq), mp); in oplmsu_lwsrv() 840 dst_queue = WR(lwq); in oplmsu_lwsrv() 847 (void) putbq(WR(lwq), mp); in oplmsu_lwsrv() [all …]
|
H A D | oplmsu_ioctl_uwp.c | 114 WR(lpath->lower_queue)->q_ptr = lpath; in oplmsu_uwioctl_iplink() 173 (lpath->lower_queue == WR(lbp->l_qbot))) { in oplmsu_uwioctl_ipunlink() 449 dst_queue = WR(oplmsu_uinst->lower_queue); in oplmsu_uwioctl_termios() 466 oplmsu_wcmn_norm_putbq(WR(uwq), mp, dst_queue); in oplmsu_uwioctl_termios()
|
H A D | oplmsu_cmn_func.c | 361 lpath->hndl_uqueue = WR(hndl_queue); in oplmsu_set_ioctl_path() 618 WR(lpath->lower_queue), MSU_XOFF_4); in oplmsu_cmn_putxoff_standby() 1236 (void) putq(WR(dst_queue), mp); in oplmsu_wcmn_flush_hndl() 1274 dst_queue = WR(oplmsu_uinst->lower_queue); in oplmsu_wcmn_through_hndl() 1289 if ((usr_queue == WR(q)) || (usr_queue == RD(q))) { in oplmsu_wcmn_through_hndl() 1296 oplmsu_wcmn_norm_putbq(WR(q), mp, dst_queue); in oplmsu_wcmn_through_hndl() 1397 while (mp = oplmsu_wcmn_high_getq(WR(q))) { in oplmsu_wcmn_high_qenable() 1407 qenable(WR(q)); /* enable upper write queue */ in oplmsu_wcmn_high_qenable() 1445 flushq(WR(q), FLUSHDATA); in oplmsu_rcmn_flush_hndl() 1459 flushq(WR(q), FLUSHDATA); in oplmsu_rcmn_flush_hndl()
|
/illumos-gate/usr/src/uts/sun/io/ |
H A D | ms.c | 297 WR(q)->q_ptr = msd; in msopen() 350 putnext(WR(q), mp); in msopen() 392 (void) putnextctl1(WR(q), M_CTL, MC_SERVICEIMM); in msopen() 716 msioctl(WR(q), mp); in msreioctl() 902 flushq(WR(q), FLUSHDATA); in msrput() 988 putnext(WR(q), imp); in msrput()
|
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ah/ |
H A D | usb_ah.c | 231 usb_ahd->usb_ah_writeq = WR(q); in usb_ah_open() 238 WR(q)->q_ptr = (caddr_t)usb_ahd; in usb_ah_open() 336 flushq(WR(q), FLUSHALL); in usb_ah_close() 342 WR(q)->q_ptr = NULL; in usb_ah_close()
|