Lines Matching refs:roles
300 * Define roles that are specific to port_id. Values are relative to ROLE_MASK.
771 (rport->roles & FC_PORT_ROLE_FCP_TARGET ||
772 rport->roles & FC_PORT_ROLE_NVME_TARGET)) {
784 (rport->roles & FC_PORT_ROLE_FCP_TARGET ||
785 rport->roles & FC_PORT_ROLE_NVME_TARGET)) {
818 (rport->roles & FC_PORT_ROLE_FCP_TARGET ||
819 rport->roles & FC_PORT_ROLE_NVME_TARGET)) {
851 (rport->roles & FC_PORT_ROLE_FCP_TARGET ||
852 rport->roles & FC_PORT_ROLE_NVME_TARGET)) {
864 (rport->roles & FC_PORT_ROLE_FCP_TARGET ||
865 rport->roles & FC_PORT_ROLE_NVME_TARGET)) {
1212 /* identify any roles that are port_id specific */
1231 if (rport->roles == FC_PORT_ROLE_UNKNOWN)
1233 return get_fc_port_roles_names(rport->roles, buf);
1236 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1664 if (vport->roles == FC_PORT_ROLE_UNKNOWN)
1666 return get_fc_port_roles_names(vport->roles, buf);
1668 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
2338 vid.roles = FC_PORT_ROLE_FCP_INITIATOR;
2732 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles);
2749 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles);
3042 * roles for the remote port.
3075 rport->roles = ids->roles;
3091 if ((rport->roles & FC_PORT_ROLE_FCP_TARGET) ||
3092 (rport->roles & FC_PORT_ROLE_FCP_DUMMY_INITIATOR))
3120 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) {
3144 * roles for the remote port.
3148 * of the port, it's FC address (port_id), and the FC4 roles that are
3228 rport->roles = ids->roles;
3252 /* was a target, not in roles */
3254 (!(ids->roles & FC_PORT_ROLE_FCP_TARGET)))
3345 fc_remote_port_rolechg(rport, ids->roles);
3468 * fc_remote_port_rolechg - notifies the fc transport that the roles on a remote may have changed.
3470 * @roles: New roles for this port.
3473 * roles on a remote port may have changed. The largest effect of this is
3488 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles)
3496 if (roles & FC_PORT_ROLE_FCP_TARGET) {
3500 } else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET))
3504 rport->roles = roles;
3575 !(rport->roles & FC_PORT_ROLE_FCP_TARGET)) {
3625 rport->roles = FC_PORT_ROLE_UNKNOWN;
3718 (rport->roles & FC_PORT_ROLE_FCP_TARGET) &&
3817 * @ids: The world wide names, FC4 port roles, etc for
3855 vport->roles = ids->roles;
3945 * @ids: The world wide names, FC4 port roles, etc for