Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/usb/storage/
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()
Duas.c948 struct usb_host_endpoint *eps[4] = { }; in uas_configure_endpoints() local
952 r = uas_find_endpoints(devinfo->intf->cur_altsetting, eps); in uas_configure_endpoints()
957 usb_endpoint_num(&eps[0]->desc)); in uas_configure_endpoints()
959 usb_endpoint_num(&eps[1]->desc)); in uas_configure_endpoints()
961 usb_endpoint_num(&eps[2]->desc)); in uas_configure_endpoints()
963 usb_endpoint_num(&eps[3]->desc)); in uas_configure_endpoints()
969 devinfo->qdepth = usb_alloc_streams(devinfo->intf, eps + 1, in uas_configure_endpoints()
982 struct usb_host_endpoint *eps[3]; in uas_free_streams() local
984 eps[0] = usb_pipe_endpoint(udev, devinfo->status_pipe); in uas_free_streams()
985 eps[1] = usb_pipe_endpoint(udev, devinfo->data_in_pipe); in uas_free_streams()
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/
Draw_gadget.c179 struct raw_ep eps[USB_RAW_EPS_NUM_MAX]; member
219 if (dev->eps[i].state == STATE_EP_DISABLED) in dev_free()
221 usb_ep_disable(dev->eps[i].ep); in dev_free()
222 usb_ep_free_request(dev->eps[i].ep, dev->eps[i].req); in dev_free()
223 kfree(dev->eps[i].ep->desc); in dev_free()
224 dev->eps[i].state = STATE_EP_DISABLED; in dev_free()
304 dev->eps[i].ep = ep; in gadget_bind()
305 dev->eps[i].addr = get_ep_addr(ep->name); in gadget_bind()
306 dev->eps[i].state = STATE_EP_DISABLED; in gadget_bind()
823 ep = &dev->eps[i]; in raw_ioctl_ep_enable()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci.c1523 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1680 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1826 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1913 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1944 xhci_ring_free(xhci, virt_dev->eps[ep_index].new_ring); in xhci_add_endpoint()
1945 virt_dev->eps[ep_index].new_ring = NULL; in xhci_add_endpoint()
2721 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2728 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2731 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2740 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
[all …]
Dxhci-debugfs.c454 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint()
461 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint()
468 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint()
478 if (!spriv || !spriv->eps[ep_index]) in xhci_debugfs_remove_endpoint()
481 epriv = spriv->eps[ep_index]; in xhci_debugfs_remove_endpoint()
483 spriv->eps[ep_index] = NULL; in xhci_debugfs_remove_endpoint()
574 if (!spriv || !spriv->eps[ep_index] || in xhci_debugfs_create_stream_files()
575 !dev->eps[ep_index].stream_info) in xhci_debugfs_create_stream_files()
578 epriv = spriv->eps[ep_index]; in xhci_debugfs_create_stream_files()
579 epriv->stream_info = dev->eps[ep_index].stream_info; in xhci_debugfs_create_stream_files()
[all …]
Dxhci-dbgcap.h138 struct dbc_ep eps[2]; member
188 return &dbc->eps[BULK_IN]; in get_in_ep()
193 return &dbc->eps[BULK_OUT]; in get_out_ep()
Dxhci-mem.c415 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()
600 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_stream_id_to_ring()
913 if (dev->eps[i].ring) in xhci_free_virt_device()
914 xhci_ring_free(xhci, dev->eps[i].ring); in xhci_free_virt_device()
915 if (dev->eps[i].stream_info) in xhci_free_virt_device()
917 dev->eps[i].stream_info); in xhci_free_virt_device()
926 if (!list_empty(&dev->eps[i].bw_endpoint_list)) { in xhci_free_virt_device()
927 list_del_init(&dev->eps[i].bw_endpoint_list); in xhci_free_virt_device()
1026 dev->eps[i].ep_index = i; in xhci_alloc_virt_device()
[all …]
Dxhci-dbgcap.c184 xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_OUT]); in xhci_dbc_flush_requests()
185 xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_IN]); in xhci_dbc_flush_requests()
300 struct dbc_ep *dep = &dbc->eps[req->direction]; in dbc_ep_do_queue()
361 dep = &dbc->eps[direction]; in xhci_dbc_do_eps_init()
377 memset(dbc->eps, 0, sizeof(struct dbc_ep) * ARRAY_SIZE(dbc->eps)); in xhci_dbc_eps_exit()
/kernel/linux/linux-5.10/drivers/usb/dwc3/
Dep0.c117 __dwc3_ep0_do_control_data(dwc, dwc->eps[direction], req); in __dwc3_gadget_ep0_queue()
137 __dwc3_ep0_do_control_status(dwc, dwc->eps[direction]); in __dwc3_gadget_ep0_queue()
180 __dwc3_ep0_do_control_data(dwc, dwc->eps[direction], req); in __dwc3_gadget_ep0_queue()
226 dep = dwc->eps[1]; in dwc3_ep0_stall_and_restart()
230 dep = dwc->eps[0]; in dwc3_ep0_stall_and_restart()
277 dep = dwc->eps[0]; in dwc3_ep0_out_start()
294 dep = dwc->eps[epnum]; in dwc3_wIndex_to_dep()
366 dep = dwc->eps[0]; in dwc3_ep0_handle_status()
730 dep = dwc->eps[0]; in dwc3_ep0_set_sel()
840 ep0 = dwc->eps[0]; in dwc3_ep0_complete_data()
[all …]
Dgadget.c549 struct dwc3_ep *dep = dwc->eps[i]; in dwc3_gadget_start_config()
2093 dep = dwc->eps[epnum]; in dwc3_stop_active_transfers()
2362 dep = dwc->eps[0]; in __dwc3_gadget_start()
2369 dep = dwc->eps[1]; in __dwc3_gadget_start()
2387 __dwc3_gadget_ep_disable(dwc->eps[0]); in __dwc3_gadget_start()
2435 __dwc3_gadget_ep_disable(dwc->eps[0]); in __dwc3_gadget_stop()
2436 __dwc3_gadget_ep_disable(dwc->eps[1]); in __dwc3_gadget_stop()
2692 dwc->eps[epnum] = dep; in dwc3_gadget_init_endpoint()
2751 dep = dwc->eps[epnum]; in dwc3_gadget_free_endpoints()
3015 dep = dwc->eps[i]; in dwc3_gadget_endpoint_trbs_complete()
[all …]
/kernel/linux/linux-5.10/drivers/platform/x86/
Ddcdbas.c509 struct smm_eps_table *eps = (struct smm_eps_table *)addr; in check_eps_table() local
511 if (strncmp(eps->smm_comm_buff_anchor, SMM_EPS_SIG, 4) != 0) in check_eps_table()
514 if (checksum(addr, eps->length) != 0) in check_eps_table()
517 return eps; in check_eps_table()
524 struct smm_eps_table *eps = NULL; in dcdbas_check_wsmt() local
553 eps = check_eps_table(addr); in dcdbas_check_wsmt()
554 if (eps) in dcdbas_check_wsmt()
558 if (!eps) { in dcdbas_check_wsmt()
562 bios_buf_paddr = eps->smm_comm_buff_addr; in dcdbas_check_wsmt()
563 remap_size = eps->num_of_4k_pages * PAGE_SIZE; in dcdbas_check_wsmt()
/kernel/linux/linux-5.10/drivers/usb/cdns3/
Dep0.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()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Dfsl_qe_udc.c179 qe_eptx_stall_change(&udc->eps[0], 1); in qe_ep0_stall()
180 qe_eprx_stall_change(&udc->eps[0], 1); in qe_ep0_stall()
286 ep = &udc->eps[pipe_num]; in qe_epbds_reset()
316 ep = &udc->eps[pipe_num]; in qe_ep_reset()
349 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_bd_init()
469 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_register_init()
524 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_init()
786 struct qe_ep *ep = &udc->eps[0]; in ep0_setup_handle()
810 struct qe_ep *ep = &udc->eps[0]; in qe_ep0_rx()
939 ep = &udc->eps[i]; in ep_rx_tasklet()
[all …]
Dmv_u3d_core.c56 ep = &u3d->eps[i]; in mv_u3d_ep0_reset()
133 u3d->eps[index].name); in mv_u3d_process_ep_req()
921 struct mv_u3d_ep *ep = u3d->eps; in mv_u3d_ep_set_stall()
1307 ep = &u3d->eps[1]; in mv_u3d_eps_init()
1328 ep = &u3d->eps[i]; in mv_u3d_eps_init()
1380 mv_u3d_nuke(&u3d->eps[1], -ESHUTDOWN); in mv_u3d_stop_activity()
1518 mv_u3d_nuke(&u3d->eps[ep_num * 2 + MV_U3D_EP_DIR_IN], -ESHUTDOWN); in mv_u3d_handle_setup_packet()
1635 curr_ep = &u3d->eps[1]; in mv_u3d_irq_process_tr_complete()
1637 curr_ep = &u3d->eps[i]; in mv_u3d_irq_process_tr_complete()
1763 kfree(u3d->eps); in mv_u3d_remove()
[all …]
Dfsl_usb2_udc.h477 struct fsl_ep *eps; member
575 #define get_ep_by_pipe(udc, pipe) ((pipe == 1)? &udc->eps[0]: \
576 &udc->eps[pipe])
Dmv_udc_core.c77 ep = &udc->eps[i]; in ep0_reset()
141 udc->eps[index].name); in process_ep_req()
1242 ep = &udc->eps[0]; in eps_init()
1261 ep = &udc->eps[i]; in eps_init()
1313 nuke(&udc->eps[0], -ESHUTDOWN); in gadget_reset()
1331 nuke(&udc->eps[0], -ESHUTDOWN); in stop_activity()
1447 ep = &udc->eps[0]; in udc_prime_status()
1584 ep = &udc->eps[ep_num * 2 + direction]; in ch9clearfeature()
1662 nuke(&udc->eps[ep_num * 2 + EP_DIR_OUT], -ESHUTDOWN); in handle_setup_packet()
1831 curr_ep = &udc->eps[0]; in irq_process_tr_complete()
[all …]
Dfsl_udc_core.c1280 ep = &udc->eps[0]; in ep0_prime_status()
1338 ep = &udc->eps[0]; in ch9getstatus()
1999 nuke(&udc_controller->eps[0], -ESHUTDOWN); in fsl_udc_stop()
2167 ep = &udc->eps[0]; in fsl_proc_read()
2248 udc->eps = kcalloc(udc->max_ep, sizeof(struct fsl_ep), GFP_KERNEL); in struct_udc_setup()
2249 if (!udc->eps) { in struct_udc_setup()
2300 kfree(udc->eps); in struct_udc_setup()
2316 struct fsl_ep *ep = &udc->eps[index]; in struct_ep_setup()
2477 udc_controller->gadget.ep0 = &udc_controller->eps[0].ep; in fsl_udc_probe()
2497 udc_controller->eps[0].ep.desc = &fsl_ep0_desc; in fsl_udc_probe()
[all …]
/kernel/linux/linux-5.10/drivers/usb/core/
Ddevio.c942 struct usb_host_endpoint **eps; in parse_usbdevfs_streams() local
958 eps = kmalloc_array(num_eps, sizeof(*eps), GFP_KERNEL); in parse_usbdevfs_streams()
959 if (!eps) in parse_usbdevfs_streams()
963 if (get_user(ep, &streams->eps[i])) { in parse_usbdevfs_streams()
967 eps[i] = ep_to_host_endpoint(ps->dev, ep); in parse_usbdevfs_streams()
968 if (!eps[i]) { in parse_usbdevfs_streams()
997 *eps_ret = eps; in parse_usbdevfs_streams()
1003 kfree(eps); in parse_usbdevfs_streams()
1289 struct usb_host_endpoint **eps; in check_reset_of_active_ep() local
1292 eps = (epnum & USB_DIR_IN) ? udev->ep_in : udev->ep_out; in check_reset_of_active_ep()
[all …]
Dhcd.c2037 struct usb_host_endpoint **eps, unsigned int num_eps, in usb_alloc_streams() argument
2055 if (!usb_endpoint_xfer_bulk(&eps[i]->desc)) in usb_alloc_streams()
2058 if (eps[i]->streams) in usb_alloc_streams()
2062 ret = hcd->driver->alloc_streams(hcd, dev, eps, num_eps, in usb_alloc_streams()
2068 eps[i]->streams = ret; in usb_alloc_streams()
2087 struct usb_host_endpoint **eps, unsigned int num_eps, in usb_free_streams() argument
2101 if (!eps[i] || !eps[i]->streams) in usb_free_streams()
2104 ret = hcd->driver->free_streams(hcd, dev, eps, num_eps, mem_flags); in usb_free_streams()
2109 eps[i]->streams = 0; in usb_free_streams()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/
Dam33xx-usb.txt41 - mentor,num-eps: Specifies the number of endpoints. This is also a
111 mentor,num-eps = <16>;
157 mentor,num-eps = <16>;
Domap-usb.txt8 - num-eps : Specifies the number of endpoints. This is also a
32 num-eps = <16>;
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/usb/
Draw_gadget.h71 struct usb_raw_ep_info eps[USB_RAW_EPS_NUM_MAX]; member
/kernel/linux/linux-5.10/include/uapi/linux/usb/
Draw_gadget.h151 struct usb_raw_ep_info eps[USB_RAW_EPS_NUM_MAX]; member
/kernel/linux/linux-5.10/Documentation/driver-api/usb/
Dbulk-streams.rst34 struct usb_host_endpoint **eps, unsigned int num_eps,
79 struct usb_host_endpoint **eps, unsigned int num_eps,
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_generic.c56 struct ffs_ep *eps; member
1376 ep = epfile->ffs->eps + i; in ffs_epfile_ioctl()
1825 struct ffs_ep *ep = func->eps; in ffs_func_eps_disable()
1848 struct ffs_ep *ep = func->eps; in ffs_func_eps_enable()
2709 ffs_ep = func->eps + idx; in __ffs_func_bind_do_descs()
2738 ep->driver_data = func->eps + idx; in __ffs_func_bind_do_descs()
2800 if (unlikely(!func->eps[idx].ep)) in __ffs_func_bind_do_nums()
2805 descs = func->eps[idx].descs; in __ffs_func_bind_do_nums()
2956 vla_item_with_sz(d, struct ffs_ep, eps, ffs->eps_count); in _ffs_func_bind()
3001 eps_ptr = vla_ptr(vlabuf, d, eps); in _ffs_func_bind()
[all …]

123