Lines Matching refs:fwdev
197 struct fw_device *fwdev; member
337 struct fw_device *fwdev; in sbp_show_sdev_info() local
339 fwdev = sdev->target->fwdev; in sbp_show_sdev_info()
347 fwdev->eui.hi, in sbp_show_sdev_info()
348 fwdev->eui.lo, in sbp_show_sdev_info()
349 fwdev->dst, in sbp_show_sdev_info()
350 fwdev->speed, in sbp_show_sdev_info()
351 fwdev->maxrec); in sbp_show_sdev_info()
377 sbp_new_target(struct sbp_softc *sbp, struct fw_device *fwdev) in sbp_new_target() argument
390 if (wired[i].eui.hi == fwdev->eui.hi && in sbp_new_target()
391 wired[i].eui.lo == fwdev->eui.lo) in sbp_new_target()
397 sbp->targets[target].fwdev == NULL) in sbp_new_target()
401 target, fwdev->eui.hi, fwdev->eui.lo); in sbp_new_target()
406 if (sbp->targets[i].fwdev == NULL && w[i] == 0) { in sbp_new_target()
424 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_lun()
486 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_lun()
575 sbp_alloc_target(struct sbp_softc *sbp, struct fw_device *fwdev) in sbp_alloc_target() argument
585 i = sbp_new_target(sbp, fwdev); in sbp_alloc_target()
592 target->fwdev = fwdev; in sbp_alloc_target()
596 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_target()
600 target->fwdev = NULL; in sbp_alloc_target()
623 struct fw_device *fwdev; in sbp_probe_lun() local
630 fwdev = sdev->target->fwdev; in sbp_probe_lun()
631 crom_init_context(cc, fwdev->csrrom); in sbp_probe_lun()
683 #define SBP_FWDEV_ALIVE(fwdev) (((fwdev)->status == FWDEVATTACHED) \ argument
684 && crom_has_specver((fwdev)->csrrom, CSRVAL_ANSIT10, CSRVAL_T10SBP2))
693 alive = SBP_FWDEV_ALIVE(target->fwdev); in sbp_probe_target()
785 struct fw_device *fwdev; in sbp_post_explore() local
803 if (target->fwdev == NULL) in sbp_post_explore()
806 STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) in sbp_post_explore()
807 if (target->fwdev == fwdev) in sbp_post_explore()
809 if (fwdev == NULL) { in sbp_post_explore()
817 STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) { in sbp_post_explore()
820 __func__, fwdev->eui.hi, fwdev->eui.lo, in sbp_post_explore()
821 (fwdev->status != FWDEVATTACHED) ? "not" : "", in sbp_post_explore()
822 fwdev->status); in sbp_post_explore()
824 alive = SBP_FWDEV_ALIVE(fwdev); in sbp_post_explore()
827 if (target->fwdev == fwdev) { in sbp_post_explore()
835 target = sbp_alloc_target(sbp, fwdev); in sbp_post_explore()
1322 xfer->send.spd = min(sdev->target->fwdev->speed, max_speed); in sbp_write_cmd()
1338 fp->mode.wreqq.dst = FWLOCALBUS | sdev->target->fwdev->dst; in sbp_write_cmd()
1868 xfer->spd = min(sdev->target->fwdev->speed, max_speed); in sbp_recv1()
1950 sbp->targets[i].fwdev = NULL; in sbp_attach()
2092 target->fwdev = NULL; in sbp_free_target()
2263 target->fwdev = NULL; in sbp_timeout()
2283 if (target->fwdev != NULL in sbp_action()
2419 speed = min(target->fwdev->speed, max_speed); in sbp_action()