Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/usb/musb/
Dmusb_host.c185 static void musb_ep_set_qh(struct musb_hw_ep *ep, int is_in, struct musb_qh *qh) in musb_ep_set_qh() argument
187 if (is_in != 0 || ep->is_shared_fifo) in musb_ep_set_qh()
189 if (is_in == 0 || ep->is_shared_fifo) in musb_ep_set_qh()
193 static struct musb_qh *musb_ep_get_qh(struct musb_hw_ep *ep, int is_in) in musb_ep_get_qh() argument
195 return is_in ? ep->in_qh : ep->out_qh; in musb_ep_get_qh()
205 musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) in musb_start_urb() argument
226 is_in = 0; in musb_start_urb()
245 is_in ? "in" : "out", in musb_start_urb()
255 musb_ep_set_qh(hw_ep, is_in, qh); in musb_start_urb()
256 musb_ep_program(musb, epnum, urb, !is_in, buf, offset, len); in musb_start_urb()
[all …]
Dmusb_gadget_ep0.c108 int is_in; in service_tx_status_request() local
119 is_in = epnum & USB_DIR_IN; in service_tx_status_request()
120 if (is_in) { in service_tx_status_request()
134 if (is_in) in service_tx_status_request()
266 int is_in; in service_zero_data_request() local
275 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
276 if (is_in) in service_zero_data_request()
289 if (is_in) { in service_zero_data_request()
432 int is_in; in service_zero_data_request() local
441 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
[all …]
Dmusb_gadget.c231 if (ep->is_in) { in nuke()
1000 musb_ep->is_in = 1; in musb_gadget_enable()
1001 if (!musb_ep->is_in) in musb_gadget_enable()
1040 musb_ep->is_in = 0; in musb_gadget_enable()
1041 if (musb_ep->is_in) in musb_gadget_enable()
1105 musb_ep->is_in ? "IN" : "OUT", in musb_gadget_enable()
1137 if (musb_ep->is_in) { in musb_gadget_disable()
1248 request->tx = musb_ep->is_in; in musb_gadget_queue()
1365 if (musb_ep->is_in) { in musb_gadget_set_halt()
1378 if (musb_ep->is_in) { in musb_gadget_set_halt()
[all …]
Dmusb_gadget.h79 u8 is_in; member
/linux-2.6.39/drivers/usb/gadget/
Dgoku_udc.c145 ep->is_in = usb_endpoint_dir_in(desc); in goku_ep_enable()
146 if (ep->is_in) { in goku_ep_enable()
164 tmp = ((ep->dma || !ep->is_in) in goku_ep_enable()
183 ep->is_in ? "IN" : "OUT", in goku_ep_enable()
314 ep->is_in ? PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE); in done()
530 (ep->is_in ? write_fifo : read_fifo)(ep, req); in pio_advance()
547 if (likely(ep->is_in)) { in start_dma()
602 if (ep->is_in) in dma_advance()
612 if (likely(ep->is_in)) { in dma_advance()
630 ep->ep.name, ep->is_in ? "IN" : "OUT", in dma_advance()
[all …]
Dnet2280.c224 ep->is_in = (tmp & USB_DIR_IN) != 0; in net2280_enable()
225 if (!ep->is_in) in net2280_enable()
326 if (!ep->is_in || ep->dev->pdev->device == 0x2280) { in ep_reset()
655 if (ep->is_in) in fill_dma_desc()
657 if ((!ep->is_in && (dmacount % ep->ep.maxpacket) != 0) in fill_dma_desc()
700 unsigned int tmp = (1 << VALID_BIT) | (ep->is_in << DMA_DIRECTION); in start_queue()
716 if (!ep->is_in) in start_queue()
732 if (!ep->is_in && ((tmp = readl (&ep->regs->ep_stat)) in start_dma()
764 if (ep->is_in) { in start_dma()
819 ep->is_in ? PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE); in done()
[all …]
Dat91_udc.c117 ep->is_in ? "in" : "out", in proc_ep_show()
531 ep->is_in = usb_endpoint_dir_in(desc); in at91_ep_enable()
534 if (ep->is_in) in at91_ep_enable()
688 if (ep->is_in) in at91_ep_queue()
761 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 …]
Df_sourcesink.c302 static int source_sink_start_ep(struct f_sourcesink *ss, bool is_in) in source_sink_start_ep() argument
308 ep = is_in ? ss->in_ep : ss->out_ep; in source_sink_start_ep()
314 if (is_in) in source_sink_start_ep()
325 is_in ? "IN" : "OUT", in source_sink_start_ep()
Dlangwell_udc.c175 #define is_in(ep) (((ep)->ep_num == 0) ? ((ep)->dev->ep0_dir == \ macro
178 #define DIR_STRING(ep) (is_in(ep) ? "in" : "out")
198 unsigned char is_in, unsigned char ep_type) in ep_reset() argument
207 if (is_in) { /* TX */ in ep_reset()
246 if (is_in(ep)) in ep0_reset()
367 ep_reset(ep, ep->ep_num, is_in(ep), ep->ep_type); in langwell_ep_enable()
370 i = ep->ep_num * 2 + is_in(ep); in langwell_ep_enable()
425 is_in(ep) ? PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE); in done()
431 is_in(ep) ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in done()
498 if (is_in(ep)) in langwell_ep_disable()
[all …]
Domap_udc.c745 int status, restart, is_in; in dma_channel_claim() local
748 is_in = ep->bEndpointAddress & USB_DIR_IN; in dma_channel_claim()
749 if (is_in) in dma_channel_claim()
772 if (is_in) { in dma_channel_claim()
834 is_in ? 't' : 'r', in dma_channel_claim()
842 (is_in ? next_in_dma : next_out_dma)(ep, req); in dma_channel_claim()
845 (is_in ? write_fifo : read_fifo)(ep, req); in dma_channel_claim()
847 if (!is_in) { in dma_channel_claim()
994 int is_in; in omap_ep_queue() local
1003 is_in = udc->ep0_in; in omap_ep_queue()
[all …]
Dat91_udc.h115 unsigned is_in:1; member
Datmel_usba_udc.c495 ep->is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in request_complete()
542 ep->is_in = 0; in usba_ep_enable()
554 ep->is_in = 1; in usba_ep_enable()
731 ep->is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in queue_dma()
736 ep->is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in queue_dma()
744 if (ep->is_in) in queue_dma()
797 if ((!ep_is_control(ep) && ep->is_in) || in usba_ep_queue()
925 || ((value && ep->is_in && (usba_ep_readl(ep, STA) in usba_ep_set_halt()
Dpxa27x_udc.c594 static void inc_ep_stats_reqs(struct pxa_ep *ep, int is_in) in inc_ep_stats_reqs() argument
596 if (is_in) in inc_ep_stats_reqs()
608 static void inc_ep_stats_bytes(struct pxa_ep *ep, int count, int is_in) in inc_ep_stats_bytes() argument
610 if (is_in) in inc_ep_stats_bytes()
2132 int is_in = ep->dir_in; in handle_ep() local
2160 if (unlikely(is_in)) { in handle_ep()
2169 if (is_in) in handle_ep()
Dgoku_udc.h214 is_in:1, member
Datmel_usba_udc.h291 unsigned int is_in:1; member
Dnet2280.h113 is_in : 1, member
Ds3c2410_udc.c581 u8 is_in = crq->wIndex & USB_DIR_IN; in s3c2410_udc_get_status() local
601 if (is_in) { in s3c2410_udc_get_status()
845 int is_in = ep->bEndpointAddress & USB_DIR_IN; in s3c2410_udc_handle_ep() local
857 if (is_in) { in s3c2410_udc_handle_ep()
/linux-2.6.39/drivers/usb/core/
Dusb.c845 int usb_buffer_map_sg(const struct usb_device *dev, int is_in,
859 is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE) ? : -ENOMEM;
881 void usb_buffer_dmasync_sg(const struct usb_device *dev, int is_in,
894 is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE);
909 void usb_buffer_unmap_sg(const struct usb_device *dev, int is_in,
922 is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE);
Ddevio.c1054 int is_in; in proc_do_submiturb() local
1075 is_in = 1; in proc_do_submiturb()
1078 is_in = 0; in proc_do_submiturb()
1113 is_in = 1; in proc_do_submiturb()
1116 is_in = 0; in proc_do_submiturb()
1188 !access_ok(is_in ? VERIFY_WRITE : VERIFY_READ, in proc_do_submiturb()
1213 if (is_in && uurb->type == USBDEVFS_URB_TYPE_ISO) in proc_do_submiturb()
1226 u = (is_in ? URB_DIR_IN : URB_DIR_OUT); in proc_do_submiturb()
1258 if (is_in && uurb->buffer_length > 0) in proc_do_submiturb()
1268 if (!is_in && uurb->buffer_length > 0) { in proc_do_submiturb()
[all …]
/linux-2.6.39/arch/arm/plat-samsung/
Dpm-gpio.c85 static inline int is_in(unsigned long con) in is_in() function
159 if (is_in(old) && is_out(new)) in s3c_gpio_pm_2bit_resume()
228 if (is_in(old) && is_out(new)) in s3c_gpio_pm_4bit_mask()
/linux-2.6.39/drivers/usb/mon/
Dmon_text.c60 char is_in; member
149 if (ep->is_in) { in mon_text_get_data()
210 ep->is_in = usb_urb_dir_in(urb); in mon_text_event()
282 ep->is_in = usb_urb_dir_in(urb); in mon_text_error()
480 udir = (ep->is_in ? 'i' : 'o'); in mon_text_read_head_t()
498 udir = (ep->is_in ? 'i' : 'o'); in mon_text_read_head_u()
/linux-2.6.39/drivers/staging/westbridge/astoria/gadget/
Dcyasgadget.h102 is_in:1, member
Dcyasgadget.c636 an_ep->is_in = (tmp & USB_DIR_IN) != 0; in cyasgadget_enable()
639 (!an_ep->is_in)) { in cyasgadget_enable()
648 (an_ep->is_in)) { in cyasgadget_enable()
759 if (as_ep->is_in) { in cyasgadget_queue()
896 else if (an_ep->is_in && value && in cyasgadget_set_halt()
1628 an_ep->is_in = 0; in cyas_ep_reset()
/linux-2.6.39/drivers/spi/
Dspi_gpio.c258 static int __init spi_gpio_alloc(unsigned pin, const char *label, bool is_in) in spi_gpio_alloc() argument
264 if (is_in) in spi_gpio_alloc()
/linux-2.6.39/include/linux/
Dusb.h1387 int usb_buffer_map_sg(const struct usb_device *dev, int is_in,
1390 void usb_buffer_dmasync_sg(const struct usb_device *dev, int is_in,
1393 void usb_buffer_unmap_sg(const struct usb_device *dev, int is_in,

12