• Home
  • Raw
  • Download

Lines Matching refs:roles

768 	    (rport->roles & FC_PORT_ROLE_FCP_TARGET ||  in fc_fpin_li_stats_update()
769 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
781 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update()
782 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
815 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_delivery_stats_update()
816 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_delivery_stats_update()
848 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
849 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update()
861 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
862 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update()
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()
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()
3223 rport->roles = ids->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()
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()
3850 vport->roles = ids->roles; in fc_vport_setup()