Home
last modified time | relevance | path

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

123

/Linux-v5.10/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.c600 if ((ci_role != CI_ROLE_END && !ci->roles[ci_role]) || in ci_usb_role_switch_set()
897 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
899 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role()
901 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
912 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
950 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
956 if (!strncmp(buf, ci->roles[role]->name, in role_store()
957 strlen(ci->roles[role]->name))) in role_store()
1110 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1116 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()
/Linux-v5.10/drivers/usb/cdns3/
Dcore.c41 if (!cdns->roles[role]) in cdns3_role_start()
44 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_ACTIVE) in cdns3_role_start()
48 ret = cdns->roles[role]->start(cdns); in cdns3_role_start()
50 cdns->roles[role]->state = CDNS3_ROLE_STATE_ACTIVE; in cdns3_role_start()
63 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_INACTIVE) in cdns3_role_stop()
67 cdns->roles[role]->stop(cdns); in cdns3_role_stop()
68 cdns->roles[role]->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_role_stop()
269 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns3_idle_init()
674 if (cdns->roles[cdns->role]->resume && !PMSG_IS_AUTO(msg)) in cdns3_controller_resume()
675 cdns->roles[cdns->role]->resume(cdns, false); in cdns3_controller_resume()
[all …]
Dcore.h95 struct cdns3_role_driver *roles[USB_ROLE_DEVICE + 1]; member
Dhost.c79 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()
/Linux-v5.10/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-v5.10/include/scsi/
Dscsi_transport_srp.h14 u8 roles; member
59 u8 roles; member
Dscsi_transport_fc.h183 u32 roles; member
228 u32 roles; member
285 u32 roles; member
334 u32 roles; member
726 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) in fc_remote_port_chkready()
783 void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles);
/Linux-v5.10/drivers/scsi/
Dscsi_transport_fc.c935 if (rport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_rport_roles()
937 return get_fc_port_roles_names(rport->roles, buf); in show_fc_rport_roles()
940 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1255 if (vport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_vport_roles()
1257 return get_fc_port_roles_names(vport->roles, buf); in show_fc_vport_roles()
1259 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
1871 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in store_fc_host_vport_create()
2264 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2281 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2607 rport->roles = ids->roles; in fc_remote_port_create()
[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);
708 rport->roles = ids->roles; in srp_rport_add()
/Linux-v5.10/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-v5.10/Documentation/sphinx/
DrstFlatTable.py48 from docutils.parsers.rst import directives, roles
71 roles.register_local_role('cspan', c_span)
72 roles.register_local_role('rspan', r_span)
/Linux-v5.10/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()
1205 roles |= FC_RPORT_ROLE_FCP_INITIATOR; in fc_rport_prli_resp()
1207 roles |= FC_RPORT_ROLE_FCP_TARGET; in fc_rport_prli_resp()
1209 rdata->ids.roles = roles; in fc_rport_prli_resp()
2203 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_fcp_prli()
[all …]
/Linux-v5.10/Documentation/mhi/
Dtopology.rst20 Below are the roles of the MHI controller driver:
54 Below are the roles of the MHI driver:
/Linux-v5.10/drivers/usb/typec/
Dbus.h16 enum typec_port_data roles; member
/Linux-v5.10/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)
263 ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM)
846 enum bfa_lport_role roles,
/Linux-v5.10/drivers/usb/
DMakefile68 obj-$(CONFIG_USB_ROLE_SWITCH) += roles/
/Linux-v5.10/include/linux/usb/
Dtypec.h126 enum typec_port_data roles; member
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-class-typec7 The supported USB data roles. This attribute can be used for
22 The supported power roles. This attribute can be used to request
246 Space separated list of the supported roles.
/Linux-v5.10/drivers/nvme/target/
Dfcloop.c30 u32 roles; member
98 opts->roles = token; in fcloop_parse_options()
1074 pinfo.port_role = opts->roles; in fcloop_create_local_port()
1190 newnport->port_role = opts->roles; in fcloop_alloc_nport()
1229 nport->port_role = opts->roles; in fcloop_alloc_nport()
/Linux-v5.10/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-v5.10/Documentation/ABI/stable/
Dsysfs-class-udc39 but HNP was used to switch roles.

123