/USBX-v6.2.1/common/usbx_host_classes/src/ |
D | ux_host_class_hub_tasks_run.c | 36 static inline VOID _ux_host_class_hub_inst_tasks_run(UX_HOST_CLASS_HUB *hub); 101 UX_HOST_CLASS_HUB *hub; in _ux_host_class_hub_tasks_run() local 109 hub = (UX_HOST_CLASS_HUB *)hub_class -> ux_host_class_first_instance; in _ux_host_class_hub_tasks_run() 110 while(hub) in _ux_host_class_hub_tasks_run() 114 _ux_host_class_hub_inst_tasks_run(hub); in _ux_host_class_hub_tasks_run() 115 hub = hub -> ux_host_class_hub_next_instance; in _ux_host_class_hub_tasks_run() 121 static inline UCHAR _ux_host_class_hub_change_check(UX_HOST_CLASS_HUB *hub) in _ux_host_class_hub_change_check() argument 123 UX_ENDPOINT *endpoint = hub -> ux_host_class_hub_interrupt_endpoint; in _ux_host_class_hub_change_check() 126 UCHAR byte_i = (UCHAR)(hub -> ux_host_class_hub_run_port >> 3); in _ux_host_class_hub_change_check() 127 UCHAR bit_i = (UCHAR)(hub -> ux_host_class_hub_run_port & 0x7u); in _ux_host_class_hub_change_check() [all …]
|
D | ux_host_class_hub_entry.c | 34 extern UINT _ux_host_class_hub_descriptor_parse(UX_HOST_CLASS_HUB *hub, UCHAR *descriptor); 154 static inline UINT _ux_host_class_hub_enum_get_status(UX_HOST_CLASS_HUB *hub, UX_TRANSFER *trans) in _ux_host_class_hub_enum_get_status() argument 156 …hub -> ux_host_class_hub_allocated = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_CACHE_SAFE_MEMORY… in _ux_host_class_hub_enum_get_status() 157 if (hub -> ux_host_class_hub_allocated == UX_NULL) in _ux_host_class_hub_enum_get_status() 161 trans -> ux_transfer_request_data_pointer = hub -> ux_host_class_hub_allocated; in _ux_host_class_hub_enum_get_status() 168 static inline VOID _ux_host_class_hub_enum_set_config(UX_HOST_CLASS_HUB *hub, UX_TRANSFER *trans, U… in _ux_host_class_hub_enum_set_config() argument 170 UX_PARAMETER_NOT_USED(hub); in _ux_host_class_hub_enum_set_config() 182 UX_HOST_CLASS_HUB *hub; in _ux_host_class_hub_activate_wait() local 188 hub = (UX_HOST_CLASS_HUB *) device -> ux_device_class_instance; in _ux_host_class_hub_activate_wait() 195 trans = hub -> ux_host_class_hub_transfer; in _ux_host_class_hub_activate_wait() [all …]
|
D | ux_host_class_hub_activate.c | 96 UX_HOST_CLASS_HUB *hub; in _ux_host_class_hub_activate() local 112 …hub = (UX_HOST_CLASS_HUB *) _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX… in _ux_host_class_hub_activate() 113 if (hub == UX_NULL) in _ux_host_class_hub_activate() 117 hub -> ux_host_class_hub_class = command -> ux_host_class_command_class_ptr; in _ux_host_class_hub_activate() 121 hub -> ux_host_class_hub_device = device; in _ux_host_class_hub_activate() 127 device -> ux_device_class_instance = (VOID *) hub; in _ux_host_class_hub_activate() 130 hub -> ux_host_class_hub_interface = device -> in _ux_host_class_hub_activate() 134 hub -> ux_host_class_hub_class -> ux_host_class_task_function = _ux_host_class_hub_tasks_run; in _ux_host_class_hub_activate() 137 …hub -> ux_host_class_hub_transfer = &device -> ux_device_control_endpoint.ux_endpoint_transfer_req… in _ux_host_class_hub_activate() 140 hub -> ux_host_class_hub_run_status = UX_SUCCESS; in _ux_host_class_hub_activate() [all …]
|
D | ux_host_class_hub_deactivate.c | 92 UX_HOST_CLASS_HUB *hub; in _ux_host_class_hub_deactivate() local 99 hub = (UX_HOST_CLASS_HUB *) command -> ux_host_class_command_instance; in _ux_host_class_hub_deactivate() 102 hcd = UX_DEVICE_HCD_GET(hub -> ux_host_class_hub_device); in _ux_host_class_hub_deactivate() 105 hub -> ux_host_class_hub_state = UX_HOST_CLASS_INSTANCE_SHUTDOWN; in _ux_host_class_hub_deactivate() 108 _ux_host_stack_endpoint_transfer_abort(hub -> ux_host_class_hub_interrupt_endpoint); in _ux_host_class_hub_deactivate() 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() 125 … transfer_request = &hub -> ux_host_class_hub_interrupt_endpoint -> ux_endpoint_transfer_request; in _ux_host_class_hub_deactivate() 135 if (hub -> ux_host_class_hub_allocated) in _ux_host_class_hub_deactivate() [all …]
|
D | ux_host_class_hub_port_change_connection_process.c | 93 VOID _ux_host_class_hub_port_change_connection_process(UX_HOST_CLASS_HUB *hub, UINT port, UINT por… in _ux_host_class_hub_port_change_connection_process() argument 108 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HUB_PORT_CHANGE_CONNECTION_PROCESS, hub, port, port_st… in _ux_host_class_hub_port_change_connection_process() 111 hcd = UX_DEVICE_HCD_GET(hub -> ux_host_class_hub_device); in _ux_host_class_hub_port_change_connection_process() 121 if (hub -> ux_host_class_hub_port_state & (UINT)(1 << port)) in _ux_host_class_hub_port_change_connection_process() 125 _ux_host_stack_device_remove(hcd, hub -> ux_host_class_hub_device, port); in _ux_host_class_hub_port_change_connection_process() 131 hub -> ux_host_class_hub_port_state |= (UINT)(1 << port); in _ux_host_class_hub_port_change_connection_process() 139 … _ux_host_class_hub_feature(hub, port, UX_CLEAR_FEATURE, UX_HOST_CLASS_HUB_C_PORT_CONNECTION); in _ux_host_class_hub_port_change_connection_process() 149 status = _ux_host_class_hub_port_reset(hub, port); in _ux_host_class_hub_port_change_connection_process() 154 … status = _ux_host_class_hub_status_get(hub, port, &local_port_status, &local_port_change); in _ux_host_class_hub_port_change_connection_process() 176 if (hub -> ux_host_class_hub_device -> ux_device_power_source == UX_DEVICE_BUS_POWERED) in _ux_host_class_hub_port_change_connection_process() [all …]
|
D | ux_host_class_hub_interrupt_endpoint_start.c | 85 UINT _ux_host_class_hub_interrupt_endpoint_start(UX_HOST_CLASS_HUB *hub) in _ux_host_class_hub_interrupt_endpoint_start() argument 93 …status = _ux_host_stack_interface_endpoint_get(hub -> ux_host_class_hub_interface, 0, &hub -> ux_… in _ux_host_class_hub_interrupt_endpoint_start() 100 …if (((hub -> ux_host_class_hub_interrupt_endpoint -> ux_endpoint_descriptor.bEndpointAddress & UX_… in _ux_host_class_hub_interrupt_endpoint_start() 101 …((hub -> ux_host_class_hub_interrupt_endpoint -> ux_endpoint_descriptor.bmAttributes & UX_MASK_END… in _ux_host_class_hub_interrupt_endpoint_start() 105 … transfer_request = &hub -> ux_host_class_hub_interrupt_endpoint -> ux_endpoint_transfer_request; in _ux_host_class_hub_interrupt_endpoint_start() 113 transfer_request -> ux_transfer_request_class_instance = (VOID *) hub; in _ux_host_class_hub_interrupt_endpoint_start() 116 …hub -> ux_host_class_hub_interrupt_endpoint -> ux_endpoint_transfer_request.ux_transfer_request_ty… in _ux_host_class_hub_interrupt_endpoint_start() 130 hub -> ux_host_class_hub_interrupt_endpoint = UX_NULL; in _ux_host_class_hub_interrupt_endpoint_start() 147 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_ENDPOINT_HANDLE_UNKNOWN, hub -> ux_host_class_hub_inter… in _ux_host_class_hub_interrupt_endpoint_start()
|
D | ux_host_class_hub_ports_power.c | 88 UINT _ux_host_class_hub_ports_power(UX_HOST_CLASS_HUB *hub) in _ux_host_class_hub_ports_power() argument 97 … if(hub -> ux_host_class_hub_descriptor.wHubCharacteristics & UX_HOST_CLASS_HUB_NO_POWER_SWITCHING) in _ux_host_class_hub_ports_power() 101 nb_ports = hub -> ux_host_class_hub_descriptor.bNbPorts; 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() 122 … _ux_utility_delay_ms(((ULONG) (hub -> ux_host_class_hub_descriptor.bPwrOn2PwrGood) * 2)); 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()
|
D | ux_host_class_hub_descriptor_get.c | 36 UINT _ux_host_class_hub_descriptor_parse(UX_HOST_CLASS_HUB *hub, UCHAR *descriptor); 41 _ux_host_class_hub_descriptor_parse(UX_HOST_CLASS_HUB *hub, UCHAR *descriptor) in _ux_host_class_hub_descriptor_parse() argument 49 … (UCHAR *) &hub -> ux_host_class_hub_descriptor); in _ux_host_class_hub_descriptor_parse() 52 tt_protocols = (hub -> ux_host_class_hub_device -> ux_device_descriptor.bDeviceProtocol << 8) | in _ux_host_class_hub_descriptor_parse() 53 … hub -> ux_host_class_hub_interface -> ux_interface_descriptor.bInterfaceProtocol; in _ux_host_class_hub_descriptor_parse() 75 if (hub -> ux_host_class_hub_descriptor.bNbPorts > UX_MAX_TT) in _ux_host_class_hub_descriptor_parse() 86 … hub -> ux_host_class_hub_device -> ux_device_hub_tt[0].ux_hub_tt_port_mapping = UX_TT_MASK; in _ux_host_class_hub_descriptor_parse() 87 … hub -> ux_host_class_hub_device -> ux_device_hub_tt[0].ux_hub_tt_max_bandwidth = UX_TT_BANDWIDTH; in _ux_host_class_hub_descriptor_parse() 98 if (hub -> ux_host_class_hub_descriptor.bNbPorts > UX_MAX_TT) in _ux_host_class_hub_descriptor_parse() 107 … for (port_index = 0; port_index < hub -> ux_host_class_hub_descriptor.bNbPorts; port_index++) in _ux_host_class_hub_descriptor_parse() [all …]
|
D | ux_host_class_hub_change_detect.c | 89 UX_HOST_CLASS_HUB *hub; in _ux_host_class_hub_change_detect() 104 status = _ux_host_stack_class_instance_get(class, class_index++, (VOID **) &hub); in _ux_host_class_hub_change_detect() 112 if (hub -> ux_host_class_hub_change_semaphore != 0) in _ux_host_class_hub_change_detect() 116 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HUB_CHANGE_DETECT, hub, 0, 0, 0, UX_TRACE_HOST_CLASS_E… in _ux_host_class_hub_change_detect() 119 _ux_host_class_hub_change_process(hub); in _ux_host_class_hub_change_detect() 122 hub -> ux_host_class_hub_change_semaphore--; in _ux_host_class_hub_change_detect()
|
D | ux_host_class_hub_port_change_process.c | 83 UINT _ux_host_class_hub_port_change_process(UX_HOST_CLASS_HUB *hub, UINT port) in _ux_host_class_hub_port_change_process() argument 92 status = _ux_host_class_hub_status_get(hub, port, &port_status, &port_change); in _ux_host_class_hub_port_change_process() 99 _ux_host_class_hub_port_change_connection_process(hub, port, port_status); in _ux_host_class_hub_port_change_process() 102 _ux_host_class_hub_port_change_enable_process(hub, port, port_status); in _ux_host_class_hub_port_change_process() 105 _ux_host_class_hub_port_change_suspend_process(hub, port, port_status); in _ux_host_class_hub_port_change_process() 108 _ux_host_class_hub_port_change_over_current_process(hub, port, port_status); in _ux_host_class_hub_port_change_process() 111 _ux_host_class_hub_port_change_reset_process(hub, port, port_status); in _ux_host_class_hub_port_change_process()
|
D | ux_host_class_hub_change_process.c | 75 UINT _ux_host_class_hub_change_process(UX_HOST_CLASS_HUB *hub) in _ux_host_class_hub_change_process() argument 85 … transfer_request = &hub -> ux_host_class_hub_interrupt_endpoint -> ux_endpoint_transfer_request; in _ux_host_class_hub_change_process() 98 for (port_index = 1; port_index <= hub -> ux_host_class_hub_descriptor.bNbPorts; 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() 107 _ux_host_class_hub_hub_change_process(hub); in _ux_host_class_hub_change_process()
|
D | ux_host_class_hub_transfer_request_completed.c | 95 UX_HOST_CLASS_HUB *hub; in _ux_host_class_hub_transfer_request_completed() local 99 hub = (UX_HOST_CLASS_HUB *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_hub_transfer_request_completed() 108 if ((hub -> ux_host_class_hub_state == UX_HOST_CLASS_INSTANCE_SHUTDOWN) || in _ux_host_class_hub_transfer_request_completed() 133 hub -> ux_host_class_hub_change_semaphore++; in _ux_host_class_hub_transfer_request_completed()
|
D | ux_host_class_hub_port_change_enable_process.c | 74 VOID _ux_host_class_hub_port_change_enable_process(UX_HOST_CLASS_HUB *hub, UINT port, UINT port_st… in _ux_host_class_hub_port_change_enable_process() argument 80 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HUB_PORT_CHANGE_ENABLE_PROCESS, hub, port, port_status… in _ux_host_class_hub_port_change_enable_process() 83 _ux_host_class_hub_feature(hub, port, UX_CLEAR_FEATURE, UX_HOST_CLASS_HUB_C_PORT_ENABLE); in _ux_host_class_hub_port_change_enable_process()
|
D | ux_host_class_hub_port_change_reset_process.c | 74 VOID _ux_host_class_hub_port_change_reset_process(UX_HOST_CLASS_HUB *hub, UINT port, UINT port_sta… in _ux_host_class_hub_port_change_reset_process() argument 80 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HUB_PORT_CHANGE_RESET_PROCESS, hub, port, port_status,… in _ux_host_class_hub_port_change_reset_process() 83 _ux_host_class_hub_feature(hub, port, UX_CLEAR_FEATURE, UX_HOST_CLASS_HUB_C_PORT_RESET); in _ux_host_class_hub_port_change_reset_process()
|
D | ux_host_class_hub_port_change_suspend_process.c | 74 VOID _ux_host_class_hub_port_change_suspend_process(UX_HOST_CLASS_HUB *hub, UINT port, UINT port_s… in _ux_host_class_hub_port_change_suspend_process() argument 80 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HUB_PORT_CHANGE_SUSPEND_PROCESS, hub, port, port_statu… in _ux_host_class_hub_port_change_suspend_process() 83 _ux_host_class_hub_feature(hub, port, UX_CLEAR_FEATURE, UX_HOST_CLASS_HUB_C_PORT_SUSPEND); in _ux_host_class_hub_port_change_suspend_process()
|
D | ux_host_class_hub_port_change_over_current_process.c | 74 VOID _ux_host_class_hub_port_change_over_current_process(UX_HOST_CLASS_HUB *hub, UINT port, UINT p… in _ux_host_class_hub_port_change_over_current_process() argument 80 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HUB_PORT_CHANGE_OVER_CURRENT_PROCESS, hub, port, port_… in _ux_host_class_hub_port_change_over_current_process() 83 _ux_host_class_hub_feature(hub, port, UX_CLEAR_FEATURE, UX_HOST_CLASS_HUB_C_PORT_OVER_CURRENT); in _ux_host_class_hub_port_change_over_current_process()
|
D | ux_host_class_hub_port_reset.c | 77 UINT _ux_host_class_hub_port_reset(UX_HOST_CLASS_HUB *hub, UINT port) in _ux_host_class_hub_port_reset() argument 87 status = _ux_host_class_hub_feature(hub, port, UX_SET_FEATURE, UX_HOST_CLASS_HUB_PORT_RESET); in _ux_host_class_hub_port_reset() 100 status = _ux_host_class_hub_status_get(hub, port, &port_status, &port_change); in _ux_host_class_hub_port_reset() 112 _ux_host_class_hub_port_change_reset_process(hub, port, port_status); in _ux_host_class_hub_port_reset()
|
D | ux_host_class_hub_configure.c | 87 UINT _ux_host_class_hub_configure(UX_HOST_CLASS_HUB *hub) in _ux_host_class_hub_configure() argument 103 _ux_host_stack_device_configuration_get(hub -> ux_host_class_hub_device, 0, &configuration); in _ux_host_class_hub_configure() 152 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONNECTION_INCOMPATIBLE, hub, 0, 0, UX_TRACE_ERRORS, 0,… in _ux_host_class_hub_configure() 161 if (hub -> ux_host_class_hub_device -> ux_device_power_source == UX_DEVICE_BUS_POWERED) in _ux_host_class_hub_configure() 176 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONNECTION_INCOMPATIBLE, hub, 0, 0, UX_TRACE_ERRORS, 0,… in _ux_host_class_hub_configure() 189 …status = _ux_host_stack_configuration_interface_get(configuration, 0, 0, &hub -> ux_host_class_hu… in _ux_host_class_hub_configure()
|
D | ux_host_class_hub_hub_change_process.c | 73 UINT _ux_host_class_hub_hub_change_process(UX_HOST_CLASS_HUB *hub) in _ux_host_class_hub_hub_change_process() argument 76 UX_PARAMETER_NOT_USED(hub); in _ux_host_class_hub_hub_change_process()
|
D | ux_host_class_hub_status_get.c | 87 UINT _ux_host_class_hub_status_get(UX_HOST_CLASS_HUB *hub, UINT port, USHORT *port_status, USHORT … in _ux_host_class_hub_status_get() argument 98 control_endpoint = &hub -> ux_host_class_hub_device -> ux_device_control_endpoint; in _ux_host_class_hub_status_get() 127 hub -> ux_host_class_hub_allocated = port_data; in _ux_host_class_hub_status_get()
|
D | ux_host_class_hub_feature.c | 83 UINT _ux_host_class_hub_feature(UX_HOST_CLASS_HUB *hub, UINT port, UINT command, UINT function) in _ux_host_class_hub_feature() argument 93 control_endpoint = &hub -> ux_host_class_hub_device -> ux_device_control_endpoint; in _ux_host_class_hub_feature()
|
/USBX-v6.2.1/common/usbx_host_classes/inc/ |
D | ux_host_class_hub.h | 244 UINT _ux_host_class_hub_change_process(UX_HOST_CLASS_HUB *hub); 245 UINT _ux_host_class_hub_configure(UX_HOST_CLASS_HUB *hub); 247 UINT _ux_host_class_hub_descriptor_get(UX_HOST_CLASS_HUB *hub); 249 UINT _ux_host_class_hub_feature(UX_HOST_CLASS_HUB *hub, UINT port, UINT command, UINT function); 250 UINT _ux_host_class_hub_hub_change_process(UX_HOST_CLASS_HUB *hub); 251 UINT _ux_host_class_hub_interrupt_endpoint_start(UX_HOST_CLASS_HUB *hub); 252 VOID _ux_host_class_hub_port_change_connection_process(UX_HOST_CLASS_HUB *hub, UINT port, UINT p… 253 VOID _ux_host_class_hub_port_change_enable_process(UX_HOST_CLASS_HUB *hub, UINT port, UINT port_… 254 VOID _ux_host_class_hub_port_change_over_current_process(UX_HOST_CLASS_HUB *hub, UINT port, UINT… 255 UINT _ux_host_class_hub_port_change_process(UX_HOST_CLASS_HUB *hub, UINT port); [all …]
|