Home
last modified time | relevance | path

Searched refs:dir_in (Results 1 - 25 of 120) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/usb/dwc2/
H A Dgadget.c63 u32 ep_index, u32 dir_in) in index_to_ep()
65 if (dir_in) in index_to_ep()
195 * @dir_in: True if direction is in.
202 unsigned int ep, unsigned int dir_in, in dwc2_hsotg_ctrl_epint()
209 if (!dir_in) in dwc2_hsotg_ctrl_epint()
679 if (hs_ep->dir_in) in get_ep_limit()
732 int dir_in = hs_ep->dir_in; in dwc2_gadget_get_chain_limit() local
735 maxsize = (hs_ep->dir_in ? DEV_DMA_ISOC_TX_NBYTES_LIMIT : in dwc2_gadget_get_chain_limit()
743 if (usb_endpoint_xfer_int(ep_desc) && !dir_in in dwc2_gadget_get_chain_limit()
62 index_to_ep(struct dwc2_hsotg *hsotg, u32 ep_index, u32 dir_in) index_to_ep() argument
201 dwc2_hsotg_ctrl_epint(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int dir_in, unsigned int en) dwc2_hsotg_ctrl_epint() argument
770 int dir_in = hs_ep->dir_in; dwc2_gadget_get_desc_params() local
808 int dir_in = hs_ep->dir_in; dwc2_gadget_fill_nonisoc_xfer_ddma_one() local
1056 int dir_in = hs_ep->dir_in; dwc2_hsotg_start_req() local
1746 int dir_in = hs_ep->dir_in; dwc2_gadget_start_next_request() local
2323 dwc2_hsotg_ep0_zlp(struct dwc2_hsotg *hsotg, bool dir_in) dwc2_hsotg_ep0_zlp() argument
2349 int dir_in = hs_ep->dir_in; dwc2_gadget_get_xfersize_ddma() local
2577 dwc2_hsotg_set_ep_maxpacket(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int mps, unsigned int mc, unsigned int dir_in) dwc2_hsotg_set_ep_maxpacket() argument
2788 dwc2_gadget_read_ep_interrupts(struct dwc2_hsotg *hsotg, unsigned int idx, int dir_in) dwc2_gadget_read_ep_interrupts() argument
2825 int dir_in = hs_ep->dir_in; dwc2_gadget_handle_ep_disabled() local
2888 int dir_in = ep->dir_in; dwc2_gadget_handle_out_token_ep_disabled() local
2956 int dir_in = hs_ep->dir_in; dwc2_gadget_handle_nak() local
3035 dwc2_hsotg_epint(struct dwc2_hsotg *hsotg, unsigned int idx, int dir_in) dwc2_hsotg_epint() argument
4016 unsigned int dir_in; dwc2_hsotg_ep_enable() local
4237 int dir_in = hs_ep->dir_in; dwc2_hsotg_ep_disable() local
4735 dwc2_hsotg_initep(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, int epnum, bool dir_in) dwc2_hsotg_initep() argument
[all...]
/kernel/linux/linux-6.6/drivers/usb/dwc2/
H A Dgadget.c62 u32 ep_index, u32 dir_in) in index_to_ep()
64 if (dir_in) in index_to_ep()
194 * @dir_in: True if direction is in.
201 unsigned int ep, unsigned int dir_in, in dwc2_hsotg_ctrl_epint()
208 if (!dir_in) in dwc2_hsotg_ctrl_epint()
678 if (hs_ep->dir_in) in get_ep_limit()
731 int dir_in = hs_ep->dir_in; in dwc2_gadget_get_chain_limit() local
734 maxsize = (hs_ep->dir_in ? DEV_DMA_ISOC_TX_NBYTES_LIMIT : in dwc2_gadget_get_chain_limit()
742 if (usb_endpoint_xfer_int(ep_desc) && !dir_in in dwc2_gadget_get_chain_limit()
61 index_to_ep(struct dwc2_hsotg *hsotg, u32 ep_index, u32 dir_in) index_to_ep() argument
200 dwc2_hsotg_ctrl_epint(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int dir_in, unsigned int en) dwc2_hsotg_ctrl_epint() argument
769 int dir_in = hs_ep->dir_in; dwc2_gadget_get_desc_params() local
807 int dir_in = hs_ep->dir_in; dwc2_gadget_fill_nonisoc_xfer_ddma_one() local
1055 int dir_in = hs_ep->dir_in; dwc2_hsotg_start_req() local
1745 int dir_in = hs_ep->dir_in; dwc2_gadget_start_next_request() local
2323 dwc2_hsotg_ep0_zlp(struct dwc2_hsotg *hsotg, bool dir_in) dwc2_hsotg_ep0_zlp() argument
2349 int dir_in = hs_ep->dir_in; dwc2_gadget_get_xfersize_ddma() local
2577 dwc2_hsotg_set_ep_maxpacket(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int mps, unsigned int mc, unsigned int dir_in) dwc2_hsotg_set_ep_maxpacket() argument
2788 dwc2_gadget_read_ep_interrupts(struct dwc2_hsotg *hsotg, unsigned int idx, int dir_in) dwc2_gadget_read_ep_interrupts() argument
2825 int dir_in = hs_ep->dir_in; dwc2_gadget_handle_ep_disabled() local
2888 int dir_in = ep->dir_in; dwc2_gadget_handle_out_token_ep_disabled() local
2956 int dir_in = hs_ep->dir_in; dwc2_gadget_handle_nak() local
3035 dwc2_hsotg_epint(struct dwc2_hsotg *hsotg, unsigned int idx, int dir_in) dwc2_hsotg_epint() argument
4016 unsigned int dir_in; dwc2_hsotg_ep_enable() local
4238 int dir_in = hs_ep->dir_in; dwc2_hsotg_ep_disable() local
4787 dwc2_hsotg_initep(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, int epnum, bool dir_in) dwc2_hsotg_initep() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/
H A Dep0.c42 if (WARN_ON(!ep->ep0.dir_in)) in ast_vhub_reply()
126 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup()
171 ep->ep0.dir_in = false; in ast_vhub_ep0_handle_setup()
178 ep->ep0.dir_in = false; in ast_vhub_ep0_handle_setup()
287 stat, ep->ep0.state, ep->ep0.dir_in, in_ack, req); in ast_vhub_ep0_handle_ack()
301 if ((ep->ep0.dir_in && (stat & VHUB_EP0_TX_BUFF_RDY)) || in ast_vhub_ep0_handle_ack()
302 (!ep->ep0.dir_in && (stat & VHUB_EP0_RX_BUFF_RDY)) || in ast_vhub_ep0_handle_ack()
303 (ep->ep0.dir_in != in_ack)) { in ast_vhub_ep0_handle_ack()
319 if (ep->ep0.dir_in) in ast_vhub_ep0_handle_ack()
336 if (ep->ep0.dir_in in ast_vhub_ep0_handle_ack()
[all...]
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/aspeed-vhub/
H A Dep0.c36 if (WARN_ON(!ep->ep0.dir_in)) in ast_vhub_reply()
120 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup()
165 ep->ep0.dir_in = false; in ast_vhub_ep0_handle_setup()
172 ep->ep0.dir_in = false; in ast_vhub_ep0_handle_setup()
288 stat, ep->ep0.state, ep->ep0.dir_in, in_ack, req); in ast_vhub_ep0_handle_ack()
302 if ((ep->ep0.dir_in && (stat & VHUB_EP0_TX_BUFF_RDY)) || in ast_vhub_ep0_handle_ack()
303 (!ep->ep0.dir_in && (stat & VHUB_EP0_RX_BUFF_RDY)) || in ast_vhub_ep0_handle_ack()
304 (ep->ep0.dir_in != in_ack)) { in ast_vhub_ep0_handle_ack()
320 if (ep->ep0.dir_in) in ast_vhub_ep0_handle_ack()
337 if (ep->ep0.dir_in in ast_vhub_ep0_handle_ack()
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dfotg210-udc.c32 if (ep->dir_in) in fotg210_disable_fifo_int()
43 if (ep->dir_in) in fotg210_enable_fifo_int()
82 u32 dir_in) in fotg210_fifo_ep_mapping()
93 val &= ~EPMAP_FIFONOMSK(epnum, dir_in); in fotg210_fifo_ep_mapping()
94 val |= EPMAP_FIFONO(epnum, dir_in); in fotg210_fifo_ep_mapping()
109 static void fotg210_set_fifo_dir(struct fotg210_ep *ep, u32 epnum, u32 dir_in) in fotg210_set_fifo_dir() argument
115 val |= (dir_in ? FIFOMAP_DIRIN(epnum - 1) : FIFOMAP_DIROUT(epnum - 1)); in fotg210_set_fifo_dir()
130 u32 dir_in) in fotg210_set_mps()
134 u32 offset = dir_in ? FOTG210_INEPMPSR(epnum) : in fotg210_set_mps()
147 fotg210_set_fifo_dir(ep, ep->epnum, ep->dir_in); in fotg210_config_ep()
81 fotg210_fifo_ep_mapping(struct fotg210_ep *ep, u32 epnum, u32 dir_in) fotg210_fifo_ep_mapping() argument
129 fotg210_set_mps(struct fotg210_ep *ep, u32 epnum, u32 mps, u32 dir_in) fotg210_set_mps() argument
[all...]
H A Dfotg210.h201 #define DMACPSR1_DMA_TYPE(dir_in) (((dir_in) ? 1 : 0) << 1)
226 unsigned char dir_in; member
H A Drenesas_usb3.c318 bool dir_in; member
955 usb3_ep->dir_in = !!(ctrl->bRequestType & USB_DIR_IN); in usb3_get_setup_data()
1174 if (usb3_ep->dir_in) { in usb3_set_status_stage()
1189 if (usb3_ep->dir_in) in usb3_p0_xfer()
1208 if (usb3_ep->dir_in) { in usb3_start_pipe0()
1286 usb3_ep->dir_in) < 0) in usb3_dma_get_setting_area()
1308 usb3_ep->dir_in); in usb3_dma_put_setting_area()
1341 if (usb3_ep->dir_in) in usb3_dma_fill_prd()
1351 if (usb3_ep->dir_in) in usb3_dma_kick_prd()
1513 if (usb3_ep->dir_in) { in usb3_start_pipen()
[all...]
/kernel/linux/linux-6.6/drivers/usb/fotg210/
H A Dfotg210-udc.c44 if (ep->dir_in) in fotg210_disable_fifo_int()
55 if (ep->dir_in) in fotg210_enable_fifo_int()
94 u32 dir_in) in fotg210_fifo_ep_mapping()
105 val &= ~EPMAP_FIFONOMSK(epnum, dir_in); in fotg210_fifo_ep_mapping()
106 val |= EPMAP_FIFONO(epnum, dir_in); in fotg210_fifo_ep_mapping()
121 static void fotg210_set_fifo_dir(struct fotg210_ep *ep, u32 epnum, u32 dir_in) in fotg210_set_fifo_dir() argument
127 val |= (dir_in ? FIFOMAP_DIRIN(epnum - 1) : FIFOMAP_DIROUT(epnum - 1)); in fotg210_set_fifo_dir()
142 u32 dir_in) in fotg210_set_mps()
146 u32 offset = dir_in ? FOTG210_INEPMPSR(epnum) : in fotg210_set_mps()
159 fotg210_set_fifo_dir(ep, ep->epnum, ep->dir_in); in fotg210_config_ep()
93 fotg210_fifo_ep_mapping(struct fotg210_ep *ep, u32 epnum, u32 dir_in) fotg210_fifo_ep_mapping() argument
141 fotg210_set_mps(struct fotg210_ep *ep, u32 epnum, u32 mps, u32 dir_in) fotg210_set_mps() argument
[all...]
H A Dfotg210-udc.h203 #define DMACPSR1_DMA_TYPE(dir_in) (((dir_in) ? 1 : 0) << 1)
228 unsigned char dir_in; member
/kernel/linux/linux-5.10/drivers/scsi/
H A Dmvme147.c30 static int dma_setup(struct scsi_cmnd *cmd, int dir_in) in dma_setup() argument
38 if (!dir_in) in dma_setup()
42 hdata->dma_dir = dir_in; in dma_setup()
44 if (dir_in) { in dma_setup()
H A Da2091.c41 static int dma_setup(struct scsi_cmnd *cmd, int dir_in) in dma_setup() argument
74 if (!dir_in) { in dma_setup()
82 if (!dir_in) in dma_setup()
86 wh->dma_dir = dir_in; in dma_setup()
93 if (dir_in) { in dma_setup()
H A Da3000.c45 static int dma_setup(struct scsi_cmnd *cmd, int dir_in) in dma_setup() argument
71 if (!dir_in) { in dma_setup()
81 if (!dir_in) in dma_setup()
85 wh->dma_dir = dir_in; in dma_setup()
92 if (dir_in) { in dma_setup()
H A Dgvp11.c50 static int dma_setup(struct scsi_cmnd *cmd, int dir_in) in dma_setup() argument
110 if (!dir_in) { in dma_setup()
118 if (!dir_in) in dma_setup()
121 wh->dma_dir = dir_in; in dma_setup()
127 if (dir_in) { in dma_setup()
/kernel/linux/linux-6.6/drivers/scsi/
H A Dmvme147.c34 static int dma_setup(struct scsi_cmnd *cmd, int dir_in) in dma_setup() argument
43 if (!dir_in) in dma_setup()
47 hdata->dma_dir = dir_in; in dma_setup()
49 if (dir_in) { in dma_setup()
H A Da3000.c53 static int dma_setup(struct scsi_cmnd *cmd, int dir_in) in dma_setup() argument
65 len, DMA_DIR(dir_in)); in dma_setup()
86 DMA_DIR(dir_in)); in dma_setup()
99 if (!dir_in) { in dma_setup()
106 len, DMA_DIR(dir_in)); in dma_setup()
117 if (!dir_in) in dma_setup()
121 wh->dma_dir = dir_in; in dma_setup()
H A Da2091.c48 static int dma_setup(struct scsi_cmnd *cmd, int dir_in) in dma_setup() argument
60 len, DMA_DIR(dir_in)); in dma_setup()
73 DMA_DIR(dir_in)); in dma_setup()
86 if (!dir_in) { in dma_setup()
94 wh->dma_bounce_len, DMA_DIR(dir_in)); in dma_setup()
115 if (!dir_in) in dma_setup()
119 wh->dma_dir = dir_in; in dma_setup()
H A Dgvp11.c53 static int dma_setup(struct scsi_cmnd *cmd, int dir_in) in dma_setup() argument
67 len, DMA_DIR(dir_in)); in dma_setup()
80 DMA_DIR(dir_in)); in dma_setup()
105 if (!dir_in) { in dma_setup()
116 DMA_DIR(dir_in)); in dma_setup()
130 DMA_DIR(dir_in)); in dma_setup()
148 if (!dir_in) { in dma_setup()
164 if (!dir_in) in dma_setup()
167 wh->dma_dir = dir_in; in dma_setup()
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/
H A Daspeed_udc.c194 bool dir_in:1; member
288 (u32)req->req.buf, ep->dir_in); in ast_udc_done()
350 u8 dir_in; in ast_udc_ep_enable() local
379 dir_in = usb_endpoint_dir_in(desc); in ast_udc_ep_enable()
380 ep->dir_in = dir_in; in ast_udc_ep_enable()
381 if (!ep->dir_in) in ast_udc_ep_enable()
384 EP_DBG(ep, "type %d, dir_in %d\n", type, dir_in); in ast_udc_ep_enable()
399 ep->desc_mode = udc->desc_mode && ep->descs_dma && ep->dir_in; in ast_udc_ep_enable()
[all...]
H A Drenesas_usb3.c322 bool dir_in; member
1013 usb3_ep->dir_in = !!(ctrl->bRequestType & USB_DIR_IN); in usb3_get_setup_data()
1232 if (usb3_ep->dir_in) { in usb3_set_status_stage()
1247 if (usb3_ep->dir_in) in usb3_p0_xfer()
1266 if (usb3_ep->dir_in) { in usb3_start_pipe0()
1344 usb3_ep->dir_in) < 0) in usb3_dma_get_setting_area()
1366 usb3_ep->dir_in); in usb3_dma_put_setting_area()
1399 if (usb3_ep->dir_in) in usb3_dma_fill_prd()
1409 if (usb3_ep->dir_in) in usb3_dma_kick_prd()
1571 if (usb3_ep->dir_in) { in usb3_start_pipen()
[all...]
/kernel/linux/linux-5.10/drivers/usb/renesas_usbhs/
H A Dpipe.c401 int dir_in, u16 *pipecfg) in usbhsp_setup_pipecfg()
443 if (dir_in) in usbhsp_setup_pipecfg()
446 if (!!is_host ^ !!dir_in) in usbhsp_setup_pipecfg()
694 int dir_in) in usbhs_pipe_malloc()
720 if (usbhsp_setup_pipecfg(pipe, is_host, dir_in, &pipecfg)) { in usbhs_pipe_malloc()
400 usbhsp_setup_pipecfg(struct usbhs_pipe *pipe, int is_host, int dir_in, u16 *pipecfg) usbhsp_setup_pipecfg() argument
692 usbhs_pipe_malloc(struct usbhs_priv *priv, int endpoint_type, int dir_in) usbhs_pipe_malloc() argument
/kernel/linux/linux-6.6/drivers/usb/renesas_usbhs/
H A Dpipe.c401 int dir_in, u16 *pipecfg) in usbhsp_setup_pipecfg()
443 if (dir_in) in usbhsp_setup_pipecfg()
446 if (!!is_host ^ !!dir_in) in usbhsp_setup_pipecfg()
694 int dir_in) in usbhs_pipe_malloc()
720 if (usbhsp_setup_pipecfg(pipe, is_host, dir_in, &pipecfg)) { in usbhs_pipe_malloc()
400 usbhsp_setup_pipecfg(struct usbhs_pipe *pipe, int is_host, int dir_in, u16 *pipecfg) usbhsp_setup_pipecfg() argument
692 usbhs_pipe_malloc(struct usbhs_priv *priv, int endpoint_type, int dir_in) usbhs_pipe_malloc() argument
/kernel/linux/linux-5.10/include/uapi/linux/usb/
H A Draw_gadget.h114 __u32 dir_in : 1; member
/kernel/linux/linux-6.6/include/uapi/linux/usb/
H A Draw_gadget.h114 __u32 dir_in : 1; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/usb/
H A Draw_gadget.h56 __u32 dir_in : 1; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/usb/
H A Draw_gadget.h56 __u32 dir_in : 1; member

Completed in 27 milliseconds

12345