Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/usb/cdns3/
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 …]
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 …]
Dcdns3-trace.h98 TP_PROTO(struct cdns3_device *priv_dev, u32 usb_ists),
99 TP_ARGS(priv_dev, usb_ists),
105 __entry->speed = cdns3_get_speed(priv_dev);
113 TP_PROTO(struct cdns3_device *priv_dev, u32 usb_ists),
114 TP_ARGS(priv_dev, usb_ists)
118 TP_PROTO(struct cdns3_device *priv_dev, struct cdns3_endpoint *priv_ep),
119 TP_ARGS(priv_dev, priv_ep),
129 __entry->ep_sts = readl(&priv_dev->regs->ep_sts);
130 __entry->ep_traddr = readl(&priv_dev->regs->ep_traddr);
144 TP_PROTO(struct cdns3_device *priv_dev, struct cdns3_endpoint *priv_ep),
[all …]
Dcdns3-gadget.h1344 enum usb_device_speed cdns3_get_speed(struct cdns3_device *priv_dev);
1346 void cdns3_hw_reset_eps_config(struct cdns3_device *priv_dev);
1347 void cdns3_set_hw_configuration(struct cdns3_device *priv_dev);
1348 void cdns3_select_ep(struct cdns3_device *priv_dev, u32 ep);
1349 void cdns3_allow_enable_l1(struct cdns3_device *priv_dev, int enable);
1367 int cdns3_init_ep0(struct cdns3_device *priv_dev,
1369 void cdns3_ep0_config(struct cdns3_device *priv_dev);
1371 void cdns3_check_ep0_interrupt_proceed(struct cdns3_device *priv_dev, int dir);
1372 int __cdns3_gadget_wakeup(struct cdns3_device *priv_dev);
/Linux-v6.6/drivers/usb/gadget/udc/cdns2/
Dcdns2-pci.c28 struct cdns2_device *priv_dev; in cdns2_pci_probe() local
45 priv_dev = devm_kzalloc(&pdev->dev, sizeof(*priv_dev), GFP_KERNEL); in cdns2_pci_probe()
46 if (!priv_dev) in cdns2_pci_probe()
59 priv_dev->regs = devm_ioremap(dev, rsrc_start, rsrc_len); in cdns2_pci_probe()
60 if (!priv_dev->regs) { in cdns2_pci_probe()
65 priv_dev->irq = pdev->irq; in cdns2_pci_probe()
69 priv_dev->dev = dev; in cdns2_pci_probe()
71 priv_dev->eps_supported = 0x000f000f; in cdns2_pci_probe()
72 priv_dev->onchip_tx_buf = 16; in cdns2_pci_probe()
73 priv_dev->onchip_rx_buf = 16; in cdns2_pci_probe()
[all …]
/Linux-v6.6/drivers/staging/gdm724x/
Dgdm_lte.h37 void *priv_dev; member
39 int (*send_hci_func)(void *priv_dev, void *data, int len,
41 int (*send_sdu_func)(void *priv_dev, void *data, int len,
45 int (*rcv_func)(void *priv_dev,
49 u8 (*get_endian)(void *priv_dev);
Dgdm_tty.h33 void *priv_dev; member
34 int (*send_func)(void *priv_dev,
40 int (*recv_func)(void *priv_dev,
46 int (*send_control)(void *priv_dev,
Dgdm_usb.c51 static int gdm_usb_recv(void *priv_dev,
362 struct lte_udev *udev = phy_dev->priv_dev; in set_mac_address()
405 udev = phy_dev->priv_dev; in do_rx()
483 static int gdm_usb_recv(void *priv_dev, in gdm_usb_recv() argument
489 struct lte_udev *udev = priv_dev; in gdm_usb_recv()
704 static int gdm_usb_sdu_send(void *priv_dev, void *data, int len, in gdm_usb_sdu_send() argument
709 struct lte_udev *udev = priv_dev; in gdm_usb_sdu_send()
762 static int gdm_usb_hci_send(void *priv_dev, void *data, int len, in gdm_usb_hci_send() argument
765 struct lte_udev *udev = priv_dev; in gdm_usb_hci_send()
796 static u8 gdm_usb_get_endian(void *priv_dev) in gdm_usb_get_endian() argument
[all …]
Dgdm_mux.c270 static int gdm_mux_recv(void *priv_dev, in gdm_mux_recv() argument
274 struct mux_dev *mux_dev = priv_dev; in gdm_mux_recv()
342 static int gdm_mux_send(void *priv_dev, void *data, int len, int tty_index, in gdm_mux_send() argument
345 struct mux_dev *mux_dev = priv_dev; in gdm_mux_send()
405 static int gdm_mux_send_control(void *priv_dev, int request, int value, in gdm_mux_send_control() argument
408 struct mux_dev *mux_dev = priv_dev; in gdm_mux_send_control()
531 tty_dev->priv_dev = (void *)mux_dev; in gdm_mux_probe()
570 mux_dev = tty_dev->priv_dev; in gdm_mux_disconnect()
590 mux_dev = tty_dev->priv_dev; in gdm_mux_suspend()
621 mux_dev = tty_dev->priv_dev; in gdm_mux_resume()
Dgdm_tty.c121 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in gdm_tty_recv_complete()
136 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in gdm_tty_recv_complete()
163 gdm->tty_dev->send_func(gdm->tty_dev->priv_dev, in gdm_tty_write()
225 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in register_lte_tty_device()
Dgdm_lte.c467 ret = nic->phy_dev->send_sdu_func(nic->phy_dev->priv_dev, in gdm_lte_tx()
514 length = gdm_dev16_to_cpu(phy_dev->get_endian(phy_dev->priv_dev), in gdm_lte_event_send()
524 nic->phy_dev->send_hci_func(nic->phy_dev->priv_dev, msg, len, NULL, in gdm_lte_event_rcv()
680 u8 endian = phy_dev->get_endian(phy_dev->priv_dev); in gdm_lte_multi_sdu_pkt()
732 u8 ed = nic->phy_dev->get_endian(nic->phy_dev->priv_dev); in gdm_lte_pdn_table()
755 u8 endian = phy_dev->get_endian(phy_dev->priv_dev); in gdm_lte_receive_pkt()
817 phy_dev->rcv_func(phy_dev->priv_dev, in start_rx_proc()