Home
last modified time | relevance | path

Searched refs:eps (Results 1 – 25 of 66) sorted by relevance

123

/linux-6.15/drivers/usb/storage/
H A Duas-detect.h29 struct usb_host_endpoint *eps[]) in uas_find_endpoints() argument
41 eps[pipe_id - 1] = &endpoint[i]; in uas_find_endpoints()
49 if (!eps[0] || !eps[1] || !eps[2] || !eps[3]) in uas_find_endpoints()
59 struct usb_host_endpoint *eps[4] = { }; in uas_use_uas_driver() local
70 r = uas_find_endpoints(alt, eps); in uas_use_uas_driver()
106 } else if (usb_ss_max_streams(&eps[1]->ss_ep_comp) == 32) { in uas_use_uas_driver()
H A Duas.c955 struct usb_host_endpoint *eps[4] = { }; in uas_configure_endpoints() local
959 r = uas_find_endpoints(devinfo->intf->cur_altsetting, eps); in uas_configure_endpoints()
964 usb_endpoint_num(&eps[0]->desc)); in uas_configure_endpoints()
966 usb_endpoint_num(&eps[1]->desc)); in uas_configure_endpoints()
968 usb_endpoint_num(&eps[2]->desc)); in uas_configure_endpoints()
970 usb_endpoint_num(&eps[3]->desc)); in uas_configure_endpoints()
989 struct usb_host_endpoint *eps[3]; in uas_free_streams() local
991 eps[0] = usb_pipe_endpoint(udev, devinfo->status_pipe); in uas_free_streams()
992 eps[1] = usb_pipe_endpoint(udev, devinfo->data_in_pipe); in uas_free_streams()
993 eps[2] = usb_pipe_endpoint(udev, devinfo->data_out_pipe); in uas_free_streams()
[all …]
/linux-6.15/drivers/usb/gadget/legacy/
H A Draw_gadget.c224 usb_ep_free_request(dev->eps[i].ep, dev->eps[i].req); in dev_free()
225 kfree(dev->eps[i].ep->desc); in dev_free()
306 dev->eps[i].ep = ep; in gadget_bind()
874 ep = &dev->eps[i]; in raw_ioctl_ep_enable()
945 if (dev->eps[i].disabling) { in raw_ioctl_ep_disable()
951 if (dev->eps[i].urb_queued) { in raw_ioctl_ep_disable()
963 usb_ep_free_request(dev->eps[i].ep, dev->eps[i].req); in raw_ioctl_ep_disable()
964 kfree(dev->eps[i].ep->desc); in raw_ioctl_ep_disable()
1000 if (dev->eps[i].disabling) { in raw_ioctl_ep_set_clear_halt_wedge()
1081 ep = &dev->eps[io->ep]; in raw_process_ep_io()
[all …]
/linux-6.15/drivers/usb/dwc3/
H A Dep0.c228 dep = dwc->eps[1]; in dwc3_ep0_stall_and_restart()
233 dep = dwc->eps[0]; in dwc3_ep0_stall_and_restart()
249 dwc->eps[0]->trb_enqueue = 0; in dwc3_ep0_stall_and_restart()
250 dwc->eps[1]->trb_enqueue = 0; in dwc3_ep0_stall_and_restart()
287 dep = dwc->eps[0]; in dwc3_ep0_out_start()
295 dwc3_ep = dwc->eps[i]; in dwc3_ep0_out_start()
320 dep = dwc->eps[epnum]; in dwc3_wIndex_to_dep()
395 dep = dwc->eps[0]; in dwc3_ep0_handle_status()
762 dep = dwc->eps[0]; in dwc3_ep0_set_sel()
872 ep0 = dwc->eps[0]; in dwc3_ep0_complete_data()
[all …]
H A Dgadget.c566 dep = dwc->eps[i]; in dwc3_gadget_start_config()
749 dep = dwc->eps[1]; in dwc3_gadget_clear_tx_fifos()
759 dep = dwc->eps[num]; in dwc3_gadget_clear_tx_fifos()
2507 dep = dwc->eps[epnum]; in dwc3_stop_active_transfers()
2964 dep = dwc->eps[0]; in __dwc3_gadget_start()
2972 dep = dwc->eps[1]; in __dwc3_gadget_start()
3375 dwc->eps[epnum] = dep; in dwc3_gadget_init_endpoint()
3724 dep = dwc->eps[i]; in dwc3_gadget_endpoint_trbs_complete()
3875 dep = dwc->eps[epnum]; in dwc3_endpoint_interrupt()
4282 dep = dwc->eps[0]; in dwc3_gadget_conndone_interrupt()
[all …]
/linux-6.15/drivers/usb/host/
H A Dxhci.c1698 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
2744 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2756 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2781 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2793 &virt_dev->eps[i], in xhci_reserve_bandwidth()
3055 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
3127 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3476 if (!eps) in xhci_alloc_streams()
3647 udev, eps, num_eps); in xhci_free_streams()
3678 &vdev->eps[ep_index]); in xhci_free_streams()
[all …]
H A Dxhci-debugfs.c288 dev->eps[ep_index].ep_state); in xhci_endpoint_context_show()
435 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint()
442 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint()
449 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint()
459 if (!spriv || !spriv->eps[ep_index]) in xhci_debugfs_remove_endpoint()
462 epriv = spriv->eps[ep_index]; in xhci_debugfs_remove_endpoint()
464 spriv->eps[ep_index] = NULL; in xhci_debugfs_remove_endpoint()
555 if (!spriv || !spriv->eps[ep_index] || in xhci_debugfs_create_stream_files()
556 !dev->eps[ep_index].stream_info) in xhci_debugfs_create_stream_files()
559 epriv = spriv->eps[ep_index]; in xhci_debugfs_create_stream_files()
[all …]
H A Dxhci-mem.c407 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
861 if (dev->eps[i].ring) in xhci_free_virt_device()
863 if (dev->eps[i].stream_info) in xhci_free_virt_device()
865 dev->eps[i].stream_info); in xhci_free_virt_device()
973 dev->eps[i].ep_index = i; in xhci_alloc_virt_device()
974 dev->eps[i].vdev = dev; in xhci_alloc_virt_device()
975 dev->eps[i].xhci = xhci; in xhci_alloc_virt_device()
982 if (!dev->eps[0].ring) in xhci_alloc_virt_device()
1019 ep_ring = virt_dev->eps[0].ring; in xhci_copy_ep0_dequeue_into_input_ctx()
1167 dev->eps[0].ring->cycle_state); in xhci_setup_addressable_virt_dev()
[all …]
H A Dxhci-dbgcap.h148 struct dbc_ep eps[2]; member
199 return &dbc->eps[BULK_IN]; in get_in_ep()
204 return &dbc->eps[BULK_OUT]; in get_out_ep()
/linux-6.15/drivers/platform/x86/dell/
H A Ddcdbas.c522 struct smm_eps_table *eps = (struct smm_eps_table *)addr; in check_eps_table() local
524 if (strncmp(eps->smm_comm_buff_anchor, SMM_EPS_SIG, 4) != 0) in check_eps_table()
527 if (checksum(addr, eps->length) != 0) in check_eps_table()
530 return eps; in check_eps_table()
537 struct smm_eps_table *eps = NULL; in dcdbas_check_wsmt() local
566 eps = check_eps_table(addr); in dcdbas_check_wsmt()
567 if (eps) in dcdbas_check_wsmt()
571 if (!eps) { in dcdbas_check_wsmt()
575 bios_buf_paddr = eps->smm_comm_buff_addr; in dcdbas_check_wsmt()
576 remap_size = eps->num_of_4k_pages * PAGE_SIZE; in dcdbas_check_wsmt()
/linux-6.15/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c45 struct cdns2_endpoint *pep = &pdev->eps[0]; in cdns2_ep0_enqueue()
92 struct cdns2_endpoint *pep = &pdev->eps[0]; in cdns2_ep0_stall()
109 struct cdns2_endpoint *pep = &pdev->eps[0]; in cdns2_status_stage()
193 pep = &pdev->eps[ep_sts]; in cdns2_req_ep0_handle_status()
290 pep = &pdev->eps[cdns2_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex))]; in cdns2_ep0_handle_feature_endpoint()
362 request->complete(&pdev->eps[0].endpoint, request); in __pending_setup_status_handler()
381 struct cdns2_endpoint *pep = &pdev->eps[0]; in cdns2_handle_setup_packet()
413 pep = &pdev->eps[0]; in cdns2_handle_setup_packet()
461 struct cdns2_endpoint *pep = &pdev->eps[0]; in cdns2_transfer_completed()
491 pdev->eps[0].dir = dir; in cdns2_handle_ep0_interrupt()
[all …]
/linux-6.15/drivers/usb/cdns3/
H A Dcdnsp-ep0.c23 pep = &pdev->eps[0]; in cdnsp_ep0_stall()
173 pep = &pdev->eps[ep_sts]; in cdnsp_ep0_handle_status()
305 pep = &pdev->eps[cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex))]; in cdnsp_ep0_handle_feature_endpoint()
431 if (pdev->eps[0].ep_state & EP_HALTED) { in cdnsp_setup_analyze()
433 cdnsp_halt_endpoint(pdev, &pdev->eps[0], 0); in cdnsp_setup_analyze()
440 if (!list_empty(&pdev->eps[0].pending_list)) { in cdnsp_setup_analyze()
444 req = next_request(&pdev->eps[0].pending_list); in cdnsp_setup_analyze()
445 cdnsp_ep_dequeue(&pdev->eps[0], req); in cdnsp_setup_analyze()
H A Dcdns3-ep0.c39 struct cdns3_endpoint *priv_ep = priv_dev->eps[0]; in cdns3_ep0_run_transfer()
107 struct cdns3_endpoint *priv_ep = priv_dev->eps[0]; in cdns3_ep0_complete_setup()
254 priv_ep = priv_dev->eps[index]; in cdns3_req_ep0_get_status()
371 priv_ep = priv_dev->eps[index]; in cdns3_ep0_feature_handle_endpoint()
511 request->complete(&priv_dev->eps[0]->endpoint, request); in __pending_setup_status_handler()
534 struct cdns3_endpoint *priv_ep = priv_dev->eps[0]; in cdns3_ep0_setup_phase()
571 struct cdns3_endpoint *priv_ep = priv_dev->eps[0]; in cdns3_transfer_completed()
717 priv_ep = priv_dev->eps[i]; in cdns3_gadget_ep0_queue()
822 priv_ep = priv_dev->eps[0]; in cdns3_ep0_config()
H A Dcdnsp-gadget.c680 if ((pdev->eps[i - 1].ring && !(ctrl_ctx->drop_flags & le32)) || in cdnsp_update_eps_configuration()
725 pdev->eps[0].ep_state & EP_HALTED) { in cdnsp_reset_device()
726 cdnsp_halt_endpoint(pdev, &pdev->eps[0], 0); in cdnsp_reset_device()
733 pdev->eps[0].ep_state &= ~(EP_STOPPED | EP_HALTED); in cdnsp_reset_device()
734 pdev->eps[0].ep_state |= EP_ENABLED; in cdnsp_reset_device()
748 pdev->eps[i].ep_state |= EP_STOPPED | EP_UNCONFIGURED; in cdnsp_reset_device()
1447 if (!list_empty(&pdev->eps[0].pending_list)) { in cdnsp_stop()
1450 req = next_request(&pdev->eps[0].pending_list); in cdnsp_stop()
1452 cdnsp_ep_dequeue(&pdev->eps[0], req); in cdnsp_stop()
1640 pep = &pdev->eps[i]; in cdnsp_gadget_init_endpoints()
[all …]
H A Dcdnsp-mem.c673 cdnsp_free_endpoint_rings(pdev, &pdev->eps[0]); in cdnsp_free_priv_device()
696 pdev->eps[0].ring = cdnsp_ring_alloc(pdev, 2, TYPE_CTRL, 0, GFP_ATOMIC); in cdnsp_alloc_priv_device()
697 if (!pdev->eps[0].ring) in cdnsp_alloc_priv_device()
717 struct cdnsp_ep_ctx *ep0_ctx = pdev->eps[0].in_ctx; in cdnsp_copy_ep0_dequeue_into_input_ctx()
718 struct cdnsp_ring *ep_ring = pdev->eps[0].ring; in cdnsp_copy_ep0_dequeue_into_input_ctx()
769 ep0_ctx->deq = cpu_to_le64(pdev->eps[0].ring->first_seg->dma | in cdnsp_setup_addressable_priv_dev()
770 pdev->eps[0].ring->cycle_state); in cdnsp_setup_addressable_priv_dev()
/linux-6.15/drivers/usb/gadget/udc/
H A Dfsl_qe_udc.c287 ep = &udc->eps[pipe_num]; in qe_epbds_reset()
317 ep = &udc->eps[pipe_num]; in qe_ep_reset()
793 struct qe_ep *ep = &udc->eps[0]; in ep0_setup_handle()
946 ep = &udc->eps[i]; in ep_rx_tasklet()
1952 ep = &udc->eps[0]; in ch9getstatus()
2057 ep = &udc->eps[pipe]; in setup_received_handle()
2148 if (udc->eps[i].init) in reset_irq()
2182 ep = &udc->eps[i]; in tx_irq()
2207 ep = &udc->eps[i]; in rx_irq()
2605 ep = &udc->eps[0]; in qe_udc_probe()
[all …]
H A Dfsl_usb2_udc.h477 struct fsl_ep *eps; member
528 #define get_ep_by_pipe(udc, pipe) ((pipe == 1)? &udc->eps[0]: \
529 &udc->eps[pipe])
H A Dmv_u3d_core.c56 ep = &u3d->eps[i]; in mv_u3d_ep0_reset()
133 u3d->eps[index].name); in mv_u3d_process_ep_req()
923 struct mv_u3d_ep *ep = u3d->eps; in mv_u3d_ep_set_stall()
1308 ep = &u3d->eps[1]; in mv_u3d_eps_init()
1329 ep = &u3d->eps[i]; in mv_u3d_eps_init()
1636 curr_ep = &u3d->eps[1]; in mv_u3d_irq_process_tr_complete()
1638 curr_ep = &u3d->eps[i]; in mv_u3d_irq_process_tr_complete()
1764 kfree(u3d->eps); in mv_u3d_remove()
1892 u3d->eps = kzalloc(size, GFP_KERNEL); in mv_u3d_probe()
1893 if (!u3d->eps) { in mv_u3d_probe()
[all …]
H A Dmv_udc_core.c77 ep = &udc->eps[i]; in ep0_reset()
141 udc->eps[index].name); in process_ep_req()
1244 ep = &udc->eps[0]; in eps_init()
1263 ep = &udc->eps[i]; in eps_init()
1315 nuke(&udc->eps[0], -ESHUTDOWN); in gadget_reset()
1333 nuke(&udc->eps[0], -ESHUTDOWN); in stop_activity()
1448 ep = &udc->eps[0]; in udc_prime_status()
1585 ep = &udc->eps[ep_num * 2 + direction]; in ch9clearfeature()
1832 curr_ep = &udc->eps[0]; in irq_process_tr_complete()
1834 curr_ep = &udc->eps[i]; in irq_process_tr_complete()
[all …]
H A Dfsl_udc_core.c1284 ep = &udc->eps[0]; in ep0_prime_status()
1342 ep = &udc->eps[0]; in ch9getstatus()
2006 nuke(&udc_controller->eps[0], -ESHUTDOWN); in fsl_udc_stop()
2172 ep = &udc->eps[0]; in fsl_proc_read()
2254 if (!udc->eps) { in struct_udc_setup()
2305 kfree(udc->eps); in struct_udc_setup()
2321 struct fsl_ep *ep = &udc->eps[index]; in struct_ep_setup()
2471 udc_controller->gadget.ep0 = &udc_controller->eps[0].ep; in fsl_udc_probe()
2491 udc_controller->eps[0].ep.desc = &fsl_ep0_desc; in fsl_udc_probe()
2492 usb_ep_set_maxpacket_limit(&udc_controller->eps[0].ep, in fsl_udc_probe()
[all …]
/linux-6.15/drivers/usb/core/
H A Ddevio.c957 struct usb_host_endpoint **eps; in parse_usbdevfs_streams() local
973 eps = kmalloc_array(num_eps, sizeof(*eps), GFP_KERNEL); in parse_usbdevfs_streams()
974 if (!eps) in parse_usbdevfs_streams()
983 if (!eps[i]) { in parse_usbdevfs_streams()
1012 *eps_ret = eps; in parse_usbdevfs_streams()
1018 kfree(eps); in parse_usbdevfs_streams()
1385 struct usb_host_endpoint **eps; in check_reset_of_active_ep() local
1389 ep = eps[epnum & 0x0f]; in check_reset_of_active_ep()
2506 &eps, &intf); in proc_alloc_streams()
2514 kfree(eps); in proc_alloc_streams()
[all …]
/linux-6.15/drivers/usb/gadget/function/
H A Du_midi2.h78 struct f_midi2_ep_opts *eps[MAX_UMP_EPS]; member
/linux-6.15/Documentation/devicetree/bindings/usb/
H A Dam33xx-usb.txt41 - mentor,num-eps: Specifies the number of endpoints. This is also a
112 mentor,num-eps = <16>;
158 mentor,num-eps = <16>;
H A Domap-usb.txt8 - num-eps : Specifies the number of endpoints. This is also a
32 num-eps = <16>;
/linux-6.15/sound/usb/
H A Dmidi2.c84 struct snd_usb_midi2_endpoint *eps[2]; /* USB MIDI endpoints */ member
340 return rmidi->eps[dir]; in ump_to_endpoint()
730 rmidi->eps[STR_IN] = ep_in; in create_midi2_ump()
731 rmidi->eps[STR_OUT] = ep_out; in create_midi2_ump()
904 if (!rmidi->eps[dir]) in create_blocks_from_gtb()
906 for (i = 0; i < rmidi->eps[dir]->ms_ep->bNumGrpTrmBlock; i++) { in create_blocks_from_gtb()
907 blk = rmidi->eps[dir]->ms_ep->baAssoGrpTrmBlkID[i]; in create_blocks_from_gtb()

123