Lines Matching refs:roles
935 if (rport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_rport_roles()
937 return get_fc_port_roles_names(rport->roles, buf); in show_fc_rport_roles()
940 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1255 if (vport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_vport_roles()
1257 return get_fc_port_roles_names(vport->roles, buf); in show_fc_vport_roles()
1259 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
1871 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in store_fc_host_vport_create()
2264 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2281 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2607 rport->roles = ids->roles; in fc_remote_port_create()
2623 if ((rport->roles & FC_PORT_ROLE_FCP_TARGET) || in fc_remote_port_create()
2624 (rport->roles & FC_PORT_ROLE_FCP_DUMMY_INITIATOR)) in fc_remote_port_create()
2652 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_create()
2760 rport->roles = ids->roles; in fc_remote_port_add()
2786 (!(ids->roles & FC_PORT_ROLE_FCP_TARGET))) in fc_remote_port_add()
2877 fc_remote_port_rolechg(rport, ids->roles); in fc_remote_port_add()
3019 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) in fc_remote_port_rolechg() argument
3027 if (roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_rolechg()
3031 } else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET)) in fc_remote_port_rolechg()
3035 rport->roles = roles; in fc_remote_port_rolechg()
3105 !(rport->roles & FC_PORT_ROLE_FCP_TARGET)) { in fc_timeout_deleted_rport()
3155 rport->roles = FC_PORT_ROLE_UNKNOWN; in fc_timeout_deleted_rport()
3247 (rport->roles & FC_PORT_ROLE_FCP_TARGET) && in fc_scsi_scan_rport()
3362 vport->roles = ids->roles; in fc_vport_setup()