/openbmc/u-boot/drivers/usb/gadget/ |
H A D | dwc2_udc_otg_xfer_dma.c | 410 ep_num++; in process_ep_in_intr() 459 ep_num++; in process_ep_out_intr() 928 u8 ep_num; in dwc2_udc_set_nak() local 954 u8 ep_num; in dwc2_udc_ep_set_stall() local 989 u8 ep_num; in dwc2_udc_ep_clear_stall() local 1040 u8 ep_num; in dwc2_udc_set_halt() local 1084 u8 ep_num; in dwc2_udc_ep_activate() local 1113 __func__, ep_num, ep_num, in dwc2_udc_ep_activate() 1118 __func__, ep_num, ep_num, in dwc2_udc_ep_activate() 1133 u8 ep_num; in dwc2_udc_clear_feature() local [all …]
|
H A D | pxa27x_udc.c | 86 if (ep_num) in udc_write_urb() 97 writel(ep_num ? UDCCSR_SP : UDCCSR0_IPR, UDCCSN(ep_num)); in udc_write_urb() 100 if (ep_num) { in udc_write_urb() 111 if (ep_num) { in udc_write_urb() 406 int ep_num, i; in udc_irq() local 455 if (!ep_num) in udc_irq() 488 if (ep_num < 16) in pio_irq_enable() 491 ep_num -= 16; in pio_irq_enable() 563 ep_addr, ep_num, in udc_setup_ep() 584 usbdbg("UDCCR%c = %x", 'A' + ep_num-1, readl(UDCCN(ep_num))); in udc_setup_ep() [all …]
|
H A D | aspeed_usbtty.c | 141 static void udc_stall_ep(u32 ep_num) in udc_stall_ep() argument 145 usbdbg("stall ep: %d", ep_num); in udc_stall_ep() 147 if (ep_num) { in udc_stall_ep() 149 (AST_EP_OFFSET * (ep_num - 1)); in udc_stall_ep() 166 int ep_num; in udc_endpoint_write() local 210 int ep_isout, ep_num; in aspeed_udc_ep_handle() local 552 void udc_unset_nak(int ep_num) in udc_unset_nak() argument 562 void udc_set_nak(int ep_num) in udc_set_nak() argument 588 if (ep_num == 0) { in udc_setup_ep() 599 ep_addr, ep_num, in udc_setup_ep() [all …]
|
H A D | designware_udc.c | 143 static void udc_stall_ep(u32 ep_num) in udc_stall_ep() argument 146 &inep_regs_p[ep_num].endp_cntl); in udc_stall_ep() 149 &outep_regs_p[ep_num].endp_cntl); in udc_stall_ep() 152 static void *get_fifo(int ep_num, int in) in get_fifo() argument 156 switch (ep_num) { in get_fifo() 593 int ep_num, ep_type; in udc_setup_ep() local 608 ep_num = ep_addr & USB_ENDPOINT_NUMBER_MASK; in udc_setup_ep() 688 &udc_regs_p->udc_endp_reg[ep_num]); in udc_setup_ep() 702 &udc_regs_p->udc_endp_reg[ep_num]); in udc_setup_ep() 707 &udc_regs_p->udc_endp_reg[ep_num]); in udc_setup_ep() [all …]
|
H A D | ci_udc.c | 156 static struct ept_queue_head *ci_get_qh(int ep_num, int dir_in) in ci_get_qh() argument 158 return &controller.epts[(ep_num * 2) + dir_in]; in ci_get_qh() 171 int index = (ep_num * 2) + dir_in; in ci_get_qtd() 182 static void ci_flush_qh(int ep_num) in ci_flush_qh() argument 184 struct ept_queue_head *head = ci_get_qh(ep_num, 0); in ci_flush_qh() 197 static void ci_invalidate_qh(int ep_num) in ci_invalidate_qh() argument 199 struct ept_queue_head *head = ci_get_qh(ep_num, 0); in ci_invalidate_qh() 212 static void ci_flush_qtd(int ep_num) in ci_flush_qtd() argument 214 struct ept_queue_item *item = ci_get_qtd(ep_num, 0); in ci_flush_qtd() 240 static void ci_invalidate_qtd(int ep_num) in ci_invalidate_qtd() argument [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | mv_u3d_core.c | 119 int direction, ep_num; in mv_u3d_process_ep_req() local 124 ep_num = index / 2; in mv_u3d_process_ep_req() 229 if (ep->ep_num == 0) in mv_u3d_queue_trb() 256 if (ep->ep_num == 0) in mv_u3d_queue_trb() 259 tmp = ep->ep_num * 2 in mv_u3d_queue_trb() 702 if (!ep->ep_num) { in mv_u3d_ep_fifo_flush() 786 if (!ep->ep_num in mv_u3d_ep_queue() 980 if (ep->ep_num == 0) in mv_u3d_ep_set_halt_wedge() 1318 ep->ep_num = 0; in mv_u3d_eps_init() 1349 ep->ep_num = i / 2; in mv_u3d_eps_init() [all …]
|
H A D | mv_udc_core.c | 637 if (ep->ep_num == 0) in mv_ep_fifo_flush() 640 bit_pos = 1 << ep->ep_num; in mv_ep_fifo_flush() 734 if (ep->ep_num == 0) in mv_ep_queue() 926 if (ep->ep_num == 0) { in mv_ep_set_halt_wedge() 1255 ep->ep_num = 0; in eps_init() 1284 ep->ep_num = i / 2; in eps_init() 1544 u8 ep_num, direction; in ch9getstatus() local 1562 u8 ep_num; in ch9clearfeature() local 1606 u8 ep_num; in ch9setfeature() local 1823 ep_num = i >> 1; in irq_process_tr_complete() [all …]
|
H A D | fsl_udc_core.c | 316 for (ep_num = 1; ep_num < max_no_of_ep; ep_num++) { in dr_controller_setup() 411 if (ep_num) in dr_ep_setup() 418 if (ep_num) in dr_ep_setup() 632 int ep_num; in fsl_ep_disable() local 641 ep_num = ep_index(ep); in fsl_ep_disable() 1079 int ep_num, ep_dir; in fsl_ep_fifo_flush() local 1094 if (ep_num == 0) in fsl_ep_fifo_flush() 1099 bits = 1 << ep_num; in fsl_ep_fifo_flush() 1682 ep_num = i >> 1; in dtd_complete_irq() 1704 status, ep_num); in dtd_complete_irq() [all …]
|
H A D | bcm63xx_udc.c | 156 int ep_num; member 212 int ep_num; member 239 unsigned int ep_num; member 503 bcm63xx_ep_dma_select(udc, ep_num); in bcm63xx_fifo_reset_ep() 534 if (cfg->ep_num < 0) in bcm63xx_ep_init() 560 int idx = cfg->ep_num; in bcm63xx_ep_setup() 765 iudma->ep_num = cfg->ep_num; in iudma_init_channel() 768 if (iudma->ep_num >= 0) { in iudma_init_channel() 769 bep = &udc->bep[iudma->ep_num]; in iudma_init_channel() 778 if (iudma->ep_num <= 0) in iudma_init_channel() [all …]
|
H A D | mv_u3d.h | 117 #define mv_u3d_ep_dir(ep) (((ep)->ep_num == 0) ? \ 301 unsigned ep_num:8; member
|
/openbmc/linux/sound/usb/ |
H A D | endpoint.c | 651 if (ep->ep_num == ep_num) in snd_usb_get_endpoint() 690 ep_num); in snd_usb_add_endpoint() 698 ep->ep_num = ep_num; in snd_usb_add_endpoint() 861 ep_num); in snd_usb_endpoint_open() 867 ep_num, ep->opened); in snd_usb_endpoint_open() 1005 alive, ep->ep_num); in wait_clear_urbs() 1104 ep->ep_num, ep->pipe); in data_ep_set_params() 1612 ep->ep_num, err); in snd_usb_endpoint_start() 1633 ep->ep_num); in snd_usb_endpoint_start() 1638 i, ep->ep_num); in snd_usb_endpoint_start() [all …]
|
H A D | implicit.c | 31 unsigned int ep_num; member 39 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_FIXED, .ep_num = (ep),\ 42 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_BOTH, .ep_num = (ep),\ 71 .ep_num = 0x84, .iface = 0 }, /* MOTU MicroBook II */ 307 return add_implicit_fb_sync_ep(chip, fmt, p->ep_num, 0, in audioformat_implicit_fb_quirk() 368 return add_implicit_fb_sync_ep(chip, fmt, p->ep_num, 0, in audioformat_capture_quirk() 437 find_matching_substream(struct snd_usb_audio *chip, int stream, int ep_num, in find_matching_substream() argument 445 if (as->fmt_type == fmt_type && subs->ep_num == ep_num) in find_matching_substream()
|
H A D | endpoint.h | 9 int ep_num); 11 int snd_usb_add_endpoint(struct snd_usb_audio *chip, int ep_num, int type);
|
H A D | card.h | 70 int ep_num; /* the referenced endpoint number */ member 177 unsigned int ep_num; /* the endpoint number */ member
|
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | dev.c | 138 int ep_num; in ast_vhub_ep_feature() local 140 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_feature() 142 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_ep_feature() 143 if (ep_num == 0) in ast_vhub_ep_feature() 145 if (ep_num >= d->max_epns || !d->epns[ep_num - 1]) in ast_vhub_ep_feature() 150 ep = d->epns[ep_num - 1]; in ast_vhub_ep_feature() 159 is_set ? "setting" : "clearing", ep_num); in ast_vhub_ep_feature() 187 DDBG(d, "GET_STATUS(ep%d)\n", ep_num); in ast_vhub_ep_status() 189 if (ep_num >= d->max_epns) in ast_vhub_ep_status() 191 if (ep_num != 0) { in ast_vhub_ep_status() [all …]
|
H A D | hub.c | 194 int ep_num; in ast_vhub_hub_ep_status() local 197 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_status() 198 EPDBG(ep, "GET_STATUS(ep%d)\n", ep_num); in ast_vhub_hub_ep_status() 201 if (ep_num == 1) { in ast_vhub_hub_ep_status() 204 } else if (ep_num != 0) in ast_vhub_hub_ep_status() 242 int ep_num; in ast_vhub_hub_ep_feature() local 245 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_feature() 247 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_hub_ep_feature() 249 if (ep_num > 1) in ast_vhub_hub_ep_feature() 253 if (ep_num == 0) in ast_vhub_hub_ep_feature()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | usb.h | 47 u32 ep_num; member 52 u32 ep_num) in _rtl_install_trx_info() argument 57 info->rate_driver_data[1] = (void *)(__kernel_size_t)ep_num; in _rtl_install_trx_info()
|
H A D | usb.c | 247 u32 ep_num = rtlusb->ep_map.ep_mapping[i]; in _rtl_usb_init_tx() local 249 if (!ep_num) { in _rtl_usb_init_tx() 862 struct sk_buff *skb, u32 ep_num) in _rtl_usb_tx_urb_setup() argument 871 _rtl_install_trx_info(rtlusb, skb, ep_num); in _rtl_usb_tx_urb_setup() 873 ep_num), skb->data, skb->len, _rtl_tx_complete, skb); in _rtl_usb_tx_urb_setup() 882 u32 ep_num; in _rtl_usb_transmit() local 891 ep_num = rtlusb->ep_map.ep_mapping[qnum]; in _rtl_usb_transmit() 892 _urb = _rtl_usb_tx_urb_setup(hw, skb, ep_num); in _rtl_usb_transmit()
|
/openbmc/linux/drivers/usb/gadget/udc/bdc/ |
H A D | bdc_ep.c | 456 if (ep->ep_num == 1) { in setup_bd_list_xfr() 588 if (ep->ep_num == 1) in bdc_ep_disable() 618 if (ep->ep_num == 1) in bdc_ep_enable() 665 req->epnum = ep->ep_num; in ep0_queue() 721 req->epnum = ep->ep_num; in ep_queue() 876 if (ep->ep_num == 1) in ep_set_halt() 1648 u8 ep_num; in bdc_sr_xsf() local 1673 if (ep_num == 1) in bdc_sr_xsf() 1680 if (ep_num != 1) { in bdc_sr_xsf() 1689 if (ep_num == 1) { in bdc_sr_xsf() [all …]
|
H A D | bdc_cmd.c | 112 cmd_sc = BDC_SUB_CMD_DRP_EP|BDC_CMD_EPN(ep->ep_num)|BDC_CMD_EPC; in bdc_dconfig_ep() 114 ep->ep_num, cmd_sc); in bdc_dconfig_ep() 205 cmd_sc |= BDC_CMD_EPC|BDC_CMD_EPN(ep->ep_num)|BDC_SUB_CMD_ADD_EP; in bdc_config_ep() 234 cmd_sc |= BDC_CMD_EPN(ep->ep_num)|BDC_CMD_BLA; in bdc_ep_bla()
|
/openbmc/linux/drivers/usb/c67x00/ |
H A D | c67x00.h | 167 #define CY_UDC_REQ_HEADER_ADDR(ep_num) (CY_UDC_REQ_HEADER_BASE + \ argument 168 ((ep_num) * CY_UDC_REQ_HEADER_SIZE)) 174 #define CY_UDC_REQ_BUFFER_ADDR(ep_num) (CY_UDC_REQ_BUFFER_BASE + \ argument 175 ((ep_num) * CY_UDC_REQ_BUFFER_SIZE))
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | cdnsp-debug.h | 184 unsigned int ep_num; in cdnsp_decode_trb() local 188 ep_num = DIV_ROUND_UP(ep_id, 2); in cdnsp_decode_trb() 208 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb() 335 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb() 344 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb() 354 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb() 372 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb()
|
/openbmc/linux/drivers/net/wireless/rsi/ |
H A D | rsi_91x_usb.c | 30 static int rsi_rx_urb_submit(struct rsi_hw *adapter, u8 ep_num, gfp_t flags); 298 if (rsi_rx_urb_submit(dev->priv, rx_cb->ep_num, GFP_ATOMIC)) in rsi_rx_done_handler() 307 static void rsi_rx_urb_kill(struct rsi_hw *adapter, u8 ep_num) in rsi_rx_urb_kill() argument 310 struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; in rsi_rx_urb_kill() 324 static int rsi_rx_urb_submit(struct rsi_hw *adapter, u8 ep_num, gfp_t mem_flags) in rsi_rx_urb_submit() argument 327 struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; in rsi_rx_urb_submit() 347 dev->bulkin_endpoint_addr[ep_num - 1]), in rsi_rx_urb_submit() 589 rx_cb->ep_num = idx + 1; in rsi_usb_init_rx()
|
H A D | rsi_usb.h | 53 u8 ep_num; member
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-trace.h | 75 unsigned int ep_num), 76 TP_ARGS(xhci, ctx, ep_num), 85 ((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1)) 93 __entry->ctx_ep_num = ep_num; 96 ((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1)); 106 unsigned int ep_num), 107 TP_ARGS(xhci, ctx, ep_num)
|