Lines Matching refs:roles

944 		if (rport->roles == FC_PORT_ROLE_UNKNOWN)  in show_fc_rport_roles()
946 return get_fc_port_roles_names(rport->roles, buf); in show_fc_rport_roles()
949 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1264 if (vport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_vport_roles()
1266 return get_fc_port_roles_names(vport->roles, buf); in show_fc_vport_roles()
1268 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
1880 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in store_fc_host_vport_create()
2291 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2308 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2632 rport->roles = ids->roles; in fc_rport_create()
2648 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) in fc_rport_create()
2676 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) { in fc_rport_create()
2783 rport->roles = ids->roles; in fc_remote_port_add()
2809 (!(ids->roles & FC_PORT_ROLE_FCP_TARGET))) in fc_remote_port_add()
2892 rport->roles = ids->roles; in fc_remote_port_add()
2901 if (ids->roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_add()
3049 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) in fc_remote_port_rolechg() argument
3057 if (roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_rolechg()
3061 } else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET)) in fc_remote_port_rolechg()
3065 rport->roles = roles; in fc_remote_port_rolechg()
3135 !(rport->roles & FC_PORT_ROLE_FCP_TARGET)) { in fc_timeout_deleted_rport()
3185 rport->roles = FC_PORT_ROLE_UNKNOWN; in fc_timeout_deleted_rport()
3277 (rport->roles & FC_PORT_ROLE_FCP_TARGET) && in fc_scsi_scan_rport()
3367 vport->roles = ids->roles; in fc_vport_setup()