Home
last modified time | relevance | path

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

1234

/linux-6.1.9/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()
515 if (cdns->roles[cdns->role]->suspend) { in cdns_suspend()
517 cdns->roles[cdns->role]->suspend(cdns, false); in cdns_suspend()
[all …]
Dcore.h104 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1]; member
Dhost.c140 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns_host_init()
/linux-6.1.9/drivers/usb/chipidea/
Dci.h213 struct ci_role_driver *roles[CI_ROLE_END]; member
263 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
264 return ci->roles[ci->role]; in ci_role()
274 if (!ci->roles[role]) in ci_role_start()
277 ret = ci->roles[role]->start(ci); in ci_role_start()
292 ci->roles[role]->stop(ci); in ci_role_stop()
441 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode()
442 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode()
Dcore.c616 if ((ci_role != CI_ROLE_END && !ci->roles[ci_role]) || in ci_usb_role_switch_set()
917 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
919 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role()
921 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
932 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
970 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
976 if (!strncmp(buf, ci->roles[role]->name, in role_store()
977 strlen(ci->roles[role]->name))) in role_store()
1130 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1136 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.c174 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
/linux-6.1.9/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.
/linux-6.1.9/include/scsi/
Dscsi_transport_srp.h14 u8 roles; member
59 u8 roles; member
Dscsi_transport_fc.h184 u32 roles; member
229 u32 roles; member
286 u32 roles; member
366 u32 roles; member
785 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) in fc_remote_port_chkready()
842 void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles);
/linux-6.1.9/drivers/scsi/
Dscsi_transport_fc.c770 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update()
771 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
783 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update()
784 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
817 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_delivery_stats_update()
818 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_delivery_stats_update()
850 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
851 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update()
863 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
864 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()
/linux-6.1.9/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()
/linux-6.1.9/Documentation/sphinx/
DrstFlatTable.py46 from docutils.parsers.rst import directives, roles
61 roles.register_local_role('cspan', c_span)
62 roles.register_local_role('rspan', r_span)
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/usb/typec/
Dbus.h16 enum typec_port_data roles; member
/linux-6.1.9/Documentation/mhi/
Dtopology.rst20 Below are the roles of the MHI controller driver:
54 Below are the roles of the MHI driver:
/linux-6.1.9/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()
934 bfad->pport.roles |= BFA_LPORT_ROLE_FCP_IM; in bfad_cfg_pport()
947 (bfad->pport.roles & BFA_LPORT_ROLE_FCP_IM)) { in bfad_uncfg_pport()
951 bfad->pport.roles &= ~BFA_LPORT_ROLE_FCP_IM; in bfad_uncfg_pport()
1028 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,
/linux-6.1.9/drivers/usb/
DMakefile68 obj-$(CONFIG_USB_ROLE_SWITCH) += roles/
/linux-6.1.9/drivers/nvme/target/
Dfcloop.c30 u32 roles; member
98 opts->roles = token; in fcloop_parse_options()
1122 pinfo.port_role = opts->roles; in fcloop_create_local_port()
1238 newnport->port_role = opts->roles; in fcloop_alloc_nport()
1277 nport->port_role = opts->roles; in fcloop_alloc_nport()
/linux-6.1.9/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()
/linux-6.1.9/include/linux/usb/
Dtypec.h139 enum typec_port_data roles; member
/linux-6.1.9/Documentation/ABI/stable/
Dsysfs-class-udc39 but HNP was used to switch roles.

1234