Lines Matching refs:roles

775 	    (rport->roles & FC_PORT_ROLE_FCP_TARGET ||  in fc_fpin_li_stats_update()
776 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
788 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update()
789 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
822 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_delivery_stats_update()
823 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_delivery_stats_update()
855 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
856 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update()
868 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
869 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update()
1233 if (rport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_rport_roles()
1235 return get_fc_port_roles_names(rport->roles, buf); in show_fc_rport_roles()
1238 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1666 if (vport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_vport_roles()
1668 return get_fc_port_roles_names(vport->roles, buf); in show_fc_vport_roles()
1670 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
2340 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in store_fc_host_vport_create()
2735 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2752 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
3078 rport->roles = ids->roles; in fc_remote_port_create()
3094 if ((rport->roles & FC_PORT_ROLE_FCP_TARGET) || in fc_remote_port_create()
3095 (rport->roles & FC_PORT_ROLE_FCP_DUMMY_INITIATOR)) in fc_remote_port_create()
3123 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_create()
3231 rport->roles = ids->roles; in fc_remote_port_add()
3257 (!(ids->roles & FC_PORT_ROLE_FCP_TARGET))) in fc_remote_port_add()
3348 fc_remote_port_rolechg(rport, ids->roles); in fc_remote_port_add()
3491 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) in fc_remote_port_rolechg() argument
3499 if (roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_rolechg()
3503 } else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET)) in fc_remote_port_rolechg()
3507 rport->roles = roles; in fc_remote_port_rolechg()
3578 !(rport->roles & FC_PORT_ROLE_FCP_TARGET)) { in fc_timeout_deleted_rport()
3628 rport->roles = FC_PORT_ROLE_UNKNOWN; in fc_timeout_deleted_rport()
3721 (rport->roles & FC_PORT_ROLE_FCP_TARGET) && in fc_scsi_scan_rport()
3858 vport->roles = ids->roles; in fc_vport_setup()