Home
last modified time | relevance | path

Searched full:ud (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/kernel/linux/linux-6.6/drivers/usb/usbip/
Dusbip_event.c16 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 = NULL; in get_event() local
[all …]
Dstub_dev.c29 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 state */ in usbip_sockfd_store()
[all …]
Dvudc_sysfs.c115 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.lock); in usbip_sockfd_store()
[all …]
Dvhci_sysfs.c42 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.lock); in vhci_port_disconnect()
[all …]
Dvudc_dev.c176 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->tcp_rx); in vudc_shutdown()
441 ud->tcp_rx = NULL; in vudc_shutdown()
[all …]
Dvhci_rx.c60 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->tcp_socket, &pdu, sizeof(pdu)); in vhci_rx_pdu()
220 usbip_event_add(ud, VDEV_EVENT_ERROR_TCP); in vhci_rx_pdu()
225 usbip_event_add(ud, VDEV_EVENT_DOWN); in vhci_rx_pdu()
[all …]
Dvudc_rx.c98 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_TCP); in v_rx_pdu()
205 spin_lock_irq(&ud->lock); in v_rx_pdu()
[all …]
/kernel/linux/linux-5.10/drivers/usb/usbip/
Dusbip_event.c16 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 = NULL; in get_event() local
[all …]
Dstub_dev.c29 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 state */ in usbip_sockfd_store()
[all …]
Dvudc_sysfs.c115 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.lock); in usbip_sockfd_store()
[all …]
Dvudc_dev.c176 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->tcp_rx); in vudc_shutdown()
441 ud->tcp_rx = NULL; in vudc_shutdown()
[all …]
Dvhci_sysfs.c42 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.lock); in vhci_port_disconnect()
[all …]
Dvhci_rx.c60 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->tcp_socket, &pdu, sizeof(pdu)); in vhci_rx_pdu()
220 usbip_event_add(ud, VDEV_EVENT_ERROR_TCP); in vhci_rx_pdu()
225 usbip_event_add(ud, VDEV_EVENT_DOWN); in vhci_rx_pdu()
[all …]
Dvudc_rx.c98 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_TCP); in v_rx_pdu()
203 spin_lock_irq(&ud->lock); in v_rx_pdu()
[all …]
Dvudc_tx.c60 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()
228 if (usbip_event_happened(&udc->ud)) in v_tx_loop()
[all …]
/kernel/linux/linux-6.6/drivers/dma/ti/
Dk3-udma-private.c9 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->dev; in xudma_get_device()
[all …]
Dk3-udma.c280 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->desc_to_purge, &head); in udma_purge_desc_work()
564 spin_unlock_irqrestore(&ud->lock, flags); in udma_purge_desc_work()
[all …]
Dk3-udma.h127 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, int id);
[all …]
/kernel/linux/linux-5.10/drivers/dma/ti/
Dk3-udma.c215 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 = container_of(work, typeof(*ud), purge_work); in udma_purge_desc_work() local
459 spin_lock_irqsave(&ud->lock, flags); in udma_purge_desc_work()
[all …]
Dk3-udma-private.c7 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->psil_base; in xudma_dev_get_psil_base()
[all …]
Dk3-udma.h110 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, int id);
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/shaders/clear_kernel/
Dhsw.asm39 add(1) g1.2<1>UD g1.2<0,1,0>UD 0x00000001UD { align1 1N }; /* Loop count to del…
40 cmp.z.f0.0(1) null<1>UD g1.3<0,1,0>UD 0x00000000UD { align1 1N };
48 mov(8) g3<1>UD 0x00000000UD { align1 1Q };
60 mov(8) g5<1>UD 0x00000000UD { align1 1Q };
64 mov(8) g4<1>UD g0<8,8,1>UD { align1 1Q }; /* Initialize messag…
65 mov(1) g4<1>UD g3.3<0,1,0>UD { align1 1N }; /* Block offset */
66 mov(1) g4.1<1>UD g3.2<0,1,0>UD { align1 1N }; /* Block offset */
67 mov(1) g4.2<1>UD 0x00000003UD { align1 1N }; /* Block size (1 row…
68 and(1) g4.3<1>UD g4.3<0,1,0>UW 0xffffffffUD { align1 1N };
71 sendc(8) g5<1>UD g4<8,8,1>F 0x02190001
[all …]
Divb.asm39 add(1) g1.2<1>UD g1.2<0,1,0>UD 0x00000001UD { align1 1N }; /* Loop count to del…
40 cmp.z.f0.0(1) null<1>UD g1.3<0,1,0>UD 0x00000000UD { align1 1N };
48 mov(8) g3<1>UD 0x00000000UD { align1 1Q };
60 mov(8) g5<1>UD 0x00000000UD { align1 1Q };
64 mov(8) g4<1>UD g0<8,8,1>UD { align1 1Q }; /* Initialize messag…
65 mov(1) g4<1>UD g3.3<0,1,0>UD { align1 1N }; /* Block offset */
66 mov(1) g4.1<1>UD g3.2<0,1,0>UD { align1 1N }; /* Block offset */
67 mov(1) g4.2<1>UD 0x00000003UD { align1 1N }; /* Block size (1 row…
68 and(1) g4.3<1>UD g4.3<0,1,0>UW 0xffffffffUD { align1 1N };
71 sendc(8) g5<1>UD g4<8,8,1>F 0x02190001
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/shaders/clear_kernel/
Dhsw.asm39 add(1) g1.2<1>UD g1.2<0,1,0>UD 0x00000001UD { align1 1N }; /* Loop count to del…
40 cmp.z.f0.0(1) null<1>UD g1.3<0,1,0>UD 0x00000000UD { align1 1N };
48 mov(8) g3<1>UD 0x00000000UD { align1 1Q };
60 mov(8) g5<1>UD 0x00000000UD { align1 1Q };
64 mov(8) g4<1>UD g0<8,8,1>UD { align1 1Q }; /* Initialize messag…
65 mov(1) g4<1>UD g3.3<0,1,0>UD { align1 1N }; /* Block offset */
66 mov(1) g4.1<1>UD g3.2<0,1,0>UD { align1 1N }; /* Block offset */
67 mov(1) g4.2<1>UD 0x00000003UD { align1 1N }; /* Block size (1 row…
68 and(1) g4.3<1>UD g4.3<0,1,0>UW 0xffffffffUD { align1 1N };
71 sendc(8) g5<1>UD g4<8,8,1>F 0x02190001
[all …]
Divb.asm39 add(1) g1.2<1>UD g1.2<0,1,0>UD 0x00000001UD { align1 1N }; /* Loop count to del…
40 cmp.z.f0.0(1) null<1>UD g1.3<0,1,0>UD 0x00000000UD { align1 1N };
48 mov(8) g3<1>UD 0x00000000UD { align1 1Q };
60 mov(8) g5<1>UD 0x00000000UD { align1 1Q };
64 mov(8) g4<1>UD g0<8,8,1>UD { align1 1Q }; /* Initialize messag…
65 mov(1) g4<1>UD g3.3<0,1,0>UD { align1 1N }; /* Block offset */
66 mov(1) g4.1<1>UD g3.2<0,1,0>UD { align1 1N }; /* Block offset */
67 mov(1) g4.2<1>UD 0x00000003UD { align1 1N }; /* Block size (1 row…
68 and(1) g4.3<1>UD g4.3<0,1,0>UW 0xffffffffUD { align1 1N };
71 sendc(8) g5<1>UD g4<8,8,1>F 0x02190001
[all …]

12345678910>>...12