Home
last modified time | relevance | path

Searched refs:port_index (Results 1 – 25 of 40) sorted by relevance

12

/USBX-v6.2.1/common/core/src/
Dux_host_stack_rh_change_process.c84 UINT port_index; in _ux_host_stack_rh_change_process() local
100 for (port_index = 0; port_index < hcd -> ux_hcd_nb_root_hubs; port_index++) in _ux_host_stack_rh_change_process()
104 if (hcd -> ux_hcd_root_hub_signal[port_index] != 0) in _ux_host_stack_rh_change_process()
108 …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()
112 hcd -> ux_hcd_root_hub_signal[port_index]--; in _ux_host_stack_rh_change_process()
116 …tus = hcd -> ux_hcd_entry_function(hcd, UX_HCD_GET_PORT_STATUS, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_rh_change_process()
129 … if ((hcd -> ux_hcd_rh_device_connection & (ULONG)(1 << port_index)) == 0) in _ux_host_stack_rh_change_process()
134 _ux_host_stack_rh_device_insertion(hcd,port_index); in _ux_host_stack_rh_change_process()
144 if (hcd -> ux_hcd_root_hub_signal[port_index] != 0) in _ux_host_stack_rh_change_process()
149 hcd -> ux_hcd_root_hub_signal[port_index] = 0; in _ux_host_stack_rh_change_process()
[all …]
Dux_host_stack_rh_device_insertion.c92 UINT _ux_host_stack_rh_device_insertion(UX_HCD *hcd, UINT port_index) in _ux_host_stack_rh_device_insertion() argument
100 …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()
103 hcd -> ux_hcd_rh_device_connection |= (ULONG)(1 << port_index); in _ux_host_stack_rh_device_insertion()
106 status = _ux_host_stack_new_device_create(hcd, UX_NULL, port_index, in _ux_host_stack_rh_device_insertion()
129 …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()
132 …_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_ENABLE_PORT, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_rh_device_insertion()
149 …t_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_RESET_PORT, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_rh_device_insertion()
155 …tus = hcd -> ux_hcd_entry_function(hcd, UX_HCD_GET_PORT_STATUS, (VOID *)((ALIGN_TYPE)port_index)); in _ux_host_stack_rh_device_insertion()
165 …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()
183 …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 …]
Dux_host_stack_rh_device_extraction.c73 UINT _ux_host_stack_rh_device_extraction(UX_HCD *hcd, UINT port_index) in _ux_host_stack_rh_device_extraction() argument
77 …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()
80 _ux_host_stack_device_remove(hcd, 0, port_index); in _ux_host_stack_rh_device_extraction()
83 hcd -> ux_hcd_rh_device_connection &= (ULONG)~(1 << port_index); in _ux_host_stack_rh_device_extraction()
Dux_hcd_sim_host_port_status_get.c101 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
108 if (hcd_sim_host -> ux_hcd_sim_host_nb_root_hubs < port_index) in _ux_hcd_sim_host_port_status_get()
115 …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()
121 port_status = hcd_sim_host -> ux_hcd_sim_host_port_status[port_index]; in _ux_hcd_sim_host_port_status_get()
/USBX-v6.2.1/common/usbx_host_controllers/src/
Dux_hcd_ohci_power_root_hubs.c84 UINT port_index; in _ux_hcd_ohci_power_root_hubs() local
113 for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_power_root_hubs()
116 if ((ohci_register_b & (0x20000u << port_index)) == 0) in _ux_hcd_ohci_power_root_hubs()
126 for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_power_root_hubs()
129 if ((ohci_register_b & (0x20000u << port_index)) != 0) in _ux_hcd_ohci_power_root_hubs()
132 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_power_root_hubs()
135 …_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()
Dux_hcd_ehci_power_root_hubs.c79 UINT port_index; in _ux_hcd_ehci_power_root_hubs() local
90 for (port_index = 0; port_index < hcd_ehci -> ux_hcd_ehci_nb_root_hubs; port_index++) in _ux_hcd_ehci_power_root_hubs()
94 ehci_register = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_power_root_hubs()
97 …_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()
Dux_hcd_ohci_port_enable.c76 UINT _ux_hcd_ohci_port_enable(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_enable() argument
83 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_enable()
90 …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()
97 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_port_enable()
107 …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()
116 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, OHCI_HC_PS_PES); in _ux_hcd_ohci_port_enable()
Dux_hcd_ohci_port_disable.c75 UINT _ux_hcd_ohci_port_disable(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_disable() argument
82 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_disable()
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_disable()
95 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_port_disable()
101 …_ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, ohci_register_port_stat… in _ux_hcd_ohci_port_disable()
Dux_hcd_ehci_port_disable.c75 UINT _ux_hcd_ehci_port_disable(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_port_disable() argument
82 if (hcd_ehci -> ux_hcd_ehci_nb_root_hubs < port_index) in _ux_hcd_ehci_port_disable()
89 …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()
95 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_disable()
101 … _ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, ehci_register_port_status); in _ux_hcd_ehci_port_disable()
Dux_hcd_ohci_port_reset.c78 UINT _ux_hcd_ohci_port_reset(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_reset() argument
86 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_reset()
93 …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()
100 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_port_reset()
110 …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()
116 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, OHCI_HC_PS_PRS); in _ux_hcd_ohci_port_reset()
127 …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()
Dux_hcd_ehci_port_reset.c132 UINT _ux_hcd_ehci_port_reset(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_port_reset() argument
140 if (hcd_ehci -> ux_hcd_ehci_nb_root_hubs < port_index) in _ux_hcd_ehci_port_reset()
147 …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()
154 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_reset()
164 …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()
182 …_ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, (ehci_register_port_status |… in _ux_hcd_ehci_port_reset()
188 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_reset()
193 … _ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, ehci_register_port_status); in _ux_hcd_ehci_port_reset()
201 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_reset()
210 …_ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, (ehci_register_port_status |… in _ux_hcd_ehci_port_reset()
[all …]
Dux_hcd_ehci_port_suspend.c74 UINT _ux_hcd_ehci_port_suspend(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_port_suspend() argument
79 if (hcd_ehci -> ux_hcd_ehci_nb_root_hubs < port_index) in _ux_hcd_ehci_port_suspend()
86 …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()
92 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_port_suspend()
104 … _ux_hcd_ehci_register_write(hcd_ehci, EHCI_HCOR_PORT_SC + port_index, ehci_register_port_status); in _ux_hcd_ehci_port_suspend()
Dux_hcd_ohci_interrupt_handler.c97 ULONG port_index; in _ux_hcd_ohci_interrupt_handler() local
154 … for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_interrupt_handler()
158 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_interrupt_handler()
164 hcd -> ux_hcd_root_hub_signal[port_index]++; in _ux_hcd_ohci_interrupt_handler()
176 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, in _ux_hcd_ohci_interrupt_handler()
Dux_hcd_ehci_interrupt_handler.c96 ULONG port_index; in _ux_hcd_ehci_interrupt_handler() local
156 … for (port_index = 0; port_index < hcd_ehci -> ux_hcd_ehci_nb_root_hubs; port_index++) in _ux_hcd_ehci_interrupt_handler()
160 … ehci_register_port_status = _ux_hcd_ehci_register_read(hcd_ehci, EHCI_HCOR_PORT_SC + port_index); in _ux_hcd_ehci_interrupt_handler()
166 hcd -> ux_hcd_root_hub_signal[port_index]++; in _ux_hcd_ehci_interrupt_handler()
Dux_hcd_ohci_port_status_get.c99 ULONG _ux_hcd_ohci_port_status_get(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_status_get() argument
107 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_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_ohci_port_status_get()
122 …_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index); in _ux_hcd_ohci_port_status_get()
Dux_hcd_ehci_power_on_port.c73 UINT _ux_hcd_ehci_power_on_port(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_power_on_port() argument
77 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ehci_power_on_port()
Dux_hcd_ohci_port_resume.c77 UINT _ux_hcd_ohci_port_resume(UX_HCD_OHCI *hcd_ohci, UINT port_index) in _ux_hcd_ohci_port_resume() argument
81 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ohci_port_resume()
Dux_hcd_ohci_port_suspend.c77 UINT _ux_hcd_ohci_port_suspend(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_suspend() argument
81 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ohci_port_suspend()
Dux_hcd_ohci_power_down_port.c77 UINT _ux_hcd_ohci_power_down_port(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_power_down_port() argument
81 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ohci_power_down_port()
Dux_hcd_ohci_power_on_port.c76 UINT _ux_hcd_ohci_power_on_port(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_power_on_port() argument
80 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ohci_power_on_port()
Dux_hcd_ehci_port_resume.c73 UINT _ux_hcd_ehci_port_resume(UX_HCD_EHCI *hcd_ehci, UINT port_index) in _ux_hcd_ehci_port_resume() argument
77 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ehci_port_resume()
Dux_hcd_ehci_power_down_port.c74 UINT _ux_hcd_ehci_power_down_port(UX_HCD_EHCI *hcd_ehci, ULONG port_index) in _ux_hcd_ehci_power_down_port() argument
78 UX_PARAMETER_NOT_USED(port_index); in _ux_hcd_ehci_power_down_port()
/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_hub_ports_power.c92 UINT port_index; in _ux_host_class_hub_ports_power() local
104 for (port_index = 1; port_index <= nb_ports; port_index++) in _ux_host_class_hub_ports_power()
108 …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()
115 hub -> ux_host_class_hub_port_power &= (UINT)~(1 << port_index); in _ux_host_class_hub_ports_power()
125 hub -> ux_host_class_hub_port_power |= (UINT)(1 << port_index); in _ux_host_class_hub_ports_power()
Dux_host_class_hub_change_process.c80 UINT port_index; in _ux_host_class_hub_change_process() local
98 for (port_index = 1; port_index <= hub -> ux_host_class_hub_descriptor.bNbPorts; port_index++) in _ux_host_class_hub_change_process()
101 if (port_status_change_bits & (1<<port_index)) in _ux_host_class_hub_change_process()
102 _ux_host_class_hub_port_change_process(hub, port_index); in _ux_host_class_hub_change_process()
Dux_host_class_hub_deactivate.c95 UINT port_index; in _ux_host_class_hub_deactivate() local
111 for (port_index = 1; port_index <= hub -> ux_host_class_hub_descriptor.bNbPorts; port_index++) in _ux_host_class_hub_deactivate()
115 if (hub -> ux_host_class_hub_port_state & (1UL << port_index)) in _ux_host_class_hub_deactivate()
119 _ux_host_stack_device_remove(hcd, hub -> ux_host_class_hub_device, port_index); in _ux_host_class_hub_deactivate()

12