Lines Matching defs:phyp

432 	pmcs_phy_t *phyp;
914 phyp = pwp->root_phys;
917 phyp->sibling = (phyp + 1);
919 mutex_init(&phyp->phy_lock, NULL, MUTEX_DRIVER,
921 phyp->phynum = i & SAS2_PHYNUM_MASK;
922 pmcs_phy_name(pwp, phyp, phyp->path, sizeof (phyp->path));
923 phyp->pwp = pwp;
924 phyp->device_id = PMCS_INVALID_DEVICE_ID;
925 phyp->portid = PMCS_PHY_INVALID_PORT_ID;
926 phyp++;
1571 pmcs_phy_t *phyp = pwp->root_phys;
1573 mutex_destroy(&phyp->phy_lock);
1574 phyp = phyp->sibling;
2020 pmcs_phy_t *phyp;
2110 phyp = pwrk->phy;
2115 pmcs_lock_phy(phyp);
2123 pmcs_unlock_phy(phyp);
2124 pmcs_prt(pwp, PMCS_PRT_DEBUG, phyp, target,
2131 pmcs_prt(pwp, PMCS_PRT_DEBUG, phyp, target,
2145 rval = pmcs_abort(pwp, phyp, pwrk->htag, 0, 1);
2147 pmcs_prt(pwp, PMCS_PRT_DEBUG, phyp, target,
2150 pmcs_unlock_phy(phyp);
2154 pmcs_prt(pwp, PMCS_PRT_DEBUG, phyp, target,
2166 pmcs_lock_phy(phyp);
2172 phyp->abort_sent = 0;
2173 phyp->abort_pending = 1;
2177 pmcs_unlock_phy(phyp);
2857 pmcs_phy_t *phyp, pmcs_xscsi_t *target, const char *fmt, ...)
2924 if (phyp == NULL) {
2930 phyp->sas_address, 8);
2931 (void) strncpy(pmcs_tbuf_ptr->phy_path, phyp->path, 32);
2932 pmcs_tbuf_ptr->phy_dtype = phyp->dtype;
3035 pmcs_create_one_phy_stats(pmcs_iport_t *iport, pmcs_phy_t *phyp)
3045 ASSERT(mutex_owned(&phyp->phy_lock));
3047 if (phyp->phy_stats != NULL) {
3053 kstat_delete(phyp->phy_stats);
3061 ddi_get_instance(iport->dip), phyp->phynum);
3063 phyp->phy_stats = kstat_create("pmcs",
3067 if (phyp->phy_stats == NULL) {
3068 pmcs_prt(pwp, PMCS_PRT_DEBUG, phyp, NULL,
3070 __func__, ks_name, (void *)phyp, phyp->path);
3074 ps = (sas_phy_stats_t *)phyp->phy_stats->ks_data;
3095 phyp->phy_stats->ks_private = phyp;
3096 phyp->phy_stats->ks_update = pmcs_update_phy_stats;
3097 kstat_install(phyp->phy_stats);
3104 pmcs_phy_t *phyp;
3112 for (phyp = list_head(&iport->phys);
3113 phyp != NULL;
3114 phyp = list_next(&iport->phys, phyp)) {
3116 mutex_enter(&phyp->phy_lock);
3117 pmcs_create_one_phy_stats(iport, phyp);
3118 mutex_exit(&phyp->phy_lock);