Home
last modified time | relevance | path

Searched refs:rport_ids (Results 1 – 4 of 4) sorted by relevance

/linux-4.4.14/drivers/scsi/bfa/
Dbfad_im.c1048 struct fc_rport_identifiers rport_ids; in bfad_im_fc_rport_add() local
1052 rport_ids.node_name = in bfad_im_fc_rport_add()
1054 rport_ids.port_name = in bfad_im_fc_rport_add()
1056 rport_ids.port_id = in bfad_im_fc_rport_add()
1058 rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; in bfad_im_fc_rport_add()
1061 fc_remote_port_add(im_port->shost, 0, &rport_ids); in bfad_im_fc_rport_add()
1073 rport_ids.roles |= FC_RPORT_ROLE_FCP_TARGET; in bfad_im_fc_rport_add()
1075 if (rport_ids.roles != FC_RPORT_ROLE_UNKNOWN) in bfad_im_fc_rport_add()
1076 fc_remote_port_rolechg(fc_rport, rport_ids.roles); in bfad_im_fc_rport_add()
/linux-4.4.14/drivers/message/fusion/
Dmptfc.c432 struct fc_rport_identifiers rport_ids; in mptfc_register_dev() local
440 if (mptfc_generate_rport_ids(pg0, &rport_ids) < 0) in mptfc_register_dev()
450 if (pn == rport_ids.port_name) { /* match */ in mptfc_register_dev()
469 rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); in mptfc_register_dev()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_hbadisc.c3893 struct fc_rport_identifiers rport_ids; in lpfc_register_remote_port() local
3897 rport_ids.node_name = wwn_to_u64(ndlp->nlp_nodename.u.wwn); in lpfc_register_remote_port()
3898 rport_ids.port_name = wwn_to_u64(ndlp->nlp_portname.u.wwn); in lpfc_register_remote_port()
3899 rport_ids.port_id = ndlp->nlp_DID; in lpfc_register_remote_port()
3900 rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; in lpfc_register_remote_port()
3929 ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids); in lpfc_register_remote_port()
3943 rport_ids.roles |= FC_RPORT_ROLE_FCP_TARGET; in lpfc_register_remote_port()
3945 rport_ids.roles |= FC_RPORT_ROLE_FCP_INITIATOR; in lpfc_register_remote_port()
3947 if (rport_ids.roles != FC_RPORT_ROLE_UNKNOWN) in lpfc_register_remote_port()
3948 fc_remote_port_rolechg(rport, rport_ids.roles); in lpfc_register_remote_port()
[all …]
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_init.c3283 struct fc_rport_identifiers rport_ids; in qla2x00_reg_remote_port() local
3287 rport_ids.node_name = wwn_to_u64(fcport->node_name); in qla2x00_reg_remote_port()
3288 rport_ids.port_name = wwn_to_u64(fcport->port_name); in qla2x00_reg_remote_port()
3289 rport_ids.port_id = fcport->d_id.b.domain << 16 | in qla2x00_reg_remote_port()
3291 rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; in qla2x00_reg_remote_port()
3292 fcport->rport = rport = fc_remote_port_add(vha->host, 0, &rport_ids); in qla2x00_reg_remote_port()
3311 rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; in qla2x00_reg_remote_port()
3313 rport_ids.roles |= FC_RPORT_ROLE_FCP_INITIATOR; in qla2x00_reg_remote_port()
3315 rport_ids.roles |= FC_RPORT_ROLE_FCP_TARGET; in qla2x00_reg_remote_port()
3316 fc_remote_port_rolechg(rport, rport_ids.roles); in qla2x00_reg_remote_port()