Lines Matching refs:fwdev

203 	struct fw_device *fwdev;  member
343 struct fw_device *fwdev; in sbp_show_sdev_info() local
345 fwdev = sdev->target->fwdev; in sbp_show_sdev_info()
353 fwdev->eui.hi, in sbp_show_sdev_info()
354 fwdev->eui.lo, in sbp_show_sdev_info()
355 fwdev->dst, in sbp_show_sdev_info()
356 fwdev->speed, in sbp_show_sdev_info()
357 fwdev->maxrec); in sbp_show_sdev_info()
383 sbp_new_target(struct sbp_softc *sbp, struct fw_device *fwdev) in sbp_new_target() argument
396 if (wired[i].eui.hi == fwdev->eui.hi && in sbp_new_target()
397 wired[i].eui.lo == fwdev->eui.lo) in sbp_new_target()
403 sbp->targets[target].fwdev == NULL) in sbp_new_target()
407 target, fwdev->eui.hi, fwdev->eui.lo); in sbp_new_target()
412 if (sbp->targets[i].fwdev == NULL && w[i] == 0) { in sbp_new_target()
430 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_lun()
492 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_lun()
581 sbp_alloc_target(struct sbp_softc *sbp, struct fw_device *fwdev) in sbp_alloc_target() argument
591 i = sbp_new_target(sbp, fwdev); in sbp_alloc_target()
598 target->fwdev = fwdev; in sbp_alloc_target()
602 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_target()
606 target->fwdev = NULL; in sbp_alloc_target()
629 struct fw_device *fwdev; in sbp_probe_lun() local
636 fwdev = sdev->target->fwdev; in sbp_probe_lun()
637 crom_init_context(cc, fwdev->csrrom); in sbp_probe_lun()
689 #define SBP_FWDEV_ALIVE(fwdev) (((fwdev)->status == FWDEVATTACHED) \ argument
690 && crom_has_specver((fwdev)->csrrom, CSRVAL_ANSIT10, CSRVAL_T10SBP2))
699 alive = SBP_FWDEV_ALIVE(target->fwdev); in sbp_probe_target()
791 struct fw_device *fwdev; in sbp_post_explore() local
809 if (target->fwdev == NULL) in sbp_post_explore()
812 STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) in sbp_post_explore()
813 if (target->fwdev == fwdev) in sbp_post_explore()
815 if (fwdev == NULL) { in sbp_post_explore()
823 STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) { in sbp_post_explore()
826 __func__, fwdev->eui.hi, fwdev->eui.lo, in sbp_post_explore()
827 (fwdev->status != FWDEVATTACHED) ? "not" : "", in sbp_post_explore()
828 fwdev->status); in sbp_post_explore()
830 alive = SBP_FWDEV_ALIVE(fwdev); in sbp_post_explore()
833 if (target->fwdev == fwdev) { in sbp_post_explore()
841 target = sbp_alloc_target(sbp, fwdev); in sbp_post_explore()
1330 xfer->send.spd = min(sdev->target->fwdev->speed, max_speed); in sbp_write_cmd()
1346 fp->mode.wreqq.dst = FWLOCALBUS | sdev->target->fwdev->dst; in sbp_write_cmd()
1876 xfer->spd = min(sdev->target->fwdev->speed, max_speed); in sbp_recv1()
1958 sbp->targets[i].fwdev = NULL; in sbp_attach()
2100 target->fwdev = NULL; in sbp_free_target()
2271 target->fwdev = NULL; in sbp_timeout()
2291 if (target->fwdev != NULL in sbp_action()
2427 speed = min(target->fwdev->speed, max_speed); in sbp_action()