Lines Matching refs:fwdev

230 	struct fw_device *fwdev;  member
375 struct fw_device *fwdev; in sbp_show_sdev_info() local
377 fwdev = sdev->target->fwdev; in sbp_show_sdev_info()
385 fwdev->eui.hi, in sbp_show_sdev_info()
386 fwdev->eui.lo, in sbp_show_sdev_info()
387 fwdev->dst, in sbp_show_sdev_info()
388 fwdev->speed, in sbp_show_sdev_info()
389 fwdev->maxrec); in sbp_show_sdev_info()
415 sbp_new_target(struct sbp_softc *sbp, struct fw_device *fwdev) in sbp_new_target() argument
428 if (wired[i].eui.hi == fwdev->eui.hi && in sbp_new_target()
429 wired[i].eui.lo == fwdev->eui.lo) in sbp_new_target()
435 sbp->targets[target].fwdev == NULL) in sbp_new_target()
439 target, fwdev->eui.hi, fwdev->eui.lo); in sbp_new_target()
444 if (sbp->targets[i].fwdev == NULL && w[i] == 0) { in sbp_new_target()
462 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_lun()
525 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_lun()
611 sbp_alloc_target(struct sbp_softc *sbp, struct fw_device *fwdev) in sbp_alloc_target() argument
621 i = sbp_new_target(sbp, fwdev); in sbp_alloc_target()
629 target->fwdev = fwdev; in sbp_alloc_target()
633 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_target()
637 target->fwdev = NULL; in sbp_alloc_target()
660 struct fw_device *fwdev; in sbp_probe_lun() local
667 fwdev = sdev->target->fwdev; in sbp_probe_lun()
668 crom_init_context(cc, fwdev->csrrom); in sbp_probe_lun()
719 #define SBP_FWDEV_ALIVE(fwdev) (((fwdev)->status == FWDEVATTACHED) \ argument
720 && crom_has_specver((fwdev)->csrrom, CSRVAL_ANSIT10, CSRVAL_T10SBP2))
730 alive = SBP_FWDEV_ALIVE(target->fwdev); in sbp_probe_target()
825 struct fw_device *fwdev; in sbp_post_explore() local
849 STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) in sbp_post_explore()
850 if (target->fwdev == NULL || target->fwdev == fwdev) in sbp_post_explore()
852 if (fwdev == NULL) { in sbp_post_explore()
859 STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) { in sbp_post_explore()
862 __func__, fwdev->eui.hi, fwdev->eui.lo, in sbp_post_explore()
863 (fwdev->status != FWDEVATTACHED) ? "not" : "", in sbp_post_explore()
864 fwdev->status); in sbp_post_explore()
866 alive = SBP_FWDEV_ALIVE(fwdev); in sbp_post_explore()
869 if(target->fwdev == fwdev ) { in sbp_post_explore()
877 target = sbp_alloc_target(sbp, fwdev); in sbp_post_explore()
1353 xfer->send.spd = min(sdev->target->fwdev->speed, max_speed); in sbp_write_cmd_locked()
1369 fp->mode.wreqq.dst = FWLOCALBUS | sdev->target->fwdev->dst; in sbp_write_cmd_locked()
1934 xfer->spd = min(sdev->target->fwdev->speed, max_speed); in sbp_recv1()
2022 sbp->targets[i].fwdev = NULL; in sbp_attach()
2155 target->fwdev = NULL; in sbp_free_target()
2325 target->fwdev = NULL; in sbp_timeout()
2343 if (target->fwdev != NULL in sbp_action1()
2474 speed = min(target->fwdev->speed, max_speed); in sbp_action1()