Home
last modified time | relevance | path

Searched refs:hcd (Results 1 – 25 of 48) sorted by relevance

12

/USBX-v6.2.1/common/core/src/
Dux_host_stack_rh_change_process.c81 UX_HCD *hcd; in _ux_host_stack_rh_change_process() local
93 hcd = &_ux_system_host -> ux_system_host_hcd_array[hcd_index]; in _ux_host_stack_rh_change_process()
96 if (hcd -> ux_hcd_status == UX_HCD_STATUS_OPERATIONAL) in _ux_host_stack_rh_change_process()
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()
112 hcd -> ux_hcd_root_hub_signal[port_index]--; in _ux_host_stack_rh_change_process()
116 …port_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_GET_PORT_STATUS, (VOID *)((ALIGN_TYPE)port… 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()
[all …]
Dux_host_stack_hcd_register.c90 UX_HCD *hcd; in _ux_host_stack_hcd_register() local
112 hcd = _ux_system_host -> ux_system_host_hcd_array; in _ux_host_stack_hcd_register()
121 if(hcd -> ux_hcd_status == UX_UNUSED) in _ux_host_stack_hcd_register()
127 hcd -> ux_hcd_name = (const UCHAR *)hcd_name; in _ux_host_stack_hcd_register()
131 …_ux_utility_memory_copy(hcd -> ux_hcd_name, hcd_name, hcd_name_length + 1); /* Use case of memcpy … in _ux_host_stack_hcd_register()
135 hcd -> ux_hcd_io = hcd_param1; in _ux_host_stack_hcd_register()
136 hcd -> ux_hcd_irq = hcd_param2; in _ux_host_stack_hcd_register()
139 hcd -> ux_hcd_status = UX_USED; in _ux_host_stack_hcd_register()
145 status = hcd_init_function(hcd); in _ux_host_stack_hcd_register()
152 hcd++; in _ux_host_stack_hcd_register()
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 …port_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_ENABLE_PORT, (VOID *)((ALIGN_TYPE)port_ind… in _ux_host_stack_rh_device_insertion()
149 …port_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_RESET_PORT, (VOID *)((ALIGN_TYPE)port_inde… in _ux_host_stack_rh_device_insertion()
155 …port_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_GET_PORT_STATUS, (VOID *)((ALIGN_TYPE)port… 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()
194 hcd -> ux_hcd_rh_device_connection |= (ULONG)(1 << port_index); in _ux_host_stack_rh_device_insertion()
[all …]
Dux_host_stack_hcd_unregister.c91 UX_HCD *hcd; in _ux_host_stack_hcd_unregister() local
112 hcd = _ux_system_host -> ux_system_host_hcd_array; in _ux_host_stack_hcd_unregister()
126 if (hcd -> ux_hcd_status != UX_UNUSED && in _ux_host_stack_hcd_unregister()
127 hcd -> ux_hcd_io == hcd_param1 && in _ux_host_stack_hcd_unregister()
128 hcd -> ux_hcd_irq == hcd_param2) in _ux_host_stack_hcd_unregister()
133 status = ux_utility_name_match(hcd -> ux_hcd_name, in _ux_host_stack_hcd_unregister()
145 hcd ++; in _ux_host_stack_hcd_unregister()
154 hcd -> ux_hcd_entry_function(hcd, UX_HCD_UNINITIALIZE, UX_NULL); in _ux_host_stack_hcd_unregister()
173 if (UX_DEVICE_HCD_MATCH(device, hcd) && in _ux_host_stack_hcd_unregister()
178 _ux_host_stack_device_remove(hcd, UX_DEVICE_PARENT_GET(device), in _ux_host_stack_hcd_unregister()
[all …]
Dux_host_stack_hcd_thread_entry.c89 UX_HCD *hcd; in _ux_host_stack_hcd_thread_entry() local
113 hcd = &_ux_system_host -> ux_system_host_hcd_array[hcd_index]; in _ux_host_stack_hcd_thread_entry()
116 … if((hcd -> ux_hcd_status == UX_HCD_STATUS_OPERATIONAL) && (hcd -> ux_hcd_thread_signal !=0)) in _ux_host_stack_hcd_thread_entry()
120 hcd -> ux_hcd_entry_function(hcd, UX_HCD_PROCESS_DONE_QUEUE, UX_NULL); in _ux_host_stack_hcd_thread_entry()
122 hcd -> ux_hcd_thread_signal--; in _ux_host_stack_hcd_thread_entry()
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_host_stack_hcd_transfer_request.c78 UX_HCD *hcd; in _ux_host_stack_hcd_transfer_request() local
81 hcd = UX_DEVICE_HCD_GET(transfer_request -> ux_transfer_request_endpoint -> ux_endpoint_device); in _ux_host_stack_hcd_transfer_request()
84 status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_TRANSFER_REQUEST, (VOID *) transfer_request); in _ux_host_stack_hcd_transfer_request()
Dux_host_stack_endpoint_instance_delete.c86 UX_HCD *hcd; in _ux_host_stack_endpoint_instance_delete() local
90 hcd = UX_DEVICE_HCD_GET(endpoint -> ux_endpoint_device); in _ux_host_stack_endpoint_instance_delete()
100 hcd -> ux_hcd_entry_function(hcd, UX_HCD_DESTROY_ENDPOINT, (VOID *) endpoint); in _ux_host_stack_endpoint_instance_delete()
118 _ux_host_stack_bandwidth_release(hcd, endpoint); in _ux_host_stack_endpoint_instance_delete()
Dux_dcd_sim_slave_state_change.c83 UX_HCD *hcd; in _ux_dcd_sim_slave_state_change() local
94 hcd = (UX_HCD *)dcd_sim_slave -> ux_dcd_sim_slave_hcd; in _ux_dcd_sim_slave_state_change()
97 if (hcd) in _ux_dcd_sim_slave_state_change()
99 hcd -> ux_hcd_root_hub_signal[0] = 2; in _ux_dcd_sim_slave_state_change()
Dux_hcd_sim_host_initialize.c86 UINT _ux_hcd_sim_host_initialize(UX_HCD *hcd) in _ux_hcd_sim_host_initialize() argument
96 hcd -> ux_hcd_controller_type = UX_HCD_SIM_HOST_CONTROLLER; in _ux_hcd_sim_host_initialize()
104 hcd -> ux_hcd_controller_hardware = (VOID *) hcd_sim_host; in _ux_hcd_sim_host_initialize()
107 hcd_sim_host -> ux_hcd_sim_host_hcd_owner = hcd; in _ux_hcd_sim_host_initialize()
110 hcd -> ux_hcd_entry_function = _ux_hcd_sim_host_entry; in _ux_hcd_sim_host_initialize()
115 hcd -> ux_hcd_available_bandwidth = UX_HCD_SIM_HOST_AVAILABLE_BANDWIDTH; in _ux_hcd_sim_host_initialize()
119 hcd -> ux_hcd_status = UX_HCD_STATUS_HALTED; in _ux_hcd_sim_host_initialize()
152 hcd -> ux_hcd_status = UX_HCD_STATUS_OPERATIONAL; in _ux_hcd_sim_host_initialize()
172 hcd -> ux_hcd_status = UX_HCD_STATUS_HALTED; in _ux_hcd_sim_host_initialize()
196 dcd_sim_slave -> ux_dcd_sim_slave_hcd = (VOID *)hcd; in _ux_hcd_sim_host_initialize()
[all …]
Dux_hcd_sim_host_timer_function.c85 UX_HCD *hcd; in _ux_hcd_sim_host_timer_function() local
92 hcd = hcd_sim_host -> ux_hcd_sim_host_hcd_owner; in _ux_hcd_sim_host_timer_function()
98 if (hcd -> ux_hcd_status == UX_HCD_STATUS_OPERATIONAL) in _ux_hcd_sim_host_timer_function()
102 hcd -> ux_hcd_thread_signal++; in _ux_hcd_sim_host_timer_function()
Dux_host_stack_endpoint_instance_create.c89 UX_HCD *hcd; in _ux_host_stack_endpoint_instance_create() local
95 hcd = UX_DEVICE_HCD_GET(endpoint -> ux_endpoint_device); in _ux_host_stack_endpoint_instance_create()
114 if (_ux_host_stack_bandwidth_check(hcd, endpoint) != UX_SUCCESS) in _ux_host_stack_endpoint_instance_create()
128 status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_CREATE_ENDPOINT, (VOID *) endpoint); in _ux_host_stack_endpoint_instance_create()
143 _ux_host_stack_bandwidth_claim(hcd, endpoint); in _ux_host_stack_endpoint_instance_create()
Dux_hcd_sim_host_uninitialize.c78 UX_HCD *hcd = hcd_sim_host -> ux_hcd_sim_host_hcd_owner; in _ux_hcd_sim_host_uninitialize() local
85 hcd -> ux_hcd_status = UX_HCD_STATUS_HALTED; in _ux_hcd_sim_host_uninitialize()
88 hcd_sim_host = (UX_HCD_SIM_HOST *)hcd -> ux_hcd_controller_hardware; in _ux_hcd_sim_host_uninitialize()
124 hcd -> ux_hcd_controller_hardware = UX_NULL; in _ux_hcd_sim_host_uninitialize()
127 hcd -> ux_hcd_status = UX_UNUSED; in _ux_hcd_sim_host_uninitialize()
Dux_host_stack_hnp_polling_thread_entry.c96 UX_HCD *hcd; in _ux_host_stack_hnp_polling_thread_entry() local
118 hcd = &_ux_system_host -> ux_system_host_hcd_array[hcd_index]; in _ux_host_stack_hnp_polling_thread_entry()
121 if ((hcd -> ux_hcd_otg_capabilities & UX_HCD_OTG_CAPABLE) && in _ux_host_stack_hnp_polling_thread_entry()
122 (hcd -> ux_hcd_status == UX_HCD_STATUS_OPERATIONAL)) in _ux_host_stack_hnp_polling_thread_entry()
126 for (port_index = 0; port_index < hcd -> ux_hcd_nb_root_hubs; port_index++) in _ux_host_stack_hnp_polling_thread_entry()
130 …port_status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_GET_PORT_STATUS, (VOID *)((ALIGN_TYPE)port… in _ux_host_stack_hnp_polling_thread_entry()
158 UX_DEVICE_HCD_MATCH(device, hcd)) in _ux_host_stack_hnp_polling_thread_entry()
Dux_dcd_sim_slave_initialize.c81 UX_HCD *hcd; in _ux_dcd_sim_slave_initialize() local
109 hcd = _ux_system_host -> ux_system_host_hcd_array; in _ux_dcd_sim_slave_initialize()
110 if (hcd) in _ux_dcd_sim_slave_initialize()
112 dcd_sim_slave -> ux_dcd_sim_slave_hcd = (VOID *)hcd; in _ux_dcd_sim_slave_initialize()
Dux_host_stack_transfer_request_abort.c93 UX_HCD *hcd; in _ux_host_stack_transfer_request_abort() local
104 hcd = UX_DEVICE_HCD_GET(transfer_request -> ux_transfer_request_endpoint -> ux_endpoint_device); in _ux_host_stack_transfer_request_abort()
111 hcd -> ux_hcd_entry_function(hcd, UX_HCD_TRANSFER_ABORT, transfer_request); in _ux_host_stack_transfer_request_abort()
Dux_host_stack_endpoint_reset.c81 UX_HCD *hcd; in _ux_host_stack_endpoint_reset() local
113 hcd = UX_DEVICE_HCD_GET(device); in _ux_host_stack_endpoint_reset()
116 status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_RESET_ENDPOINT, endpoint); in _ux_host_stack_endpoint_reset()
Dux_host_stack_new_device_create.c115 UINT _ux_host_stack_new_device_create(UX_HCD *hcd, UX_DEVICE *device_owner, in _ux_host_stack_new_device_create() argument
129 if (hcd -> ux_hcd_nb_devices > UX_MAX_USB_DEVICES) in _ux_host_stack_new_device_create()
160 hcd -> ux_hcd_nb_devices++; in _ux_host_stack_new_device_create()
163 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_NEW_DEVICE_CREATE, hcd, device_owner, port_index, devi… in _ux_host_stack_new_device_create()
174 UX_DEVICE_HCD_SET(device, hcd); in _ux_host_stack_new_device_create()
220 status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_CREATE_ENDPOINT, (VOID *) control_endpoint); in _ux_host_stack_new_device_create()
295 … UX_TRACE_OBJECT_REGISTER(UX_TRACE_HOST_OBJECT_TYPE_DEVICE, hcd, device_owner, port_index, 0); in _ux_host_stack_new_device_create()
Dux_hcd_sim_host_controller_disable.c76 UX_HCD *hcd = hcd_sim_host -> ux_hcd_sim_host_hcd_owner; in _ux_hcd_sim_host_controller_disable() local
80 hcd -> ux_hcd_status = UX_HCD_STATUS_HALTED; in _ux_hcd_sim_host_controller_disable()
/USBX-v6.2.1/common/usbx_host_controllers/src/
Dux_hcd_ehci_interrupt_handler.c91 UX_HCD *hcd; in _ux_hcd_ehci_interrupt_handler() local
109 hcd = &_ux_system_host -> ux_system_host_hcd_array[hcd_index]; in _ux_hcd_ehci_interrupt_handler()
110 hcd_ehci = (UX_HCD_EHCI *) hcd -> ux_hcd_controller_hardware; in _ux_hcd_ehci_interrupt_handler()
113 if (hcd -> ux_hcd_status == UX_HCD_STATUS_OPERATIONAL) in _ux_hcd_ehci_interrupt_handler()
132 hcd -> ux_hcd_thread_signal++; in _ux_hcd_ehci_interrupt_handler()
142 hcd -> ux_hcd_thread_signal++; in _ux_hcd_ehci_interrupt_handler()
143 hcd -> ux_hcd_status = UX_HCD_STATUS_DEAD; in _ux_hcd_ehci_interrupt_handler()
144 hcd -> ux_hcd_thread_signal++; in _ux_hcd_ehci_interrupt_handler()
166 hcd -> ux_hcd_root_hub_signal[port_index]++; in _ux_hcd_ehci_interrupt_handler()
Dux_hcd_ohci_initialize.c93 UINT _ux_hcd_ohci_initialize(UX_HCD *hcd) in _ux_hcd_ohci_initialize() argument
103 hcd -> ux_hcd_controller_type = UX_OHCI_CONTROLLER; in _ux_hcd_ohci_initialize()
108 hcd -> ux_hcd_available_bandwidth = UX_OHCI_AVAILABLE_BANDWIDTH; in _ux_hcd_ohci_initialize()
117 hcd -> ux_hcd_controller_hardware = (VOID *) hcd_ohci; in _ux_hcd_ohci_initialize()
120 hcd_ohci -> ux_hcd_ohci_hcor = (ULONG *) hcd -> ux_hcd_io; in _ux_hcd_ohci_initialize()
123 hcd_ohci -> ux_hcd_ohci_hcd_owner = hcd; in _ux_hcd_ohci_initialize()
126 hcd -> ux_hcd_entry_function = _ux_hcd_ohci_entry; in _ux_hcd_ohci_initialize()
129 hcd -> ux_hcd_status = UX_HCD_STATUS_HALTED; in _ux_hcd_ohci_initialize()
161 hcd -> ux_hcd_version = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_REVISION); in _ux_hcd_ohci_initialize()
212 hcd -> ux_hcd_status = UX_HCD_STATUS_OPERATIONAL; in _ux_hcd_ohci_initialize()
[all …]
Dux_hcd_ohci_interrupt_handler.c92 UX_HCD *hcd; in _ux_hcd_ohci_interrupt_handler() local
110 hcd = &_ux_system_host -> ux_system_host_hcd_array[hcd_index]; in _ux_hcd_ohci_interrupt_handler()
111 hcd_ohci = (UX_HCD_OHCI *) hcd -> ux_hcd_controller_hardware; in _ux_hcd_ohci_interrupt_handler()
114 if (hcd -> ux_hcd_status == UX_HCD_STATUS_OPERATIONAL) in _ux_hcd_ohci_interrupt_handler()
128 hcd -> ux_hcd_thread_signal++; in _ux_hcd_ohci_interrupt_handler()
144 hcd -> ux_hcd_thread_signal++; in _ux_hcd_ohci_interrupt_handler()
145 hcd -> ux_hcd_status = UX_HCD_STATUS_DEAD; in _ux_hcd_ohci_interrupt_handler()
164 hcd -> ux_hcd_root_hub_signal[port_index]++; in _ux_hcd_ohci_interrupt_handler()
Dux_hcd_ohci_controller_disable.c78 UX_HCD *hcd; in _ux_hcd_ohci_controller_disable() local
83 hcd = hcd_ohci -> ux_hcd_ohci_hcd_owner; in _ux_hcd_ohci_controller_disable()
90 hcd -> ux_hcd_status = UX_HCD_STATUS_HALTED; in _ux_hcd_ohci_controller_disable()
Dux_hcd_ehci_controller_disable.c81 UX_HCD *hcd; in _ux_hcd_ehci_controller_disable() local
86 hcd = hcd_ehci -> ux_hcd_ehci_hcd_owner; in _ux_hcd_ehci_controller_disable()
103 hcd -> ux_hcd_status = UX_HCD_STATUS_HALTED; in _ux_hcd_ehci_controller_disable()
Dux_hcd_ehci_initialize.c122 UINT _ux_hcd_ehci_initialize(UX_HCD *hcd) in _ux_hcd_ehci_initialize() argument
125 UX_PARAMETER_NOT_USED(hcd); in _ux_hcd_ehci_initialize()
138 hcd -> ux_hcd_controller_type = UX_EHCI_CONTROLLER; in _ux_hcd_ehci_initialize()
143 hcd -> ux_hcd_available_bandwidth = UX_EHCI_AVAILABLE_BANDWIDTH; in _ux_hcd_ehci_initialize()
152 hcd -> ux_hcd_controller_hardware = (VOID *) hcd_ehci; in _ux_hcd_ehci_initialize()
155 hcd_ehci -> ux_hcd_ehci_base = (ULONG *) hcd -> ux_hcd_io; in _ux_hcd_ehci_initialize()
163 hcd_ehci -> ux_hcd_ehci_hcd_owner = hcd; in _ux_hcd_ehci_initialize()
166 hcd -> ux_hcd_entry_function = _ux_hcd_ehci_entry; in _ux_hcd_ehci_initialize()
169 hcd -> ux_hcd_status = UX_HCD_STATUS_HALTED; in _ux_hcd_ehci_initialize()
266 hcd -> ux_hcd_version = 0x200; in _ux_hcd_ehci_initialize()
[all …]

12