/kernel/linux/linux-6.6/drivers/usb/cdns3/ |
H A D | core.c | 40 if (!cdns->roles[role]) in cdns_role_start() 43 if (cdns->roles[role]->state == CDNS_ROLE_STATE_ACTIVE) in cdns_role_start() 47 ret = cdns->roles[role]->start(cdns); in cdns_role_start() 49 cdns->roles[role]->state = CDNS_ROLE_STATE_ACTIVE; in cdns_role_start() 62 if (cdns->roles[role]->state == CDNS_ROLE_STATE_INACTIVE) in cdns_role_stop() 66 cdns->roles[role]->stop(cdns); in cdns_role_stop() 67 cdns->roles[role]->state = CDNS_ROLE_STATE_INACTIVE; in cdns_role_stop() 289 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns_idle_init() 295 * cdns_hw_role_switch - switch roles based on HW state 515 if (cdns->roles[cdn in cdns_suspend() [all...] |
H A D | core.h | 64 * @roles: array of supported roles for this controller 104 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1]; member
|
/kernel/linux/linux-5.10/drivers/usb/chipidea/ |
H A D | ci.h | 165 * @roles: array of supported roles for this controller 214 struct ci_role_driver *roles[CI_ROLE_END]; member 266 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role() 267 return ci->roles[ci->role]; in ci_role() 277 if (!ci->roles[role]) in ci_role_start() 280 ret = ci->roles[role]->start(ci); in ci_role_start() 295 ci->roles[role]->stop(ci); in ci_role_stop() 444 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode() 445 ci->roles[CI_ROLE_GADGE in ci_otg_is_fsm_mode() [all...] |
H A D | core.c | 616 if ((ci_role != CI_ROLE_END && !ci->roles[ci_role]) || in ci_usb_role_switch_set() 913 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role() 915 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role() 917 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role() 928 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy() 966 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store() 972 if (!strncmp(buf, ci->roles[role]->name, in role_store() 973 strlen(ci->roles[rol in role_store() [all...] |
H A D | debug.c | 273 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()
|
/kernel/linux/linux-6.6/drivers/usb/chipidea/ |
H A D | ci.h | 170 * @roles: array of supported roles for this controller 219 struct ci_role_driver *roles[CI_ROLE_END]; member 272 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role() 273 return ci->roles[ci->role]; in ci_role() 283 if (!ci->roles[role]) in ci_role_start() 286 ret = ci->roles[role]->start(ci); in ci_role_start() 312 ci->roles[role]->stop(ci); in ci_role_stop() 464 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode() 465 ci->roles[CI_ROLE_GADGE in ci_otg_is_fsm_mode() [all...] |
H A D | core.c | 651 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_get_role() 664 role = ci->roles[CI_ROLE_HOST] ? CI_ROLE_HOST in ci_get_role() 952 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role() 954 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role() 956 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role() 967 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy() 1005 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGE in role_store() [all...] |
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
H A D | core.c | 41 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() 279 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns3_idle_init() 285 * cdns3_hw_role_switch - switch roles based on HW state 685 if (cdns->roles[cdn in cdns3_controller_resume() [all...] |
H A D | core.h | 64 * @roles: array of supported roles for this controller 103 struct cdns3_role_driver *roles[USB_ROLE_DEVICE + 1]; member
|
/kernel/linux/linux-5.10/drivers/usb/roles/ |
H A D | Makefile | 3 obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o 4 roles-y := class.o
|
/kernel/linux/linux-6.6/drivers/usb/roles/ |
H A D | Makefile | 3 obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o 4 roles-y := class.o
|
/kernel/linux/linux-5.10/include/scsi/ |
H A D | scsi_transport_srp.h | 14 u8 roles; member 38 * @roles: Role of this port - initiator or target. 59 u8 roles; member
|
H A D | scsi_transport_fc.h | 144 * for reporting (e.g. report roles). If you alter this list, 183 u32 roles; member 199 * A virtual port may support 1 or more FC4 roles. Typically it is a 201 * roles. FC port attributes for the vport will be reported on any 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);
|
/kernel/linux/linux-6.6/include/scsi/ |
H A D | scsi_transport_srp.h | 14 u8 roles; member 38 * @roles: Role of this port - initiator or target. 59 u8 roles; member
|
H A D | scsi_transport_fc.h | 145 * for reporting (e.g. report roles). If you alter this list, 184 u32 roles; member 200 * A virtual port may support 1 or more FC4 roles. Typically it is a 202 * roles. FC port attributes for the vport will be reported on any 229 u32 roles; member 286 u32 roles; member 366 u32 roles; member 786 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) in fc_remote_port_chkready() 843 void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles);
|
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsi_transport_fc.c | 300 * Define roles that are specific to port_id. Values are relative to ROLE_MASK. 771 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update() 772 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update() 784 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update() 785 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update() 818 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_delivery_stats_update() 819 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_delivery_stats_update() 851 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update() 852 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update() 864 (rport->roles in fc_fpin_peer_congn_stats_update() 3488 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) fc_remote_port_rolechg() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
H A D | csio_attr.c | 70 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()
|
/kernel/linux/linux-6.6/drivers/scsi/csiostor/ |
H A D | csio_attr.c | 70 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()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | scsi_transport_fc.c | 290 * Define roles that are specific to port_id. Values are relative to ROLE_MASK. 916 /* identify any roles that are port_id specific */ in show_fc_rport_roles() 935 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() 3019 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) fc_remote_port_rolechg() argument [all...] |
/kernel/linux/linux-5.10/Documentation/sphinx/ |
H A D | rstFlatTable.py | 35 roles: 48 from docutils.parsers.rst import directives, roles namespace 71 roles.register_local_role('cspan', c_span) 72 roles.register_local_role('rspan', r_span)
|
/kernel/linux/linux-6.6/Documentation/sphinx/ |
H A D | rstFlatTable.py | 35 roles: 46 from docutils.parsers.rst import directives, roles namespace 61 roles.register_local_role('cspan', c_span) 62 roles.register_local_role('rspan', r_span)
|
/kernel/linux/linux-6.6/drivers/usb/typec/ |
H A D | bus.h | 18 enum typec_port_data roles; member
|
/kernel/linux/linux-5.10/drivers/scsi/libfc/ |
H A D | fc_rport.c | 150 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 1151 /* reinitialize remote port roles */ in fc_rport_prli_resp() 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 in fc_rport_prli_resp() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/libfc/ |
H A D | fc_rport.c | 150 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 1151 /* reinitialize remote port roles */ in fc_rport_prli_resp() 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 in fc_rport_prli_resp() [all...] |
/kernel/linux/linux-5.10/drivers/usb/typec/ |
H A D | bus.h | 16 enum typec_port_data roles; member
|