| /USBX-v6.2.1/common/core/src/ |
| D | ux_host_stack_rh_change_process.c | 83 UINT port_index; in _ux_host_stack_rh_change_process() local 99 for (port_index = 0; port_index < hcd -> ux_hcd_nb_root_hubs; port_index++) in _ux_host_stack_rh_change_process() 103 if (hcd -> ux_hcd_root_hub_signal[port_index] != 0) in _ux_host_stack_rh_change_process() 107 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_RH_CHANGE_PROCESS, port_index, 0, 0, 0, UX_TRACE_HOST_… in _ux_host_stack_rh_change_process() 111 hcd -> ux_hcd_root_hub_signal[port_index]--; in _ux_host_stack_rh_change_process() 115 …tus = hcd -> ux_hcd_entry_function(hcd, UX_HCD_GET_PORT_STATUS, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_rh_change_process() 128 … if ((hcd -> ux_hcd_rh_device_connection & (ULONG)(1 << port_index)) == 0) in _ux_host_stack_rh_change_process() 133 _ux_host_stack_rh_device_insertion(hcd,port_index); in _ux_host_stack_rh_change_process() 143 if (hcd -> ux_hcd_root_hub_signal[port_index] != 0) in _ux_host_stack_rh_change_process() 148 hcd -> ux_hcd_root_hub_signal[port_index] = 0; in _ux_host_stack_rh_change_process() [all …]
|
| D | ux_host_stack_rh_device_insertion.c | 91 UINT _ux_host_stack_rh_device_insertion(UX_HCD *hcd, UINT port_index) in _ux_host_stack_rh_device_insertion() argument 99 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_RH_DEVICE_INSERTION, hcd, port_index, 0, 0, UX_TRACE_H… in _ux_host_stack_rh_device_insertion() 102 hcd -> ux_hcd_rh_device_connection |= (ULONG)(1 << port_index); in _ux_host_stack_rh_device_insertion() 105 status = _ux_host_stack_new_device_create(hcd, UX_NULL, port_index, in _ux_host_stack_rh_device_insertion() 128 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_RH_DEVICE_INSERTION, hcd, port_index, 0, 0, UX_TRACE_H… in _ux_host_stack_rh_device_insertion() 131 …_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_ENABLE_PORT, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_rh_device_insertion() 148 …t_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_RESET_PORT, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_rh_device_insertion() 154 …tus = hcd -> ux_hcd_entry_function(hcd, UX_HCD_GET_PORT_STATUS, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_rh_device_insertion() 164 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DEVICE_ENUMERATION_FAILURE, port_index, 0, 0, UX_TRACE_… in _ux_host_stack_rh_device_insertion() 182 …status = _ux_host_stack_new_device_create(hcd, UX_NULL, port_index, device_speed, UX_MAX_SELF_POW… in _ux_host_stack_rh_device_insertion() [all …]
|
| D | ux_host_stack_rh_device_extraction.c | 72 UINT _ux_host_stack_rh_device_extraction(UX_HCD *hcd, UINT port_index) in _ux_host_stack_rh_device_extraction() argument 76 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_RH_DEVICE_EXTRACTION, hcd, port_index, 0, 0, UX_TRACE_… in _ux_host_stack_rh_device_extraction() 79 _ux_host_stack_device_remove(hcd, 0, port_index); in _ux_host_stack_rh_device_extraction() 82 hcd -> ux_hcd_rh_device_connection &= (ULONG)~(1 << port_index); in _ux_host_stack_rh_device_extraction()
|
| D | ux_hcd_sim_host_port_status_get.c | 100 ULONG _ux_hcd_sim_host_port_status_get(UX_HCD_SIM_HOST *hcd_sim_host, ULONG port_index) in _ux_hcd_sim_host_port_status_get() argument 107 if (hcd_sim_host -> ux_hcd_sim_host_nb_root_hubs < port_index) in _ux_hcd_sim_host_port_status_get() 114 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_INDEX_UNKNOWN, port_index, 0, 0, UX_TRACE_ERRORS, … in _ux_hcd_sim_host_port_status_get() 120 port_status = hcd_sim_host -> ux_hcd_sim_host_port_status[port_index]; in _ux_hcd_sim_host_port_status_get()
|
| D | ux_host_stack_hnp_polling_thread_entry.c | 97 ULONG port_index; in _ux_host_stack_hnp_polling_thread_entry() local 125 for (port_index = 0; port_index < hcd -> ux_hcd_nb_root_hubs; port_index++) in _ux_host_stack_hnp_polling_thread_entry() 129 …tus = hcd -> ux_hcd_entry_function(hcd, UX_HCD_GET_PORT_STATUS, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_hnp_polling_thread_entry() 156 if(UX_DEVICE_PORT_LOCATION_MATCH(device, port_index) && in _ux_host_stack_hnp_polling_thread_entry()
|
| /USBX-v6.2.1/common/usbx_host_controllers/src/ |
| D | ux_hcd_ohci_power_root_hubs.c | 83 UINT port_index; in _ux_hcd_ohci_power_root_hubs() local 112 for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_power_root_hubs() 115 if ((ohci_register_b & (0x20000u << port_index)) == 0) in _ux_hcd_ohci_power_root_hubs() 125 for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_power_root_hubs() 128 if ((ohci_register_b & (0x20000u << port_index)) != 0) in _ux_hcd_ohci_power_root_hubs() 131 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_power_root_hubs() 134 …_ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, ohci_register_port_stat… in _ux_hcd_ohci_power_root_hubs()
|
| D | ux_hcd_ehci_port_reset.c | 131 UINT _ux_hcd_ehci_port_reset(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_port_reset() argument 139 if (hcd_ehci -> ux_hcd_ehci_nb_root_hubs < port_index) in _ux_hcd_ehci_port_reset() 146 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_INDEX_UNKNOWN, port_index, 0, 0, UX_TRACE_ERRORS, … in _ux_hcd_ehci_port_reset() 153 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_reset() 163 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_NO_DEVICE_CONNECTED, port_index, 0, 0, UX_TRACE_ERRORS,… in _ux_hcd_ehci_port_reset() 181 …_ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, (ehci_register_port_status |… in _ux_hcd_ehci_port_reset() 187 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_reset() 192 … _ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, ehci_register_port_status); in _ux_hcd_ehci_port_reset() 200 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_reset() 209 …_ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, (ehci_register_port_status |… in _ux_hcd_ehci_port_reset() [all …]
|
| D | ux_hcd_ehci_power_root_hubs.c | 78 UINT port_index; in _ux_hcd_ehci_power_root_hubs() local 89 for (port_index = 0; port_index < hcd_ehci -> ux_hcd_ehci_nb_root_hubs; port_index++) in _ux_hcd_ehci_power_root_hubs() 93 ehci_register = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_power_root_hubs() 96 …_ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, ehci_register | EHCI_HC_PS_P… in _ux_hcd_ehci_power_root_hubs()
|
| D | ux_hcd_ohci_port_reset.c | 77 UINT _ux_hcd_ohci_port_reset(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_reset() argument 85 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_reset() 92 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_INDEX_UNKNOWN, port_index, 0, 0, UX_TRACE_ERRORS, … in _ux_hcd_ohci_port_reset() 99 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_port_reset() 109 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_NO_DEVICE_CONNECTED, port_index, 0, 0, UX_TRACE_ERRORS,… in _ux_hcd_ohci_port_reset() 115 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, OHCI_HC_PS_PRS); in _ux_hcd_ohci_port_reset() 126 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_RESET_FAILED, port_index, 0, 0, UX_TRACE_ERRORS, 0… in _ux_hcd_ohci_port_reset()
|
| D | ux_hcd_ohci_port_enable.c | 75 UINT _ux_hcd_ohci_port_enable(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_enable() argument 82 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_enable() 89 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_INDEX_UNKNOWN, port_index, 0, 0, UX_TRACE_ERRORS, … in _ux_hcd_ohci_port_enable() 96 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_port_enable() 106 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_NO_DEVICE_CONNECTED, port_index, 0, 0, UX_TRACE_ERRORS,… in _ux_hcd_ohci_port_enable() 115 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, OHCI_HC_PS_PES); in _ux_hcd_ohci_port_enable()
|
| D | ux_hcd_ohci_port_disable.c | 74 UINT _ux_hcd_ohci_port_disable(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_disable() argument 81 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_disable() 88 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_INDEX_UNKNOWN, port_index, 0, 0, UX_TRACE_ERRORS, … in _ux_hcd_ohci_port_disable() 94 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_port_disable() 100 …_ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, ohci_register_port_stat… in _ux_hcd_ohci_port_disable()
|
| D | ux_hcd_ehci_port_disable.c | 74 UINT _ux_hcd_ehci_port_disable(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_port_disable() argument 81 if (hcd_ehci -> ux_hcd_ehci_nb_root_hubs < port_index) in _ux_hcd_ehci_port_disable() 88 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_INDEX_UNKNOWN, port_index, 0, 0, UX_TRACE_ERRORS, … in _ux_hcd_ehci_port_disable() 94 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_disable() 100 … _ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, ehci_register_port_status); in _ux_hcd_ehci_port_disable()
|
| D | ux_hcd_ehci_port_suspend.c | 73 UINT _ux_hcd_ehci_port_suspend(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_port_suspend() argument 78 if (hcd_ehci -> ux_hcd_ehci_nb_root_hubs < port_index) in _ux_hcd_ehci_port_suspend() 85 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_INDEX_UNKNOWN, port_index, 0, 0, UX_TRACE_ERRORS, … in _ux_hcd_ehci_port_suspend() 91 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_suspend() 103 … _ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, ehci_register_port_status); in _ux_hcd_ehci_port_suspend()
|
| D | ux_hcd_ohci_interrupt_handler.c | 96 ULONG port_index; in _ux_hcd_ohci_interrupt_handler() local 153 … for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_interrupt_handler() 157 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_interrupt_handler() 163 hcd -> ux_hcd_root_hub_signal[port_index]++; in _ux_hcd_ohci_interrupt_handler() 175 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, in _ux_hcd_ohci_interrupt_handler()
|
| D | ux_hcd_ehci_interrupt_handler.c | 95 ULONG port_index; in _ux_hcd_ehci_interrupt_handler() local 155 … for (port_index = 0; port_index < hcd_ehci -> ux_hcd_ehci_nb_root_hubs; port_index++) in _ux_hcd_ehci_interrupt_handler() 159 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_interrupt_handler() 165 hcd -> ux_hcd_root_hub_signal[port_index]++; in _ux_hcd_ehci_interrupt_handler()
|
| D | ux_hcd_ohci_port_status_get.c | 98 ULONG _ux_hcd_ohci_port_status_get(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_status_get() argument 106 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_status_get() 113 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_PORT_INDEX_UNKNOWN, port_index, 0, 0, UX_TRACE_ERRORS, … in _ux_hcd_ohci_port_status_get() 121 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_port_status_get()
|
| D | ux_hcd_ohci_port_suspend.c | 76 UINT _ux_hcd_ohci_port_suspend(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_suspend() argument 80 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ohci_port_suspend()
|
| D | ux_hcd_ohci_power_down_port.c | 76 UINT _ux_hcd_ohci_power_down_port(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_power_down_port() argument 80 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ohci_power_down_port()
|
| D | ux_hcd_ehci_port_resume.c | 72 UINT _ux_hcd_ehci_port_resume(UX_HCD_EHCI *hcd_ehci, UINT port_index) in _ux_hcd_ehci_port_resume() argument 76 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ehci_port_resume()
|
| D | ux_hcd_ehci_power_down_port.c | 73 UINT _ux_hcd_ehci_power_down_port(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_power_down_port() argument 77 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ehci_power_down_port()
|
| D | ux_hcd_ehci_power_on_port.c | 72 UINT _ux_hcd_ehci_power_on_port(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_power_on_port() argument 76 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ehci_power_on_port()
|
| /USBX-v6.2.1/common/usbx_host_classes/src/ |
| D | ux_host_class_hub_ports_power.c | 91 UINT port_index; in _ux_host_class_hub_ports_power() local 103 for (port_index = 1; port_index <= nb_ports; port_index++) in _ux_host_class_hub_ports_power() 107 …status = _ux_host_class_hub_feature(hub, port_index, UX_SET_FEATURE, UX_HOST_CLASS_HUB_PORT_POWER… in _ux_host_class_hub_ports_power() 114 hub -> ux_host_class_hub_port_power &= (UINT)~(1 << port_index); in _ux_host_class_hub_ports_power() 124 hub -> ux_host_class_hub_port_power |= (UINT)(1 << port_index); in _ux_host_class_hub_ports_power()
|
| D | ux_host_class_hub_change_process.c | 79 UINT port_index; in _ux_host_class_hub_change_process() local 97 for (port_index = 1; port_index <= hub -> ux_host_class_hub_descriptor.bNbPorts; port_index++) in _ux_host_class_hub_change_process() 100 if (port_status_change_bits & (1<<port_index)) in _ux_host_class_hub_change_process() 101 _ux_host_class_hub_port_change_process(hub, port_index); in _ux_host_class_hub_change_process()
|
| D | ux_host_class_hub_deactivate.c | 97 UINT port_index; in _ux_host_class_hub_deactivate() local 122 for (port_index = 1; port_index <= hub -> ux_host_class_hub_descriptor.bNbPorts; port_index++) in _ux_host_class_hub_deactivate() 126 if (hub -> ux_host_class_hub_port_state & (1UL << port_index)) in _ux_host_class_hub_deactivate() 130 _ux_host_stack_device_remove(hcd, hub -> ux_host_class_hub_device, port_index); in _ux_host_class_hub_deactivate()
|
| D | ux_host_class_hub_descriptor_get.c | 44 ULONG port_index; in _ux_host_class_hub_descriptor_parse() local 106 … for (port_index = 0; port_index < hub -> ux_host_class_hub_descriptor.bNbPorts; port_index++) in _ux_host_class_hub_descriptor_parse() 109 …ux_host_class_hub_device -> ux_device_hub_tt[port_index].ux_hub_tt_port_mapping = (ULONG)(1 << p… in _ux_host_class_hub_descriptor_parse() 110 …hub -> ux_host_class_hub_device -> ux_device_hub_tt[port_index].ux_hub_tt_max_bandwidth = UX_TT_B… in _ux_host_class_hub_descriptor_parse()
|