Home
last modified time | relevance | path

Searched refs:ep_index (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/usb/host/
H A Dxhci-ring.c404 unsigned int ep_index, in xhci_ring_ep_doorbell()
408 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
421 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
423 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
432 unsigned int ep_index) in ring_doorbell_for_active_rings()
437 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
442 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
450 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
457 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings()
459 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
402 xhci_ring_ep_doorbell(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_ring_ep_doorbell() argument
430 ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) ring_doorbell_for_active_rings() argument
455 xhci_ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) xhci_ring_doorbell_for_active_rings() argument
462 xhci_get_virt_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) xhci_get_virt_ep() argument
486 xhci_triad_to_transfer_ring(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_triad_to_transfer_ring() argument
528 xhci_get_hw_deq(struct xhci_hcd *xhci, struct xhci_virt_device *vdev, unsigned int ep_index, unsigned int stream_id) xhci_get_hw_deq() argument
563 xhci_find_new_dequeue_state(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *cur_td, struct xhci_dequeue_state *state) xhci_find_new_dequeue_state() argument
822 xhci_reset_halted_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) xhci_reset_halted_ep() argument
936 unsigned int ep_index; xhci_handle_cmd_stop_ep() local
1037 xhci_kill_endpoint_urbs(struct xhci_hcd *xhci, int slot_id, int ep_index) xhci_kill_endpoint_urbs() argument
1173 update_ring_for_set_deq_completion(struct xhci_hcd *xhci, struct xhci_virt_device *dev, struct xhci_ring *ep_ring, unsigned int ep_index) update_ring_for_set_deq_completion() argument
1229 unsigned int ep_index; xhci_handle_cmd_set_deq() local
1329 unsigned int ep_index; xhci_handle_cmd_reset_ep() local
1405 unsigned int ep_index; xhci_handle_cmd_config_ep() local
2436 int ep_index; handle_tx_event() local
3155 prepare_transfer(struct xhci_hcd *xhci, struct xhci_virt_device *xdev, unsigned int ep_index, unsigned int stream_id, unsigned int num_trbs, struct urb *urb, unsigned int td_index, gfp_t mem_flags) prepare_transfer() argument
3261 giveback_first_trb(struct xhci_hcd *xhci, int slot_id, unsigned int ep_index, unsigned int stream_id, int start_cycle, struct xhci_generic_trb *start_trb) giveback_first_trb() argument
3313 xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_intr_tx() argument
3441 xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_bulk_tx() argument
3602 xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_ctrl_tx() argument
3899 xhci_queue_isoc_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx() argument
4092 xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx_prepare() argument
4276 xhci_queue_stop_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, int suspend) xhci_queue_stop_endpoint() argument
4289 xhci_queue_new_dequeue_state(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct xhci_dequeue_state *deq_state) xhci_queue_new_dequeue_state() argument
4353 xhci_queue_reset_ep(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) xhci_queue_reset_ep() argument
[all...]
H A Dxhci-debugfs.c281 int ep_index; in xhci_endpoint_context_show() local
291 for (ep_index = 0; ep_index < 31; ep_index++) { in xhci_endpoint_context_show()
292 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show()
293 dma = dev->out_ctx->dma + (ep_index + 1) * CTX_SIZE(xhci->hcc_params); in xhci_endpoint_context_show()
446 int ep_index) in xhci_debugfs_create_endpoint()
454 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint()
461 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint()
463 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint()
444 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_create_endpoint() argument
471 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_remove_endpoint() argument
567 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_create_stream_files() argument
[all...]
H A Dxhci-debugfs.h115 int ep_index);
118 int ep_index);
121 int ep_index);
132 int ep_index) { } in xhci_debugfs_create_endpoint()
136 int ep_index) { } in xhci_debugfs_remove_endpoint()
140 int ep_index) { } in xhci_debugfs_create_stream_files()
130 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_endpoint() argument
134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_remove_endpoint() argument
138 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_stream_files() argument
H A Dxhci.c1344 unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1346 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1347 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1364 static unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index) in xhci_get_endpoint_flag_from_index() argument
1366 return 1 << (ep_index + 1); in xhci_get_endpoint_flag_from_index()
1431 unsigned int ep_index, struct urb *urb, gfp_t mem_flags) in xhci_check_maxpacket()
1442 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1476 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1478 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1509 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1430 xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct urb *urb, gfp_t mem_flags) xhci_check_maxpacket() argument
1657 unsigned int ep_index; xhci_urb_dequeue() local
1787 unsigned int ep_index; xhci_drop_endpoint() local
1871 unsigned int ep_index; xhci_add_endpoint() local
3044 xhci_setup_input_ctx_for_quirk(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct xhci_dequeue_state *deq_state) xhci_setup_input_ctx_for_quirk() argument
3083 xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td) xhci_cleanup_stalled_ring() argument
3130 unsigned int ep_index; xhci_endpoint_disable() local
3185 unsigned int ep_index; xhci_endpoint_reset() local
3312 unsigned int ep_index; xhci_check_streams_endpoint() local
3411 unsigned int ep_index; xhci_calculate_no_streams_bitmask() local
3471 unsigned int ep_index; xhci_alloc_streams() local
3638 unsigned int ep_index; xhci_free_streams() local
5372 unsigned int ep_index; xhci_clear_tt_buffer_complete() local
[all...]
H A Dxhci.h928 unsigned int ep_index; member
1274 /* Stop Endpoint TRB - ep_index to endpoint ID for this TRB */
2017 unsigned int xhci_get_endpoint_address(unsigned int ep_index);
2031 unsigned int ep_index);
2053 unsigned int ep_index);
2072 unsigned int ep_index,
2130 int slot_id, unsigned int ep_index, int suspend);
2132 int slot_id, unsigned int ep_index);
2134 int slot_id, unsigned int ep_index);
2136 int slot_id, unsigned int ep_index);
[all...]
H A Dxhci-mem.c413 unsigned int ep_index) in xhci_free_endpoint_ring()
415 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring()
416 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
525 unsigned int ep_index) in xhci_get_ep_ctx()
528 ep_index++; in xhci_get_ep_ctx()
530 ep_index++; in xhci_get_ep_ctx()
533 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx()
597 unsigned int ep_index, in xhci_stream_id_to_ring()
600 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_stream_id_to_ring()
1026 dev->eps[i].ep_index in xhci_alloc_virt_device()
411 xhci_free_endpoint_ring(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, unsigned int ep_index) xhci_free_endpoint_ring() argument
523 xhci_get_ep_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int ep_index) xhci_get_ep_ctx() argument
595 xhci_stream_id_to_ring( struct xhci_virt_device *dev, unsigned int ep_index, unsigned int stream_id) xhci_stream_id_to_ring() argument
1449 unsigned int ep_index; xhci_endpoint_init() local
1546 unsigned int ep_index; xhci_endpoint_zero() local
1629 xhci_endpoint_copy(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx, unsigned int ep_index) xhci_endpoint_copy() argument
[all...]
H A Dxhci-mtk-sch.c692 unsigned int ep_index; in xhci_mtk_add_ep_quirk() local
696 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_add_ep_quirk()
698 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_add_ep_quirk()
792 unsigned int ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_check_bandwidth() local
799 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dxhci-ring.c482 unsigned int ep_index, in xhci_ring_ep_doorbell()
486 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
499 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
501 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
509 unsigned int ep_index) in ring_doorbell_for_active_rings()
514 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
519 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
527 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
534 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings()
536 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
480 xhci_ring_ep_doorbell(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_ring_ep_doorbell() argument
507 ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) ring_doorbell_for_active_rings() argument
532 xhci_ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) xhci_ring_doorbell_for_active_rings() argument
539 xhci_get_virt_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) xhci_get_virt_ep() argument
583 xhci_triad_to_transfer_ring(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_triad_to_transfer_ring() argument
603 xhci_get_hw_deq(struct xhci_hcd *xhci, struct xhci_virt_device *vdev, unsigned int ep_index, unsigned int stream_id) xhci_get_hw_deq() argument
620 xhci_move_dequeue_past_td(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td) xhci_move_dequeue_past_td() argument
905 xhci_reset_halted_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) xhci_reset_halted_ep() argument
1093 unsigned int ep_index; xhci_handle_cmd_stop_ep() local
1195 xhci_kill_endpoint_urbs(struct xhci_hcd *xhci, int slot_id, int ep_index) xhci_kill_endpoint_urbs() argument
1276 update_ring_for_set_deq_completion(struct xhci_hcd *xhci, struct xhci_virt_device *dev, struct xhci_ring *ep_ring, unsigned int ep_index) update_ring_for_set_deq_completion() argument
1323 unsigned int ep_index; xhci_handle_cmd_set_deq() local
1434 unsigned int ep_index; xhci_handle_cmd_reset_ep() local
1495 unsigned int ep_index; xhci_handle_cmd_config_ep() local
2567 int ep_index; handle_tx_event() local
3304 prepare_transfer(struct xhci_hcd *xhci, struct xhci_virt_device *xdev, unsigned int ep_index, unsigned int stream_id, unsigned int num_trbs, struct urb *urb, unsigned int td_index, gfp_t mem_flags) prepare_transfer() argument
3411 giveback_first_trb(struct xhci_hcd *xhci, int slot_id, unsigned int ep_index, unsigned int stream_id, int start_cycle, struct xhci_generic_trb *start_trb) giveback_first_trb() argument
3463 xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_intr_tx() argument
3591 xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_bulk_tx() argument
3752 xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_ctrl_tx() argument
4049 xhci_queue_isoc_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx() argument
4241 xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx_prepare() argument
4424 xhci_queue_stop_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, int suspend) xhci_queue_stop_endpoint() argument
4436 xhci_queue_reset_ep(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) xhci_queue_reset_ep() argument
[all...]
H A Dxhci-debugfs.c281 int ep_index; in xhci_endpoint_context_show() local
291 for (ep_index = 0; ep_index < 31; ep_index++) { in xhci_endpoint_context_show()
292 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show()
293 dma = dev->out_ctx->dma + (ep_index + 1) * CTX_SIZE(xhci->hcc_params); in xhci_endpoint_context_show()
446 int ep_index) in xhci_debugfs_create_endpoint()
454 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint()
461 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint()
463 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint()
444 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_create_endpoint() argument
471 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_remove_endpoint() argument
567 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_create_stream_files() argument
[all...]
H A Dxhci-debugfs.h115 int ep_index);
118 int ep_index);
121 int ep_index);
132 int ep_index) { } in xhci_debugfs_create_endpoint()
136 int ep_index) { } in xhci_debugfs_remove_endpoint()
140 int ep_index) { } in xhci_debugfs_create_stream_files()
130 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_endpoint() argument
134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_remove_endpoint() argument
138 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_stream_files() argument
H A Dxhci.c1342 static unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1344 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1345 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1420 unsigned int ep_index, struct urb *urb, gfp_t mem_flags) in xhci_check_maxpacket()
1431 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1465 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1467 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1498 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1511 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1512 ep_state = &xhci->devs[slot_id]->eps[ep_index] in xhci_urb_enqueue()
1419 xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct urb *urb, gfp_t mem_flags) xhci_check_maxpacket() argument
1644 unsigned int ep_index; xhci_urb_dequeue() local
1776 unsigned int ep_index; xhci_drop_endpoint() local
1858 unsigned int ep_index; xhci_add_endpoint() local
3026 unsigned int ep_index; xhci_endpoint_disable() local
3079 unsigned int ep_index; xhci_endpoint_reset() local
3204 unsigned int ep_index; xhci_check_streams_endpoint() local
3303 unsigned int ep_index; xhci_calculate_no_streams_bitmask() local
3363 unsigned int ep_index; xhci_alloc_streams() local
3530 unsigned int ep_index; xhci_free_streams() local
5258 unsigned int ep_index; xhci_clear_tt_buffer_complete() local
[all...]
H A Dxhci-mem.c413 unsigned int ep_index) in xhci_free_endpoint_ring()
415 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring()
416 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
516 unsigned int ep_index) in xhci_get_ep_ctx()
519 ep_index++; in xhci_get_ep_ctx()
521 ep_index++; in xhci_get_ep_ctx()
524 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx()
980 dev->eps[i].ep_index = i; in xhci_alloc_virt_device()
1400 unsigned int ep_index; in xhci_endpoint_init() local
1413 ep_index in xhci_endpoint_init()
411 xhci_free_endpoint_ring(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, unsigned int ep_index) xhci_free_endpoint_ring() argument
514 xhci_get_ep_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int ep_index) xhci_get_ep_ctx() argument
1497 unsigned int ep_index; xhci_endpoint_zero() local
1580 xhci_endpoint_copy(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx, unsigned int ep_index) xhci_endpoint_copy() argument
[all...]
H A Dxhci.h931 unsigned int ep_index; member
1275 /* Stop Endpoint TRB - ep_index to endpoint ID for this TRB */
2069 unsigned int ep_index);
2091 unsigned int ep_index);
2169 int slot_id, unsigned int ep_index, int suspend);
2171 int slot_id, unsigned int ep_index);
2173 int slot_id, unsigned int ep_index);
2175 int slot_id, unsigned int ep_index);
2177 struct urb *urb, int slot_id, unsigned int ep_index);
2184 int slot_id, unsigned int ep_index,
[all...]
H A Dxhci-mtk-sch.c634 unsigned int ep_index; in add_ep_quirk() local
637 ep_index = xhci_get_endpoint_index(&ep->desc); in add_ep_quirk()
638 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
701 unsigned int ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_check_bandwidth() local
710 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c601 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable()
609 dr_ep_setup((unsigned char) ep_index(ep), in fsl_ep_enable()
645 ep_num = ep_index(ep); in fsl_ep_disable()
717 fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) in fsl_prime_ep()
718 : (1 << (ep_index(ep))), &dr_regs->endpointprime); in fsl_prime_ep()
730 ? (1 << (ep_index(ep) + 16)) in fsl_queue_td()
731 : (1 << (ep_index(ep))); in fsl_queue_td()
734 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { in fsl_queue_td()
937 ep_num = ep_index(ep); in fsl_ep_dequeue()
1030 ep_num = (unsigned char)(ep_index(e in fsl_ep_set_halt()
[all...]
H A Ds3c-hsudc.c155 #define ep_index(_ep) ((_ep)->bEndpointAddress & \ macro
202 if (!ep_index(hsep)) { in s3c_hsudc_complete_request()
335 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_read_fifo()
461 set_index(hsudc, ep_index(hsep)); in s3c_hsudc_set_halt()
462 offset = (ep_index(hsep)) ? S3C_ECR : S3C_EP0CR; in s3c_hsudc_set_halt()
467 if (ep_index(hsep)) in s3c_hsudc_set_halt()
734 __set_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_enable()
759 __clear_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_disable()
840 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue()
848 offset = (ep_index(hse in s3c_hsudc_queue()
[all...]
H A Dfsl_usb2_udc.h570 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) macro
572 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
579 #define get_pipe_by_ep(EP) (ep_index(EP) * 2 + ep_is_in(EP))
584 if (ep_index(ep) != 0) in get_qh_by_ep()
H A Dfsl_qe_udc.h152 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF) macro
154 #define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
H A Dtegra-xudc.c2693 unsigned int ep_index = trb_read_endpoint_id(event); in tegra_xudc_handle_transfer_event() local
2694 struct tegra_xudc_ep *ep = &xudc->ep[ep_index]; in tegra_xudc_handle_transfer_event()
2700 ep_index); in tegra_xudc_handle_transfer_event()
2721 dev_info(xudc->dev, "stream rejected on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event()
2726 dev_info(xudc->dev, "prime pipe received on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event()
2735 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2744 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2757 comp_code, ep_index); in tegra_xudc_handle_transfer_event()
2759 ep_halt(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2780 ep_index); in tegra_xudc_handle_transfer_event()
[all...]
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c597 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable()
605 dr_ep_setup((unsigned char) ep_index(ep), in fsl_ep_enable()
641 ep_num = ep_index(ep); in fsl_ep_disable()
713 fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) in fsl_prime_ep()
714 : (1 << (ep_index(ep))), &dr_regs->endpointprime); in fsl_prime_ep()
726 ? (1 << (ep_index(ep) + 16)) in fsl_queue_td()
727 : (1 << (ep_index(ep))); in fsl_queue_td()
730 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { in fsl_queue_td()
934 ep_num = ep_index(ep); in fsl_ep_dequeue()
1029 ep_num = (unsigned char)(ep_index(e in fsl_ep_set_halt()
[all...]
H A Dfsl_usb2_udc.h570 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) macro
572 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
579 #define get_pipe_by_ep(EP) (ep_index(EP) * 2 + ep_is_in(EP))
584 if (ep_index(ep) != 0) in get_qh_by_ep()
H A Dfsl_qe_udc.h152 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF) macro
154 #define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
H A Dtegra-xudc.c2704 unsigned int ep_index = trb_read_endpoint_id(event); in tegra_xudc_handle_transfer_event() local
2705 struct tegra_xudc_ep *ep = &xudc->ep[ep_index]; in tegra_xudc_handle_transfer_event()
2711 ep_index); in tegra_xudc_handle_transfer_event()
2732 dev_info(xudc->dev, "stream rejected on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event()
2737 dev_info(xudc->dev, "prime pipe received on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event()
2746 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2755 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2768 comp_code, ep_index); in tegra_xudc_handle_transfer_event()
2770 ep_halt(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2791 ep_index); in tegra_xudc_handle_transfer_event()
[all...]
/kernel/linux/linux-6.6/drivers/usb/cdns3/
H A Dcdnsp-ring.c399 unsigned int ep_index, in cdnsp_get_hw_deq()
1180 int ep_index; in cdnsp_handle_tx_nrdy() local
1185 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_nrdy()
1189 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_nrdy()
1239 int ep_index; in cdnsp_handle_tx_event() local
1242 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_event()
1246 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_event()
1369 "part of current TD ep_index %d " in cdnsp_handle_tx_event()
1370 "comp_code %u\n", ep_index, in cdnsp_handle_tx_event()
2424 void cdnsp_queue_stop_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) in cdnsp_queue_stop_endpoint() argument
398 cdnsp_get_hw_deq(struct cdnsp_device *pdev, unsigned int ep_index, unsigned int stream_id) cdnsp_get_hw_deq() argument
2453 cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index) cdnsp_queue_reset_ep() argument
2464 cdnsp_queue_halt_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) cdnsp_queue_halt_endpoint() argument
2474 cdnsp_queue_flush_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) cdnsp_queue_flush_endpoint() argument
[all...]
H A Dcdnsp-gadget.h966 /* Stop Endpoint TRB - ep_index to endpoint ID for this TRB. */
1532 unsigned int ep_index);
1539 void cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index);
1541 unsigned int ep_index);
1543 unsigned int ep_index);
1563 unsigned int ep_index);

Completed in 56 milliseconds

12