| /linux/drivers/usb/storage/ |
| H A D | uas-detect.h | 29 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 D | uas.c | 965 struct usb_host_endpoint *eps[4] = { }; in uas_configure_endpoints() local 969 r = uas_find_endpoints(devinfo->intf->cur_altsetting, eps); in uas_configure_endpoints() 974 usb_endpoint_num(&eps[0]->desc)); in uas_configure_endpoints() 976 usb_endpoint_num(&eps[1]->desc)); in uas_configure_endpoints() 978 usb_endpoint_num(&eps[2]->desc)); in uas_configure_endpoints() 980 usb_endpoint_num(&eps[3]->desc)); in uas_configure_endpoints() 986 devinfo->qdepth = usb_alloc_streams(devinfo->intf, eps + 1, in uas_configure_endpoints() 999 struct usb_host_endpoint *eps[3]; in uas_free_streams() local 1001 eps[0] = usb_pipe_endpoint(udev, devinfo->status_pipe); in uas_free_streams() 1002 eps[1] = usb_pipe_endpoint(udev, devinfo->data_in_pipe); in uas_free_streams() [all …]
|
| /linux/drivers/usb/gadget/legacy/ |
| H A D | raw_gadget.c | 182 struct raw_ep eps[USB_RAW_EPS_NUM_MAX]; member 222 if (dev->eps[i].state == STATE_EP_DISABLED) in dev_free() 224 usb_ep_disable(dev->eps[i].ep); in dev_free() 225 usb_ep_free_request(dev->eps[i].ep, dev->eps[i].req); in dev_free() 226 kfree(dev->eps[i].ep->desc); in dev_free() 227 dev->eps[i].state = STATE_EP_DISABLED; in dev_free() 307 dev->eps[i].ep = ep; in gadget_bind() 308 dev->eps[i].addr = get_ep_addr(ep->name); in gadget_bind() 309 dev->eps[i].state = STATE_EP_DISABLED; in gadget_bind() 875 ep = &dev->eps[i]; in raw_ioctl_ep_enable() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci-sideband.c | 89 sb->eps[ep->ep_index] = NULL; in __xhci_sideband_remove_endpoint() 162 ep = &sb->vdev->eps[ep_index]; in xhci_sideband_add_endpoint() 175 if (sb->eps[ep_index] || ep->sideband) in xhci_sideband_add_endpoint() 179 sb->eps[ep_index] = ep; in xhci_sideband_add_endpoint() 207 ep = sb->eps[ep_index]; in xhci_sideband_remove_endpoint() 226 ep = sb->eps[ep_index]; in xhci_sideband_stop_endpoint() 256 ep = sb->eps[ep_index]; in xhci_sideband_get_endpoint_buffer() 489 if (sb->eps[i]) in xhci_sideband_unregister() 490 __xhci_sideband_remove_endpoint(sb, sb->eps[i]); in xhci_sideband_unregister()
|
| H A D | xhci.c | 1683 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue() 1787 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue() 1947 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint() 2032 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint() 2823 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth() 2830 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth() 2833 &virt_dev->eps[i], in xhci_reserve_bandwidth() 2842 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth() 2845 &virt_dev->eps[i], in xhci_reserve_bandwidth() 2867 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth() [all …]
|
| H A D | xhci-debugfs.c | 288 dev->eps[ep_index].ep_state); in xhci_endpoint_context_show() 468 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint() 475 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint() 482 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint() 492 if (!spriv || !spriv->eps[ep_index]) in xhci_debugfs_remove_endpoint() 495 epriv = spriv->eps[ep_index]; in xhci_debugfs_remove_endpoint() 497 spriv->eps[ep_index] = NULL; in xhci_debugfs_remove_endpoint() 588 if (!spriv || !spriv->eps[ep_index] || in xhci_debugfs_create_stream_files() 589 !dev->eps[ep_index].stream_info) in xhci_debugfs_create_stream_files() 592 epriv = spriv->eps[ep_index]; in xhci_debugfs_create_stream_files() [all …]
|
| H A D | xhci-mem.c | 406 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring() 407 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring() 889 if (dev->eps[i].ring) in xhci_free_virt_device() 890 xhci_ring_free(xhci, dev->eps[i].ring); in xhci_free_virt_device() 891 if (dev->eps[i].stream_info) in xhci_free_virt_device() 893 dev->eps[i].stream_info); in xhci_free_virt_device() 902 if (!list_empty(&dev->eps[i].bw_endpoint_list)) { in xhci_free_virt_device() 903 list_del_init(&dev->eps[i].bw_endpoint_list); in xhci_free_virt_device() 1002 dev->eps[i].ep_index = i; in xhci_alloc_virt_device() 1003 dev->eps[i].vdev = dev; in xhci_alloc_virt_device() [all …]
|
| H A D | xhci-dbgcap.c | 225 xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_OUT]); in xhci_dbc_flush_requests() 226 xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_IN]); in xhci_dbc_flush_requests() 342 struct dbc_ep *dep = &dbc->eps[req->direction]; in dbc_ep_do_queue() 403 dep = &dbc->eps[direction]; in xhci_dbc_do_eps_init() 419 memset(dbc->eps, 0, sizeof_field(struct xhci_dbc, eps)); in xhci_dbc_eps_exit() 482 struct xhci_ring *in_ring = dbc->eps[BULK_IN].ring; in xhci_dbc_reinit_ep_rings() 483 struct xhci_ring *out_ring = dbc->eps[BULK_OUT].ring; in xhci_dbc_reinit_ep_rings() 1027 if (!list_empty(&dbc->eps[BULK_OUT].list_pending) || in xhci_dbc_handle_events()
|
| /linux/drivers/platform/x86/dell/ |
| H A D | dcdbas.c | 522 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/drivers/usb/gadget/udc/cdns2/ |
| H A D | cdns2-ep0.c | 45 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/drivers/usb/cdns3/ |
| H A D | cdnsp-ep0.c | 23 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 pep = &pdev->eps[0]; in cdnsp_setup_analyze() 452 if (!list_empty(&pdev->eps[0].pending_list)) { in cdnsp_setup_analyze() 456 req = next_request(&pdev->eps[0].pending_list); in cdnsp_setup_analyze() 457 cdnsp_ep_dequeue(&pdev->eps[0], req); in cdnsp_setup_analyze()
|
| H A D | cdns3-ep0.c | 39 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 D | cdnsp-gadget.c | 697 if ((pdev->eps[i - 1].ring && !(ctrl_ctx->drop_flags & le32)) || in cdnsp_update_eps_configuration() 742 pdev->eps[0].ep_state & EP_HALTED) { in cdnsp_reset_device() 743 cdnsp_halt_endpoint(pdev, &pdev->eps[0], 0); in cdnsp_reset_device() 750 pdev->eps[0].ep_state &= ~(EP_STOPPED | EP_HALTED); in cdnsp_reset_device() 751 pdev->eps[0].ep_state |= EP_ENABLED; in cdnsp_reset_device() 765 pdev->eps[i].ep_state |= EP_STOPPED | EP_UNCONFIGURED; in cdnsp_reset_device() 1464 if (!list_empty(&pdev->eps[0].pending_list)) { in cdnsp_stop() 1467 req = next_request(&pdev->eps[0].pending_list); in cdnsp_stop() 1469 cdnsp_ep_dequeue(&pdev->eps[0], req); in cdnsp_stop() 1657 pep = &pdev->eps[i]; in cdnsp_gadget_init_endpoints() [all …]
|
| H A D | cdnsp-mem.c | 672 cdnsp_free_endpoint_rings(pdev, &pdev->eps[0]); in cdnsp_free_priv_device() 695 pdev->eps[0].ring = cdnsp_ring_alloc(pdev, 2, TYPE_CTRL, 0, GFP_ATOMIC); in cdnsp_alloc_priv_device() 696 if (!pdev->eps[0].ring) in cdnsp_alloc_priv_device() 716 struct cdnsp_ep_ctx *ep0_ctx = pdev->eps[0].in_ctx; in cdnsp_copy_ep0_dequeue_into_input_ctx() 717 struct cdnsp_ring *ep_ring = pdev->eps[0].ring; in cdnsp_copy_ep0_dequeue_into_input_ctx() 768 ep0_ctx->deq = cpu_to_le64(pdev->eps[0].ring->first_seg->dma | in cdnsp_setup_addressable_priv_dev() 769 pdev->eps[0].ring->cycle_state); in cdnsp_setup_addressable_priv_dev()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | fsl_qe_udc.c | 180 qe_eptx_stall_change(&udc->eps[0], 1); in qe_ep0_stall() 181 qe_eprx_stall_change(&udc->eps[0], 1); in qe_ep0_stall() 287 ep = &udc->eps[pipe_num]; in qe_epbds_reset() 317 ep = &udc->eps[pipe_num]; in qe_ep_reset() 350 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_bd_init() 470 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_register_init() 525 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_init() 793 struct qe_ep *ep = &udc->eps[0]; in ep0_setup_handle() 817 struct qe_ep *ep = &udc->eps[0]; in qe_ep0_rx() 946 ep = &udc->eps[i]; in ep_rx_tasklet() [all …]
|
| H A D | fsl_usb2_udc.h | 477 struct fsl_ep *eps; member 528 #define get_ep_by_pipe(udc, pipe) ((pipe == 1)? &udc->eps[0]: \ 529 &udc->eps[pipe])
|
| H A D | fsl_udc_core.c | 1284 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() 2253 udc->eps = kzalloc_objs(struct fsl_ep, udc->max_ep); in struct_udc_setup() 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() [all …]
|
| /linux/drivers/usb/dwc3/ |
| H A D | gadget.c | 149 dwc3_ep0_end_control_data(dwc, dwc->eps[dir]); in dwc3_ep0_reset_state() 151 dwc3_ep0_end_control_data(dwc, dwc->eps[!dir]); in dwc3_ep0_reset_state() 153 dwc->eps[0]->trb_enqueue = 0; in dwc3_ep0_reset_state() 154 dwc->eps[1]->trb_enqueue = 0; in dwc3_ep0_reset_state() 568 ret = dwc3_send_gadget_ep_cmd(dwc->eps[0], cmd, ¶ms); in dwc3_gadget_start_config() 574 dep = dwc->eps[i]; in dwc3_gadget_start_config() 757 dep = dwc->eps[1]; in dwc3_gadget_clear_tx_fifos() 767 dep = dwc->eps[num]; in dwc3_gadget_clear_tx_fifos() 2517 dep = dwc->eps[epnum]; in dwc3_stop_active_transfers() 2975 dep = dwc->eps[0]; in __dwc3_gadget_start() [all …]
|
| /linux/drivers/usb/core/ |
| H A D | devio.c | 957 struct usb_host_endpoint **eps; in parse_usbdevfs_streams() local 973 eps = kmalloc_objs(*eps, num_eps); in parse_usbdevfs_streams() 974 if (!eps) in parse_usbdevfs_streams() 978 if (get_user(ep, &streams->eps[i])) { in parse_usbdevfs_streams() 982 eps[i] = ep_to_host_endpoint(ps->dev, ep); 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 1388 eps = (epnum & USB_DIR_IN) ? udev->ep_in : udev->ep_out; in check_reset_of_active_ep() [all …]
|
| H A D | hcd.c | 2024 struct usb_host_endpoint **eps, unsigned int num_eps, in usb_alloc_streams() argument 2042 if (!usb_endpoint_xfer_bulk(&eps[i]->desc)) in usb_alloc_streams() 2045 if (eps[i]->streams) in usb_alloc_streams() 2049 ret = hcd->driver->alloc_streams(hcd, dev, eps, num_eps, in usb_alloc_streams() 2055 eps[i]->streams = ret; in usb_alloc_streams() 2074 struct usb_host_endpoint **eps, unsigned int num_eps, in usb_free_streams() argument 2088 if (!eps[i] || !eps[i]->streams) in usb_free_streams() 2091 ret = hcd->driver->free_streams(hcd, dev, eps, num_eps, mem_flags); in usb_free_streams() 2096 eps[i]->streams = 0; in usb_free_streams()
|
| /linux/Documentation/devicetree/bindings/usb/ |
| H A D | am33xx-usb.txt | 41 - mentor,num-eps: Specifies the number of endpoints. This is also a 112 mentor,num-eps = <16>; 158 mentor,num-eps = <16>;
|
| H A D | omap-usb.txt | 8 - num-eps : Specifies the number of endpoints. This is also a 32 num-eps = <16>;
|
| /linux/sound/usb/ |
| H A D | midi2.c | 84 struct snd_usb_midi2_endpoint *eps[2]; /* USB MIDI endpoints */ member 332 return rmidi->eps[dir]; in ump_to_endpoint() 722 rmidi->eps[STR_IN] = ep_in; in create_midi2_ump() 723 rmidi->eps[STR_OUT] = ep_out; in create_midi2_ump() 896 if (!rmidi->eps[dir]) in create_blocks_from_gtb() 898 for (i = 0; i < rmidi->eps[dir]->ms_ep->bNumGrpTrmBlock; i++) { in create_blocks_from_gtb() 899 blk = rmidi->eps[dir]->ms_ep->baAssoGrpTrmBlkID[i]; in create_blocks_from_gtb()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | u_midi2.h | 78 struct f_midi2_ep_opts *eps[MAX_UMP_EPS]; member
|
| /linux/Documentation/driver-api/usb/ |
| H A D | bulk-streams.rst | 34 struct usb_host_endpoint **eps, unsigned int num_eps, 79 struct usb_host_endpoint **eps, unsigned int num_eps,
|