Home
last modified time | relevance | path

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

12345678

/openbmc/u-boot/drivers/usb/gadget/
H A Datmel_usba_udc.c28 static void next_fifo_transaction(struct usba_ep *ep, struct usba_request *req) in next_fifo_transaction() argument
34 if (transaction_len > ep->ep.maxpacket) { in next_fifo_transaction()
35 transaction_len = ep->ep.maxpacket; in next_fifo_transaction()
37 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) { in next_fifo_transaction()
42 ep->ep.name, req, transaction_len, in next_fifo_transaction()
45 memcpy(ep->fifo, req->req.buf + req->req.actual, transaction_len); in next_fifo_transaction()
46 usba_ep_writel(ep, SET_STA, USBA_TX_PK_RDY); in next_fifo_transaction()
50 static void submit_request(struct usba_ep *ep, struct usba_request *req) in submit_request() argument
53 ep->ep.name, req, req->req.length, req->using_dma); in submit_request()
58 next_fifo_transaction(ep, req); in submit_request()
[all …]
H A Depautoconf.c48 struct usb_ep *ep, in ep_matches() argument
57 if (NULL != ep->driver_data) in ep_matches()
66 if ('e' != ep->name[0]) in ep_matches()
72 if ('-' != ep->name[2]) { in ep_matches()
73 tmp = strrchr(ep->name, '-'); in ep_matches()
98 tmp = ep->name + strlen(ep->name); in ep_matches()
128 if (ep->maxpacket < max) in ep_matches()
146 if (isdigit(ep->name[2])) { in ep_matches()
147 u8 num = simple_strtoul(&ep->name[2], NULL, 10); in ep_matches()
163 int size = ep->maxpacket; in ep_matches()
[all …]
H A Daspeed_udc.c159 static void aspeed_udc_done(struct aspeed_udc_ep *ep, in aspeed_udc_done() argument
163 ep->ep.name, req->req.actual, req->req.length, req->req.buf, in aspeed_udc_done()
164 ep->ep_dir ? "IN" : "OUT"); in aspeed_udc_done()
174 EP_DBG("%s done %p, status %d\n", ep->ep.name, req, status); in aspeed_udc_done()
176 usb_gadget_giveback_request(&ep->ep, &req->req); in aspeed_udc_done()
213 status = udc->ep[epnum].stopped; in aspeed_udc_getstatus()
230 static void aspeed_udc_nuke(struct aspeed_udc_ep *ep, int status) in aspeed_udc_nuke() argument
232 if (!&ep->queue) in aspeed_udc_nuke()
235 while (!list_empty(&ep->queue)) { in aspeed_udc_nuke()
238 req = list_entry(ep->queue.next, struct aspeed_udc_request, in aspeed_udc_nuke()
[all …]
H A Ddwc2_udc_otg.c83 static int dwc2_ep_enable(struct usb_ep *ep,
85 static int dwc2_ep_disable(struct usb_ep *ep);
86 static struct usb_request *dwc2_alloc_request(struct usb_ep *ep,
88 static void dwc2_free_request(struct usb_ep *ep, struct usb_request *);
90 static int dwc2_queue(struct usb_ep *ep, struct usb_request *, gfp_t gfp_flags);
91 static int dwc2_dequeue(struct usb_ep *ep, struct usb_request *);
92 static int dwc2_fifo_status(struct usb_ep *ep);
93 static void dwc2_fifo_flush(struct usb_ep *ep);
95 static void dwc2_ep0_kick(struct dwc2_udc *dev, struct dwc2_ep *ep);
98 static int write_fifo_ep0(struct dwc2_ep *ep, struct dwc2_request *req);
[all …]
H A Dat91_udc.c70 static void done(struct at91_ep *ep, struct at91_request *req, int status) in done() argument
72 unsigned stopped = ep->stopped; in done()
73 struct at91_udc *udc = ep->udc; in done()
81 VDBG("%s done %p, status %d\n", ep->ep.name, req, status); in done()
83 ep->stopped = 1; in done()
85 req->req.complete(&ep->ep, &req->req); in done()
87 ep->stopped = stopped; in done()
90 if (list_empty(&ep->queue) && ep->int_mask != (1 << 0)) in done()
91 at91_udp_write(udc, AT91_UDP_IDR, ep->int_mask); in done()
121 static int read_fifo (struct at91_ep *ep, struct at91_request *req) in read_fifo() argument
[all …]
H A Dpxa25x_udc.c184 if (dev->ep[i].desc == NULL) in dump_state()
186 debug("udccs%d = %02x\n", i, *dev->ep->reg_udccs); in dump_state()
205 static void pxa25x_ep_fifo_flush(struct usb_ep *ep);
296 struct pxa25x_ep *ep; in pxa25x_ep_enable() local
299 ep = container_of(_ep, struct pxa25x_ep, ep); in pxa25x_ep_enable()
300 if (!_ep || !desc || ep->desc || _ep->name == ep0name in pxa25x_ep_enable()
302 || ep->bEndpointAddress != desc->bEndpointAddress in pxa25x_ep_enable()
303 || ep->fifo_size < in pxa25x_ep_enable()
310 if (ep->bmAttributes != desc->bmAttributes in pxa25x_ep_enable()
311 && ep->bmAttributes != USB_ENDPOINT_XFER_BULK in pxa25x_ep_enable()
[all …]
H A Ddwc2_udc_otg_xfer_dma.c92 static int setdma_rx(struct dwc2_ep *ep, struct dwc2_request *req) in setdma_rx() argument
96 u32 ep_num = ep_index(ep); in setdma_rx()
100 ep_num ? DMA_BUFFER_SIZE : ep->ep.maxpacket); in setdma_rx()
102 ep->len = length; in setdma_rx()
103 ep->dma_buf = buf; in setdma_rx()
108 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_rx()
112 invalidate_dcache_range((unsigned long) ep->dma_buf, in setdma_rx()
113 (unsigned long) ep->dma_buf + in setdma_rx()
114 ROUND(ep->len, CONFIG_SYS_CACHELINE_SIZE)); in setdma_rx()
116 writel((unsigned long) ep->dma_buf, &reg->out_endp[ep_num].doepdma); in setdma_rx()
[all …]
H A Dfotg210.c31 struct usb_ep ep; member
45 struct fotg210_ep *ep; member
56 struct fotg210_ep ep[1 + CFG_NUM_ENDPOINTS]; member
78 int ep = ep_addr & USB_ENDPOINT_NUMBER_MASK; in ep_reset() local
83 setbits_le32(&regs->iep[ep - 1], IEP_RESET); in ep_reset()
85 clrbits_le32(&regs->iep[ep - 1], IEP_RESET); in ep_reset()
87 clrbits_le32(&regs->iep[ep - 1], IEP_STALL); in ep_reset()
90 setbits_le32(&regs->oep[ep - 1], OEP_RESET); in ep_reset()
92 clrbits_le32(&regs->oep[ep - 1], OEP_RESET); in ep_reset()
94 clrbits_le32(&regs->oep[ep - 1], OEP_STALL); in ep_reset()
[all …]
H A Dci_udc.c84 static int ci_ep_enable(struct usb_ep *ep,
86 static int ci_ep_disable(struct usb_ep *ep);
87 static int ci_ep_queue(struct usb_ep *ep,
89 static int ci_ep_dequeue(struct usb_ep *ep, struct usb_request *req);
91 ci_ep_alloc_request(struct usb_ep *ep, unsigned int gfp_flags);
92 static void ci_ep_free_request(struct usb_ep *ep, struct usb_request *_req);
263 ci_ep_alloc_request(struct usb_ep *ep, unsigned int gfp_flags) in ci_ep_alloc_request() argument
265 struct ci_ep *ci_ep = container_of(ep, struct ci_ep, ep); in ci_ep_alloc_request()
287 static void ci_ep_free_request(struct usb_ep *ep, struct usb_request *req) in ci_ep_free_request() argument
289 struct ci_ep *ci_ep = container_of(ep, struct ci_ep, ep); in ci_ep_free_request()
[all …]
H A Datmel_usba_udc.h193 #define usba_ep_readl(ep, reg) \ argument
194 __raw_readl((ep)->ep_regs + USBA_EPT_##reg)
195 #define usba_ep_writel(ep, reg, value) \ argument
196 __raw_writel((value), (ep)->ep_regs + USBA_EPT_##reg)
197 #define usba_dma_readl(ep, reg) \ argument
198 __raw_readl((ep)->dma_regs + USBA_DMA_##reg)
199 #define usba_dma_writel(ep, reg, value) \ argument
200 __raw_writel((value), (ep)->dma_regs + USBA_DMA_##reg)
255 struct usb_ep ep; member
302 static inline struct usba_ep *to_usba_ep(struct usb_ep *ep) in to_usba_ep() argument
[all …]
H A Df_thor.c516 static struct usb_request *alloc_ep_req(struct usb_ep *ep, unsigned length) in alloc_ep_req() argument
520 req = usb_ep_alloc_request(ep, 0); in alloc_ep_req()
527 usb_ep_free_request(ep, req); in alloc_ep_req()
594 static void thor_rx_tx_complete(struct usb_ep *ep, struct usb_request *req) in thor_rx_tx_complete() argument
599 debug("%s: ep_ptr:%p, req_ptr:%p\n", __func__, ep, req); in thor_rx_tx_complete()
602 if (ep == dev->out_ep) in thor_rx_tx_complete()
619 debug("%s complete --> %d, %d/%d\n", ep->name, in thor_rx_tx_complete()
623 static void thor_setup_complete(struct usb_ep *ep, struct usb_request *req) in thor_setup_complete() argument
739 static void free_ep_req(struct usb_ep *ep, struct usb_request *req) in free_ep_req() argument
743 usb_ep_free_request(ep, req); in free_ep_req()
[all …]
/openbmc/u-boot/board/ti/common/
H A Dboard_detect.c48 uchar *ep, int epsize) in ti_i2c_eeprom_read() argument
50 return i2c_read(dev_addr, offset, 2, ep, epsize); in ti_i2c_eeprom_read()
79 u32 header, u32 size, uint8_t *ep) in ti_i2c_eeprom_get() argument
126 rc = dm_i2c_read(dev, 0, ep, size); in ti_i2c_eeprom_get()
164 rc = i2c_read(dev_addr, 0x0, byte, ep, size); in ti_i2c_eeprom_get()
173 struct ti_common_eeprom *ep; in ti_i2c_eeprom_am_set() local
178 ep = TI_EEPROM_DATA; in ti_i2c_eeprom_am_set()
179 if (ep->header == TI_EEPROM_HEADER_MAGIC) in ti_i2c_eeprom_am_set()
183 memset(ep, 0, sizeof(*ep)); in ti_i2c_eeprom_am_set()
184 strncpy(ep->name, name, TI_EEPROM_HDR_NAME_LEN); in ti_i2c_eeprom_am_set()
[all …]
/openbmc/u-boot/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 …]
/openbmc/qemu/hw/usb/
H A Dcore.c95 void usb_wakeup(USBEndpoint *ep, unsigned int stream) in usb_wakeup() argument
97 USBDevice *dev = ep->dev; in usb_wakeup()
112 bus->ops->wakeup_endpoint(bus, ep, stream); in usb_wakeup()
185 assert(p->ep->nr == 0); in do_token_in()
231 assert(p->ep->nr == 0); in do_token_out()
371 USBDevice *dev = p->ep->dev; in usb_process_one()
382 if (p->ep->nr == 0) { in usb_process_one()
413 QTAILQ_INSERT_TAIL(&p->ep->queue, p, queue); in usb_queue_one()
426 assert(dev == p->ep->dev); in usb_handle_packet()
429 assert(p->ep != NULL); in usb_handle_packet()
[all …]
H A Dredirect.c380 int i = USBEP2I(p->ep); in usbredir_cancel_packet()
407 struct USBEndpoint *ep) in usbredir_fill_already_in_flight_from_ep() argument
412 if (dev->endpoint[USBEP2I(ep)].bulk_receiving_started) { in usbredir_fill_already_in_flight_from_ep()
416 QTAILQ_FOREACH(p, &ep->queue, queue) { in usbredir_fill_already_in_flight_from_ep()
429 int ep; in usbredir_fill_already_in_flight() local
434 for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) { in usbredir_fill_already_in_flight()
435 usbredir_fill_already_in_flight_from_ep(dev, &udev->ep_in[ep]); in usbredir_fill_already_in_flight()
436 usbredir_fill_already_in_flight_from_ep(dev, &udev->ep_out[ep]); in usbredir_fill_already_in_flight()
446 uint8_t ep, uint64_t id) in usbredir_find_packet_by_id() argument
455 (ep & USB_DIR_IN) ? USB_TOKEN_IN : USB_TOKEN_OUT, in usbredir_find_packet_by_id()
[all …]
H A Dcombined-packet.c52 USBEndpoint *ep = p->ep; in usb_combined_input_packet_complete() local
99 usb_ep_combine_input_packets(ep); in usb_combined_input_packet_complete()
122 void usb_ep_combine_input_packets(USBEndpoint *ep) in usb_ep_combine_input_packets() argument
125 USBPort *port = ep->dev->port; in usb_ep_combine_input_packets()
128 assert(ep->pipeline); in usb_ep_combine_input_packets()
129 assert(ep->pid == USB_TOKEN_IN); in usb_ep_combine_input_packets()
131 QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { in usb_ep_combine_input_packets()
133 if (ep->halted) { in usb_ep_combine_input_packets()
171 if ((p->iov.size % ep->max_packet_size) != 0 || !p->short_not_ok || in usb_ep_combine_input_packets()
176 totalsize > 1 * MiB - ep->max_packet_size) { in usb_ep_combine_input_packets()
[all …]
H A Dcanokey.c21 #define CANOKEY_EP_IN(ep) ((ep) & 0x7F) argument
67 int canokey_emu_stall_ep(void *base, uint8_t ep) in canokey_emu_stall_ep() argument
69 trace_canokey_emu_stall_ep(ep); in canokey_emu_stall_ep()
71 uint8_t ep_in = CANOKEY_EP_IN(ep); /* INTR IN has ep 129 */ in canokey_emu_stall_ep()
86 void *base, uint8_t ep, uint8_t *pbuf, uint16_t size) in canokey_emu_prepare_receive() argument
88 trace_canokey_emu_prepare_receive(ep, size); in canokey_emu_prepare_receive()
90 key->ep_out[ep] = pbuf; in canokey_emu_prepare_receive()
91 key->ep_out_size[ep] = size; in canokey_emu_prepare_receive()
96 void *base, uint8_t ep, const uint8_t *pbuf, uint16_t size) in canokey_emu_transmit() argument
98 trace_canokey_emu_transmit(ep, size); in canokey_emu_transmit()
[all …]
/openbmc/dbus-sensors/src/mctp/
H A DMCTPReactor.cpp27 void MCTPReactor::untrackEndpoint(const std::shared_ptr<MCTPEndpoint>& ep) in untrackEndpoint() argument
29 server.disassociate(MCTPDEndpoint::path(ep)); in untrackEndpoint()
32 void MCTPReactor::trackEndpoint(const std::shared_ptr<MCTPEndpoint>& ep) in trackEndpoint() argument
35 ep->describe()); in trackEndpoint()
37 ep->subscribe( in trackEndpoint()
39 [](const std::shared_ptr<MCTPEndpoint>& ep) { in trackEndpoint() argument
41 "MCTP_ENDPOINT", ep->describe()); in trackEndpoint()
44 [](const std::shared_ptr<MCTPEndpoint>& ep) { in trackEndpoint() argument
46 "MCTP_ENDPOINT", ep->describe()); in trackEndpoint()
49 [weak{weak_from_this()}](const std::shared_ptr<MCTPEndpoint>& ep) { in trackEndpoint() argument
97 __anonb91ef9180402(const std::error_code& ec, const std::shared_ptr<MCTPEndpoint>& ep) setupEndpoint() argument
[all...]
/openbmc/u-boot/drivers/usb/musb/
H A Dmusb_udc.c57 #define GET_ENDPOINT(dev,ep) \ argument
58 (((struct usb_device_instance *)(dev))->bus->endpoint_array + ep)
116 w = readw(&musbr->ep[0].ep0.csr0); in musb_db_regs()
122 b = readb(&musbr->ep[0].ep0.configdata); in musb_db_regs()
131 w = readw(&musbr->ep[1].epN.rxmaxp); in musb_db_regs()
134 w = readw(&musbr->ep[1].epN.rxcsr); in musb_db_regs()
137 w = readw(&musbr->ep[1].epN.txmaxp); in musb_db_regs()
140 w = readw(&musbr->ep[1].epN.txcsr); in musb_db_regs()
209 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_stall()
211 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0_stall()
[all …]
/openbmc/bmcweb/test/include/
H A Dasync_resolve_test.cpp11 boost::asio::ip::tcp::endpoint ep; in TEST() local
12 ASSERT_TRUE(async_resolve::endpointFromResolveTuple({1, 2, 3, 4}, ep)); in TEST()
13 EXPECT_TRUE(ep.address().is_v4()); in TEST()
14 EXPECT_FALSE(ep.address().is_v6()); in TEST()
16 EXPECT_EQ(ep.address().to_string(), "1.2.3.4"); in TEST()
21 boost::asio::ip::tcp::endpoint ep; in TEST() local
23 {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}, ep)); in TEST()
24 EXPECT_FALSE(ep.address().is_v4()); in TEST()
25 EXPECT_TRUE(ep.address().is_v6()); in TEST()
26 EXPECT_EQ(ep.address().to_string(), "102:304:506:708:90a:b0c:d0e:f10"); in TEST()
/openbmc/u-boot/board/gdsys/common/
H A Dcmd_ioloop.c62 FPGA_SET_REG(fpga, ep.rx_tx_status, status); in io_check_status()
67 FPGA_SET_REG(fpga, ep.rx_tx_status, status); in io_check_status()
99 FPGA_SET_REG(fpga, ep.transmit_data, *p++); in io_send()
102 FPGA_SET_REG(fpga, ep.transmit_data, k); in io_send()
104 FPGA_SET_REG(fpga, ep.rx_tx_control, in io_send()
115 FPGA_GET_REG(fpga, ep.rx_tx_status, &rx_tx_status); in io_receive()
123 FPGA_GET_REG(fpga, ep.receive_data, &rx); in io_receive()
125 FPGA_GET_REG(fpga, ep.rx_tx_status, &rx_tx_status); in io_receive()
139 FPGA_GET_REG(fpga, ep.rx_tx_status, &rx_tx_status); in io_reflect()
142 FPGA_GET_REG(fpga, ep.receive_data, &buffer[k++]); in io_reflect()
[all …]
/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_gadget.h30 struct musb_ep *ep; member
43 musb_alloc_request(struct usb_ep *ep, gfp_t gfp_flags);
44 extern void musb_free_request(struct usb_ep *ep, struct usb_request *req);
76 static inline struct musb_ep *to_musb_ep(struct usb_ep *ep) in to_musb_ep() argument
78 return ep ? container_of(ep, struct musb_ep, end_point) : NULL; in to_musb_ep()
81 static inline struct musb_request *next_request(struct musb_ep *ep) in next_request() argument
83 struct list_head *queue = &ep->req_list; in next_request()
/openbmc/u-boot/include/usb/
H A Dfotg210.h290 #define EPMAP14_SET_IN(ep, fifo) \ argument
291 ((fifo) & 3) << (((ep) - 1) << 3 + 0)
292 #define EPMAP14_SET_OUT(ep, fifo) \ argument
293 ((fifo) & 3) << (((ep) - 1) << 3 + 4)
294 #define EPMAP14_SET(ep, in, out) \ argument
296 EPMAP14_SET_IN(ep, in); \
297 EPMAP14_SET_OUT(ep, out); \
303 #define EPMAP58_SET_IN(ep, fifo) \ argument
304 ((fifo) & 3) << (((ep) - 5) << 3 + 0)
305 #define EPMAP58_SET_OUT(ep, fifo) \ argument
[all …]
/openbmc/u-boot/tools/
H A Dmkenvimage.c85 int fp, ep; in main() local
219 for (fp = 0, ep = 0 ; fp < filesize && ep < envsize - 1; fp++) { in main()
233 ep--; in main()
234 envptr[ep++] = '\n'; in main()
237 envptr[ep++] = '\0'; in main()
244 envptr[ep++] = filebuf[fp]; in main()
270 if (envptr[ep-1] != '\0') { in main()
271 envptr[ep++] = '\0'; in main()
276 if (ep >= envsize) { in main()
280 envptr[ep] = '\0'; in main()
[all …]
/openbmc/u-boot/cmd/
H A Dhost.c44 char *ep; in do_host_bind() local
47 int dev = simple_strtoul(dev_str, &ep, 16); in do_host_bind()
48 if (*ep) { in do_host_bind()
63 char *ep; in do_host_info() local
65 int dev = simple_strtoul(dev_str, &ep, 16); in do_host_info()
66 if (*ep) { in do_host_info()
106 char *ep; in do_host_dev() local
122 dev = simple_strtoul(argv[1], &ep, 16); in do_host_dev()
123 if (*ep) { in do_host_dev()

12345678