Lines Matching refs:starget
358 struct scsi_target *starget = to_scsi_target(dev); in fc_target_setup() local
359 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup()
367 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup()
368 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup()
369 fc_starget_port_id(starget) = rport->port_id; in fc_target_setup()
371 fc_starget_node_name(starget) = -1; in fc_target_setup()
372 fc_starget_port_name(starget) = -1; in fc_target_setup()
373 fc_starget_port_id(starget) = -1; in fc_target_setup()
1416 struct scsi_target *starget = transport_class_to_starget(dev); \
1417 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \
1419 struct fc_rport *rport = starget_to_rport(starget); \
1421 fc_starget_##field(starget) = rport->field; \
1423 i->f->get_starget_##field(starget); \
1425 cast fc_starget_##field(starget)); \
1430 static FC_DEVICE_ATTR(starget, field, S_IRUGO, \
1435 static FC_DEVICE_ATTR(starget, field, S_IRUGO, \