Home
last modified time | relevance | path

Searched refs:roles (Results 1 – 25 of 54) sorted by relevance

123

/drivers/usb/cdns3/
Dcore.c39 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 …]
Dcore.h104 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1]; member
Dhost.c151 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns_host_init()
/drivers/usb/chipidea/
Dci.h213 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()
Dcore.c621 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 …]
Ddebug.c273 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()
Dotg.c176 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
/drivers/usb/roles/
DMakefile3 obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o
4 roles-y := class.o
DKconfig12 Say Y here if your USB connectors support both device and host roles.
14 called roles.ko.
/drivers/scsi/
Dscsi_transport_fc.c768 (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 …]
Dscsi_transport_srp.c147 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/
Dcsio_attr.c70 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/
Dfc_rport.c150 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/
Dbfad.c433 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()
Dbfa_fcs.h160 (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,
Dbfad_im.c1070 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()
Dbfad_drv.h129 u32 roles; member
Dbfa_defs_fcs.h90 enum bfa_lport_role roles; /* FCS port roles */ member
/drivers/usb/typec/
Dbus.h17 enum typec_port_data roles; member
DKconfig40 both roles are supported.
/drivers/usb/
DMakefile68 obj-$(CONFIG_USB_ROLE_SWITCH) += roles/
/drivers/nvme/target/
Dfcloop.c30 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/
Dmptfc.c416 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/
Dbnx2fc_tgt.c393 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/
Dlpfc_nportdisc.c938 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()

123