| /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() 112 } else if (usb_ss_max_streams(&eps[1]->ss_ep_comp) == 32) { in uas_use_uas_driver()
|
| /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 | 91 sb->eps[ep->ep_index] = NULL; in __xhci_sideband_remove_endpoint() 158 ep = &sb->vdev->eps[ep_index]; in xhci_sideband_add_endpoint() 171 if (sb->eps[ep_index] || ep->sideband) in xhci_sideband_add_endpoint() 175 sb->eps[ep_index] = ep; in xhci_sideband_add_endpoint() 203 ep = sb->eps[ep_index]; in xhci_sideband_remove_endpoint() 222 ep = sb->eps[ep_index]; in xhci_sideband_stop_endpoint() 252 ep = sb->eps[ep_index]; in xhci_sideband_get_endpoint_buffer() 479 if (sb->eps[i]) in xhci_sideband_unregister() 480 __xhci_sideband_remove_endpoint(sb, sb->eps[i]); in xhci_sideband_unregister()
|
| H A D | xhci-mem.c | 405 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring() 406 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring() 890 if (dev->eps[i].ring) in xhci_free_virt_device() 891 xhci_ring_free(xhci, dev->eps[i].ring); in xhci_free_virt_device() 892 if (dev->eps[i].stream_info) in xhci_free_virt_device() 894 dev->eps[i].stream_info); in xhci_free_virt_device() 903 if (!list_empty(&dev->eps[i].bw_endpoint_list)) { in xhci_free_virt_device() 904 list_del_init(&dev->eps[i].bw_endpoint_list); in xhci_free_virt_device() 1003 dev->eps[i].ep_index = i; in xhci_alloc_virt_device() 1004 dev->eps[ in xhci_alloc_virt_device() 1907 struct list_head *eps, *ep, *ep_next; xhci_rh_bw_cleanup() local [all...] |
| H A D | xhci-dbgcap.h | 172 struct dbc_ep eps[2]; member 223 return &dbc->eps[BULK_IN]; in get_in_ep() 228 return &dbc->eps[BULK_OUT]; in get_out_ep()
|
| 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() 341 struct dbc_ep *dep = &dbc->eps[req->direction]; in dbc_ep_do_queue() 402 dep = &dbc->eps[direction]; in xhci_dbc_do_eps_init() 418 memset(dbc->eps, 0, sizeof_field(struct xhci_dbc, eps)); in xhci_dbc_eps_exit() 481 struct xhci_ring *in_ring = dbc->eps[BULK_IN].ring; in xhci_dbc_reinit_ep_rings() 482 struct xhci_ring *out_ring = dbc->eps[BULK_OUT].ring; in xhci_dbc_reinit_ep_rings() 1101 if (!list_empty(&dbc->eps[BULK_OUT].list_pending) || in xhci_dbc_handle_events()
|
| H A D | xhci-debugfs.h | 102 struct xhci_ep_priv *eps[31]; member
|
| /linux/drivers/usb/dwc3/ |
| H A D | ep0.c | 120 __dwc3_ep0_do_control_data(dwc, dwc->eps[direction], req); in __dwc3_gadget_ep0_queue() 140 __dwc3_ep0_do_control_status(dwc, dwc->eps[direction]); in __dwc3_gadget_ep0_queue() 183 __dwc3_ep0_do_control_data(dwc, dwc->eps[direction], req); in __dwc3_gadget_ep0_queue() 234 dep = dwc->eps[1]; in dwc3_ep0_stall_and_restart() 239 dep = dwc->eps[0]; in dwc3_ep0_stall_and_restart() 255 dwc->eps[0]->trb_enqueue = 0; in dwc3_ep0_stall_and_restart() 256 dwc->eps[1]->trb_enqueue = 0; in dwc3_ep0_stall_and_restart() 297 dep = dwc->eps[0]; in dwc3_ep0_out_start() 307 dwc3_ep = dwc->eps[i]; in dwc3_ep0_out_start() 332 dep = dwc->eps[epnu in dwc3_wIndex_to_dep() [all...] |
| 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() 765 /* Clear existing TXFIFO for all IN eps except ep0 */ in dwc3_gadget_clear_tx_fifos() 767 dep = dwc->eps[num]; in dwc3_gadget_clear_tx_fifos() 944 * All stream eps wil in __dwc3_gadget_ep_enable() 3464 dwc3_gadget_get_reserved_endpoints(struct dwc3 * dwc,const char * propname,u8 * eps,u8 num) dwc3_gadget_get_reserved_endpoints() argument [all...] |
| /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-mem.c | 668 cdnsp_free_endpoint_rings(pdev, &pdev->eps[0]); in cdnsp_free_priv_device() 691 pdev->eps[0].ring = cdnsp_ring_alloc(pdev, 2, TYPE_CTRL, 0, GFP_ATOMIC); in cdnsp_alloc_priv_device() 692 if (!pdev->eps[0].ring) in cdnsp_alloc_priv_device() 695 cdnsp_ring_init(pdev, pdev->eps[0].ring); in cdnsp_alloc_priv_device() 714 struct cdnsp_ep_ctx *ep0_ctx = pdev->eps[0].in_ctx; in cdnsp_copy_ep0_dequeue_into_input_ctx() 715 struct cdnsp_ring *ep_ring = pdev->eps[0].ring; in cdnsp_copy_ep0_dequeue_into_input_ctx() 766 ep0_ctx->deq = cpu_to_le64(pdev->eps[0].ring->first_seg->dma | in cdnsp_setup_addressable_priv_dev() 767 pdev->eps[0].ring->cycle_state); in cdnsp_setup_addressable_priv_dev()
|
| H A D | cdnsp-gadget.c | 705 if ((pdev->eps[i - 1].ring && !(ctrl_ctx->drop_flags & le32)) || in cdnsp_update_eps_configuration() 750 pdev->eps[0].ep_state & EP_HALTED) { in cdnsp_reset_device() 751 cdnsp_halt_endpoint(pdev, &pdev->eps[0], 0); in cdnsp_reset_device() 758 pdev->eps[0].ep_state &= ~(EP_STOPPED | EP_HALTED); in cdnsp_reset_device() 759 pdev->eps[0].ep_state |= EP_ENABLED; in cdnsp_reset_device() 773 pdev->eps[i].ep_state |= EP_STOPPED | EP_UNCONFIGURED; in cdnsp_reset_device() 1477 if (!list_empty(&pdev->eps[0].pending_list)) { in cdnsp_stop() 1480 req = next_request(&pdev->eps[0].pending_list); in cdnsp_stop() 1482 cdnsp_ep_dequeue(&pdev->eps[0], req); in cdnsp_stop() 1673 pep = &pdev->eps[ in cdnsp_gadget_init_endpoints() [all...] |
| /linux/drivers/usb/gadget/udc/ |
| H A D | fsl_usb2_udc.h | 478 struct fsl_ep *eps; member 529 #define get_ep_by_pipe(udc, pipe) ((pipe == 1)? &udc->eps[0]: \ 530 &udc->eps[pipe])
|
| H A D | fsl_udc_core.c | 1276 ep = &udc->eps[0]; in ep0_prime_status() 1334 ep = &udc->eps[0]; in ch9getstatus() 1997 nuke(&udc_controller->eps[0], -ESHUTDOWN); in fsl_udc_stop() 2163 ep = &udc->eps[0]; in fsl_proc_read() 2244 udc->eps = kzalloc_objs(struct fsl_ep, udc->max_ep); in struct_udc_setup() 2245 if (!udc->eps) { in struct_udc_setup() 2296 kfree(udc->eps); in struct_udc_setup() 2304 * Setup the fsl_ep struct for eps 2312 struct fsl_ep *ep = &udc->eps[index]; in struct_ep_setup() 2335 * for other eps, max in struct_ep_setup() [all...] |
| H A D | dummy_hcd.c | 2644 struct usb_host_endpoint **eps, unsigned int num_eps, in dummy_alloc_streams() 2659 index = dummy_get_ep_idx(&eps[i]->desc); in dummy_free_streams() 2664 max_stream = usb_ss_max_streams(&eps[i]->ss_ep_comp); in dummy_free_streams() 2672 eps[i]->desc.bEndpointAddress, in dummy_free_streams() 2679 index = dummy_get_ep_idx(&eps[i]->desc); in dummy_free_streams() 2682 usb_endpoint_num(&eps[i]->desc), ret_streams); 2691 struct usb_host_endpoint **eps, unsigned int num_eps, 2702 index = dummy_get_ep_idx(&eps[i]->desc); 2710 index = dummy_get_ep_idx(&eps[i]->desc); in dummy_hcd_probe() 2713 usb_endpoint_num(&eps[ in dummy_hcd_probe() 2605 dummy_alloc_streams(struct usb_hcd * hcd,struct usb_device * udev,struct usb_host_endpoint ** eps,unsigned int num_eps,unsigned int num_streams,gfp_t mem_flags) dummy_alloc_streams() argument 2652 dummy_free_streams(struct usb_hcd * hcd,struct usb_device * udev,struct usb_host_endpoint ** eps,unsigned int num_eps,gfp_t mem_flags) dummy_free_streams() argument [all...] |
| /linux/Documentation/devicetree/bindings/usb/ |
| H A D | am33xx-usb.txt | |
| /linux/sound/usb/ |
| H A D | midi2.c | 84 struct snd_usb_midi2_endpoint *eps[2]; /* USB MIDI endpoints */ member 332 return rmidi ? rmidi->eps[dir] : NULL; in ump_to_endpoint() 740 rmidi->eps[STR_IN] = ep_in; in create_midi2_ump() 741 rmidi->eps[STR_OUT] = ep_out; in create_midi2_ump() 914 if (!rmidi->eps[dir]) in create_blocks_from_gtb() 916 for (i = 0; i < rmidi->eps[dir]->ms_ep->bNumGrpTrmBlock; i++) { in create_blocks_from_gtb() 917 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,
|
| /linux/include/uapi/linux/usb/ |
| H A D | raw_gadget.h | 161 struct usb_raw_ep_info eps[USB_RAW_EPS_NUM_MAX]; member
|
| /linux/arch/m68k/fpsp040/ |
| H A D | setox.S | 99 | Z = X*(64/log2)*(1+eps), |eps| <= 2^(-24). 115 | N = rnd-to-int( X*64/log2 (1+eps) ), |eps|<=2^(-24) 116 | X*64/log2 (1+eps) = N + f, |f| <= 0.5 117 | X*64/log2 - N = f - eps*X 64/log2 118 | X - N*log2/64 = f*log2/64 - eps*X
|
| /linux/include/linux/ |
| H A D | usb.h | 898 struct usb_host_endpoint **eps, unsigned int num_eps, 903 struct usb_host_endpoint **eps, unsigned int num_eps, 2062 struct usb_host_endpoint **eps; in usb_maxpacket() 2063 eps = usb_pipein(pipe) ? dev->ep_in : dev->ep_out; in usb_maxpacket() 2064 return eps[usb_pipeendpoint(pipe)]; in usb_maxpacket() 2055 struct usb_host_endpoint **eps; usb_pipe_endpoint() local
|