Lines Matching refs:fwdev
199 struct fw_device *fwdev; member
339 struct fw_device *fwdev; in sbp_show_sdev_info() local
341 fwdev = sdev->target->fwdev; in sbp_show_sdev_info()
349 fwdev->eui.hi, in sbp_show_sdev_info()
350 fwdev->eui.lo, in sbp_show_sdev_info()
351 fwdev->dst, in sbp_show_sdev_info()
352 fwdev->speed, in sbp_show_sdev_info()
353 fwdev->maxrec); in sbp_show_sdev_info()
379 sbp_new_target(struct sbp_softc *sbp, struct fw_device *fwdev) in sbp_new_target() argument
392 if (wired[i].eui.hi == fwdev->eui.hi && in sbp_new_target()
393 wired[i].eui.lo == fwdev->eui.lo) in sbp_new_target()
399 sbp->targets[target].fwdev == NULL) in sbp_new_target()
403 target, fwdev->eui.hi, fwdev->eui.lo); in sbp_new_target()
408 if (sbp->targets[i].fwdev == NULL && w[i] == 0) { in sbp_new_target()
426 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_lun()
488 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_lun()
577 sbp_alloc_target(struct sbp_softc *sbp, struct fw_device *fwdev) in sbp_alloc_target() argument
587 i = sbp_new_target(sbp, fwdev); in sbp_alloc_target()
594 target->fwdev = fwdev; in sbp_alloc_target()
598 crom_init_context(&cc, target->fwdev->csrrom); in sbp_alloc_target()
602 target->fwdev = NULL; in sbp_alloc_target()
625 struct fw_device *fwdev; in sbp_probe_lun() local
632 fwdev = sdev->target->fwdev; in sbp_probe_lun()
633 crom_init_context(cc, fwdev->csrrom); in sbp_probe_lun()
685 #define SBP_FWDEV_ALIVE(fwdev) (((fwdev)->status == FWDEVATTACHED) \ argument
686 && crom_has_specver((fwdev)->csrrom, CSRVAL_ANSIT10, CSRVAL_T10SBP2))
695 alive = SBP_FWDEV_ALIVE(target->fwdev); in sbp_probe_target()
787 struct fw_device *fwdev; in sbp_post_explore() local
805 if (target->fwdev == NULL) in sbp_post_explore()
808 STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) in sbp_post_explore()
809 if (target->fwdev == fwdev) in sbp_post_explore()
811 if (fwdev == NULL) { in sbp_post_explore()
819 STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) { in sbp_post_explore()
822 __func__, fwdev->eui.hi, fwdev->eui.lo, in sbp_post_explore()
823 (fwdev->status != FWDEVATTACHED) ? "not" : "", in sbp_post_explore()
824 fwdev->status); in sbp_post_explore()
826 alive = SBP_FWDEV_ALIVE(fwdev); in sbp_post_explore()
829 if (target->fwdev == fwdev) { in sbp_post_explore()
837 target = sbp_alloc_target(sbp, fwdev); in sbp_post_explore()
1326 xfer->send.spd = min(sdev->target->fwdev->speed, max_speed); in sbp_write_cmd()
1342 fp->mode.wreqq.dst = FWLOCALBUS | sdev->target->fwdev->dst; in sbp_write_cmd()
1872 xfer->spd = min(sdev->target->fwdev->speed, max_speed); in sbp_recv1()
1954 sbp->targets[i].fwdev = NULL; in sbp_attach()
2096 target->fwdev = NULL; in sbp_free_target()
2267 target->fwdev = NULL; in sbp_timeout()
2287 if (target->fwdev != NULL in sbp_action()
2423 speed = min(target->fwdev->speed, max_speed); in sbp_action()