Lines Matching refs:roles
290 * Define roles that are specific to port_id. Values are relative to ROLE_MASK.
916 /* identify any roles that are port_id specific */
935 if (rport->roles == FC_PORT_ROLE_UNKNOWN)
937 return get_fc_port_roles_names(rport->roles, buf);
940 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1255 if (vport->roles == FC_PORT_ROLE_UNKNOWN)
1257 return get_fc_port_roles_names(vport->roles, buf);
1259 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
1871 vid.roles = FC_PORT_ROLE_FCP_INITIATOR;
2264 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles);
2281 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles);
2574 * roles for the remote port.
2607 rport->roles = ids->roles;
2623 if ((rport->roles & FC_PORT_ROLE_FCP_TARGET) ||
2624 (rport->roles & FC_PORT_ROLE_FCP_DUMMY_INITIATOR))
2652 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) {
2676 * roles for the remote port.
2680 * of the port, it's FC address (port_id), and the FC4 roles that are
2760 rport->roles = ids->roles;
2784 /* was a target, not in roles */
2786 (!(ids->roles & FC_PORT_ROLE_FCP_TARGET)))
2877 fc_remote_port_rolechg(rport, ids->roles);
2999 * fc_remote_port_rolechg - notifies the fc transport that the roles on a remote may have changed.
3001 * @roles: New roles for this port.
3004 * roles on a remote port may have changed. The largest effect of this is
3019 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles)
3027 if (roles & FC_PORT_ROLE_FCP_TARGET) {
3031 } else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET))
3035 rport->roles = roles;
3105 !(rport->roles & FC_PORT_ROLE_FCP_TARGET)) {
3155 rport->roles = FC_PORT_ROLE_UNKNOWN;
3247 (rport->roles & FC_PORT_ROLE_FCP_TARGET) &&
3324 * @ids: The world wide names, FC4 port roles, etc for
3362 vport->roles = ids->roles;
3452 * @ids: The world wide names, FC4 port roles, etc for