Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/usb/chipidea/
Dci.h211 struct ci_role_driver *roles[CI_ROLE_END]; member
261 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
262 return ci->roles[ci->role]; in ci_role()
272 if (!ci->roles[role]) in ci_role_start()
275 ret = ci->roles[role]->start(ci); in ci_role_start()
290 ci->roles[role]->stop(ci); in ci_role_stop()
419 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode()
420 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode()
Dcore.c818 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
856 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
862 if (!strncmp(buf, ci->roles[role]->name, in role_store()
863 strlen(ci->roles[role]->name))) in role_store()
998 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1004 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1012 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1026 ci->role = ci->roles[CI_ROLE_HOST] in ci_hdrc_probe()
1076 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-v4.19/include/scsi/
Dscsi_transport_srp.h14 u8 roles; member
59 u8 roles; member
Dscsi_transport_fc.h196 u32 roles; member
241 u32 roles; member
298 u32 roles; member
347 u32 roles; member
738 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) in fc_remote_port_chkready()
795 void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles);
/Linux-v4.19/drivers/scsi/
Dscsi_transport_fc.c948 if (rport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_rport_roles()
950 return get_fc_port_roles_names(rport->roles, buf); in show_fc_rport_roles()
953 static FC_DEVICE_ATTR(rport, roles, S_IRUGO,
1268 if (vport->roles == FC_PORT_ROLE_UNKNOWN) in show_fc_vport_roles()
1270 return get_fc_port_roles_names(vport->roles, buf); in show_fc_vport_roles()
1272 static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
1884 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in store_fc_host_vport_create()
2277 SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2294 SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(roles); in fc_attach_transport()
2620 rport->roles = ids->roles; in fc_remote_port_create()
[all …]
Dscsi_transport_srp.c161 if (srp_rport_role_names[i].value == rport->roles) { in show_srp_rport_roles()
168 static DEVICE_ATTR(roles, S_IRUGO, show_srp_rport_roles, NULL);
724 rport->roles = ids->roles; in srp_rport_add()
/Linux-v4.19/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-v4.19/drivers/usb/common/
DMakefile12 obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o
/Linux-v4.19/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-v4.19/drivers/scsi/libfc/
Dfc_rport.c157 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_create()
1056 if (rdata->ids.roles == FC_PORT_ROLE_UNKNOWN) in fc_rport_compatible_roles()
1058 if ((rdata->ids.roles & FC_PORT_ROLE_FCP_TARGET) && in fc_rport_compatible_roles()
1061 if ((rdata->ids.roles & FC_PORT_ROLE_FCP_INITIATOR) && in fc_rport_compatible_roles()
1130 u32 roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_prli_resp() local
1156 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()
2194 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_fcp_prli()
[all …]
/Linux-v4.19/drivers/usb/typec/
Dbus.h16 enum typec_port_data roles; member
/Linux-v4.19/drivers/scsi/bfa/
Dbfad.c441 enum bfa_lport_role roles, struct bfad_vf_s *vf_drv, in bfa_fcb_lport_new() argument
462 port_drv->roles = roles; in bfa_fcb_lport_new()
464 if (roles & BFA_LPORT_ROLE_FCP_IM) { in bfa_fcb_lport_new()
514 port_cfg.roles = BFA_LPORT_ROLE_FCP_IM; in bfa_fcb_pbc_vport_create()
666 if (port_cfg->roles & BFA_LPORT_ROLE_FCP_IM) { in bfad_vport_create()
944 bfad->pport.roles |= BFA_LPORT_ROLE_FCP_IM; in bfad_cfg_pport()
957 (bfad->pport.roles & BFA_LPORT_ROLE_FCP_IM)) { in bfad_uncfg_pport()
961 bfad->pport.roles &= ~BFA_LPORT_ROLE_FCP_IM; in bfad_uncfg_pport()
1038 vid.roles = FC_PORT_ROLE_FCP_INITIATOR; in bfad_start_ops()
Dbfa_fcs.h168 (port->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM)
271 ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM)
854 enum bfa_lport_role roles,
Dbfad_im.c1080 rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; in bfad_im_fc_rport_add()
1095 rport_ids.roles |= FC_RPORT_ROLE_FCP_TARGET; in bfad_im_fc_rport_add()
1097 if (rport_ids.roles != FC_RPORT_ROLE_UNKNOWN) in bfad_im_fc_rport_add()
1098 fc_remote_port_rolechg(fc_rport, rport_ids.roles); in bfad_im_fc_rport_add()
/Linux-v4.19/drivers/usb/
DMakefile69 obj-$(CONFIG_USB_ROLE_SWITCH) += roles/
/Linux-v4.19/include/linux/usb/
Dtypec.h107 enum typec_port_data roles; member
/Linux-v4.19/drivers/nvme/target/
Dfcloop.c41 u32 roles; member
96 opts->roles = token; in fcloop_parse_options()
895 pinfo.port_role = opts->roles; in fcloop_create_local_port()
1011 newnport->port_role = opts->roles; in fcloop_alloc_nport()
1050 nport->port_role = opts->roles; in fcloop_alloc_nport()
/Linux-v4.19/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-v4.19/drivers/message/fusion/
Dmptfc.c417 rid->roles = FC_RPORT_ROLE_UNKNOWN; in mptfc_generate_rport_ids()
431 u32 roles = FC_RPORT_ROLE_UNKNOWN; in mptfc_register_dev() local
436 roles |= FC_RPORT_ROLE_FCP_TARGET; in mptfc_register_dev()
438 roles |= FC_RPORT_ROLE_FCP_INITIATOR; in mptfc_register_dev()
482 fc_remote_port_rolechg(rport,roles); in mptfc_register_dev()
/Linux-v4.19/Documentation/ABI/stable/
Dsysfs-class-udc39 but HNP was used to switch roles.
Dsysfs-transport-srp41 What: /sys/class/srp_remote_ports/port-<h>:<n>/roles
/Linux-v4.19/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()
/Linux-v4.19/security/selinux/ss/
Dpolicydb.h124 struct ebitmap roles; /* set of authorized roles for user */ member

123