Lines Matching defs:phyp
227 * Called with PHY lock held on phyp
231 smhba_info_t *phyp)
241 if (phyp == NULL)
250 ASSERT(phyp != NULL);
251 (void) strncpy(pname, phyp->path, strlen(phyp->path));
252 phynum = phyp->phy_id;
254 (void) sprintf(sas_addr, "w%016"PRIx64, phyp->sas_addr);
256 lrate = phyp->negotiated_link_rate;
303 smhba_info_t *phyp;
318 phyp = &mpt->m_phy_info[i].smhba_info;
319 mutex_enter(&phyp->phy_mutex);
321 if (phyp->phy_stats != NULL) {
322 mutex_exit(&phyp->phy_mutex);
334 phyp->phy_stats = kstat_create("mptsas",
338 if (phyp->phy_stats == NULL) {
339 mutex_exit(&phyp->phy_mutex);
346 ps = (sas_phy_stats_t *)phyp->phy_stats->ks_data;
367 phyp->phy_stats->ks_private = phyp;
368 phyp->phy_stats->ks_update = mptsas_update_phy_stats;
369 kstat_install(phyp->phy_stats);
370 mutex_exit(&phyp->phy_mutex);
425 smhba_info_t *phyp;
431 phyp = &mpt->m_phy_info[i].smhba_info;
432 if (phyp == NULL) {
436 mutex_enter(&phyp->phy_mutex);
437 if (phyp->phy_stats != NULL) {
438 kstat_delete(phyp->phy_stats);
439 phyp->phy_stats = NULL;
441 mutex_exit(&phyp->phy_mutex);