/USBX-v6.2.1/common/core/src/ |
D | ux_host_stack_bandwidth_claim.c | 90 USHORT max_packet_size; in _ux_host_stack_bandwidth_claim() local 127 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_host_stack_bandwidth_claim() 130 packet_size = (max_packet_size * 7 + 5) / 6; in _ux_host_stack_bandwidth_claim() 134 max_packet_size = (USHORT)packet_size; in _ux_host_stack_bandwidth_claim() 141 max_packet_size = (USHORT)(max_packet_size * in _ux_host_stack_bandwidth_claim() 152 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 8 * 5); in _ux_host_stack_bandwidth_claim() 158 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 5); in _ux_host_stack_bandwidth_claim() 161 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_claim() 167 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_claim() 170 tt_bandwidth_claimed = (USHORT)(max_packet_size * 8); in _ux_host_stack_bandwidth_claim() [all …]
|
D | ux_host_stack_bandwidth_release.c | 89 USHORT max_packet_size; in _ux_host_stack_bandwidth_release() local 126 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_host_stack_bandwidth_release() 129 packet_size = (max_packet_size * 7 + 5) / 6; in _ux_host_stack_bandwidth_release() 133 max_packet_size = (USHORT)packet_size; in _ux_host_stack_bandwidth_release() 140 max_packet_size = (USHORT)(max_packet_size * in _ux_host_stack_bandwidth_release() 151 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 8 * 5); in _ux_host_stack_bandwidth_release() 157 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 5); in _ux_host_stack_bandwidth_release() 160 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_release() 166 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_release() 169 tt_bandwidth_claimed = (USHORT)(max_packet_size * 8); in _ux_host_stack_bandwidth_release() [all …]
|
D | ux_host_stack_bandwidth_check.c | 91 USHORT max_packet_size; in _ux_host_stack_bandwidth_check() local 128 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_host_stack_bandwidth_check() 131 packet_size = (max_packet_size * 7 + 5) / 6; in _ux_host_stack_bandwidth_check() 135 max_packet_size = (USHORT)packet_size; in _ux_host_stack_bandwidth_check() 142 max_packet_size = (USHORT)(max_packet_size * in _ux_host_stack_bandwidth_check() 153 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 8 * 5); in _ux_host_stack_bandwidth_check() 159 hcd_bandwidth_claimed = (USHORT)(max_packet_size * 5); in _ux_host_stack_bandwidth_check() 162 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_check() 168 hcd_bandwidth_claimed = (USHORT)max_packet_size; in _ux_host_stack_bandwidth_check() 171 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 | 93 ULONG max_packet_size; in _ux_hcd_ehci_interrupt_endpoint_destroy() local 141 … max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_interrupt_endpoint_destroy() 145 …max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_NUMBER_OF_TRANSACTION… in _ux_hcd_ehci_interrupt_endpoint_destroy() 146 max_packet_size >>= UX_MAX_NUMBER_OF_TRANSACTIONS_SHIFT; in _ux_hcd_ehci_interrupt_endpoint_destroy() 147 if (max_packet_size < 3) in _ux_hcd_ehci_interrupt_endpoint_destroy() 148 max_packet_size ++; in _ux_hcd_ehci_interrupt_endpoint_destroy() 149 … max_packet_size *= endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_interrupt_endpoint_destroy() 175 …_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() 190 …_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 | 118 ULONG max_packet_size; in _ux_hcd_ehci_interrupt_endpoint_create() local 159 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_interrupt_endpoint_create() 160 ed -> ux_ehci_ed_cap0 = max_packet_size << UX_EHCI_QH_MPS_LOC; in _ux_hcd_ehci_interrupt_endpoint_create() 265 max_packet_size *= num_transaction; in _ux_hcd_ehci_interrupt_endpoint_create() 273 if (microframe_load[i] + max_packet_size > UX_MAX_BYTES_PER_MICROFRAME_HS) in _ux_hcd_ehci_interrupt_endpoint_create() 353 …&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() 354 …&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() 358 …&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() 364 …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() 374 …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 | 107 ULONG max_packet_size; in _ux_hcd_ehci_isochronous_endpoint_destroy() 216 … max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_isochronous_endpoint_destroy() 219 …max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_NUMBER_OF_TRANSACTION… in _ux_hcd_ehci_isochronous_endpoint_destroy() 236 split_count = (max_packet_size + 187) / 188; in _ux_hcd_ehci_isochronous_endpoint_destroy() 238 last_size = max_packet_size % 188; in _ux_hcd_ehci_isochronous_endpoint_destroy() 261 max_packet_size = ed_td.itd_ptr -> ux_ehci_hsiso_td_max_trans_size; in _ux_hcd_ehci_isochronous_endpoint_destroy() 270 …-> 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 | 131 ULONG max_packet_size; in _ux_hcd_ehci_isochronous_endpoint_create() 158 max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_isochronous_endpoint_create() 167 max_trans_size = max_packet_size * mult; in _ux_hcd_ehci_isochronous_endpoint_create() 321 bp.value = io | max_packet_size; in _ux_hcd_ehci_isochronous_endpoint_create() 343 max_packet_size *= mult; in _ux_hcd_ehci_isochronous_endpoint_create() 351 if (microframe_load[microframe_i] + max_packet_size > UX_MAX_BYTES_PER_MICROFRAME_HS) in _ux_hcd_ehci_isochronous_endpoint_create() 410 split_count = (max_packet_size + 187) / 188; in _ux_hcd_ehci_isochronous_endpoint_create() 411 split_last_size = max_packet_size % 188; in _ux_hcd_ehci_isochronous_endpoint_create() 455 split_count = (max_packet_size + 187) / 188; in _ux_hcd_ehci_isochronous_endpoint_create() 515 …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 | 99 ULONG max_packet_size; in _ux_device_class_audio_read_thread_entry() local 112 max_packet_size = 0; in _ux_device_class_audio_read_thread_entry() 124 if (max_packet_size == 0) in _ux_device_class_audio_read_thread_entry() 125 …max_packet_size = endpoint -> ux_slave_endpoint_transfer_request.ux_slave_transfer_request_transfe… in _ux_device_class_audio_read_thread_entry() 131 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 | 87 ULONG max_packet_size; in _ux_device_class_video_read_thread_entry() local 100 max_packet_size = 0; in _ux_device_class_video_read_thread_entry() 112 if (max_packet_size == 0) in _ux_device_class_video_read_thread_entry() 113 …max_packet_size = endpoint -> ux_slave_endpoint_transfer_request.ux_slave_transfer_request_transfe… in _ux_device_class_video_read_thread_entry() 119 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_video_read_task_function.c | 83 ULONG max_packet_size; in _ux_device_class_video_read_task_function() local 124 max_packet_size = endpoint -> ux_slave_endpoint_transfer_request. in _ux_device_class_video_read_task_function() 126 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_audio_read_task_function.c | 83 ULONG max_packet_size; in _ux_device_class_audio_read_task_function() local 124 …max_packet_size = endpoint -> ux_slave_endpoint_transfer_request.ux_slave_transfer_request_transfe… in _ux_device_class_audio_read_task_function() 125 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_storage_tasks_run.c | 320 ULONG max_packet_size; in _ux_device_class_storage_cbw_receive() local 331 max_packet_size = endpoint -> ux_slave_endpoint_descriptor.wMaxPacketSize; in _ux_device_class_storage_cbw_receive() 335 storage -> ux_device_class_storage_data_length = max_packet_size; in _ux_device_class_storage_cbw_receive()
|