/kernel/linux/linux-5.10/drivers/usb/usbip/ |
H A D | usbip_event.c | 16 struct usbip_device *ud; member 22 static void set_event(struct usbip_device *ud, unsigned long event) in set_event() argument 26 spin_lock_irqsave(&ud->lock, flags); in set_event() 27 ud->event |= event; in set_event() 28 spin_unlock_irqrestore(&ud->lock, flags); in set_event() 31 static void unset_event(struct usbip_device *ud, unsigned long event) in unset_event() argument 35 spin_lock_irqsave(&ud->lock, flags); in unset_event() 36 ud->event &= ~event; in unset_event() 37 spin_unlock_irqrestore(&ud->lock, flags); in unset_event() 43 struct usbip_device *ud in get_event() local 64 struct usbip_device *ud; event_handler() local 100 usbip_start_eh(struct usbip_device *ud) usbip_start_eh() argument 108 usbip_stop_eh(struct usbip_device *ud) usbip_stop_eh() argument 145 usbip_event_add(struct usbip_device *ud, unsigned long event) usbip_event_add() argument 176 usbip_event_happened(struct usbip_device *ud) usbip_event_happened() argument [all...] |
H A D | stub_dev.c | 29 spin_lock_irq(&sdev->ud.lock); in usbip_status_show() 30 status = sdev->ud.status; in usbip_status_show() 31 spin_unlock_irq(&sdev->ud.lock); in usbip_status_show() 66 mutex_lock(&sdev->ud.sysfs_lock); in usbip_sockfd_store() 67 spin_lock_irq(&sdev->ud.lock); in usbip_sockfd_store() 69 if (sdev->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store() 87 spin_unlock_irq(&sdev->ud.lock); in usbip_sockfd_store() 88 tcp_rx = kthread_create(stub_rx_loop, &sdev->ud, "stub_rx"); in usbip_sockfd_store() 93 tcp_tx = kthread_create(stub_tx_loop, &sdev->ud, "stub_tx"); in usbip_sockfd_store() 104 /* lock and update sdev->ud stat in usbip_sockfd_store() 151 stub_shutdown_connection(struct usbip_device *ud) stub_shutdown_connection() argument 210 stub_device_reset(struct usbip_device *ud) stub_device_reset() argument 242 stub_device_unusable(struct usbip_device *ud) stub_device_unusable() argument [all...] |
H A D | vudc_sysfs.c | 115 mutex_lock(&udc->ud.sysfs_lock); in usbip_sockfd_store() 131 spin_lock_irq(&udc->ud.lock); in usbip_sockfd_store() 133 if (udc->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store() 153 spin_unlock_irq(&udc->ud.lock); in usbip_sockfd_store() 156 tcp_rx = kthread_create(&v_rx_loop, &udc->ud, "vudc_rx"); in usbip_sockfd_store() 159 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store() 162 tcp_tx = kthread_create(&v_tx_loop, &udc->ud, "vudc_tx"); in usbip_sockfd_store() 166 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store() 174 /* lock and update udc->ud state */ in usbip_sockfd_store() 176 spin_lock_irq(&udc->ud in usbip_sockfd_store() [all...] |
H A D | vhci_sysfs.c | 42 port, vdev->ud.status); in port_show_vhci() 45 port, vdev->ud.status); in port_show_vhci() 47 if (vdev->ud.status == VDEV_ST_USED) { in port_show_vhci() 51 vdev->ud.sockfd, in port_show_vhci() 87 spin_lock(&vdev->ud.lock); in status_show_vhci() 90 spin_unlock(&vdev->ud.lock); in status_show_vhci() 96 spin_lock(&vdev->ud.lock); in status_show_vhci() 99 spin_unlock(&vdev->ud.lock); in status_show_vhci() 188 mutex_lock(&vdev->ud.sysfs_lock); in vhci_port_disconnect() 192 spin_lock(&vdev->ud in vhci_port_disconnect() [all...] |
H A D | vhci_rx.c | 60 struct usbip_device *ud = &vdev->ud; in vhci_recv_ret_submit() local 72 usbip_event_add(ud, VDEV_EVENT_ERROR_TCP); in vhci_recv_ret_submit() 80 if (usbip_recv_xbuff(ud, urb) < 0) { in vhci_recv_ret_submit() 86 if (usbip_recv_iso(ud, urb) < 0) { in vhci_recv_ret_submit() 92 usbip_pad_iso(ud, urb); in vhci_recv_ret_submit() 197 static void vhci_rx_pdu(struct usbip_device *ud) in vhci_rx_pdu() argument 201 struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); in vhci_rx_pdu() 208 ret = usbip_recv(ud in vhci_rx_pdu() 258 struct usbip_device *ud = data; vhci_rx_loop() local [all...] |
H A D | vudc_rx.c | 98 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_MALLOC); in v_recv_cmd_submit() 113 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_TCP); in v_recv_cmd_submit() 144 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_MALLOC); in v_recv_cmd_submit() 167 ret = usbip_recv_xbuff(&udc->ud, urb_p->urb); in v_recv_cmd_submit() 171 ret = usbip_recv_iso(&udc->ud, urb_p->urb); in v_recv_cmd_submit() 187 static int v_rx_pdu(struct usbip_device *ud) in v_rx_pdu() argument 191 struct vudc *udc = container_of(ud, struct vudc, ud); in v_rx_pdu() 194 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in v_rx_pdu() 196 usbip_event_add(ud, VUDC_EVENT_ERROR_TC in v_rx_pdu() 228 struct usbip_device *ud = data; v_rx_loop() local [all...] |
H A D | vudc_dev.c | 176 usbip_start_eh(&udc->ud); in vgadget_pullup() 182 usbip_event_add(&udc->ud, VUDC_EVENT_REMOVED); in vgadget_pullup() 183 usbip_stop_eh(&udc->ud); /* Wait for eh completion */ in vgadget_pullup() 429 static void vudc_shutdown(struct usbip_device *ud) in vudc_shutdown() argument 431 struct vudc *udc = container_of(ud, struct vudc, ud); in vudc_shutdown() 436 if (ud->tcp_socket) in vudc_shutdown() 437 kernel_sock_shutdown(ud->tcp_socket, SHUT_RDWR); in vudc_shutdown() 439 if (ud->tcp_rx) { in vudc_shutdown() 440 kthread_stop_put(ud in vudc_shutdown() 463 vudc_device_reset(struct usbip_device *ud) vudc_device_reset() argument 479 vudc_device_unusable(struct usbip_device *ud) vudc_device_unusable() argument 519 struct usbip_device *ud = &udc->ud; init_vudc_hw() local [all...] |
H A D | stub_rx.c | 281 struct usbip_device *ud = &sdev->ud; in valid_request() local 285 spin_lock_irq(&ud->lock); in valid_request() 286 if (ud->status == SDEV_ST_USED) { in valid_request() 290 spin_unlock_irq(&ud->lock); in valid_request() 300 struct usbip_device *ud = &sdev->ud; in stub_priv_alloc() local 309 usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC); in stub_priv_alloc() 441 static int stub_recv_xbuff(struct usbip_device *ud, struct stub_priv *priv) in stub_recv_xbuff() argument 447 ret = usbip_recv_xbuff(ud, pri in stub_recv_xbuff() 459 struct usbip_device *ud = &sdev->ud; stub_recv_cmd_submit() local 629 stub_rx_pdu(struct usbip_device *ud) stub_rx_pdu() argument 678 struct usbip_device *ud = data; stub_rx_loop() local [all...] |
H A D | vhci_hcd.c | 462 if (vhci_hcd->vdev[rhport].ud.status == in vhci_hub_control() 464 vhci_hcd->vdev[rhport].ud.status == in vhci_hub_control() 469 vhci_hcd->vdev[rhport].ud.status); in vhci_hub_control() 672 usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_MALLOC); in vhci_tx_urb() 724 spin_lock(&vdev->ud.lock); in vhci_urb_enqueue() 725 if (vdev->ud.status == VDEV_ST_NULL || in vhci_urb_enqueue() 726 vdev->ud.status == VDEV_ST_ERROR) { in vhci_urb_enqueue() 728 spin_unlock(&vdev->ud.lock); in vhci_urb_enqueue() 732 spin_unlock(&vdev->ud.lock); in vhci_urb_enqueue() 769 spin_lock(&vdev->ud in vhci_urb_enqueue() 1041 vhci_shutdown_connection(struct usbip_device *ud) vhci_shutdown_connection() argument 1097 vhci_device_reset(struct usbip_device *ud) vhci_device_reset() argument 1121 vhci_device_unusable(struct usbip_device *ud) vhci_device_unusable() argument [all...] |
H A D | vudc_tx.c | 60 ret = kernel_sendmsg(udc->ud.tcp_socket, &msg, iov, in v_send_ret_unlink() 63 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_TCP); in v_send_ret_unlink() 102 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_MALLOC); in v_send_ret_submit() 141 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_TCP); in v_send_ret_submit() 154 usbip_event_add(&udc->ud, in v_send_ret_submit() 166 ret = kernel_sendmsg(udc->ud.tcp_socket, &msg, in v_send_ret_submit() 169 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_TCP); in v_send_ret_submit() 223 struct usbip_device *ud = (struct usbip_device *) data; in v_tx_loop() local 224 struct vudc *udc = container_of(ud, struct vudc, ud); in v_tx_loop() [all...] |
/kernel/linux/linux-6.6/drivers/usb/usbip/ |
H A D | usbip_event.c | 16 struct usbip_device *ud; member 22 static void set_event(struct usbip_device *ud, unsigned long event) in set_event() argument 26 spin_lock_irqsave(&ud->lock, flags); in set_event() 27 ud->event |= event; in set_event() 28 spin_unlock_irqrestore(&ud->lock, flags); in set_event() 31 static void unset_event(struct usbip_device *ud, unsigned long event) in unset_event() argument 35 spin_lock_irqsave(&ud->lock, flags); in unset_event() 36 ud->event &= ~event; in unset_event() 37 spin_unlock_irqrestore(&ud->lock, flags); in unset_event() 43 struct usbip_device *ud in get_event() local 64 struct usbip_device *ud; event_handler() local 100 usbip_start_eh(struct usbip_device *ud) usbip_start_eh() argument 108 usbip_stop_eh(struct usbip_device *ud) usbip_stop_eh() argument 144 usbip_event_add(struct usbip_device *ud, unsigned long event) usbip_event_add() argument 175 usbip_event_happened(struct usbip_device *ud) usbip_event_happened() argument [all...] |
H A D | stub_dev.c | 29 spin_lock_irq(&sdev->ud.lock); in usbip_status_show() 30 status = sdev->ud.status; in usbip_status_show() 31 spin_unlock_irq(&sdev->ud.lock); in usbip_status_show() 66 mutex_lock(&sdev->ud.sysfs_lock); in usbip_sockfd_store() 67 spin_lock_irq(&sdev->ud.lock); in usbip_sockfd_store() 69 if (sdev->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store() 87 spin_unlock_irq(&sdev->ud.lock); in usbip_sockfd_store() 88 tcp_rx = kthread_create(stub_rx_loop, &sdev->ud, "stub_rx"); in usbip_sockfd_store() 93 tcp_tx = kthread_create(stub_tx_loop, &sdev->ud, "stub_tx"); in usbip_sockfd_store() 104 /* lock and update sdev->ud stat in usbip_sockfd_store() 153 stub_shutdown_connection(struct usbip_device *ud) stub_shutdown_connection() argument 212 stub_device_reset(struct usbip_device *ud) stub_device_reset() argument 244 stub_device_unusable(struct usbip_device *ud) stub_device_unusable() argument [all...] |
H A D | vudc_sysfs.c | 115 mutex_lock(&udc->ud.sysfs_lock); in usbip_sockfd_store() 131 spin_lock(&udc->ud.lock); in usbip_sockfd_store() 133 if (udc->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store() 153 spin_unlock(&udc->ud.lock); in usbip_sockfd_store() 156 tcp_rx = kthread_create(&v_rx_loop, &udc->ud, "vudc_rx"); in usbip_sockfd_store() 159 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store() 162 tcp_tx = kthread_create(&v_tx_loop, &udc->ud, "vudc_tx"); in usbip_sockfd_store() 166 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store() 174 /* lock and update udc->ud state */ in usbip_sockfd_store() 176 spin_lock(&udc->ud in usbip_sockfd_store() [all...] |
H A D | vhci_sysfs.c | 42 port, vdev->ud.status); in port_show_vhci() 45 port, vdev->ud.status); in port_show_vhci() 47 if (vdev->ud.status == VDEV_ST_USED) { in port_show_vhci() 51 vdev->ud.sockfd, in port_show_vhci() 87 spin_lock(&vdev->ud.lock); in status_show_vhci() 90 spin_unlock(&vdev->ud.lock); in status_show_vhci() 96 spin_lock(&vdev->ud.lock); in status_show_vhci() 99 spin_unlock(&vdev->ud.lock); in status_show_vhci() 188 mutex_lock(&vdev->ud.sysfs_lock); in vhci_port_disconnect() 192 spin_lock(&vdev->ud in vhci_port_disconnect() [all...] |
H A D | vhci_rx.c | 60 struct usbip_device *ud = &vdev->ud; in vhci_recv_ret_submit() local 72 usbip_event_add(ud, VDEV_EVENT_ERROR_TCP); in vhci_recv_ret_submit() 80 if (usbip_recv_xbuff(ud, urb) < 0) { in vhci_recv_ret_submit() 86 if (usbip_recv_iso(ud, urb) < 0) { in vhci_recv_ret_submit() 92 usbip_pad_iso(ud, urb); in vhci_recv_ret_submit() 197 static void vhci_rx_pdu(struct usbip_device *ud) in vhci_rx_pdu() argument 201 struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); in vhci_rx_pdu() 208 ret = usbip_recv(ud in vhci_rx_pdu() 258 struct usbip_device *ud = data; vhci_rx_loop() local [all...] |
H A D | vudc_rx.c | 98 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_MALLOC); in v_recv_cmd_submit() 113 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_TCP); in v_recv_cmd_submit() 144 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_MALLOC); in v_recv_cmd_submit() 169 ret = usbip_recv_xbuff(&udc->ud, urb_p->urb); in v_recv_cmd_submit() 173 ret = usbip_recv_iso(&udc->ud, urb_p->urb); in v_recv_cmd_submit() 189 static int v_rx_pdu(struct usbip_device *ud) in v_rx_pdu() argument 193 struct vudc *udc = container_of(ud, struct vudc, ud); in v_rx_pdu() 196 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in v_rx_pdu() 198 usbip_event_add(ud, VUDC_EVENT_ERROR_TC in v_rx_pdu() 230 struct usbip_device *ud = data; v_rx_loop() local [all...] |
H A D | vudc_dev.c | 176 usbip_start_eh(&udc->ud); in vgadget_pullup() 182 usbip_event_add(&udc->ud, VUDC_EVENT_REMOVED); in vgadget_pullup() 183 usbip_stop_eh(&udc->ud); /* Wait for eh completion */ in vgadget_pullup() 429 static void vudc_shutdown(struct usbip_device *ud) in vudc_shutdown() argument 431 struct vudc *udc = container_of(ud, struct vudc, ud); in vudc_shutdown() 436 if (ud->tcp_socket) in vudc_shutdown() 437 kernel_sock_shutdown(ud->tcp_socket, SHUT_RDWR); in vudc_shutdown() 439 if (ud->tcp_rx) { in vudc_shutdown() 440 kthread_stop_put(ud in vudc_shutdown() 463 vudc_device_reset(struct usbip_device *ud) vudc_device_reset() argument 479 vudc_device_unusable(struct usbip_device *ud) vudc_device_unusable() argument 518 struct usbip_device *ud = &udc->ud; init_vudc_hw() local [all...] |
H A D | stub_rx.c | 281 struct usbip_device *ud = &sdev->ud; in valid_request() local 285 spin_lock_irq(&ud->lock); in valid_request() 286 if (ud->status == SDEV_ST_USED) { in valid_request() 290 spin_unlock_irq(&ud->lock); in valid_request() 300 struct usbip_device *ud = &sdev->ud; in stub_priv_alloc() local 309 usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC); in stub_priv_alloc() 441 static int stub_recv_xbuff(struct usbip_device *ud, struct stub_priv *priv) in stub_recv_xbuff() argument 447 ret = usbip_recv_xbuff(ud, pri in stub_recv_xbuff() 459 struct usbip_device *ud = &sdev->ud; stub_recv_cmd_submit() local 629 stub_rx_pdu(struct usbip_device *ud) stub_rx_pdu() argument 678 struct usbip_device *ud = data; stub_rx_loop() local [all...] |
H A D | vhci_hcd.c | 462 if (vhci_hcd->vdev[rhport].ud.status == in vhci_hub_control() 464 vhci_hcd->vdev[rhport].ud.status == in vhci_hub_control() 469 vhci_hcd->vdev[rhport].ud.status); in vhci_hub_control() 672 usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_MALLOC); in vhci_tx_urb() 724 spin_lock(&vdev->ud.lock); in vhci_urb_enqueue() 725 if (vdev->ud.status == VDEV_ST_NULL || in vhci_urb_enqueue() 726 vdev->ud.status == VDEV_ST_ERROR) { in vhci_urb_enqueue() 728 spin_unlock(&vdev->ud.lock); in vhci_urb_enqueue() 732 spin_unlock(&vdev->ud.lock); in vhci_urb_enqueue() 767 spin_lock(&vdev->ud in vhci_urb_enqueue() 1011 vhci_shutdown_connection(struct usbip_device *ud) vhci_shutdown_connection() argument 1067 vhci_device_reset(struct usbip_device *ud) vhci_device_reset() argument 1090 vhci_device_unusable(struct usbip_device *ud) vhci_device_unusable() argument [all...] |
/kernel/linux/linux-6.6/drivers/dma/ti/ |
H A D | k3-udma-private.c | 9 int xudma_navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in xudma_navss_psil_pair() argument 11 return navss_psil_pair(ud, src_thread, dst_thread); in xudma_navss_psil_pair() 15 int xudma_navss_psil_unpair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in xudma_navss_psil_unpair() argument 17 return navss_psil_unpair(ud, src_thread, dst_thread); in xudma_navss_psil_unpair() 25 struct udma_dev *ud; in of_xudma_dev_get() local 44 ud = platform_get_drvdata(pdev); in of_xudma_dev_get() 45 if (!ud) { in of_xudma_dev_get() 51 return ud; in of_xudma_dev_get() 55 struct device *xudma_get_device(struct udma_dev *ud) in xudma_get_device() argument 57 return ud in xudma_get_device() 61 xudma_get_ringacc(struct udma_dev *ud) xudma_get_ringacc() argument 67 xudma_dev_get_psil_base(struct udma_dev *ud) xudma_dev_get_psil_base() argument 73 xudma_dev_get_tisci_rm(struct udma_dev *ud) xudma_dev_get_tisci_rm() argument 79 xudma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt) xudma_alloc_gp_rflow_range() argument 85 xudma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt) xudma_free_gp_rflow_range() argument 91 xudma_rflow_is_gp(struct udma_dev *ud, int id) xudma_rflow_is_gp() argument 115 xudma_rflow_get(struct udma_dev *ud, int id) xudma_rflow_get() argument 121 xudma_rflow_put(struct udma_dev *ud, struct udma_rflow *p) xudma_rflow_put() argument 127 xudma_get_rflow_ring_offset(struct udma_dev *ud) xudma_get_rflow_ring_offset() argument 163 xudma_is_pktdma(struct udma_dev *ud) xudma_is_pktdma() argument 169 xudma_pktdma_tflow_get_irq(struct udma_dev *ud, int udma_tflow_id) xudma_pktdma_tflow_get_irq() argument 177 xudma_pktdma_rflow_get_irq(struct udma_dev *ud, int udma_rflow_id) xudma_pktdma_rflow_get_irq() argument [all...] |
H A D | k3-udma.c | 280 struct udma_dev *ud; member 402 static int navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in navss_psil_pair() argument 404 struct udma_tisci_rm *tisci_rm = &ud->tisci_rm; in navss_psil_pair() 412 static int navss_psil_unpair(struct udma_dev *ud, u32 src_thread, in navss_psil_unpair() argument 415 struct udma_tisci_rm *tisci_rm = &ud->tisci_rm; in navss_psil_unpair() 470 struct device *dev = uc->ud->dev; in udma_dump_chan_stdata() 557 struct udma_dev *ud = container_of(work, typeof(*ud), purge_work); in udma_purge_desc_work() local 562 spin_lock_irqsave(&ud->lock, flags); in udma_purge_desc_work() 563 list_splice_tail_init(&ud in udma_purge_desc_work() 582 struct udma_dev *ud = to_udma_dev(vd->tx.chan->device); udma_desc_free() local 1254 __udma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt) __udma_alloc_gp_rflow_range() argument 1285 __udma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt) __udma_free_gp_rflow_range() argument 1296 __udma_get_rflow(struct udma_dev *ud, int id) __udma_get_rflow() argument 1323 __udma_put_rflow(struct udma_dev *ud, struct udma_rflow *rflow) __udma_put_rflow() argument 1369 struct udma_dev *ud = uc->ud; bcdma_get_bchan() local 1402 struct udma_dev *ud = uc->ud; udma_get_tchan() local 1451 struct udma_dev *ud = uc->ud; udma_get_rchan() local 1478 struct udma_dev *ud = uc->ud; udma_get_chan_pair() local 1526 struct udma_dev *ud = uc->ud; udma_get_rflow() local 1552 struct udma_dev *ud = uc->ud; bcdma_put_bchan() local 1565 struct udma_dev *ud = uc->ud; udma_put_rchan() local 1577 struct udma_dev *ud = uc->ud; udma_put_tchan() local 1593 struct udma_dev *ud = uc->ud; udma_put_rflow() local 1620 struct udma_dev *ud = uc->ud; bcdma_alloc_bchan_resources() local 1678 struct udma_dev *ud = uc->ud; udma_alloc_tx_resources() local 1753 struct udma_dev *ud = uc->ud; udma_alloc_rx_resources() local 1867 struct udma_dev *ud = uc->ud; udma_tisci_m2m_channel_config() local 1926 struct udma_dev *ud = uc->ud; bcdma_tisci_m2m_channel_config() local 1959 struct udma_dev *ud = uc->ud; udma_tisci_tx_channel_config() local 2002 struct udma_dev *ud = uc->ud; bcdma_tisci_tx_channel_config() local 2031 struct udma_dev *ud = uc->ud; udma_tisci_rx_channel_config() local 2112 struct udma_dev *ud = uc->ud; bcdma_tisci_rx_channel_config() local 2132 struct udma_dev *ud = uc->ud; pktdma_tisci_rx_channel_config() local 2179 struct udma_dev *ud = to_udma_dev(chan->device); udma_alloc_chan_resources() local 2384 struct udma_dev *ud = to_udma_dev(chan->device); bcdma_alloc_chan_resources() local 2596 struct udma_dev *ud = to_udma_dev(chan->device); pktdma_alloc_chan_resources() local 4047 struct udma_dev *ud = to_udma_dev(chan->device); udma_free_chan_resources() local 4106 struct udma_dev *ud; udma_dma_filter_fn() local 4216 struct udma_dev *ud = ofdma->of_dma_data; udma_of_xlate() local 4453 udma_get_mmrs(struct platform_device *pdev, struct udma_dev *ud) udma_get_mmrs() argument 4505 udma_mark_resource_ranges(struct udma_dev *ud, unsigned long *map, struct ti_sci_resource_desc *rm_desc, char *name) udma_mark_resource_ranges() argument 4524 udma_setup_resources(struct udma_dev *ud) udma_setup_resources() argument 4686 bcdma_setup_resources(struct udma_dev *ud) bcdma_setup_resources() argument 4893 pktdma_setup_resources(struct udma_dev *ud) pktdma_setup_resources() argument 5036 setup_resources(struct udma_dev *ud) setup_resources() argument 5110 udma_setup_rx_flush(struct udma_dev *ud) udma_setup_rx_flush() argument 5278 udma_get_copy_align(struct udma_dev *ud) udma_get_copy_align() argument 5317 struct udma_dev *ud; udma_probe() local 5562 struct udma_dev *ud = dev_get_drvdata(dev); udma_pm_suspend() local 5584 struct udma_dev *ud = dev_get_drvdata(dev); udma_pm_resume() local [all...] |
H A D | k3-udma.h | 127 int xudma_navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread); 128 int xudma_navss_psil_unpair(struct udma_dev *ud, u32 src_thread, 132 struct device *xudma_get_device(struct udma_dev *ud); 133 struct k3_ringacc *xudma_get_ringacc(struct udma_dev *ud); 134 void xudma_dev_put(struct udma_dev *ud); 135 u32 xudma_dev_get_psil_base(struct udma_dev *ud); 136 struct udma_tisci_rm *xudma_dev_get_tisci_rm(struct udma_dev *ud); 138 int xudma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt); 139 int xudma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt); 141 struct udma_tchan *xudma_tchan_get(struct udma_dev *ud, in [all...] |
/kernel/linux/linux-5.10/drivers/dma/ti/ |
H A D | k3-udma-private.c | 7 int xudma_navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in xudma_navss_psil_pair() argument 9 return navss_psil_pair(ud, src_thread, dst_thread); in xudma_navss_psil_pair() 13 int xudma_navss_psil_unpair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in xudma_navss_psil_unpair() argument 15 return navss_psil_unpair(ud, src_thread, dst_thread); in xudma_navss_psil_unpair() 23 struct udma_dev *ud; in of_xudma_dev_get() local 42 ud = platform_get_drvdata(pdev); in of_xudma_dev_get() 43 if (!ud) { in of_xudma_dev_get() 49 return ud; in of_xudma_dev_get() 53 u32 xudma_dev_get_psil_base(struct udma_dev *ud) in xudma_dev_get_psil_base() argument 55 return ud in xudma_dev_get_psil_base() 59 xudma_dev_get_tisci_rm(struct udma_dev *ud) xudma_dev_get_tisci_rm() argument 65 xudma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt) xudma_alloc_gp_rflow_range() argument 71 xudma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt) xudma_free_gp_rflow_range() argument 77 xudma_rflow_is_gp(struct udma_dev *ud, int id) xudma_rflow_is_gp() argument 98 xudma_rflow_get(struct udma_dev *ud, int id) xudma_rflow_get() argument 104 xudma_rflow_put(struct udma_dev *ud, struct udma_rflow *p) xudma_rflow_put() argument [all...] |
H A D | k3-udma.c | 215 struct udma_dev *ud; member 335 static int navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in navss_psil_pair() argument 337 struct udma_tisci_rm *tisci_rm = &ud->tisci_rm; in navss_psil_pair() 345 static int navss_psil_unpair(struct udma_dev *ud, u32 src_thread, in navss_psil_unpair() argument 348 struct udma_tisci_rm *tisci_rm = &ud->tisci_rm; in navss_psil_unpair() 365 struct device *dev = uc->ud->dev; in udma_dump_chan_stdata() 442 struct udma_dev *ud = uc->ud; in udma_free_hwdesc() local 444 dma_free_coherent(ud->dev, d->hwdesc[0].cppi5_desc_size, in udma_free_hwdesc() 454 struct udma_dev *ud in udma_purge_desc_work() local 479 struct udma_dev *ud = to_udma_dev(vd->tx.chan->device); udma_desc_free() local 1127 __udma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt) __udma_alloc_gp_rflow_range() argument 1158 __udma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt) __udma_free_gp_rflow_range() argument 1169 __udma_get_rflow(struct udma_dev *ud, int id) __udma_get_rflow() argument 1194 __udma_put_rflow(struct udma_dev *ud, struct udma_rflow *rflow) __udma_put_rflow() argument 1239 struct udma_dev *ud = uc->ud; udma_get_tchan() local 1254 struct udma_dev *ud = uc->ud; udma_get_rchan() local 1269 struct udma_dev *ud = uc->ud; udma_get_chan_pair() local 1311 struct udma_dev *ud = uc->ud; udma_get_rflow() local 1331 struct udma_dev *ud = uc->ud; udma_put_rchan() local 1343 struct udma_dev *ud = uc->ud; udma_put_tchan() local 1355 struct udma_dev *ud = uc->ud; udma_put_rflow() local 1381 struct udma_dev *ud = uc->ud; udma_alloc_tx_resources() local 1441 struct udma_dev *ud = uc->ud; udma_alloc_rx_resources() local 1525 struct udma_dev *ud = uc->ud; udma_tisci_m2m_channel_config() local 1568 struct udma_dev *ud = uc->ud; udma_tisci_tx_channel_config() local 1604 struct udma_dev *ud = uc->ud; udma_tisci_rx_channel_config() local 1686 struct udma_dev *ud = to_udma_dev(chan->device); udma_alloc_chan_resources() local 2956 struct udma_dev *ud = to_udma_dev(chan->device); udma_free_chan_resources() local 3010 struct udma_dev *ud; udma_dma_filter_fn() local 3077 struct udma_dev *ud = ofdma->of_dma_data; udma_of_xlate() local 3164 udma_get_mmrs(struct platform_device *pdev, struct udma_dev *ud) udma_get_mmrs() argument 3177 udma_setup_resources(struct udma_dev *ud) udma_setup_resources() argument 3348 udma_setup_rx_flush(struct udma_dev *ud) udma_setup_rx_flush() argument 3514 struct udma_dev *ud; udma_probe() local [all...] |
H A D | k3-udma.h | 110 int xudma_navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread); 111 int xudma_navss_psil_unpair(struct udma_dev *ud, u32 src_thread, 115 void xudma_dev_put(struct udma_dev *ud); 116 u32 xudma_dev_get_psil_base(struct udma_dev *ud); 117 struct udma_tisci_rm *xudma_dev_get_tisci_rm(struct udma_dev *ud); 119 int xudma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt); 120 int xudma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt); 122 struct udma_tchan *xudma_tchan_get(struct udma_dev *ud, int id); 123 struct udma_rchan *xudma_rchan_get(struct udma_dev *ud, int id); 124 struct udma_rflow *xudma_rflow_get(struct udma_dev *ud, in [all...] |