| /drivers/usb/cdns3/ |
| A D | core.c | 40 if (!cdns->roles[role]) in cdns_role_start() 43 if (cdns->roles[role]->state == CDNS_ROLE_STATE_ACTIVE) in cdns_role_start() 47 ret = cdns->roles[role]->start(cdns); in cdns_role_start() 49 cdns->roles[role]->state = CDNS_ROLE_STATE_ACTIVE; in cdns_role_start() 66 cdns->roles[role]->stop(cdns); in cdns_role_stop() 67 cdns->roles[role]->state = CDNS_ROLE_STATE_INACTIVE; in cdns_role_stop() 289 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns_idle_init() 515 if (cdns->roles[cdns->role]->suspend) { in cdns_suspend() 517 cdns->roles[cdns->role]->suspend(cdns, false); in cdns_suspend() 554 if (cdns->roles[cdns->role]->resume) in cdns_resume() [all …]
|
| A D | core.h | 107 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1]; member
|
| A D | host.c | 165 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns_host_init()
|
| /drivers/usb/chipidea/ |
| A D | ci.h | 220 struct ci_role_driver *roles[CI_ROLE_END]; member 274 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role() 275 return ci->roles[ci->role]; in ci_role() 285 if (!ci->roles[role]) in ci_role_start() 288 ret = ci->roles[role]->start(ci); in ci_role_start() 314 ci->roles[role]->stop(ci); in ci_role_stop() 466 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode() 467 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode()
|
| A D | core.c | 651 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_get_role() 664 role = ci->roles[CI_ROLE_HOST] ? CI_ROLE_HOST in ci_get_role() 952 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role() 954 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role() 956 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role() 967 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy() 1005 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store() 1011 if (!strncmp(buf, ci->roles[role]->name, in role_store() 1012 strlen(ci->roles[role]->name))) in role_store() 1179 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe() [all …]
|
| A D | otg.c | 179 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
|
| /drivers/usb/roles/ |
| A D | Makefile | 3 obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o 4 roles-y := class.o
|
| A D | Kconfig | 12 Say Y here if your USB connectors support both device and host roles. 14 called roles.ko.
|
| /drivers/scsi/ |
| A D | scsi_transport_fc.c | 1219 if (rport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_rport_roles() 1652 if (vport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_vport_roles() 2326 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in store_fc_host_vport_create() 2720 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); in fc_attach_transport() 2737 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); in fc_attach_transport() 3065 rport->roles = ids->roles; in fc_remote_port_create() 3234 rport->roles = ids->roles; in fc_remote_port_add() 3503 if (roles & FC_PORT_ROLE_FCP_TARGET) { in fc_remote_port_rolechg() 3511 rport->roles = roles; in fc_remote_port_rolechg() 3632 rport->roles = FC_PORT_ROLE_UNKNOWN; in fc_timeout_deleted_rport() [all …]
|
| A D | scsi_transport_srp.c | 147 if (srp_rport_role_names[i].value == rport->roles) { in show_srp_rport_roles() 154 static DEVICE_ATTR(roles, S_IRUGO, show_srp_rport_roles, NULL); 715 rport->roles = ids->roles; in srp_rport_add()
|
| /drivers/scsi/csiostor/ |
| A D | csio_attr.c | 70 ids.roles = FC_RPORT_ROLE_UNKNOWN; in csio_reg_rnode() 99 ids.roles |= FC_RPORT_ROLE_FCP_INITIATOR; in csio_reg_rnode() 101 ids.roles |= FC_RPORT_ROLE_FCP_TARGET; in csio_reg_rnode() 103 if (ids.roles != FC_RPORT_ROLE_UNKNOWN) in csio_reg_rnode() 104 fc_remote_port_rolechg(rport, ids.roles); in csio_reg_rnode() 109 rn->nport_id, ids.roles); in csio_reg_rnode()
|
| /drivers/scsi/libfc/ |
| A D | fc_rport.c | 150 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_create() 1052 if (rdata->ids.roles == FC_PORT_ROLE_UNKNOWN) in fc_rport_compatible_roles() 1054 if ((rdata->ids.roles & FC_PORT_ROLE_FCP_TARGET) && in fc_rport_compatible_roles() 1126 u32 roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_prli_resp() local 1152 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_prli_resp() 1208 roles |= FC_RPORT_ROLE_FCP_INITIATOR; in fc_rport_prli_resp() 1210 roles |= FC_RPORT_ROLE_FCP_TARGET; in fc_rport_prli_resp() 1212 rdata->ids.roles = roles; in fc_rport_prli_resp() 2206 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_fcp_prli() 2208 rdata->ids.roles |= FC_RPORT_ROLE_FCP_INITIATOR; in fc_rport_fcp_prli() [all …]
|
| /drivers/scsi/bfa/ |
| A D | bfad.c | 433 enum bfa_lport_role roles, struct bfad_vf_s *vf_drv, in bfa_fcb_lport_new() argument 454 port_drv->roles = roles; in bfa_fcb_lport_new() 456 if (roles & BFA_LPORT_ROLE_FCP_IM) { in bfa_fcb_lport_new() 506 port_cfg.roles = BFA_LPORT_ROLE_FCP_IM; in bfa_fcb_pbc_vport_create() 658 if (port_cfg->roles & BFA_LPORT_ROLE_FCP_IM) { in bfad_vport_create() 910 bfad->pport.roles |= BFA_LPORT_ROLE_FCP_IM; in bfad_cfg_pport() 923 (bfad->pport.roles & BFA_LPORT_ROLE_FCP_IM)) { in bfad_uncfg_pport() 927 bfad->pport.roles &= ~BFA_LPORT_ROLE_FCP_IM; in bfad_uncfg_pport() 1004 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in bfad_start_ops()
|
| A D | bfa_fcs.h | 226 (port->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM) 353 ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM) 943 enum bfa_lport_role roles,
|
| A D | bfad_im.c | 1070 rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; in bfad_im_fc_rport_add() 1085 rport_ids.roles |= FC_RPORT_ROLE_FCP_TARGET; in bfad_im_fc_rport_add() 1087 if (rport_ids.roles != FC_RPORT_ROLE_UNKNOWN) in bfad_im_fc_rport_add() 1088 fc_remote_port_rolechg(fc_rport, rport_ids.roles); in bfad_im_fc_rport_add()
|
| A D | bfad_drv.h | 128 u32 roles; member
|
| A D | bfa_defs_fcs.h | 90 enum bfa_lport_role roles; /* FCS port roles */ member
|
| /drivers/usb/typec/ |
| A D | bus.h | 18 enum typec_port_data roles; member
|
| /drivers/net/wireless/realtek/rtw89/ |
| A D | chan.c | 617 struct rtw89_mcc_role * const roles[] = { in rtw89_iterate_mcc_roles() local 627 ret = iterator(rtwdev, roles[idx], idx, data); in rtw89_iterate_mcc_roles() 1845 slot_arg->roles[0].is_master = role == ref; in __mrc_fw_add_role() 1846 slot_arg->roles[0].band = chan->band_type; in __mrc_fw_add_role() 1847 slot_arg->roles[0].bw = chan->band_width; in __mrc_fw_add_role() 1848 slot_arg->roles[0].central_ch = chan->channel; in __mrc_fw_add_role() 1849 slot_arg->roles[0].primary_ch = chan->primary_channel; in __mrc_fw_add_role() 1850 slot_arg->roles[0].en_tx_null = !policy->dis_tx_null; in __mrc_fw_add_role() 1852 slot_arg->roles[0].macid = role->rtwvif_link->mac_id; in __mrc_fw_add_role() 1853 slot_arg->roles[0].macid_main_bitmap = in __mrc_fw_add_role() [all …]
|
| /drivers/usb/ |
| A D | Makefile | 70 obj-$(CONFIG_USB_ROLE_SWITCH) += roles/
|
| A D | Kconfig | 160 source "drivers/usb/roles/Kconfig"
|
| /drivers/message/fusion/ |
| A D | mptfc.c | 453 rid->roles = FC_RPORT_ROLE_UNKNOWN; in mptfc_generate_rport_ids() 467 u32 roles = FC_RPORT_ROLE_UNKNOWN; in mptfc_register_dev() local 472 roles |= FC_RPORT_ROLE_FCP_TARGET; in mptfc_register_dev() 474 roles |= FC_RPORT_ROLE_FCP_INITIATOR; in mptfc_register_dev() 518 fc_remote_port_rolechg(rport,roles); in mptfc_register_dev()
|
| /drivers/nvme/target/ |
| A D | fcloop.c | 30 u32 roles; member 98 opts->roles = token; in fcloop_parse_options() 1213 pinfo.port_role = opts->roles; in fcloop_create_local_port() 1363 newnport->port_role = opts->roles; in fcloop_alloc_nport() 1400 nport->port_role = opts->roles; in fcloop_alloc_nport()
|
| /drivers/scsi/bnx2fc/ |
| A D | bnx2fc_tgt.c | 391 rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET && in bnx2fc_init_tgt() 392 !(rdata->ids.roles & FC_RPORT_ROLE_FCP_INITIATOR)) { in bnx2fc_init_tgt() 476 if (!(rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET)) { in bnx2fc_rport_event_handler()
|
| /drivers/scsi/lpfc/ |
| A D | lpfc_nportdisc.c | 996 u32 roles; in lpfc_rcv_prli() local 1046 roles = FC_RPORT_ROLE_UNKNOWN; in lpfc_rcv_prli() 1048 roles |= FC_RPORT_ROLE_FCP_INITIATOR; in lpfc_rcv_prli() 1050 roles |= FC_RPORT_ROLE_FCP_TARGET; in lpfc_rcv_prli() 1054 roles, ndlp->nlp_DID, ndlp->nlp_flag); in lpfc_rcv_prli() 1057 fc_remote_port_rolechg(rport, roles); in lpfc_rcv_prli()
|