/drivers/usb/cdns3/ |
D | core.c | 39 if (!cdns->roles[role]) in cdns_role_start() 42 if (cdns->roles[role]->state == CDNS_ROLE_STATE_ACTIVE) in cdns_role_start() 46 ret = cdns->roles[role]->start(cdns); in cdns_role_start() 48 cdns->roles[role]->state = CDNS_ROLE_STATE_ACTIVE; in cdns_role_start() 61 if (cdns->roles[role]->state == CDNS_ROLE_STATE_INACTIVE) in cdns_role_stop() 65 cdns->roles[role]->stop(cdns); in cdns_role_stop() 66 cdns->roles[role]->state = CDNS_ROLE_STATE_INACTIVE; in cdns_role_stop() 288 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns_idle_init() 514 if (cdns->roles[cdns->role]->suspend) { in cdns_suspend() 516 cdns->roles[cdns->role]->suspend(cdns, false); in cdns_suspend() [all …]
|
D | core.h | 104 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1]; member
|
D | host.c | 151 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns_host_init()
|
/drivers/usb/chipidea/ |
D | ci.h | 213 struct ci_role_driver *roles[CI_ROLE_END]; member 264 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role() 265 return ci->roles[ci->role]; in ci_role() 275 if (!ci->roles[role]) in ci_role_start() 278 ret = ci->roles[role]->start(ci); in ci_role_start() 293 ci->roles[role]->stop(ci); in ci_role_stop() 442 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode() 443 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode()
|
D | core.c | 621 if ((ci_role != CI_ROLE_END && !ci->roles[ci_role]) || in ci_usb_role_switch_set() 921 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role() 923 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role() 925 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role() 936 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy() 974 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store() 980 if (!strncmp(buf, ci->roles[role]->name, in role_store() 981 strlen(ci->roles[role]->name))) in role_store() 1143 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe() 1149 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe() [all …]
|
D | debug.c | 273 if (ci->roles[role] && in ci_role_write() 274 !strncmp(buf, ci->roles[role]->name, in ci_role_write() 275 strlen(ci->roles[role]->name))) in ci_role_write()
|
D | otg.c | 176 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
|
/drivers/usb/roles/ |
D | Makefile | 3 obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o 4 roles-y := class.o
|
D | Kconfig | 12 Say Y here if your USB connectors support both device and host roles. 14 called roles.ko.
|
/drivers/scsi/ |
D | scsi_transport_fc.c | 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() [all …]
|
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/ |
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/ |
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() 1057 if ((rdata->ids.roles & FC_PORT_ROLE_FCP_INITIATOR) && 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() [all …]
|
/drivers/scsi/bfa/ |
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() 937 bfad->pport.roles |= BFA_LPORT_ROLE_FCP_IM; in bfad_cfg_pport() 950 (bfad->pport.roles & BFA_LPORT_ROLE_FCP_IM)) { in bfad_uncfg_pport() 954 bfad->pport.roles &= ~BFA_LPORT_ROLE_FCP_IM; in bfad_uncfg_pport() 1031 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in bfad_start_ops()
|
D | bfa_fcs.h | 160 (port->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM) 260 ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM) 843 enum bfa_lport_role roles,
|
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()
|
D | bfad_drv.h | 129 u32 roles; member
|
D | bfa_defs_fcs.h | 90 enum bfa_lport_role roles; /* FCS port roles */ member
|
/drivers/usb/typec/ |
D | bus.h | 17 enum typec_port_data roles; member
|
D | Kconfig | 40 both roles are supported.
|
/drivers/usb/ |
D | Makefile | 68 obj-$(CONFIG_USB_ROLE_SWITCH) += roles/
|
/drivers/nvme/target/ |
D | fcloop.c | 30 u32 roles; member 98 opts->roles = token; in fcloop_parse_options() 1128 pinfo.port_role = opts->roles; in fcloop_create_local_port() 1244 newnport->port_role = opts->roles; in fcloop_alloc_nport() 1283 nport->port_role = opts->roles; in fcloop_alloc_nport()
|
/drivers/message/fusion/ |
D | mptfc.c | 416 rid->roles = FC_RPORT_ROLE_UNKNOWN; in mptfc_generate_rport_ids() 430 u32 roles = FC_RPORT_ROLE_UNKNOWN; in mptfc_register_dev() local 435 roles |= FC_RPORT_ROLE_FCP_TARGET; in mptfc_register_dev() 437 roles |= FC_RPORT_ROLE_FCP_INITIATOR; in mptfc_register_dev() 481 fc_remote_port_rolechg(rport,roles); in mptfc_register_dev()
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_tgt.c | 393 rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET && in bnx2fc_init_tgt() 394 !(rdata->ids.roles & FC_RPORT_ROLE_FCP_INITIATOR)) { in bnx2fc_init_tgt() 478 if (!(rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET)) { in bnx2fc_rport_event_handler()
|
/drivers/scsi/lpfc/ |
D | lpfc_nportdisc.c | 938 u32 roles; in lpfc_rcv_prli() local 988 roles = FC_RPORT_ROLE_UNKNOWN; in lpfc_rcv_prli() 990 roles |= FC_RPORT_ROLE_FCP_INITIATOR; in lpfc_rcv_prli() 992 roles |= FC_RPORT_ROLE_FCP_TARGET; in lpfc_rcv_prli() 996 roles, ndlp->nlp_DID, ndlp->nlp_flag); in lpfc_rcv_prli() 999 fc_remote_port_rolechg(rport, roles); in lpfc_rcv_prli()
|