/USBX-v6.2.1/common/usbx_host_classes/src/ |
D | ux_host_class_swar_activate.c | 85 UX_HOST_CLASS_SWAR *swar; in _ux_host_class_swar_activate() local 93 swar = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_HOST_CLASS_SWAR)); in _ux_host_class_swar_activate() 94 if (swar == UX_NULL) in _ux_host_class_swar_activate() 98 swar -> ux_host_class_swar_class = command -> ux_host_class_command_class_ptr; in _ux_host_class_swar_activate() 101 swar -> ux_host_class_swar_device = device; in _ux_host_class_swar_activate() 105 device -> ux_device_class_instance = (VOID *) swar; in _ux_host_class_swar_activate() 108 _ux_host_stack_class_instance_create(swar -> ux_host_class_swar_class, (VOID *) swar); in _ux_host_class_swar_activate() 111 status = _ux_host_class_swar_configure(swar); in _ux_host_class_swar_activate() 115 status = _ux_host_class_swar_endpoints_get(swar); in _ux_host_class_swar_activate() 120 …status = _ux_host_semaphore_create(&swar -> ux_host_class_swar_semaphore, "ux_host_class_swar_sem… in _ux_host_class_swar_activate() [all …]
|
D | ux_host_class_swar_deactivate.c | 86 UX_HOST_CLASS_SWAR *swar; in _ux_host_class_swar_deactivate() local 91 swar = (UX_HOST_CLASS_SWAR *) command -> ux_host_class_command_instance; in _ux_host_class_swar_deactivate() 94 swar -> ux_host_class_swar_state = UX_HOST_CLASS_INSTANCE_SHUTDOWN; in _ux_host_class_swar_deactivate() 97 status = _ux_host_semaphore_get(&swar -> ux_host_class_swar_semaphore, UX_WAIT_FOREVER); in _ux_host_class_swar_deactivate() 105 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, swar, 0, 0, UX_TRACE_ERROR… in _ux_host_class_swar_deactivate() 111 _ux_host_stack_endpoint_transfer_abort(swar -> ux_host_class_swar_bulk_out_endpoint); in _ux_host_class_swar_deactivate() 114 _ux_host_stack_endpoint_transfer_abort(swar -> ux_host_class_swar_bulk_in_endpoint); in _ux_host_class_swar_deactivate() 121 _ux_host_stack_class_instance_destroy(swar -> ux_host_class_swar_class, (VOID *) swar); in _ux_host_class_swar_deactivate() 124 _ux_host_semaphore_delete(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_deactivate() 132 …-> ux_system_host_change_function(UX_DEVICE_REMOVAL, swar -> ux_host_class_swar_class, (VOID *) sw… in _ux_host_class_swar_deactivate() [all …]
|
D | ux_host_class_swar_configure.c | 78 UINT _ux_host_class_swar_configure(UX_HOST_CLASS_SWAR *swar) in _ux_host_class_swar_configure() argument 90 if (swar -> ux_host_class_swar_device -> ux_device_state == UX_DEVICE_CONFIGURED) in _ux_host_class_swar_configure() 95 …status = _ux_host_stack_device_configuration_get(swar -> ux_host_class_swar_device, 0, &configura… in _ux_host_class_swar_configure() 103 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONFIGURATION_HANDLE_UNKNOWN, swar -> ux_host_class_swa… in _ux_host_class_swar_configure() 111 if (swar -> ux_host_class_swar_device -> ux_device_power_source == UX_DEVICE_BUS_POWERED) in _ux_host_class_swar_configure() 115 parent_device = swar -> ux_host_class_swar_device -> ux_device_parent; in _ux_host_class_swar_configure() 126 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONNECTION_INCOMPATIBLE, swar, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_class_swar_configure() 140 …ation_interface_get(configuration, UX_HOST_CLASS_SWAR_DATA_INTERFACE, 0, &swar -> ux_host_class_sw… in _ux_host_class_swar_configure() 146 swar -> ux_host_class_swar_interface -> ux_interface_class_instance = (VOID *) swar; in _ux_host_class_swar_configure() 150 …swar -> ux_host_class_swar_interface -> ux_interface_class = swar -> ux_host_class_swar_device ->… in _ux_host_class_swar_configure()
|
D | ux_host_class_swar_endpoints_get.c | 75 UINT _ux_host_class_swar_endpoints_get(UX_HOST_CLASS_SWAR *swar) in _ux_host_class_swar_endpoints_get() argument 83 …for (endpoint_index = 0; endpoint_index < swar -> ux_host_class_swar_interface -> ux_interface_des… in _ux_host_class_swar_endpoints_get() 88 …status = _ux_host_stack_interface_endpoint_get(swar -> ux_host_class_swar_interface, endpoint_ind… in _ux_host_class_swar_endpoints_get() 103 swar -> ux_host_class_swar_bulk_out_endpoint = endpoint; in _ux_host_class_swar_endpoints_get() 110 if (swar -> ux_host_class_swar_bulk_out_endpoint == UX_NULL) in _ux_host_class_swar_endpoints_get() 117 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_ENDPOINT_HANDLE_UNKNOWN, swar, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_class_swar_endpoints_get() 124 …for (endpoint_index = 0; endpoint_index < swar -> ux_host_class_swar_interface -> ux_interface_des… in _ux_host_class_swar_endpoints_get() 129 …status = _ux_host_stack_interface_endpoint_get(swar -> ux_host_class_swar_interface, endpoint_ind… in _ux_host_class_swar_endpoints_get() 144 swar -> ux_host_class_swar_bulk_in_endpoint = endpoint; in _ux_host_class_swar_endpoints_get() 151 if (swar -> ux_host_class_swar_bulk_in_endpoint == UX_NULL) in _ux_host_class_swar_endpoints_get() [all …]
|
D | ux_host_class_swar_ioctl.c | 77 UINT _ux_host_class_swar_ioctl(UX_HOST_CLASS_SWAR *swar, ULONG ioctl_function, in _ux_host_class_swar_ioctl() argument 92 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_SWAR_IOCTL_ABORT_IN_PIPE, swar, swar -> ux_host_class_… in _ux_host_class_swar_ioctl() 95 _ux_host_stack_endpoint_transfer_abort(swar -> ux_host_class_swar_bulk_in_endpoint); in _ux_host_class_swar_ioctl() 104 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_SWAR_IOCTL_ABORT_OUT_PIPE, swar, swar -> ux_host_class… in _ux_host_class_swar_ioctl() 107 _ux_host_stack_endpoint_transfer_abort(swar -> ux_host_class_swar_bulk_out_endpoint); in _ux_host_class_swar_ioctl()
|
D | ux_host_class_swar_reception_stop.c | 79 UINT _ux_host_class_swar_reception_stop (UX_HOST_CLASS_SWAR *swar, in _ux_host_class_swar_reception_stop() argument 84 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_SWAR_RECEPTION_STOP, swar, 0, 0, 0, UX_TRACE_HOST_CLAS… in _ux_host_class_swar_reception_stop() 87 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_swar_name, (VOID *) swar) != UX_SUC… in _ux_host_class_swar_reception_stop() 94 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, swar, 0, 0, UX_TRACE_ERROR… in _ux_host_class_swar_reception_stop() 104 _ux_host_stack_endpoint_transfer_abort(swar -> ux_host_class_swar_bulk_in_endpoint); in _ux_host_class_swar_reception_stop()
|
D | ux_host_class_swar_read.c | 88 UINT _ux_host_class_swar_read(UX_HOST_CLASS_SWAR *swar, UCHAR *data_pointer, in _ux_host_class_swar_read() argument 97 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_SWAR_READ, swar, data_pointer, requested_length, 0, UX… in _ux_host_class_swar_read() 100 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_swar_name, (VOID *) swar) != UX_SUC… in _ux_host_class_swar_read() 107 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, swar, 0, 0, UX_TRACE_ERROR… in _ux_host_class_swar_read() 113 status = _ux_host_semaphore_get(&swar -> ux_host_class_swar_semaphore, UX_WAIT_FOREVER); in _ux_host_class_swar_read() 121 … transfer_request = &swar -> ux_host_class_swar_bulk_in_endpoint -> ux_endpoint_transfer_request; in _ux_host_class_swar_read() 160 _ux_host_semaphore_put(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_read() 179 _ux_host_semaphore_put(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_read() 195 _ux_host_semaphore_put(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_read() 209 _ux_host_semaphore_put(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_read()
|
D | ux_host_class_swar_write.c | 87 UINT _ux_host_class_swar_write(UX_HOST_CLASS_SWAR *swar, UCHAR * data_pointer, in _ux_host_class_swar_write() argument 96 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_SWAR_WRITE, swar, data_pointer, requested_length, 0, U… in _ux_host_class_swar_write() 99 …tack_class_instance_verify((UCHAR *) _ux_system_host_class_swar_name, (VOID *) swar) != UX_SUCCESS) in _ux_host_class_swar_write() 106 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, swar, 0, 0, UX_TRACE_ERROR… in _ux_host_class_swar_write() 112 status = _ux_host_semaphore_get(&swar -> ux_host_class_swar_semaphore, UX_WAIT_FOREVER); in _ux_host_class_swar_write() 120 … transfer_request = &swar -> ux_host_class_swar_bulk_out_endpoint -> ux_endpoint_transfer_request; in _ux_host_class_swar_write() 159 _ux_host_semaphore_put(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_write() 178 _ux_host_semaphore_put(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_write() 194 _ux_host_semaphore_put(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_write() 210 _ux_host_semaphore_put(&swar -> ux_host_class_swar_semaphore); in _ux_host_class_swar_write()
|
D | ux_host_class_swar_reception_start.c | 78 UINT _ux_host_class_swar_reception_start (UX_HOST_CLASS_SWAR *swar, in _ux_host_class_swar_reception_start() argument 86 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_SWAR_RECEPTION_START, swar, 0, 0, 0, UX_TRACE_HOST_CLA… in _ux_host_class_swar_reception_start() 89 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_swar_name, (VOID *) swar) != UX_SUC… in _ux_host_class_swar_reception_start() 96 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, swar, 0, 0, UX_TRACE_ERROR… in _ux_host_class_swar_reception_start() 106 … transfer_request = &swar -> ux_host_class_swar_bulk_in_endpoint -> ux_endpoint_transfer_request; in _ux_host_class_swar_reception_start() 109 transfer_request -> ux_transfer_request_class_instance = (VOID *) swar; in _ux_host_class_swar_reception_start() 115 swar -> ux_host_class_swar_reception = swar_reception; in _ux_host_class_swar_reception_start()
|
D | ux_host_class_swar_reception_callback.c | 77 UX_HOST_CLASS_SWAR *swar; in _ux_host_class_swar_reception_callback() local 81 swar = (UX_HOST_CLASS_SWAR *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_swar_reception_callback() 84 swar_reception = swar -> ux_host_class_swar_reception; in _ux_host_class_swar_reception_callback() 114 … swar_reception -> ux_host_class_swar_reception_callback(swar, UX_BUFFER_OVERFLOW, UX_NULL, 0); in _ux_host_class_swar_reception_callback() 134 swar_reception -> ux_host_class_swar_reception_callback(swar, in _ux_host_class_swar_reception_callback()
|
/USBX-v6.2.1/common/usbx_host_classes/inc/ |
D | ux_host_class_swar.h | 126 … VOID (*ux_host_class_swar_reception_callback)(struct UX_HOST_CLASS_SWAR_STRUCT *swar, 136 UINT _ux_host_class_swar_configure(UX_HOST_CLASS_SWAR *swar); 138 UINT _ux_host_class_swar_endpoints_get(UX_HOST_CLASS_SWAR *swar); 140 UINT _ux_host_class_swar_read (UX_HOST_CLASS_SWAR *swar, UCHAR *data_pointer, 142 UINT _ux_host_class_swar_write(UX_HOST_CLASS_SWAR *swar, UCHAR *data_pointer, 144 UINT _ux_host_class_swar_ioctl(UX_HOST_CLASS_SWAR *swar, ULONG ioctl_function, 147 UINT _ux_host_class_swar_reception_stop (UX_HOST_CLASS_SWAR *swar, 149 UINT _ux_host_class_swar_reception_start (UX_HOST_CLASS_SWAR *swar,
|