| /USBX-v6.2.1/common/core/src/ |
| D | ux_host_stack_bandwidth_claim.c | 89 USHORT max_packet_size; in _ux_host_stack_bandwidth_claim() local 126 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_host_stack_bandwidth_claim() 129 packet_size = (max_packet_size * 7 + 5) / 6; in _ux_host_stack_bandwidth_claim() 133 max_packet_size = (USHORT)packet_size; in _ux_host_stack_bandwidth_claim() 140 max_packet_size = (USHORT)(max_packet_size * in _ux_host_stack_bandwidth_claim() 151 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 8 * 5); in _ux_host_stack_bandwidth_claim() 157 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 5); in _ux_host_stack_bandwidth_claim() 160 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_claim() 166 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_claim() 169 tt_bandwidth_claimed = (USHORT)(max_packet_size * 8); in _ux_host_stack_bandwidth_claim() [all …]
|
| D | ux_host_stack_bandwidth_release.c | 88 USHORT max_packet_size; in _ux_host_stack_bandwidth_release() local 125 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_host_stack_bandwidth_release() 128 packet_size = (max_packet_size * 7 + 5) / 6; in _ux_host_stack_bandwidth_release() 132 max_packet_size = (USHORT)packet_size; in _ux_host_stack_bandwidth_release() 139 max_packet_size = (USHORT)(max_packet_size * in _ux_host_stack_bandwidth_release() 150 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 8 * 5); in _ux_host_stack_bandwidth_release() 156 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 5); in _ux_host_stack_bandwidth_release() 159 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_release() 165 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_release() 168 tt_bandwidth_claimed = (USHORT)(max_packet_size * 8); in _ux_host_stack_bandwidth_release() [all …]
|
| D | ux_host_stack_bandwidth_check.c | 90 USHORT max_packet_size; in _ux_host_stack_bandwidth_check() local 127 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_host_stack_bandwidth_check() 130 packet_size = (max_packet_size * 7 + 5) / 6; in _ux_host_stack_bandwidth_check() 134 max_packet_size = (USHORT)packet_size; in _ux_host_stack_bandwidth_check() 141 max_packet_size = (USHORT)(max_packet_size * in _ux_host_stack_bandwidth_check() 152 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 8 * 5); in _ux_host_stack_bandwidth_check() 158 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 5); in _ux_host_stack_bandwidth_check() 161 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_check() 167 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_check() 170 tt_bandwidth_claimed = (USHORT)(max_packet_size * 8); in _ux_host_stack_bandwidth_check() [all …]
|
| /USBX-v6.2.1/common/usbx_host_controllers/src/ |
| D | ux_hcd_ehci_interrupt_endpoint_destroy.c | 92 ULONG max_packet_size; in _ux_hcd_ehci_interrupt_endpoint_destroy() local 140 … max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_interrupt_endpoint_destroy() 144 …max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_NUMBER_OF_TRANSACTION… in _ux_hcd_ehci_interrupt_endpoint_destroy() 145 max_packet_size >>= UX_MAX_NUMBER_OF_TRANSACTIONS_SHIFT; in _ux_hcd_ehci_interrupt_endpoint_destroy() 146 if (max_packet_size < 3) in _ux_hcd_ehci_interrupt_endpoint_destroy() 147 max_packet_size ++; in _ux_hcd_ehci_interrupt_endpoint_destroy() 148 … max_packet_size *= endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_interrupt_endpoint_destroy() 174 …_AS.INTR.ux_ehci_ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[frindex] - max_packet_size); in _ux_hcd_ehci_interrupt_endpoint_destroy() 189 …_AS.INTR.ux_ehci_ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[frindex] - max_packet_size); in _ux_hcd_ehci_interrupt_endpoint_destroy()
|
| D | ux_hcd_ehci_interrupt_endpoint_create.c | 120 ULONG max_packet_size; in _ux_hcd_ehci_interrupt_endpoint_create() local 161 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_interrupt_endpoint_create() 162 ed -> ux_ehci_ed_cap0 = max_packet_size << UX_EHCI_QH_MPS_LOC; in _ux_hcd_ehci_interrupt_endpoint_create() 271 max_packet_size *= num_transaction; in _ux_hcd_ehci_interrupt_endpoint_create() 279 if (microframe_load[i] + max_packet_size > UX_MAX_BYTES_PER_MICROFRAME_HS) in _ux_hcd_ehci_interrupt_endpoint_create() 359 …&7] = (USHORT)(ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[(i + 2)&7] + max_packet_size); in _ux_hcd_ehci_interrupt_endpoint_create() 360 …&7] = (USHORT)(ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[(i + 3)&7] + max_packet_size); in _ux_hcd_ehci_interrupt_endpoint_create() 364 …&7] = (USHORT)(ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[(i + 4)&7] + max_packet_size); in _ux_hcd_ehci_interrupt_endpoint_create() 370 …ame_load[i] = (USHORT)(ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[i] + max_packet_size); in _ux_hcd_ehci_interrupt_endpoint_create() 380 …ame_load[i] = (USHORT)(ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[i] + max_packet_size); in _ux_hcd_ehci_interrupt_endpoint_create() [all …]
|
| D | ux_hcd_ehci_isochronous_endpoint_destroy.c | 106 ULONG max_packet_size; in _ux_hcd_ehci_isochronous_endpoint_destroy() 215 … max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_isochronous_endpoint_destroy() 218 …max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_NUMBER_OF_TRANSACTION… in _ux_hcd_ehci_isochronous_endpoint_destroy() 235 split_count = (max_packet_size + 187) / 188; in _ux_hcd_ehci_isochronous_endpoint_destroy() 237 last_size = max_packet_size % 188; in _ux_hcd_ehci_isochronous_endpoint_destroy() 260 max_packet_size = ed_td.itd_ptr -> ux_ehci_hsiso_td_max_trans_size; in _ux_hcd_ehci_isochronous_endpoint_destroy() 269 …-> ux_ehci_hsiso_ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[frindex] - max_packet_size); in _ux_hcd_ehci_isochronous_endpoint_destroy()
|
| D | ux_hcd_ehci_isochronous_endpoint_create.c | 135 ULONG max_packet_size; in _ux_hcd_ehci_isochronous_endpoint_create() 162 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_isochronous_endpoint_create() 171 max_trans_size = max_packet_size * mult; in _ux_hcd_ehci_isochronous_endpoint_create() 326 bp.value = io | max_packet_size; in _ux_hcd_ehci_isochronous_endpoint_create() 348 max_packet_size *= mult; in _ux_hcd_ehci_isochronous_endpoint_create() 356 if (microframe_load[microframe_i] + max_packet_size > UX_MAX_BYTES_PER_MICROFRAME_HS) in _ux_hcd_ehci_isochronous_endpoint_create() 415 split_count = (max_packet_size + 187) / 188; in _ux_hcd_ehci_isochronous_endpoint_create() 416 split_last_size = max_packet_size % 188; in _ux_hcd_ehci_isochronous_endpoint_create() 460 split_count = (max_packet_size + 187) / 188; in _ux_hcd_ehci_isochronous_endpoint_create() 520 …ame_load[i] = (USHORT)(ed_anchor -> REF_AS.ANCHOR.ux_ehci_ed_microframe_load[i] + max_packet_size); in _ux_hcd_ehci_isochronous_endpoint_create()
|
| /USBX-v6.2.1/common/usbx_device_classes/src/ |
| D | ux_device_class_audio_read_thread_entry.c | 103 ULONG max_packet_size; in _ux_device_class_audio_read_thread_entry() local 116 max_packet_size = 0; in _ux_device_class_audio_read_thread_entry() 128 if (max_packet_size == 0) in _ux_device_class_audio_read_thread_entry() 129 …max_packet_size = endpoint -> ux_slave_endpoint_transfer_request.ux_slave_transfer_request_transfe… in _ux_device_class_audio_read_thread_entry() 142 status = _ux_device_stack_transfer_request(transfer, max_packet_size, max_packet_size); in _ux_device_class_audio_read_thread_entry()
|
| D | ux_device_class_video_read_thread_entry.c | 90 ULONG max_packet_size; in _ux_device_class_video_read_thread_entry() local 103 max_packet_size = 0; in _ux_device_class_video_read_thread_entry() 115 if (max_packet_size == 0) in _ux_device_class_video_read_thread_entry() 116 …max_packet_size = endpoint -> ux_slave_endpoint_transfer_request.ux_slave_transfer_request_transfe… in _ux_device_class_video_read_thread_entry() 129 status = _ux_device_stack_transfer_request(transfer, max_packet_size, max_packet_size); in _ux_device_class_video_read_thread_entry()
|
| D | ux_device_class_audio_read_task_function.c | 87 ULONG max_packet_size; in _ux_device_class_audio_read_task_function() local 135 …max_packet_size = endpoint -> ux_slave_endpoint_transfer_request.ux_slave_transfer_request_transfe… in _ux_device_class_audio_read_task_function() 136 status = _ux_device_stack_transfer_run(transfer, max_packet_size, max_packet_size); in _ux_device_class_audio_read_task_function()
|
| D | ux_device_class_video_read_task_function.c | 86 ULONG max_packet_size; in _ux_device_class_video_read_task_function() local 134 max_packet_size = endpoint -> ux_slave_endpoint_transfer_request. in _ux_device_class_video_read_task_function() 136 status = _ux_device_stack_transfer_run(transfer, max_packet_size, max_packet_size); in _ux_device_class_video_read_task_function()
|
| D | ux_device_class_storage_tasks_run.c | 319 ULONG max_packet_size; in _ux_device_class_storage_cbw_receive() local 330 max_packet_size = endpoint -> ux_slave_endpoint_descriptor.wMaxPacketSize; in _ux_device_class_storage_cbw_receive() 334 storage -> ux_device_class_storage_data_length = max_packet_size; in _ux_device_class_storage_cbw_receive()
|