Home
last modified time | relevance | path

Searched refs:priv_dev (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/usb/cdns3/
H A Dcdns3-ep0.c34 static void cdns3_ep0_run_transfer(struct cdns3_device *priv_dev, in cdns3_ep0_run_transfer() argument
38 struct cdns3_usb_regs __iomem *regs = priv_dev->regs; in cdns3_ep0_run_transfer()
39 struct cdns3_endpoint *priv_ep = priv_dev->eps[0]; in cdns3_ep0_run_transfer()
58 cdns3_select_ep(priv_dev, priv_dev->ep0_data_dir); in cdns3_ep0_run_transfer()
62 trace_cdns3_doorbell_ep0(priv_dev->ep0_data_dir ? "ep0in" : "ep0out", in cdns3_ep0_run_transfer()
69 __cdns3_gadget_wakeup(priv_dev); in cdns3_ep0_run_transfer()
72 writel(EP_CMD_ERDY, &priv_dev->regs->ep_cmd); in cdns3_ep0_run_transfer()
83 static int cdns3_ep0_delegate_req(struct cdns3_device *priv_dev, in cdns3_ep0_delegate_req() argument
88 spin_unlock(&priv_dev->lock); in cdns3_ep0_delegate_req()
89 priv_dev->setup_pending = 1; in cdns3_ep0_delegate_req()
[all …]
H A Dcdns3-gadget.c115 static int cdns3_get_dma_pos(struct cdns3_device *priv_dev, in cdns3_get_dma_pos() argument
120 dma_index = readl(&priv_dev->regs->ep_traddr) - priv_ep->trb_pool_dma; in cdns3_get_dma_pos()
163 void cdns3_select_ep(struct cdns3_device *priv_dev, u32 ep) in cdns3_select_ep() argument
165 if (priv_dev->selected_ep == ep) in cdns3_select_ep()
168 priv_dev->selected_ep = ep; in cdns3_select_ep()
169 writel(ep, &priv_dev->regs->ep_sel); in cdns3_select_ep()
179 static int cdns3_get_tdl(struct cdns3_device *priv_dev) in cdns3_get_tdl() argument
181 if (priv_dev->dev_ver < DEV_VER_V3) in cdns3_get_tdl()
182 return EP_CMD_TDL_GET(readl(&priv_dev->regs->ep_cmd)); in cdns3_get_tdl()
184 return readl(&priv_dev->regs->ep_tdl); in cdns3_get_tdl()
[all …]
H A Dcdns3-gadget.h1347 enum usb_device_speed cdns3_get_speed(struct cdns3_device *priv_dev);
1349 void cdns3_hw_reset_eps_config(struct cdns3_device *priv_dev);
1350 void cdns3_set_hw_configuration(struct cdns3_device *priv_dev);
1351 void cdns3_select_ep(struct cdns3_device *priv_dev, u32 ep);
1352 void cdns3_allow_enable_l1(struct cdns3_device *priv_dev, int enable);
1370 int cdns3_init_ep0(struct cdns3_device *priv_dev,
1372 void cdns3_ep0_config(struct cdns3_device *priv_dev);
1374 void cdns3_check_ep0_interrupt_proceed(struct cdns3_device *priv_dev, int dir);
1375 int __cdns3_gadget_wakeup(struct cdns3_device *priv_dev);