Lines Matching defs:duplxp
546 struct duplx_data *duplxp = (struct duplx_data *)queuep;
551 mutex_enter(&duplxp->ds_mutex);
553 if (duplxp->ds_kstat) {
554 kstat_waitq_enter(KSTAT_IO_PTR(duplxp->ds_kstat));
557 activeq = &duplxp->ds_readq;
559 activeq = &duplxp->ds_writeq;
563 activeq = &duplxp->ds_readq;
566 tgcom_objp = duplxp->ds_tgcomobjp;
573 (caddr_t)duplxp) != DDI_SUCCESS) ||
582 duplx_restart, (caddr_t)duplxp) != DDI_SUCCESS) ||
584 mutex_exit(&duplxp->ds_mutex);
593 if (duplxp->ds_kstat)
594 kstat_waitq_to_runq(KSTAT_IO_PTR(duplxp->ds_kstat));
595 mutex_exit(&duplxp->ds_mutex);
599 if (!mutex_tryenter(&duplxp->ds_mutex))
609 struct duplx_data *duplxp = (struct duplx_data *)queuep;
614 mutex_enter(&duplxp->ds_mutex);
616 tgcom_objp = duplxp->ds_tgcomobjp;
619 activeq = &duplxp->ds_readq;
621 activeq = &duplxp->ds_writeq;
624 if (duplxp->ds_kstat) {
626 KSTAT_IO_PTR(duplxp->ds_kstat)->reads++;
627 KSTAT_IO_PTR(duplxp->ds_kstat)->nread +=
630 KSTAT_IO_PTR(duplxp->ds_kstat)->writes++;
631 KSTAT_IO_PTR(duplxp->ds_kstat)->nwritten +=
634 kstat_runq_exit(KSTAT_IO_PTR(duplxp->ds_kstat));
645 (caddr_t)duplxp) != DDI_SUCCESS) ||
654 duplx_restart, (caddr_t)duplxp) != DDI_SUCCESS) ||
656 mutex_exit(&duplxp->ds_mutex);
665 if (duplxp->ds_kstat)
666 kstat_waitq_to_runq(KSTAT_IO_PTR(duplxp->ds_kstat));
668 mutex_exit(&duplxp->ds_mutex);
672 if (!mutex_tryenter(&duplxp->ds_mutex))
680 duplx_restart(struct duplx_data *duplxp)
682 (void) duplx_enque(duplxp, NULL);