roles 3301 drivers/infiniband/ulp/srp/ib_srp.c ids.roles = SRP_RPORT_ROLE_TARGET; roles 416 drivers/message/fusion/mptfc.c rid->roles = FC_RPORT_ROLE_UNKNOWN; roles 430 drivers/message/fusion/mptfc.c u32 roles = FC_RPORT_ROLE_UNKNOWN; roles 435 drivers/message/fusion/mptfc.c roles |= FC_RPORT_ROLE_FCP_TARGET; roles 437 drivers/message/fusion/mptfc.c roles |= FC_RPORT_ROLE_FCP_INITIATOR; roles 481 drivers/message/fusion/mptfc.c fc_remote_port_rolechg(rport,roles); roles 30 drivers/nvme/target/fcloop.c u32 roles; roles 85 drivers/nvme/target/fcloop.c opts->roles = token; roles 922 drivers/nvme/target/fcloop.c pinfo.port_role = opts->roles; roles 1038 drivers/nvme/target/fcloop.c newnport->port_role = opts->roles; roles 1077 drivers/nvme/target/fcloop.c nport->port_role = opts->roles; roles 711 drivers/s390/scsi/zfcp_scsi.c ids.roles = FC_RPORT_ROLE_FCP_TARGET; roles 493 drivers/scsi/bfa/bfa_defs.h u16 roles; /* Logical port mode,IM/TM/IP etc */ roles 90 drivers/scsi/bfa/bfa_defs_fcs.h enum bfa_lport_role roles; /* FCS port roles */ roles 1059 drivers/scsi/bfa/bfa_fcbuild.c enum bfa_lport_role roles) roles 746 drivers/scsi/bfa/bfa_fcs.c port_cfg->roles = BFA_LPORT_ROLE_FCP_IM; roles 160 drivers/scsi/bfa/bfa_fcs.h (port->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM) roles 263 drivers/scsi/bfa/bfa_fcs.h ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM) roles 846 drivers/scsi/bfa/bfa_fcs.h enum bfa_lport_role roles, roles 364 drivers/scsi/bfa/bfa_fcs_lport.c aen_entry->aen_data.lport.roles = port->port_cfg.roles; roles 1103 drivers/scsi/bfa/bfa_fcs_lport.c lport->port_cfg.roles, roles 4748 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_lport_get_fcid(port), 0, port->port_cfg.roles); roles 6487 drivers/scsi/bfa/bfa_fcs_lport.c aen_entry->aen_data.lport.roles = port->port_cfg.roles; roles 2193 drivers/scsi/bfa/bfa_fcs_rport.c rx_fchs->ox_id, port->port_cfg.roles); roles 433 drivers/scsi/bfa/bfad.c enum bfa_lport_role roles, struct bfad_vf_s *vf_drv, roles 454 drivers/scsi/bfa/bfad.c port_drv->roles = roles; roles 456 drivers/scsi/bfa/bfad.c if (roles & BFA_LPORT_ROLE_FCP_IM) { roles 506 drivers/scsi/bfa/bfad.c port_cfg.roles = BFA_LPORT_ROLE_FCP_IM; roles 658 drivers/scsi/bfa/bfad.c if (port_cfg->roles & BFA_LPORT_ROLE_FCP_IM) { roles 936 drivers/scsi/bfa/bfad.c bfad->pport.roles |= BFA_LPORT_ROLE_FCP_IM; roles 949 drivers/scsi/bfa/bfad.c (bfad->pport.roles & BFA_LPORT_ROLE_FCP_IM)) { roles 953 drivers/scsi/bfa/bfad.c bfad->pport.roles &= ~BFA_LPORT_ROLE_FCP_IM; roles 1030 drivers/scsi/bfa/bfad.c vid.roles = FC_PORT_ROLE_FCP_INITIATOR; roles 369 drivers/scsi/bfa/bfad_attr.c port_cfg.roles = BFA_LPORT_ROLE_FCP_IM; roles 129 drivers/scsi/bfa/bfad_drv.h u32 roles; roles 1070 drivers/scsi/bfa/bfad_im.c rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; roles 1085 drivers/scsi/bfa/bfad_im.c rport_ids.roles |= FC_RPORT_ROLE_FCP_TARGET; roles 1087 drivers/scsi/bfa/bfad_im.c if (rport_ids.roles != FC_RPORT_ROLE_UNKNOWN) roles 1088 drivers/scsi/bfa/bfad_im.c fc_remote_port_rolechg(fc_rport, rport_ids.roles); roles 2148 drivers/scsi/bnx2fc/bnx2fc_fcoe.c vpid.roles = FC_PORT_ROLE_FCP_INITIATOR; roles 393 drivers/scsi/bnx2fc/bnx2fc_tgt.c rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET && roles 394 drivers/scsi/bnx2fc/bnx2fc_tgt.c !(rdata->ids.roles & FC_RPORT_ROLE_FCP_INITIATOR)) { roles 478 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (!(rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET)) { roles 70 drivers/scsi/csiostor/csio_attr.c ids.roles = FC_RPORT_ROLE_UNKNOWN; roles 99 drivers/scsi/csiostor/csio_attr.c ids.roles |= FC_RPORT_ROLE_FCP_INITIATOR; roles 101 drivers/scsi/csiostor/csio_attr.c ids.roles |= FC_RPORT_ROLE_FCP_TARGET; roles 103 drivers/scsi/csiostor/csio_attr.c if (ids.roles != FC_RPORT_ROLE_UNKNOWN) roles 104 drivers/scsi/csiostor/csio_attr.c fc_remote_port_rolechg(rport, ids.roles); roles 109 drivers/scsi/csiostor/csio_attr.c rn->nport_id, ids.roles); roles 3308 drivers/scsi/ibmvscsi/ibmvfc.c tgt->ids.roles = 0; roles 3310 drivers/scsi/ibmvscsi/ibmvfc.c tgt->ids.roles |= FC_PORT_ROLE_FCP_TARGET; roles 3312 drivers/scsi/ibmvscsi/ibmvfc.c tgt->ids.roles |= FC_PORT_ROLE_FCP_INITIATOR; roles 4717 drivers/scsi/ibmvscsi/ibmvfc.c fc_remote_port_rolechg(rport, tgt->ids.roles); roles 2269 drivers/scsi/ibmvscsi/ibmvscsi.c ids.roles = SRP_RPORT_ROLE_TARGET; roles 148 drivers/scsi/libfc/fc_rport.c rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; roles 1047 drivers/scsi/libfc/fc_rport.c if (rdata->ids.roles == FC_PORT_ROLE_UNKNOWN) roles 1049 drivers/scsi/libfc/fc_rport.c if ((rdata->ids.roles & FC_PORT_ROLE_FCP_TARGET) && roles 1052 drivers/scsi/libfc/fc_rport.c if ((rdata->ids.roles & FC_PORT_ROLE_FCP_INITIATOR) && roles 1121 drivers/scsi/libfc/fc_rport.c u32 roles = FC_RPORT_ROLE_UNKNOWN; roles 1147 drivers/scsi/libfc/fc_rport.c rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; roles 1200 drivers/scsi/libfc/fc_rport.c roles |= FC_RPORT_ROLE_FCP_INITIATOR; roles 1202 drivers/scsi/libfc/fc_rport.c roles |= FC_RPORT_ROLE_FCP_TARGET; roles 1204 drivers/scsi/libfc/fc_rport.c rdata->ids.roles = roles; roles 2198 drivers/scsi/libfc/fc_rport.c rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; roles 2200 drivers/scsi/libfc/fc_rport.c rdata->ids.roles |= FC_RPORT_ROLE_FCP_INITIATOR; roles 2202 drivers/scsi/libfc/fc_rport.c rdata->ids.roles |= FC_RPORT_ROLE_FCP_TARGET; roles 88 drivers/scsi/lpfc/lpfc_hbadisc.c if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) roles 3832 drivers/scsi/lpfc/lpfc_hbadisc.c vport_id.roles = FC_PORT_ROLE_FCP_INITIATOR; roles 4130 drivers/scsi/lpfc/lpfc_hbadisc.c rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; roles 4175 drivers/scsi/lpfc/lpfc_hbadisc.c rport_ids.roles |= FC_PORT_ROLE_FCP_TARGET; roles 4177 drivers/scsi/lpfc/lpfc_hbadisc.c rport_ids.roles |= FC_PORT_ROLE_FCP_INITIATOR; roles 4179 drivers/scsi/lpfc/lpfc_hbadisc.c rport_ids.roles |= FC_PORT_ROLE_NVME_INITIATOR; roles 4181 drivers/scsi/lpfc/lpfc_hbadisc.c rport_ids.roles |= FC_PORT_ROLE_NVME_TARGET; roles 4183 drivers/scsi/lpfc/lpfc_hbadisc.c rport_ids.roles |= FC_PORT_ROLE_NVME_DISCOVERY; roles 4185 drivers/scsi/lpfc/lpfc_hbadisc.c if (rport_ids.roles != FC_RPORT_ROLE_UNKNOWN) roles 4186 drivers/scsi/lpfc/lpfc_hbadisc.c fc_remote_port_rolechg(rport, rport_ids.roles); roles 4190 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_DID, rport, rport_ids.roles); roles 6471 drivers/scsi/lpfc/lpfc_hbadisc.c (ndlp->rport->roles & FC_RPORT_ROLE_FCP_TARGET)) { roles 782 drivers/scsi/lpfc/lpfc_nportdisc.c u32 roles; roles 827 drivers/scsi/lpfc/lpfc_nportdisc.c roles = FC_RPORT_ROLE_UNKNOWN; roles 829 drivers/scsi/lpfc/lpfc_nportdisc.c roles |= FC_RPORT_ROLE_FCP_INITIATOR; roles 831 drivers/scsi/lpfc/lpfc_nportdisc.c roles |= FC_RPORT_ROLE_FCP_TARGET; roles 835 drivers/scsi/lpfc/lpfc_nportdisc.c roles, ndlp->nlp_DID, ndlp->nlp_flag); roles 838 drivers/scsi/lpfc/lpfc_nportdisc.c fc_remote_port_rolechg(rport, roles); roles 1448 drivers/scsi/qedf/qedf_main.c if (!(rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET)) { roles 1467 drivers/scsi/qedf/qedf_main.c rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET && roles 1468 drivers/scsi/qedf/qedf_main.c !(rdata->ids.roles & FC_RPORT_ROLE_FCP_INITIATOR)) { roles 4797 drivers/scsi/qla2xxx/qla_init.c rport->roles); roles 5338 drivers/scsi/qla2xxx/qla_init.c rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; roles 5352 drivers/scsi/qla2xxx/qla_init.c rport_ids.roles = FC_PORT_ROLE_UNKNOWN; roles 5354 drivers/scsi/qla2xxx/qla_init.c rport_ids.roles |= FC_PORT_ROLE_FCP_INITIATOR; roles 5356 drivers/scsi/qla2xxx/qla_init.c rport_ids.roles |= FC_PORT_ROLE_FCP_TARGET; roles 5358 drivers/scsi/qla2xxx/qla_init.c rport_ids.roles |= FC_PORT_ROLE_NVME_INITIATOR; roles 5360 drivers/scsi/qla2xxx/qla_init.c rport_ids.roles |= FC_PORT_ROLE_NVME_TARGET; roles 5362 drivers/scsi/qla2xxx/qla_init.c rport_ids.roles |= FC_PORT_ROLE_NVME_DISCOVERY; roles 5370 drivers/scsi/qla2xxx/qla_init.c fc_remote_port_rolechg(rport, rport_ids.roles); roles 449 drivers/scsi/qla2xxx/qla_mid.c if (fc_vport->roles != FC_PORT_ROLE_FCP_INITIATOR) roles 3861 drivers/scsi/qla2xxx/qla_os.c rport->roles); roles 1166 drivers/scsi/qla2xxx/qla_sup.c vid.roles = FC_PORT_ROLE_FCP_INITIATOR; roles 1699 drivers/scsi/qla2xxx/tcm_qla2xxx.c vport_id.roles = FC_PORT_ROLE_FCP_INITIATOR; roles 934 drivers/scsi/scsi_transport_fc.c if (rport->roles == FC_PORT_ROLE_UNKNOWN) roles 936 drivers/scsi/scsi_transport_fc.c return get_fc_port_roles_names(rport->roles, buf); roles 939 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, roles, S_IRUGO, roles 1254 drivers/scsi/scsi_transport_fc.c if (vport->roles == FC_PORT_ROLE_UNKNOWN) roles 1256 drivers/scsi/scsi_transport_fc.c return get_fc_port_roles_names(vport->roles, buf); roles 1258 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL); roles 1870 drivers/scsi/scsi_transport_fc.c vid.roles = FC_PORT_ROLE_FCP_INITIATOR; roles 2263 drivers/scsi/scsi_transport_fc.c SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); roles 2280 drivers/scsi/scsi_transport_fc.c SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); roles 2606 drivers/scsi/scsi_transport_fc.c rport->roles = ids->roles; roles 2622 drivers/scsi/scsi_transport_fc.c if ((rport->roles & FC_PORT_ROLE_FCP_TARGET) || roles 2623 drivers/scsi/scsi_transport_fc.c (rport->roles & FC_PORT_ROLE_FCP_DUMMY_INITIATOR)) roles 2651 drivers/scsi/scsi_transport_fc.c if (rport->roles & FC_PORT_ROLE_FCP_TARGET) { roles 2759 drivers/scsi/scsi_transport_fc.c rport->roles = ids->roles; roles 2785 drivers/scsi/scsi_transport_fc.c (!(ids->roles & FC_PORT_ROLE_FCP_TARGET))) roles 2876 drivers/scsi/scsi_transport_fc.c fc_remote_port_rolechg(rport, ids->roles); roles 3018 drivers/scsi/scsi_transport_fc.c fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) roles 3026 drivers/scsi/scsi_transport_fc.c if (roles & FC_PORT_ROLE_FCP_TARGET) { roles 3030 drivers/scsi/scsi_transport_fc.c } else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET)) roles 3034 drivers/scsi/scsi_transport_fc.c rport->roles = roles; roles 3104 drivers/scsi/scsi_transport_fc.c !(rport->roles & FC_PORT_ROLE_FCP_TARGET)) { roles 3154 drivers/scsi/scsi_transport_fc.c rport->roles = FC_PORT_ROLE_UNKNOWN; roles 3246 drivers/scsi/scsi_transport_fc.c (rport->roles & FC_PORT_ROLE_FCP_TARGET) && roles 3361 drivers/scsi/scsi_transport_fc.c vport->roles = ids->roles; roles 147 drivers/scsi/scsi_transport_srp.c if (srp_rport_role_names[i].value == rport->roles) { roles 154 drivers/scsi/scsi_transport_srp.c static DEVICE_ATTR(roles, S_IRUGO, show_srp_rport_roles, NULL); roles 710 drivers/scsi/scsi_transport_srp.c rport->roles = ids->roles; roles 1871 drivers/scsi/storvsc_drv.c .roles = FC_PORT_ROLE_FCP_DUMMY_INITIATOR, roles 33 drivers/usb/cdns3/core.c WARN_ON(!cdns->roles[cdns->role]); roles 34 drivers/usb/cdns3/core.c return cdns->roles[cdns->role]; roles 48 drivers/usb/cdns3/core.c if (!cdns->roles[role]) roles 51 drivers/usb/cdns3/core.c if (cdns->roles[role]->state == CDNS3_ROLE_STATE_ACTIVE) roles 55 drivers/usb/cdns3/core.c ret = cdns->roles[role]->start(cdns); roles 57 drivers/usb/cdns3/core.c cdns->roles[role]->state = CDNS3_ROLE_STATE_ACTIVE; roles 70 drivers/usb/cdns3/core.c if (cdns->roles[role]->state == CDNS3_ROLE_STATE_INACTIVE) roles 74 drivers/usb/cdns3/core.c cdns->roles[role]->stop(cdns); roles 75 drivers/usb/cdns3/core.c cdns->roles[role]->state = CDNS3_ROLE_STATE_INACTIVE; roles 280 drivers/usb/cdns3/core.c cdns->roles[USB_ROLE_NONE] = rdrv; roles 613 drivers/usb/cdns3/core.c if (cdns->roles[cdns->role]->suspend) { roles 615 drivers/usb/cdns3/core.c cdns->roles[cdns->role]->suspend(cdns, false); roles 630 drivers/usb/cdns3/core.c if (cdns->roles[cdns->role]->resume) { roles 632 drivers/usb/cdns3/core.c cdns->roles[cdns->role]->resume(cdns, false); roles 83 drivers/usb/cdns3/core.h struct cdns3_role_driver *roles[USB_ROLE_DEVICE + 1]; roles 2780 drivers/usb/cdns3/gadget.c cdns->roles[USB_ROLE_DEVICE] = rdrv; roles 72 drivers/usb/cdns3/host.c cdns->roles[USB_ROLE_HOST] = rdrv; roles 212 drivers/usb/chipidea/ci.h struct ci_role_driver *roles[CI_ROLE_END]; roles 263 drivers/usb/chipidea/ci.h BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); roles 264 drivers/usb/chipidea/ci.h return ci->roles[ci->role]; roles 274 drivers/usb/chipidea/ci.h if (!ci->roles[role]) roles 277 drivers/usb/chipidea/ci.h ret = ci->roles[role]->start(ci); roles 292 drivers/usb/chipidea/ci.h ci->roles[role]->stop(ci); roles 431 drivers/usb/chipidea/ci.h return ci->is_otg && ci->roles[CI_ROLE_HOST] && roles 432 drivers/usb/chipidea/ci.h ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || roles 906 drivers/usb/chipidea/core.c if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) roles 944 drivers/usb/chipidea/core.c if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { roles 950 drivers/usb/chipidea/core.c if (!strncmp(buf, ci->roles[role]->name, roles 951 drivers/usb/chipidea/core.c strlen(ci->roles[role]->name))) roles 1104 drivers/usb/chipidea/core.c if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { roles 1110 drivers/usb/chipidea/core.c if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { roles 1127 drivers/usb/chipidea/core.c if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { roles 1141 drivers/usb/chipidea/core.c ci->role = ci->roles[CI_ROLE_HOST] roles 1188 drivers/usb/chipidea/core.c if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) roles 273 drivers/usb/chipidea/debug.c if (ci->roles[role] && roles 274 drivers/usb/chipidea/debug.c !strncmp(buf, ci->roles[role]->name, roles 275 drivers/usb/chipidea/debug.c strlen(ci->roles[role]->name))) roles 367 drivers/usb/chipidea/host.c ci->roles[CI_ROLE_HOST] = rdrv; roles 171 drivers/usb/chipidea/otg.c ci_role(ci)->name, ci->roles[role]->name); roles 1991 drivers/usb/chipidea/udc.c if (!ci->roles[CI_ROLE_GADGET]) roles 2057 drivers/usb/chipidea/udc.c ci->roles[CI_ROLE_GADGET] = rdrv; roles 16 drivers/usb/typec/bus.h enum typec_port_data roles; roles 393 drivers/usb/typec/class.c switch (alt->roles) { roles 496 drivers/usb/typec/class.c alt->roles = desc->roles; roles 388 drivers/usb/typec/ucsi/ucsi.c desc.roles = TYPEC_PORT_DRD; roles 107 include/linux/usb/typec.h enum typec_port_data roles; roles 182 include/scsi/scsi_transport_fc.h u32 roles; roles 227 include/scsi/scsi_transport_fc.h u32 roles; roles 284 include/scsi/scsi_transport_fc.h u32 roles; roles 333 include/scsi/scsi_transport_fc.h u32 roles; roles 725 include/scsi/scsi_transport_fc.h if (rport->roles & FC_PORT_ROLE_FCP_TARGET) roles 782 include/scsi/scsi_transport_fc.h void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles); roles 14 include/scsi/scsi_transport_srp.h u8 roles; roles 59 include/scsi/scsi_transport_srp.h u8 roles; roles 289 security/selinux/ss/policydb.c ebitmap_destroy(&usrdatum->roles); roles 945 security/selinux/ss/policydb.c if (!ebitmap_get_bit(&usrdatum->roles, c->role - 1)) roles 1532 security/selinux/ss/policydb.c rc = ebitmap_read(&usrdatum->roles, fp); roles 1659 security/selinux/ss/policydb.c ebitmap_for_each_positive_bit(&user->roles, node, bit) { roles 1660 security/selinux/ss/policydb.c if (ebitmap_get_bit(&upper->roles, bit)) roles 3047 security/selinux/ss/policydb.c rc = ebitmap_write(&usrdatum->roles, fp); roles 120 security/selinux/ss/policydb.h struct ebitmap roles; /* set of authorized roles for user */ roles 2594 security/selinux/ss/services.c ebitmap_for_each_positive_bit(&user->roles, rnode, i) {