Lines Matching full:roles

300  * Define roles that are specific to port_id. Values are relative to ROLE_MASK.
766 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update()
767 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
779 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update()
780 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
813 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_delivery_stats_update()
814 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_delivery_stats_update()
846 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
847 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update()
859 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
860 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update()
1207 /* identify any roles that are port_id specific */ in show_fc_rport_roles()
1226 if (rport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_rport_roles()
1228 return get_fc_port_roles_names(rport->roles, buf); in show_fc_rport_roles()
1231 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1659 if (vport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_vport_roles()
1661 return get_fc_port_roles_names(vport->roles, buf); in show_fc_vport_roles()
1663 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
2333 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in store_fc_host_vport_create()
2727 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2744 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
3037 * roles for the remote port.
3070 rport->roles = ids->roles; in fc_remote_port_create()
3086 if ((rport->roles & FC_PORT_ROLE_FCP_TARGET) || in fc_remote_port_create()
3087 (rport->roles & FC_PORT_ROLE_FCP_DUMMY_INITIATOR)) in fc_remote_port_create()
3115 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_create()
3139 * roles for the remote port.
3143 * of the port, it's FC address (port_id), and the FC4 roles that are
3223 rport->roles = ids->roles; in fc_remote_port_add()
3247 /* was a target, not in roles */ in fc_remote_port_add()
3249 (!(ids->roles & FC_PORT_ROLE_FCP_TARGET))) in fc_remote_port_add()
3340 fc_remote_port_rolechg(rport, ids->roles); in fc_remote_port_add()
3463 * fc_remote_port_rolechg - notifies the fc transport that the roles on a remote may have changed.
3465 * @roles: New roles for this port.
3468 * roles on a remote port may have changed. The largest effect of this is
3483 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) in fc_remote_port_rolechg() argument
3491 if (roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_rolechg()
3495 } else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET)) in fc_remote_port_rolechg()
3499 rport->roles = roles; in fc_remote_port_rolechg()
3570 !(rport->roles & FC_PORT_ROLE_FCP_TARGET)) { in fc_timeout_deleted_rport()
3620 rport->roles = FC_PORT_ROLE_UNKNOWN; in fc_timeout_deleted_rport()
3713 (rport->roles & FC_PORT_ROLE_FCP_TARGET) && in fc_scsi_scan_rport()
3812 * @ids: The world wide names, FC4 port roles, etc for
3850 vport->roles = ids->roles; in fc_vport_setup()
3940 * @ids: The world wide names, FC4 port roles, etc for