Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-4.19/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()
406 int is_in; in service_zero_data_request() local
415 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
[all …]
Dmusb_gadget.c170 if (ep->is_in) { in nuke()
970 musb_ep->is_in = 1; in musb_gadget_enable()
971 if (!musb_ep->is_in) in musb_gadget_enable()
1009 musb_ep->is_in = 0; in musb_gadget_enable()
1010 if (musb_ep->is_in) in musb_gadget_enable()
1067 musb_ep->is_in ? "IN" : "OUT", in musb_gadget_enable()
1099 if (musb_ep->is_in) { in musb_gadget_disable()
1228 request->tx = musb_ep->is_in; in musb_gadget_queue()
1358 if (musb_ep->is_in) { in musb_gadget_set_halt()
1372 if (musb_ep->is_in) { in musb_gadget_set_halt()
[all …]
/kernel/linux/linux-5.10/drivers/usb/musb/
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_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.c170 if (ep->is_in) { in nuke()
970 musb_ep->is_in = 1; in musb_gadget_enable()
971 if (!musb_ep->is_in) in musb_gadget_enable()
1009 musb_ep->is_in = 0; in musb_gadget_enable()
1010 if (musb_ep->is_in) in musb_gadget_enable()
1067 musb_ep->is_in ? "IN" : "OUT", in musb_gadget_enable()
1098 if (musb_ep->is_in) { in musb_gadget_disable()
1227 request->tx = musb_ep->is_in; in musb_gadget_queue()
1359 if (musb_ep->is_in) { in musb_gadget_set_halt()
1373 if (musb_ep->is_in) { in musb_gadget_set_halt()
[all …]
/kernel/linux/linux-4.19/include/linux/usb/
Dgadget.h811 struct usb_request *req, int is_in);
813 struct usb_request *req, int is_in);
816 struct usb_request *req, int is_in);
818 struct usb_request *req, int is_in);
821 struct usb_request *req, int is_in) { return -ENOSYS; } in usb_gadget_map_request_by_dev() argument
823 struct usb_request *req, int is_in) { return -ENOSYS; } in usb_gadget_map_request() argument
826 struct usb_request *req, int is_in) { } in usb_gadget_unmap_request_by_dev() argument
828 struct usb_request *req, int is_in) { } in usb_gadget_unmap_request() argument
/kernel/linux/linux-4.19/drivers/usb/gadget/udc/aspeed-vhub/
Depn.c69 if (ep->epn.is_in) { in ast_vhub_epn_kick()
75 if (ep->epn.is_in) in ast_vhub_epn_kick()
101 stat, ep->epn.is_in, req, req ? req->active : 0); in ast_vhub_epn_handle_ack()
127 if (!req->req.dma && !ep->epn.is_in && len) in ast_vhub_epn_handle_ack()
265 stat, ep->epn.is_in, ep->epn.d_last, d_last); in ast_vhub_epn_handle_ack_desc()
378 (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { in ast_vhub_epn_queue()
380 ep->epn.is_in); in ast_vhub_epn_queue()
393 ep->epn.is_in); in ast_vhub_epn_queue()
533 if (halt && ep->epn.is_in && !list_empty(&ep->queue)) { in ast_vhub_set_halt_and_wedge()
640 ep->epn.is_in = usb_endpoint_dir_in(desc); in ast_vhub_epn_enable()
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/
Depn.c69 if (ep->epn.is_in) { in ast_vhub_epn_kick()
75 if (ep->epn.is_in) in ast_vhub_epn_kick()
101 stat, ep->epn.is_in, req, req ? req->active : 0); in ast_vhub_epn_handle_ack()
127 if (!req->req.dma && !ep->epn.is_in && len) in ast_vhub_epn_handle_ack()
265 stat, ep->epn.is_in, ep->epn.d_last, d_last); in ast_vhub_epn_handle_ack_desc()
378 (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { in ast_vhub_epn_queue()
380 ep->epn.is_in); in ast_vhub_epn_queue()
393 ep->epn.is_in); in ast_vhub_epn_queue()
536 if (halt && ep->epn.is_in && !list_empty(&ep->queue)) { in ast_vhub_set_halt_and_wedge()
639 ep->epn.is_in = usb_endpoint_dir_in(desc); in ast_vhub_epn_enable()
[all …]
/kernel/linux/linux-5.10/include/linux/usb/
Dgadget.h843 struct usb_request *req, int is_in);
845 struct usb_request *req, int is_in);
848 struct usb_request *req, int is_in);
850 struct usb_request *req, int is_in);
853 struct usb_request *req, int is_in) { return -ENOSYS; } in usb_gadget_map_request_by_dev() argument
855 struct usb_request *req, int is_in) { return -ENOSYS; } in usb_gadget_map_request() argument
858 struct usb_request *req, int is_in) { } in usb_gadget_unmap_request_by_dev() argument
860 struct usb_request *req, int is_in) { } in usb_gadget_unmap_request() argument
/kernel/linux/linux-4.19/drivers/usb/gadget/udc/
Dgr_udc.c94 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.c144 ep->is_in = usb_endpoint_dir_in(desc); in goku_ep_enable()
145 if (ep->is_in) { in goku_ep_enable()
163 tmp = ((ep->dma || !ep->is_in) in goku_ep_enable()
182 ep->is_in ? "IN" : "OUT", in goku_ep_enable()
312 usb_gadget_unmap_request(&dev->gadget, &req->req, ep->is_in); in done()
525 (ep->is_in ? write_fifo : read_fifo)(ep, req); in pio_advance()
542 if (likely(ep->is_in)) { in start_dma()
597 if (ep->is_in) in dma_advance()
607 if (likely(ep->is_in)) { in dma_advance()
625 ep->ep.name, ep->is_in ? "IN" : "OUT", in dma_advance()
[all …]
Dcore.c810 struct usb_request *req, int is_in) in usb_gadget_map_request_by_dev() argument
819 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_map_request_by_dev()
836 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_map_request_by_dev()
851 struct usb_request *req, int is_in) in usb_gadget_map_request() argument
853 return usb_gadget_map_request_by_dev(gadget->dev.parent, req, is_in); in usb_gadget_map_request()
858 struct usb_request *req, int is_in) in usb_gadget_unmap_request_by_dev() argument
865 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_unmap_request_by_dev()
870 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_unmap_request_by_dev()
877 struct usb_request *req, int is_in) in usb_gadget_unmap_request() argument
879 usb_gadget_unmap_request_by_dev(gadget->dev.parent, req, is_in); in usb_gadget_unmap_request()
Dudc-xilinx.c155 bool is_in; member
286 epcfgreg = ((ep->is_in << 29) | (ep->is_iso << 28) | in xudc_epconfig()
488 if (ep->is_in) in xudc_eptxrx()
498 if (ep->is_in) { in xudc_eptxrx()
516 if (ep->is_in) { in xudc_eptxrx()
563 ep->is_in); in xudc_done()
759 if (ep->is_in && (!list_empty(&ep->queue)) && value) { in xudc_ep_set_halt()
809 ep->is_in = ((desc->bEndpointAddress & USB_DIR_IN) != 0); in __xudc_ep_enable()
868 if (ep->epnumber && !ep->is_in) { in __xudc_ep_enable()
1098 ep->is_in); in xudc_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()
756 if (ep->is_in && (!list_empty(&ep->queue) || (csr >> 16) != 0)) in at91_ep_set_halt()
1016 if (ep->is_in) { in handle_ep()
1062 ep->is_in = 1; in handle_setup()
1065 ep->is_in = 0; in handle_setup()
1181 if (!ep->is_in) in handle_setup()
1183 } else if (ep->is_in) in handle_setup()
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Dgr_udc.c94 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 …]
Dcore.c818 struct usb_request *req, int is_in) in usb_gadget_map_request_by_dev() argument
827 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_map_request_by_dev()
844 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_map_request_by_dev()
859 struct usb_request *req, int is_in) in usb_gadget_map_request() argument
861 return usb_gadget_map_request_by_dev(gadget->dev.parent, req, is_in); in usb_gadget_map_request()
866 struct usb_request *req, int is_in) in usb_gadget_unmap_request_by_dev() argument
873 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_unmap_request_by_dev()
878 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in usb_gadget_unmap_request_by_dev()
885 struct usb_request *req, int is_in) in usb_gadget_unmap_request() argument
887 usb_gadget_unmap_request_by_dev(gadget->dev.parent, req, is_in); in usb_gadget_unmap_request()
Dlpc32xx_udc.c108 bool is_in; member
481 ep->is_in ? "in" : "out"); in proc_ep_show()
1409 usb_gadget_unmap_request(&udc->gadget, &req->req, ep->is_in); in done()
1669 ep->is_in = (desc->bEndpointAddress & USB_DIR_IN) != 0; in lpc32xx_ep_enable()
1673 if (ep->is_in) in lpc32xx_ep_enable()
1680 ep->hwep_num, maxpacket, (ep->is_in == 1)); in lpc32xx_ep_enable()
1758 status = usb_gadget_map_request(&udc->gadget, _req, ep->is_in); in lpc32xx_ep_queue()
1781 if (ep->is_in) in lpc32xx_ep_queue()
1791 _req, _req->length, _req->buf, ep->is_in, _req->zero); in lpc32xx_ep_queue()
1805 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()
756 if (ep->is_in && (!list_empty(&ep->queue) || (csr >> 16) != 0)) in at91_ep_set_halt()
1015 if (ep->is_in) { in handle_ep()
1061 ep->is_in = 1; in handle_setup()
1064 ep->is_in = 0; in handle_setup()
1180 if (!ep->is_in) in handle_setup()
1182 } else if (ep->is_in) in handle_setup()
[all …]
Dudc-xilinx.c155 bool is_in; member
286 epcfgreg = ((ep->is_in << 29) | (ep->is_iso << 28) | in xudc_epconfig()
488 if (ep->is_in) in xudc_eptxrx()
498 if (ep->is_in) { in xudc_eptxrx()
516 if (ep->is_in) { in xudc_eptxrx()
563 ep->is_in); in xudc_done()
759 if (ep->is_in && (!list_empty(&ep->queue)) && value) { in xudc_ep_set_halt()
809 ep->is_in = ((desc->bEndpointAddress & USB_DIR_IN) != 0); in __xudc_ep_enable()
868 if (ep->epnumber && !ep->is_in) { in __xudc_ep_enable()
1098 ep->is_in); in xudc_ep_queue()
[all …]
/kernel/linux/linux-4.19/drivers/usb/mtu3/
Dmtu3_gadget.c32 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); in mtu3_req_complete()
176 if (!!usb_endpoint_dir_in(desc) ^ !!mep->is_in) in mtu3_gadget_ep_enable()
278 __func__, mep->is_in ? "TX" : "RX", mreq->epnum, ep->name, in mtu3_gadget_queue()
298 ret = usb_gadget_map_request(&mtu->g, req, mep->is_in); in mtu3_gadget_queue()
600 u32 epnum, u32 is_in) in init_hw_ep() argument
604 mep->is_in = is_in; in init_hw_ep()
609 !epnum ? "" : (is_in ? "in" : "out")); in init_hw_ep()
635 } else if (is_in) { in init_hw_ep()
/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_gadget.c30 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); in mtu3_req_complete()
169 if (!!usb_endpoint_dir_in(desc) ^ !!mep->is_in) in mtu3_gadget_ep_enable()
267 __func__, mep->is_in ? "TX" : "RX", mreq->epnum, ep->name, in mtu3_gadget_queue()
290 ret = usb_gadget_map_request(&mtu->g, req, mep->is_in); in mtu3_gadget_queue()
604 u32 epnum, u32 is_in) in init_hw_ep() argument
608 mep->is_in = is_in; in init_hw_ep()
613 !epnum ? "" : (is_in ? "in" : "out")); in init_hw_ep()
639 } else if (is_in) { in init_hw_ep()
/kernel/linux/linux-4.19/arch/arm/plat-samsung/
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()
/kernel/linux/linux-5.10/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()

1234