Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 25 of 133) sorted by relevance

123456

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Datmel_usba_udc.c29 static void next_fifo_transaction(struct usba_ep *ep, struct usba_request *req) in next_fifo_transaction() argument
35 if (transaction_len > ep->ep.maxpacket) { in next_fifo_transaction()
36 transaction_len = ep->ep.maxpacket; in next_fifo_transaction()
38 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) { in next_fifo_transaction()
43 ep->ep.name, req, transaction_len, in next_fifo_transaction()
46 memcpy(ep->fifo, req->req.buf + req->req.actual, transaction_len); in next_fifo_transaction()
47 usba_ep_writel(ep, SET_STA, USBA_TX_PK_RDY); in next_fifo_transaction()
51 static void submit_request(struct usba_ep *ep, struct usba_request *req) in submit_request() argument
54 ep->ep.name, req, req->req.length, req->using_dma); in submit_request()
59 next_fifo_transaction(ep, req); in submit_request()
[all …]
H A Depautoconf.c51 struct usb_ep *ep, in ep_matches() argument
60 if (NULL != ep->driver_data) in ep_matches()
69 if ('e' != ep->name[0]) in ep_matches()
75 if ('-' != ep->name[2]) { in ep_matches()
76 tmp = strrchr(ep->name, '-'); in ep_matches()
101 tmp = ep->name + strlen(ep->name); in ep_matches()
131 if (ep->maxpacket < max) in ep_matches()
149 if (isdigit(ep->name[2])) { in ep_matches()
150 u8 num = simple_strtoul(&ep->name[2], NULL, 10); in ep_matches()
166 int size = ep->maxpacket; in ep_matches()
[all …]
H A Dat91_udc.c71 static void done(struct at91_ep *ep, struct at91_request *req, int status) in done() argument
73 unsigned stopped = ep->stopped; in done()
74 struct at91_udc *udc = ep->udc; in done()
82 VDBG("%s done %p, status %d\n", ep->ep.name, req, status); in done()
84 ep->stopped = 1; in done()
86 req->req.complete(&ep->ep, &req->req); in done()
88 ep->stopped = stopped; in done()
91 if (list_empty(&ep->queue) && ep->int_mask != (1 << 0)) in done()
92 at91_udp_write(udc, AT91_UDP_IDR, ep->int_mask); in done()
122 static int read_fifo (struct at91_ep *ep, struct at91_request *req) in read_fifo() argument
[all …]
H A Dpxa25x_udc.c185 if (dev->ep[i].desc == NULL) in dump_state()
187 debug("udccs%d = %02x\n", i, *dev->ep->reg_udccs); in dump_state()
206 static void pxa25x_ep_fifo_flush(struct usb_ep *ep);
297 struct pxa25x_ep *ep; in pxa25x_ep_enable() local
300 ep = container_of(_ep, struct pxa25x_ep, ep); in pxa25x_ep_enable()
301 if (!_ep || !desc || ep->desc || _ep->name == ep0name in pxa25x_ep_enable()
303 || ep->bEndpointAddress != desc->bEndpointAddress in pxa25x_ep_enable()
304 || ep->fifo_size < in pxa25x_ep_enable()
311 if (ep->bmAttributes != desc->bmAttributes in pxa25x_ep_enable()
312 && ep->bmAttributes != USB_ENDPOINT_XFER_BULK in pxa25x_ep_enable()
[all …]
H A Ddwc2_udc_otg_xfer_dma.c93 static int setdma_rx(struct dwc2_ep *ep, struct dwc2_request *req) in setdma_rx() argument
97 u32 ep_num = ep_index(ep); in setdma_rx()
101 ep_num ? DOEPT_SIZ_XFER_SIZE_MAX_EP : ep->ep.maxpacket); in setdma_rx()
103 ep->len = length; in setdma_rx()
104 ep->dma_buf = buf; in setdma_rx()
109 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_rx()
113 invalidate_dcache_range((unsigned long) ep->dma_buf, in setdma_rx()
114 (unsigned long) ep->dma_buf + in setdma_rx()
115 ROUND(ep->len, CONFIG_SYS_CACHELINE_SIZE)); in setdma_rx()
117 writel((unsigned long) ep->dma_buf, &reg->out_endp[ep_num].doepdma); in setdma_rx()
[all …]
H A Dfotg210.c32 struct usb_ep ep; member
46 struct fotg210_ep *ep; member
57 struct fotg210_ep ep[1 + CFG_NUM_ENDPOINTS]; member
79 int ep = ep_addr & USB_ENDPOINT_NUMBER_MASK; in ep_reset() local
84 setbits_le32(&regs->iep[ep - 1], IEP_RESET); in ep_reset()
86 clrbits_le32(&regs->iep[ep - 1], IEP_RESET); in ep_reset()
88 clrbits_le32(&regs->iep[ep - 1], IEP_STALL); in ep_reset()
91 setbits_le32(&regs->oep[ep - 1], OEP_RESET); in ep_reset()
93 clrbits_le32(&regs->oep[ep - 1], OEP_RESET); in ep_reset()
95 clrbits_le32(&regs->oep[ep - 1], OEP_STALL); in ep_reset()
[all …]
H A Ddwc2_udc_otg.c92 static int dwc2_ep_enable(struct usb_ep *ep,
94 static int dwc2_ep_disable(struct usb_ep *ep);
95 static struct usb_request *dwc2_alloc_request(struct usb_ep *ep,
97 static void dwc2_free_request(struct usb_ep *ep, struct usb_request *);
99 static int dwc2_queue(struct usb_ep *ep, struct usb_request *, gfp_t gfp_flags);
100 static int dwc2_dequeue(struct usb_ep *ep, struct usb_request *);
101 static int dwc2_fifo_status(struct usb_ep *ep);
102 static void dwc2_fifo_flush(struct usb_ep *ep);
104 static void dwc2_ep0_kick(struct dwc2_udc *dev, struct dwc2_ep *ep);
107 static int write_fifo_ep0(struct dwc2_ep *ep, struct dwc2_request *req);
[all …]
H A Dci_udc.c85 static int ci_ep_enable(struct usb_ep *ep,
87 static int ci_ep_disable(struct usb_ep *ep);
88 static int ci_ep_queue(struct usb_ep *ep,
90 static int ci_ep_dequeue(struct usb_ep *ep, struct usb_request *req);
92 ci_ep_alloc_request(struct usb_ep *ep, unsigned int gfp_flags);
93 static void ci_ep_free_request(struct usb_ep *ep, struct usb_request *_req);
260 ci_ep_alloc_request(struct usb_ep *ep, unsigned int gfp_flags) in ci_ep_alloc_request() argument
262 struct ci_ep *ci_ep = container_of(ep, struct ci_ep, ep); in ci_ep_alloc_request()
284 static void ci_ep_free_request(struct usb_ep *ep, struct usb_request *req) in ci_ep_free_request() argument
286 struct ci_ep *ci_ep = container_of(ep, struct ci_ep, ep); in ci_ep_free_request()
[all …]
H A Datmel_usba_udc.h194 #define usba_ep_readl(ep, reg) \ argument
195 __raw_readl((ep)->ep_regs + USBA_EPT_##reg)
196 #define usba_ep_writel(ep, reg, value) \ argument
197 __raw_writel((value), (ep)->ep_regs + USBA_EPT_##reg)
198 #define usba_dma_readl(ep, reg) \ argument
199 __raw_readl((ep)->dma_regs + USBA_DMA_##reg)
200 #define usba_dma_writel(ep, reg, value) \ argument
201 __raw_writel((value), (ep)->dma_regs + USBA_DMA_##reg)
256 struct usb_ep ep; member
303 static inline struct usba_ep *to_usba_ep(struct usb_ep *ep) in to_usba_ep() argument
[all …]
H A Df_thor.c517 static struct usb_request *alloc_ep_req(struct usb_ep *ep, unsigned length) in alloc_ep_req() argument
521 req = usb_ep_alloc_request(ep, 0); in alloc_ep_req()
528 usb_ep_free_request(ep, req); in alloc_ep_req()
595 static void thor_rx_tx_complete(struct usb_ep *ep, struct usb_request *req) in thor_rx_tx_complete() argument
600 debug("%s: ep_ptr:%p, req_ptr:%p\n", __func__, ep, req); in thor_rx_tx_complete()
603 if (ep == dev->out_ep) in thor_rx_tx_complete()
620 debug("%s complete --> %d, %d/%d\n", ep->name, in thor_rx_tx_complete()
624 static void thor_setup_complete(struct usb_ep *ep, struct usb_request *req) in thor_setup_complete() argument
740 static void free_ep_req(struct usb_ep *ep, struct usb_request *req) in free_ep_req() argument
744 usb_ep_free_request(ep, req); in free_ep_req()
[all …]
/rk3399_rockchip-uboot/board/ti/common/
H A Dboard_detect.c84 uchar *ep, int epsize) in ti_i2c_eeprom_read() argument
96 return i2c_read(dev_addr, offset, alen, ep, epsize); in ti_i2c_eeprom_read()
124 u32 header, u32 size, uint8_t *ep) in ti_i2c_eeprom_get() argument
169 rc = i2c_read(dev_addr, 0x0, byte, ep, size); in ti_i2c_eeprom_get()
178 struct ti_common_eeprom *ep; in ti_i2c_eeprom_am_set() local
183 ep = TI_EEPROM_DATA; in ti_i2c_eeprom_am_set()
184 if (ep->header == TI_EEPROM_HEADER_MAGIC) in ti_i2c_eeprom_am_set()
188 memset(ep, 0, sizeof(*ep)); in ti_i2c_eeprom_am_set()
189 strncpy(ep->name, name, TI_EEPROM_HDR_NAME_LEN); in ti_i2c_eeprom_am_set()
190 strncpy(ep->version, rev, TI_EEPROM_HDR_REV_LEN); in ti_i2c_eeprom_am_set()
[all …]
/rk3399_rockchip-uboot/include/linux/usb/
H A Dgadget.h95 void (*complete)(struct usb_ep *ep,
114 int (*enable) (struct usb_ep *ep,
116 int (*disable) (struct usb_ep *ep);
118 struct usb_request *(*alloc_request) (struct usb_ep *ep,
120 void (*free_request) (struct usb_ep *ep, struct usb_request *req);
122 int (*queue) (struct usb_ep *ep, struct usb_request *req,
124 int (*dequeue) (struct usb_ep *ep, struct usb_request *req);
126 int (*set_halt) (struct usb_ep *ep, int value);
127 int (*set_wedge)(struct usb_ep *ep);
128 int (*fifo_status) (struct usb_ep *ep);
[all …]
/rk3399_rockchip-uboot/drivers/usb/musb/
H A Dmusb_udc.c60 #define GET_ENDPOINT(dev,ep) \ argument
61 (((struct usb_device_instance *)(dev))->bus->endpoint_array + ep)
119 w = readw(&musbr->ep[0].ep0.csr0); in musb_db_regs()
125 b = readb(&musbr->ep[0].ep0.configdata); in musb_db_regs()
134 w = readw(&musbr->ep[1].epN.rxmaxp); in musb_db_regs()
137 w = readw(&musbr->ep[1].epN.rxcsr); in musb_db_regs()
140 w = readw(&musbr->ep[1].epN.txmaxp); in musb_db_regs()
143 w = readw(&musbr->ep[1].epN.txcsr); in musb_db_regs()
212 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_stall()
214 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0_stall()
[all …]
H A Dmusb_hcd.c38 static void write_toggle(struct usb_device *dev, u8 ep, u8 dir_out) in write_toggle() argument
40 u16 toggle = usb_gettoggle(dev, ep, dir_out); in write_toggle()
80 static u8 check_stall(u8 ep, u8 dir_out) in check_stall() argument
85 if (!ep) { in check_stall()
179 static int wait_until_txep_ready(struct usb_device *dev, u8 ep) in wait_until_txep_ready() argument
185 if (check_stall(ep, 1)) { in wait_until_txep_ready()
211 static int wait_until_rxep_ready(struct usb_device *dev, u8 ep) in wait_until_rxep_ready() argument
217 if (check_stall(ep, 0)) { in wait_until_rxep_ready()
402 static void config_hub_port(struct usb_device *dev, u8 ep) in config_hub_port() argument
422 writeb(hub, &musbr->tar[ep].txhubaddr); in config_hub_port()
[all …]
/rk3399_rockchip-uboot/board/gdsys/common/
H A Dcmd_ioloop.c63 FPGA_SET_REG(fpga, ep.rx_tx_status, status); in io_check_status()
68 FPGA_SET_REG(fpga, ep.rx_tx_status, status); in io_check_status()
100 FPGA_SET_REG(fpga, ep.transmit_data, *p++); in io_send()
103 FPGA_SET_REG(fpga, ep.transmit_data, k); in io_send()
105 FPGA_SET_REG(fpga, ep.rx_tx_control, in io_send()
116 FPGA_GET_REG(fpga, ep.rx_tx_status, &rx_tx_status); in io_receive()
124 FPGA_GET_REG(fpga, ep.receive_data, &rx); in io_receive()
126 FPGA_GET_REG(fpga, ep.rx_tx_status, &rx_tx_status); in io_receive()
140 FPGA_GET_REG(fpga, ep.rx_tx_status, &rx_tx_status); in io_reflect()
143 FPGA_GET_REG(fpga, ep.receive_data, &buffer[k++]); in io_reflect()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dbooti.c41 ih = (struct Image_header *)map_sysmem(images->ep, 0); in booti_setup()
69 dst = images->ep - text_offset; in booti_setup()
77 if (images->ep != dst) { in booti_setup()
80 debug("Moving Image from 0x%lx to 0x%llx\n", images->ep, dst); in booti_setup()
82 src = (void *)images->ep; in booti_setup()
83 images->ep = dst; in booti_setup()
104 images->ep = load_addr; in booti_start()
108 images->ep = simple_strtoul(argv[0], NULL, 16); in booti_start()
110 images->ep); in booti_start()
117 ih = (struct Image_header *)map_sysmem(images->ep, 0); in booti_start()
[all …]
H A Dhost.c45 char *ep; in do_host_bind() local
48 int dev = simple_strtoul(dev_str, &ep, 16); in do_host_bind()
49 if (*ep) { in do_host_bind()
64 char *ep; in do_host_info() local
66 int dev = simple_strtoul(dev_str, &ep, 16); in do_host_info()
67 if (*ep) { in do_host_info()
107 char *ep; in do_host_dev() local
123 dev = simple_strtoul(argv[1], &ep, 16); in do_host_dev()
124 if (*ep) { in do_host_dev()
H A Dread.c17 char *ep; in do_read() local
33 dev = (int)simple_strtoul(argv[2], &ep, 16); in do_read()
34 if (*ep) { in do_read()
35 if (*ep != ':') { in do_read()
39 part = (int)simple_strtoul(++ep, NULL, 16); in do_read()
H A Dbootz.c36 images->ep = load_addr; in bootz_start()
40 images->ep = simple_strtoul(argv[0], NULL, 16); in bootz_start()
42 images->ep); in bootz_start()
45 ret = bootz_setup(images->ep, &zi_start, &zi_end); in bootz_start()
49 lmb_reserve(&images->lmb, images->ep, zi_end - zi_start); in bootz_start()
/rk3399_rockchip-uboot/drivers/usb/musb-new/
H A Dmusb_gadget.h31 struct musb_ep *ep; member
44 musb_alloc_request(struct usb_ep *ep, gfp_t gfp_flags);
45 extern void musb_free_request(struct usb_ep *ep, struct usb_request *req);
77 static inline struct musb_ep *to_musb_ep(struct usb_ep *ep) in to_musb_ep() argument
79 return ep ? container_of(ep, struct musb_ep, end_point) : NULL; in to_musb_ep()
82 static inline struct musb_request *next_request(struct musb_ep *ep) in next_request() argument
84 struct list_head *queue = &ep->req_list; in next_request()
H A Dmusb_gadget.c173 struct musb_ep *ep, in musb_g_giveback() argument
176 __releases(ep->musb->lock) in musb_g_giveback()
177 __acquires(ep->musb->lock) in musb_g_giveback()
181 int busy = ep->busy; in musb_g_giveback()
190 ep->busy = 1; in musb_g_giveback()
195 ep->end_point.name, request, in musb_g_giveback()
199 ep->end_point.name, request, in musb_g_giveback()
202 req->request.complete(&req->ep->end_point, &req->request); in musb_g_giveback()
204 ep->busy = busy; in musb_g_giveback()
213 static void nuke(struct musb_ep *ep, const int status) in nuke() argument
[all …]
H A Dmusb_host.c90 static void musb_h_tx_flush_fifo(struct musb_hw_ep *ep) in musb_h_tx_flush_fifo() argument
92 struct musb *musb = ep->musb; in musb_h_tx_flush_fifo()
93 void __iomem *epio = ep->regs; in musb_h_tx_flush_fifo()
108 ep->epnum, csr)) in musb_h_tx_flush_fifo()
114 static void musb_h_ep0_flush_fifo(struct musb_hw_ep *ep) in musb_h_ep0_flush_fifo() argument
116 void __iomem *epio = ep->regs; in musb_h_ep0_flush_fifo()
131 ep->epnum, csr); in musb_h_ep0_flush_fifo()
141 static inline void musb_h_tx_start(struct musb_hw_ep *ep) in musb_h_tx_start() argument
146 if (ep->epnum) { in musb_h_tx_start()
147 txcsr = musb_readw(ep->regs, MUSB_TXCSR); in musb_h_tx_start()
[all …]
H A Dmusb_gadget_ep0.c88 struct musb_ep *ep; in service_tx_status_request() local
101 ep = &musb->endpoints[epnum].ep_in; in service_tx_status_request()
103 ep = &musb->endpoints[epnum].ep_out; in service_tx_status_request()
107 if (epnum >= MUSB_C_NUM_EPS || !ep->desc) { in service_tx_status_request()
242 struct musb_hw_ep *ep; in service_zero_data_request() local
252 ep = musb->endpoints + epnum; in service_zero_data_request()
253 regs = ep->regs; in service_zero_data_request()
256 musb_ep = &ep->ep_in; in service_zero_data_request()
258 musb_ep = &ep->ep_out; in service_zero_data_request()
407 struct musb_hw_ep *ep; in service_zero_data_request() local
[all …]
/rk3399_rockchip-uboot/include/usb/
H A Dfotg210.h291 #define EPMAP14_SET_IN(ep, fifo) \ argument
292 ((fifo) & 3) << (((ep) - 1) << 3 + 0)
293 #define EPMAP14_SET_OUT(ep, fifo) \ argument
294 ((fifo) & 3) << (((ep) - 1) << 3 + 4)
295 #define EPMAP14_SET(ep, in, out) \ argument
297 EPMAP14_SET_IN(ep, in); \
298 EPMAP14_SET_OUT(ep, out); \
304 #define EPMAP58_SET_IN(ep, fifo) \ argument
305 ((fifo) & 3) << (((ep) - 5) << 3 + 0)
306 #define EPMAP58_SET_OUT(ep, fifo) \ argument
[all …]
/rk3399_rockchip-uboot/tools/
H A Dmkenvimage.c86 int fp, ep; in main() local
220 for (fp = 0, ep = 0 ; fp < filesize && ep < envsize - 1; fp++) { in main()
234 ep--; in main()
235 envptr[ep++] = '\n'; in main()
238 envptr[ep++] = '\0'; in main()
245 envptr[ep++] = filebuf[fp]; in main()
271 if (envptr[ep-1] != '\0') { in main()
272 envptr[ep++] = '\0'; in main()
277 if (ep >= envsize) { in main()
281 envptr[ep] = '\0'; in main()
[all …]

123456