Lines Matching refs:d
459 struct sas_phy_data *d = container_of(work, typeof(*d), reset_work.work); in phy_reset_work() local
461 d->reset_result = transport_sas_phy_reset(d->phy, d->hard_reset); in phy_reset_work()
466 struct sas_phy_data *d = container_of(work, typeof(*d), enable_work.work); in phy_enable_work() local
468 d->enable_result = sas_phy_enable(d->phy, d->enable); in phy_enable_work()
473 struct sas_phy_data *d = kzalloc(sizeof(*d), GFP_KERNEL); in sas_phy_setup() local
475 if (!d) in sas_phy_setup()
478 mutex_init(&d->event_lock); in sas_phy_setup()
479 INIT_SAS_WORK(&d->reset_work, phy_reset_work); in sas_phy_setup()
480 INIT_SAS_WORK(&d->enable_work, phy_enable_work); in sas_phy_setup()
481 d->phy = phy; in sas_phy_setup()
482 phy->hostdata = d; in sas_phy_setup()
491 struct sas_phy_data *d = phy->hostdata; in queue_phy_reset() local
494 if (!d) in queue_phy_reset()
498 mutex_lock(&d->event_lock); in queue_phy_reset()
499 d->reset_result = 0; in queue_phy_reset()
500 d->hard_reset = hard_reset; in queue_phy_reset()
503 sas_queue_work(ha, &d->reset_work); in queue_phy_reset()
508 rc = d->reset_result; in queue_phy_reset()
509 mutex_unlock(&d->event_lock); in queue_phy_reset()
518 struct sas_phy_data *d = phy->hostdata; in queue_phy_enable() local
521 if (!d) in queue_phy_enable()
525 mutex_lock(&d->event_lock); in queue_phy_enable()
526 d->enable_result = 0; in queue_phy_enable()
527 d->enable = enable; in queue_phy_enable()
530 sas_queue_work(ha, &d->enable_work); in queue_phy_enable()
535 rc = d->enable_result; in queue_phy_enable()
536 mutex_unlock(&d->event_lock); in queue_phy_enable()