Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/usb/cdns3/
Dcore.c33 WARN_ON(!cdns->roles[cdns->role]); in cdns3_get_current_role_driver()
34 return cdns->roles[cdns->role]; in cdns3_get_current_role_driver()
48 if (!cdns->roles[role]) in cdns3_role_start()
51 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_ACTIVE) in cdns3_role_start()
55 ret = cdns->roles[role]->start(cdns); in cdns3_role_start()
57 cdns->roles[role]->state = CDNS3_ROLE_STATE_ACTIVE; in cdns3_role_start()
70 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_INACTIVE) in cdns3_role_stop()
74 cdns->roles[role]->stop(cdns); in cdns3_role_stop()
75 cdns->roles[role]->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_role_stop()
280 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns3_idle_init()
[all …]
Dcore.h83 struct cdns3_role_driver *roles[USB_ROLE_DEVICE + 1]; member
Dhost.c72 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()
/Linux-v5.4/drivers/usb/chipidea/
Dci.h212 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()
431 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode()
432 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode()
Dcore.c906 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
944 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
950 if (!strncmp(buf, ci->roles[role]->name, in role_store()
951 strlen(ci->roles[role]->name))) in role_store()
1104 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1110 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1127 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1141 ci->role = ci->roles[CI_ROLE_HOST] in ci_hdrc_probe()
1188 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_probe()
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.c171 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
/Linux-v5.4/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.4/include/scsi/
Dscsi_transport_srp.h14 u8 roles; member
59 u8 roles; member
Dscsi_transport_fc.h182 u32 roles; member
227 u32 roles; member
284 u32 roles; member
333 u32 roles; member
725 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) in fc_remote_port_chkready()
782 void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles);
/Linux-v5.4/drivers/scsi/
Dscsi_transport_fc.c934 if (rport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_rport_roles()
936 return get_fc_port_roles_names(rport->roles, buf); in show_fc_rport_roles()
939 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1254 if (vport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_vport_roles()
1256 return get_fc_port_roles_names(vport->roles, buf); in show_fc_vport_roles()
1258 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
1870 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in store_fc_host_vport_create()
2263 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2280 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2606 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);
710 rport->roles = ids->roles; in srp_rport_add()
/Linux-v5.4/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.4/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.4/drivers/scsi/libfc/
Dfc_rport.c148 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_create()
1047 if (rdata->ids.roles == FC_PORT_ROLE_UNKNOWN) in fc_rport_compatible_roles()
1049 if ((rdata->ids.roles & FC_PORT_ROLE_FCP_TARGET) && in fc_rport_compatible_roles()
1052 if ((rdata->ids.roles & FC_PORT_ROLE_FCP_INITIATOR) && in fc_rport_compatible_roles()
1121 u32 roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_prli_resp() local
1147 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_prli_resp()
1200 roles |= FC_RPORT_ROLE_FCP_INITIATOR; in fc_rport_prli_resp()
1202 roles |= FC_RPORT_ROLE_FCP_TARGET; in fc_rport_prli_resp()
1204 rdata->ids.roles = roles; in fc_rport_prli_resp()
2192 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_fcp_prli()
[all …]
/Linux-v5.4/drivers/usb/typec/
Dbus.h16 enum typec_port_data roles; member
/Linux-v5.4/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()
936 bfad->pport.roles |= BFA_LPORT_ROLE_FCP_IM; in bfad_cfg_pport()
949 (bfad->pport.roles & BFA_LPORT_ROLE_FCP_IM)) { in bfad_uncfg_pport()
953 bfad->pport.roles &= ~BFA_LPORT_ROLE_FCP_IM; in bfad_uncfg_pport()
1030 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.4/drivers/usb/
DMakefile68 obj-$(CONFIG_USB_ROLE_SWITCH) += roles/
/Linux-v5.4/include/linux/usb/
Dtypec.h107 enum typec_port_data roles; member
/Linux-v5.4/drivers/nvme/target/
Dfcloop.c30 u32 roles; member
85 opts->roles = token; in fcloop_parse_options()
922 pinfo.port_role = opts->roles; in fcloop_create_local_port()
1038 newnport->port_role = opts->roles; in fcloop_alloc_nport()
1077 nport->port_role = opts->roles; in fcloop_alloc_nport()
/Linux-v5.4/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
231 Space separated list of the supported roles.
/Linux-v5.4/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.4/Documentation/ABI/stable/
Dsysfs-class-udc39 but HNP was used to switch roles.

123