Home
last modified time | relevance | path

Searched refs:max_packet_size (Results 1 – 12 of 12) sorted by relevance

/USBX-v6.2.1/common/core/src/
Dux_host_stack_bandwidth_claim.c89 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 …]
Dux_host_stack_bandwidth_release.c88 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 …]
Dux_host_stack_bandwidth_check.c90 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/
Dux_hcd_ehci_interrupt_endpoint_destroy.c92 ULONG max_packet_size; in _ux_hcd_ehci_interrupt_endpoint_destroy() local
140max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_interrupt_endpoint_destroy()
144max_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()
148max_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()
Dux_hcd_ehci_interrupt_endpoint_create.c120 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 …]
Dux_hcd_ehci_isochronous_endpoint_destroy.c106 ULONG max_packet_size; in _ux_hcd_ehci_isochronous_endpoint_destroy()
215max_packet_size = endpoint -> ux_endpoint_descriptor.wMaxPacketSize & UX_MAX_PACKET_SIZE_MASK; in _ux_hcd_ehci_isochronous_endpoint_destroy()
218max_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()
Dux_hcd_ehci_isochronous_endpoint_create.c135 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/
Dux_device_class_audio_read_thread_entry.c103 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()
129max_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()
Dux_device_class_video_read_thread_entry.c90 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()
116max_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()
Dux_device_class_audio_read_task_function.c87 ULONG max_packet_size; in _ux_device_class_audio_read_task_function() local
135max_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()
Dux_device_class_video_read_task_function.c86 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()
Dux_device_class_storage_tasks_run.c319 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()