Lines Matching defs:cnex_ssp
327 cnex_soft_state_t *cnex_ssp = arg;
329 ASSERT(cnex_ssp != NULL);
330 mutex_enter(&cnex_ssp->clist_lock);
332 cldcp = cnex_ssp->clist;
339 (void) cnex_intr_new_cpu(cnex_ssp, &cldcp->tx);
344 (void) cnex_intr_new_cpu(cnex_ssp, &cldcp->rx);
353 mutex_exit(&cnex_ssp->clist_lock);
478 cnex_soft_state_t *cnex_ssp;
484 cnex_ssp = ddi_get_soft_state(cnex_state, instance);
487 mutex_enter(&cnex_ssp->clist_lock);
488 cldcp = cnex_ssp->clist;
492 mutex_exit(&cnex_ssp->clist_lock);
497 mutex_exit(&cnex_ssp->clist_lock);
585 mutex_enter(&cnex_ssp->clist_lock);
586 cldcp = cnex_ssp->clist;
590 mutex_exit(&cnex_ssp->clist_lock);
597 new_cldcp->next = cnex_ssp->clist;
598 cnex_ssp->clist = new_cldcp;
599 mutex_exit(&cnex_ssp->clist_lock);
614 cnex_soft_state_t *cnex_ssp;
619 cnex_ssp = ddi_get_soft_state(cnex_state, instance);
622 mutex_enter(&cnex_ssp->clist_lock);
623 cldcp = cnex_ssp->clist;
631 mutex_exit(&cnex_ssp->clist_lock);
634 mutex_exit(&cnex_ssp->clist_lock);
681 "cookie=0x%llx\n", cnex_ssp->cfghdl, iinfo->ino, iinfo->icookie);
701 rv = hvldc_intr_setcookie(cnex_ssp->cfghdl, iinfo->ino, iinfo->icookie);
707 rv = hvldc_intr_settarget(cnex_ssp->cfghdl, iinfo->ino, iinfo->cpuid);
713 rv = hvldc_intr_setstate(cnex_ssp->cfghdl, iinfo->ino,
720 rv = hvldc_intr_setvalid(cnex_ssp->cfghdl, iinfo->ino, HV_INTR_VALID);
748 cnex_soft_state_t *cnex_ssp;
753 cnex_ssp = ddi_get_soft_state(cnex_state, instance);
756 mutex_enter(&cnex_ssp->clist_lock);
758 cldcp = cnex_ssp->clist;
768 mutex_exit(&cnex_ssp->clist_lock);
774 mutex_exit(&cnex_ssp->clist_lock);
781 cnex_ssp->clist = cldcp->next;
783 mutex_exit(&cnex_ssp->clist_lock);
803 cnex_soft_state_t *cnex_ssp;
808 cnex_ssp = ddi_get_soft_state(cnex_state, instance);
811 mutex_enter(&cnex_ssp->clist_lock);
812 cldcp = cnex_ssp->clist;
820 mutex_exit(&cnex_ssp->clist_lock);
823 mutex_exit(&cnex_ssp->clist_lock);
849 rv = hvldc_intr_setvalid(cnex_ssp->cfghdl,
861 rv = hvldc_intr_getstate(cnex_ssp->cfghdl, iinfo->ino, &istate);
908 cnex_soft_state_t *cnex_ssp;
913 cnex_ssp = ddi_get_soft_state(cnex_state, instance);
916 mutex_enter(&cnex_ssp->clist_lock);
917 cldcp = cnex_ssp->clist;
925 mutex_exit(&cnex_ssp->clist_lock);
928 mutex_exit(&cnex_ssp->clist_lock);
952 rv = hvldc_intr_setstate(cnex_ssp->cfghdl, iinfo->ino,
1017 cnex_soft_state_t *cnex_ssp;
1035 cnex_ssp = ddi_get_soft_state(cnex_state, instance);
1037 cnex_ssp->devi = devi;
1038 cnex_ssp->clist = NULL;
1046 cnex_ssp->cfghdl = SUN4V_REG_SPEC2CFG_HDL(reg_p->physaddr);
1049 D1("cnex_attach: cfghdl=0x%llx\n", cnex_ssp->cfghdl);
1052 mutex_init(&cnex_ssp->clist_lock, NULL, MUTEX_DRIVER, NULL);
1070 mutex_destroy(&cnex_ssp->clist_lock);
1078 mutex_destroy(&cnex_ssp->clist_lock);
1083 intr_dist_add_weighted(cnex_intr_redist, cnex_ssp);
1095 cnex_soft_state_t *cnex_ssp;
1107 cnex_ssp = ddi_get_soft_state(cnex_state, instance);
1110 if (cnex_ssp->clist) {
1121 intr_dist_rem_weighted(cnex_intr_redist, cnex_ssp);
1124 mutex_destroy(&cnex_ssp->clist_lock);
1170 cnex_soft_state_t *cnex_ssp;
1173 if ((cnex_ssp = ddi_get_soft_state(cnex_state, instance)) == NULL)
1175 ASSERT(cnex_ssp->devi);
1176 return (ndi_devctl_ioctl(cnex_ssp->devi, cmd, arg, mode, 0));