Home
last modified time | relevance | path

Searched refs:is_in (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.12.1/drivers/usb/musb/
Dmusb_host.c176 static void musb_ep_set_qh(struct musb_hw_ep *ep, int is_in, struct musb_qh *qh) in musb_ep_set_qh() argument
178 if (is_in != 0 || ep->is_shared_fifo) in musb_ep_set_qh()
180 if (is_in == 0 || ep->is_shared_fifo) in musb_ep_set_qh()
184 static struct musb_qh *musb_ep_get_qh(struct musb_hw_ep *ep, int is_in) in musb_ep_get_qh() argument
186 return is_in ? ep->in_qh : ep->out_qh; in musb_ep_get_qh()
196 musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) in musb_start_urb() argument
214 is_in = 0; in musb_start_urb()
234 musb_ep_set_qh(hw_ep, is_in, qh); in musb_start_urb()
235 musb_ep_program(musb, epnum, urb, !is_in, buf, offset, len); in musb_start_urb()
238 if (is_in) in musb_start_urb()
[all …]
Dmusb_gadget_ep0.c80 int is_in; in service_tx_status_request() local
91 is_in = epnum & USB_DIR_IN; in service_tx_status_request()
98 if (is_in) in service_tx_status_request()
110 if (is_in) in service_tx_status_request()
242 int is_in; in service_zero_data_request() local
251 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
252 if (is_in) in service_zero_data_request()
265 if (is_in) { in service_zero_data_request()
402 int is_in; in service_zero_data_request() local
411 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
[all …]
Dmusb_gadget.c170 if (ep->is_in) { in nuke()
973 musb_ep->is_in = 1; in musb_gadget_enable()
974 if (!musb_ep->is_in) in musb_gadget_enable()
1012 musb_ep->is_in = 0; in musb_gadget_enable()
1013 if (musb_ep->is_in) in musb_gadget_enable()
1070 musb_ep->is_in ? "IN" : "OUT", in musb_gadget_enable()
1101 if (musb_ep->is_in) { in musb_gadget_disable()
1221 request->tx = musb_ep->is_in; in musb_gadget_queue()
1353 if (musb_ep->is_in) { in musb_gadget_set_halt()
1367 if (musb_ep->is_in) { in musb_gadget_set_halt()
[all …]
Dmusb_gadget.h83 u8 is_in; member
/linux-6.12.1/drivers/usb/gadget/udc/aspeed-vhub/
Depn.c63 if (ep->epn.is_in) { in ast_vhub_epn_kick()
69 if (ep->epn.is_in) in ast_vhub_epn_kick()
96 stat, ep->epn.is_in, req, req ? req->active : 0); in ast_vhub_epn_handle_ack()
122 if (!req->req.dma && !ep->epn.is_in && len) { in ast_vhub_epn_handle_ack()
267 stat, ep->epn.is_in, ep->epn.d_last, d_last); in ast_vhub_epn_handle_ack_desc()
380 (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { in ast_vhub_epn_queue()
382 ep->epn.is_in); in ast_vhub_epn_queue()
395 ep->epn.is_in); in ast_vhub_epn_queue()
540 if (halt && ep->epn.is_in && !list_empty(&ep->queue)) { in ast_vhub_set_halt_and_wedge()
643 ep->epn.is_in = usb_endpoint_dir_in(desc); in ast_vhub_epn_enable()
[all …]
/linux-6.12.1/drivers/usb/gadget/udc/
Dgr_udc.c93 int buflen = ep->is_in ? req->req.length : req->req.actual; in gr_dbgprint_request()
297 usb_gadget_unmap_request(&dev->gadget, &req->req, ep->is_in); in gr_finish_request()
300 if (ep->is_in) { /* For OUT, req->req.actual gets updated bit by bit */ in gr_finish_request()
322 if (ep->is_in) in gr_finish_request()
385 if (!ep->is_in && req->oddlen) in gr_start_dma()
446 if (ep->is_in) in gr_add_dma_desc()
605 ret = usb_gadget_map_request(&dev->gadget, &req->req, ep->is_in); in gr_queue()
611 if (ep->is_in) in gr_queue()
637 if (ep->is_in) in gr_queue_int()
985 u8 is_in = index & USB_ENDPOINT_DIR_MASK; in gr_endpoint_request() local
[all …]
Dgoku_udc.c147 ep->is_in = usb_endpoint_dir_in(desc); in goku_ep_enable()
148 if (ep->is_in) { in goku_ep_enable()
166 tmp = ((ep->dma || !ep->is_in) in goku_ep_enable()
185 ep->is_in ? "IN" : "OUT", in goku_ep_enable()
315 usb_gadget_unmap_request(&dev->gadget, &req->req, ep->is_in); in done()
528 (ep->is_in ? write_fifo : read_fifo)(ep, req); in pio_advance()
545 if (likely(ep->is_in)) { in start_dma()
600 if (ep->is_in) in dma_advance()
610 if (likely(ep->is_in)) { in dma_advance()
628 ep->ep.name, ep->is_in ? "IN" : "OUT", in dma_advance()
[all …]
Drenesas_usbf.c280 unsigned int is_in : 1; member
1479 epn->is_in ? "in" : "out"); in usbf_epn_dma_abort()
1486 epn->is_in ? 1 : 0); in usbf_epn_dma_abort()
1491 if (epn->is_in) { in usbf_epn_dma_abort()
1522 epn->is_in ? "in" : "out"); in usbf_epn_fifo_flush()
1550 ep->is_in ? "in" : "out", in usbf_ep_req_done()
1566 ep->is_in ? "in" : "out", in usbf_ep_nuke()
1590 if (ep->is_in) in usbf_ep_is_stalled()
1606 if (epn->is_in) { in usbf_epn_start_queue()
1650 if (ep->is_in) { in usbf_ep_process_queue()
[all …]
Dlpc32xx_udc.c108 bool is_in; member
480 ep->is_in ? "in" : "out"); in proc_ep_show()
1408 usb_gadget_unmap_request(&udc->gadget, &req->req, ep->is_in); in done()
1666 ep->is_in = (desc->bEndpointAddress & USB_DIR_IN) != 0; in lpc32xx_ep_enable()
1670 if (ep->is_in) in lpc32xx_ep_enable()
1677 ep->hwep_num, maxpacket, (ep->is_in == 1)); in lpc32xx_ep_enable()
1755 status = usb_gadget_map_request(&udc->gadget, _req, ep->is_in); in lpc32xx_ep_queue()
1778 if (ep->is_in) in lpc32xx_ep_queue()
1788 _req, _req->length, _req->buf, ep->is_in, _req->zero); in lpc32xx_ep_queue()
1802 if (ep->is_in) { in lpc32xx_ep_queue()
[all …]
Dat91_udc.c125 ep->is_in ? "in" : "out", in proc_ep_show()
527 ep->is_in = usb_endpoint_dir_in(desc); in at91_ep_enable()
530 if (ep->is_in) in at91_ep_enable()
683 if (ep->is_in) in at91_ep_queue()
758 if (ep->is_in && (!list_empty(&ep->queue) || (csr >> 16) != 0)) in at91_ep_set_halt()
1017 if (ep->is_in) { in handle_ep()
1063 ep->is_in = 1; in handle_setup()
1066 ep->is_in = 0; in handle_setup()
1182 if (!ep->is_in) in handle_setup()
1184 } else if (ep->is_in) in handle_setup()
[all …]
Dcore.c901 struct usb_request *req, int is_in) in usb_gadget_map_request_by_dev() argument
915 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_map_request_by_dev()
932 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_map_request_by_dev()
947 struct usb_request *req, int is_in) in usb_gadget_map_request() argument
949 return usb_gadget_map_request_by_dev(gadget->dev.parent, req, is_in); in usb_gadget_map_request()
954 struct usb_request *req, int is_in) in usb_gadget_unmap_request_by_dev() argument
961 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_unmap_request_by_dev()
966 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_unmap_request_by_dev()
973 struct usb_request *req, int is_in) in usb_gadget_unmap_request() argument
975 usb_gadget_unmap_request_by_dev(gadget->dev.parent, req, is_in); in usb_gadget_unmap_request()
Dudc-xilinx.c154 bool is_in; member
287 epcfgreg = ((ep->is_in << 29) | (ep->is_iso << 28) | in xudc_epconfig()
489 if (ep->is_in) in xudc_eptxrx()
499 if (ep->is_in) { in xudc_eptxrx()
519 if (ep->is_in) { in xudc_eptxrx()
568 ep->is_in); in xudc_done()
764 if (ep->is_in && (!list_empty(&ep->queue)) && value) { in xudc_ep_set_halt()
814 ep->is_in = ((desc->bEndpointAddress & USB_DIR_IN) != 0); in __xudc_ep_enable()
873 if (ep->epnumber && !ep->is_in) { in __xudc_ep_enable()
1103 ep->is_in); in xudc_ep_queue()
[all …]
Dnet2280.c216 ep->is_in = !!usb_endpoint_dir_in(desc); in net2280_enable()
217 if (dev->enhanced_mode && ep->is_in && ep_key[ep->num]) { in net2280_enable()
253 if (ep->is_in) in net2280_enable()
284 ep->is_in = (tmp & USB_DIR_IN) != 0; in net2280_enable()
287 if (dev->enhanced_mode && ep->is_in) { in net2280_enable()
293 tmp |= (ep->is_in << ENDPOINT_DIRECTION); in net2280_enable()
306 if (!ep->is_in) in net2280_enable()
410 if (!ep->is_in || (ep->dev->quirks & PLX_2280)) { in ep_reset_228x()
503 if (ep->is_in) in ep_reset_338x()
806 if (ep->is_in) in fill_dma_desc()
[all …]
Dnet2272.c223 ep->is_in = usb_endpoint_dir_in(desc); in net2272_enable()
224 if (!ep->is_in) in net2272_enable()
369 ep->is_in); in net2272_done()
618 (ep->is_in ? net2272_write_fifo : net2272_read_fifo)(ep, req); in net2272_pio_advance()
732 if (ep->is_in) { in net2272_kick_dma()
831 ep->is_in); in net2272_queue()
881 if (ep->is_in) in net2272_queue()
985 else if (ep->is_in && value && net2272_fifo_status(_ep) != 0) in net2272_set_halt_and_wedge()
1039 if (ep->is_in) in net2272_fifo_status()
1260 ep->is_in ? "in" : "out", in registers_show()
[all …]
Domap_udc.c701 int status, restart, is_in; in dma_channel_claim() local
704 is_in = ep->bEndpointAddress & USB_DIR_IN; in dma_channel_claim()
705 if (is_in) in dma_channel_claim()
728 if (is_in) { in dma_channel_claim()
783 is_in ? 't' : 'r', in dma_channel_claim()
791 (is_in ? next_in_dma : next_out_dma)(ep, req); in dma_channel_claim()
794 (is_in ? write_fifo : read_fifo)(ep, req); in dma_channel_claim()
796 if (!is_in) { in dma_channel_claim()
924 int is_in; in omap_ep_queue() local
933 is_in = udc->ep0_in; in omap_ep_queue()
[all …]
Dat91_udc.h101 unsigned is_in:1; member
Dgr_udc.h146 unsigned is_in:1; member
/linux-6.12.1/include/linux/usb/
Dgadget.h898 struct usb_request *req, int is_in);
900 struct usb_request *req, int is_in);
903 struct usb_request *req, int is_in);
905 struct usb_request *req, int is_in);
908 struct usb_request *req, int is_in) { return -ENOSYS; } in usb_gadget_map_request_by_dev() argument
910 struct usb_request *req, int is_in) { return -ENOSYS; } in usb_gadget_map_request() argument
913 struct usb_request *req, int is_in) { } in usb_gadget_unmap_request_by_dev() argument
915 struct usb_request *req, int is_in) { } in usb_gadget_unmap_request() argument
/linux-6.12.1/drivers/usb/mtu3/
Dmtu3_gadget.c29 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); in mtu3_req_complete()
175 if (!!usb_endpoint_dir_in(desc) ^ !!mep->is_in) in mtu3_gadget_ep_enable()
274 __func__, mep->is_in ? "TX" : "RX", mreq->epnum, ep->name, in mtu3_gadget_queue()
297 ret = usb_gadget_map_request(&mtu->g, req, mep->is_in); in mtu3_gadget_queue()
647 u32 epnum, u32 is_in) in init_hw_ep() argument
651 mep->is_in = is_in; in init_hw_ep()
656 !epnum ? "" : (is_in ? "in" : "out")); in init_hw_ep()
682 } else if (is_in) { in init_hw_ep()
Dmtu3_qmu.c196 offset = mep->is_in ? USB_QMU_TQCSR(epnum) : USB_QMU_RQCSR(epnum); in mtu3_qmu_resume()
325 if (mep->is_in) in mtu3_insert_gpd()
338 if (mep->is_in) { in mtu3_qmu_start()
384 qcsr = mep->is_in ? USB_QMU_TQCSR(epnum) : USB_QMU_RQCSR(epnum); in mtu3_qmu_stop()
392 if (mep->is_in) in mtu3_qmu_stop()
403 if (mep->is_in) in mtu3_qmu_stop()
413 ((mep->is_in) ? "TX" : "RX")); in mtu3_qmu_flush()
Dmtu3_gadget_ep0.c212 int is_in; in ep0_get_status() local
234 is_in = epnum & USB_DIR_IN; in ep0_get_status()
244 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; in ep0_get_status()
386 int is_in; in ep0_handle_feature() local
413 is_in = index & USB_DIR_IN; in ep0_handle_feature()
414 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; in ep0_handle_feature()
/linux-6.12.1/arch/arm/mach-s3c/
Dpm-gpio.c81 static inline int is_in(unsigned long con) in is_in() function
155 if (is_in(old) && is_out(new)) in samsung_gpio_pm_2bit_resume()
224 if (is_in(old) && is_out(new)) in samsung_gpio_pm_4bit_mask()
/linux-6.12.1/drivers/usb/mon/
Dmon_text.c64 char is_in; member
155 if (ep->is_in) { in mon_text_get_data()
216 ep->is_in = usb_urb_dir_in(urb); in mon_text_event()
288 ep->is_in = usb_urb_dir_in(urb); in mon_text_error()
516 udir = (ep->is_in ? 'i' : 'o'); in mon_text_read_head_t()
534 udir = (ep->is_in ? 'i' : 'o'); in mon_text_read_head_u()
/linux-6.12.1/drivers/usb/gadget/function/
Df_sourcesink.c576 static int source_sink_start_ep(struct f_sourcesink *ss, bool is_in, in source_sink_start_ep() argument
599 ep = is_in ? ss->iso_in_ep : ss->iso_out_ep; in source_sink_start_ep()
602 ep = is_in ? ss->in_ep : ss->out_ep; in source_sink_start_ep()
613 if (is_in) in source_sink_start_ep()
624 is_iso ? "ISO-" : "", is_in ? "IN" : "OUT", in source_sink_start_ep()
/linux-6.12.1/drivers/usb/core/
Ddevio.c1629 bool is_in; in proc_do_submiturb() local
1660 is_in = (uurb->endpoint & USB_ENDPOINT_DIR_MASK) != 0; in proc_do_submiturb()
1688 is_in = true; in proc_do_submiturb()
1691 is_in = false; in proc_do_submiturb()
1694 if (is_in) in proc_do_submiturb()
1707 if (!is_in) in proc_do_submiturb()
1731 if (!is_in) in proc_do_submiturb()
1825 if (!is_in) { in proc_do_submiturb()
1847 if (!is_in) { in proc_do_submiturb()
1875 u = (is_in ? URB_DIR_IN : URB_DIR_OUT); in proc_do_submiturb()
[all …]

12