Home
last modified time | relevance | path

Searched refs:ud (Results 1 – 25 of 41) sorted by relevance

12

/drivers/usb/usbip/
A Dusbip_event.c27 ud->event |= event; in set_event()
36 ud->event &= ~event; in unset_event()
54 ud = ue->ud; in get_event()
57 return ud; in get_event()
79 ud->eh_ops.shutdown(ud); in event_handler()
85 ud->eh_ops.reset(ud); in event_handler()
91 ud->eh_ops.unusable(ud); in event_handler()
103 ud->event = 0; in usbip_start_eh()
118 wait_event_interruptible(ud->eh_waitq, !(ud->event & ~USBIP_EH_BYE)); in usbip_stop_eh()
157 if (ue->ud == ud) in usbip_event_add()
[all …]
A Dstub_dev.c30 status = sdev->ud.status; in usbip_status_show()
155 struct stub_device *sdev = container_of(ud, struct stub_device, ud); in stub_shutdown_connection()
163 if (ud->tcp_socket) { in stub_shutdown_connection()
169 if (ud->tcp_rx) { in stub_shutdown_connection()
171 ud->tcp_rx = NULL; in stub_shutdown_connection()
173 if (ud->tcp_tx) { in stub_shutdown_connection()
175 ud->tcp_tx = NULL; in stub_shutdown_connection()
184 if (ud->tcp_socket) { in stub_shutdown_connection()
187 ud->sockfd = -1; in stub_shutdown_connection()
214 struct stub_device *sdev = container_of(ud, struct stub_device, ud); in stub_device_reset()
[all …]
A Dvudc_sysfs.c131 spin_lock(&udc->ud.lock); in usbip_sockfd_store()
153 spin_unlock(&udc->ud.lock); in usbip_sockfd_store()
176 spin_lock(&udc->ud.lock); in usbip_sockfd_store()
178 udc->ud.tcp_socket = socket; in usbip_sockfd_store()
179 udc->ud.tcp_rx = tcp_rx; in usbip_sockfd_store()
180 udc->ud.tcp_tx = tcp_tx; in usbip_sockfd_store()
183 spin_unlock(&udc->ud.lock); in usbip_sockfd_store()
204 spin_lock(&udc->ud.lock); in usbip_sockfd_store()
209 spin_unlock(&udc->ud.lock); in usbip_sockfd_store()
222 spin_unlock(&udc->ud.lock); in usbip_sockfd_store()
[all …]
A Dvhci_sysfs.c42 port, vdev->ud.status); in port_show_vhci()
45 port, vdev->ud.status); 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()
192 spin_lock(&vdev->ud.lock); in vhci_port_disconnect()
198 spin_unlock(&vdev->ud.lock); in vhci_port_disconnect()
206 spin_unlock(&vdev->ud.lock); in vhci_port_disconnect()
[all …]
A Dvudc_dev.c431 struct vudc *udc = container_of(ud, struct vudc, ud); in vudc_shutdown()
436 if (ud->tcp_socket) in vudc_shutdown()
439 if (ud->tcp_rx) { in vudc_shutdown()
441 ud->tcp_rx = NULL; in vudc_shutdown()
443 if (ud->tcp_tx) { in vudc_shutdown()
445 ud->tcp_tx = NULL; in vudc_shutdown()
448 if (ud->tcp_socket) { in vudc_shutdown()
450 ud->tcp_socket = NULL; in vudc_shutdown()
465 struct vudc *udc = container_of(ud, struct vudc, ud); in vudc_device_reset()
518 struct usbip_device *ud = &udc->ud; in init_vudc_hw() local
[all …]
A 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()
201 struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); in vhci_rx_pdu()
225 usbip_event_add(ud, VDEV_EVENT_DOWN); in vhci_rx_pdu()
258 struct usbip_device *ud = data; in vhci_rx_loop() local
261 if (usbip_event_happened(ud)) in vhci_rx_loop()
264 usbip_kcov_remote_start(ud); in vhci_rx_loop()
[all …]
A Dvhci_hcd.c1016 struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); in vhci_shutdown_connection()
1019 if (ud->tcp_socket) { in vhci_shutdown_connection()
1025 if (vdev->ud.tcp_rx) { in vhci_shutdown_connection()
1027 vdev->ud.tcp_rx = NULL; in vhci_shutdown_connection()
1029 if (vdev->ud.tcp_tx) { in vhci_shutdown_connection()
1031 vdev->ud.tcp_tx = NULL; in vhci_shutdown_connection()
1039 vdev->ud.sockfd = -1; in vhci_shutdown_connection()
1072 struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); in vhci_device_reset()
1084 if (ud->tcp_socket) { in vhci_device_reset()
1086 ud->tcp_socket = NULL; in vhci_device_reset()
[all …]
A Dvudc_rx.c173 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()
198 usbip_event_add(ud, VUDC_EVENT_ERROR_TCP); in v_rx_pdu()
205 spin_lock_irq(&ud->lock); in v_rx_pdu()
206 ret = (ud->status == SDEV_ST_USED); in v_rx_pdu()
207 spin_unlock_irq(&ud->lock); in v_rx_pdu()
209 usbip_event_add(ud, VUDC_EVENT_ERROR_TCP); in v_rx_pdu()
230 struct usbip_device *ud = data; in v_rx_loop() local
234 if (usbip_event_happened(ud)) in v_rx_loop()
[all …]
A Dstub_rx.c290 struct usbip_device *ud = &sdev->ud; in valid_request() local
294 spin_lock_irq(&ud->lock); in valid_request()
295 if (ud->status == SDEV_ST_USED) { in valid_request()
299 spin_unlock_irq(&ud->lock); in valid_request()
309 struct usbip_device *ud = &sdev->ud; in stub_priv_alloc() local
468 struct usbip_device *ud = &sdev->ud; in stub_recv_cmd_submit() local
602 if (stub_recv_xbuff(ud, priv) < 0) in stub_recv_cmd_submit()
656 struct stub_device *sdev = container_of(ud, struct stub_device, ud); in stub_rx_pdu()
701 struct usbip_device *ud = data; in stub_rx_loop() local
704 if (usbip_event_happened(ud)) in stub_rx_loop()
[all …]
A Dusbip_common.h315 int usbip_recv_iso(struct usbip_device *ud, struct urb *urb);
316 void usbip_pad_iso(struct usbip_device *ud, struct urb *urb);
317 int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb);
322 int usbip_start_eh(struct usbip_device *ud);
323 void usbip_stop_eh(struct usbip_device *ud);
324 void usbip_event_add(struct usbip_device *ud, unsigned long event);
325 int usbip_event_happened(struct usbip_device *ud);
344 static inline void usbip_kcov_handle_init(struct usbip_device *ud) in usbip_kcov_handle_init() argument
346 ud->kcov_handle = kcov_common_handle(); in usbip_kcov_handle_init()
349 static inline void usbip_kcov_remote_start(struct usbip_device *ud) in usbip_kcov_remote_start() argument
[all …]
A 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()
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()
251 usbip_event_add(&udc->ud, VDEV_EVENT_ERROR_MALLOC); in v_enqueue_ret_unlink()
[all …]
A Dusbip_common.c681 ret = usbip_recv(ud->tcp_socket, buff, size); in usbip_recv_iso()
687 if (ud->side == USBIP_STUB || ud->side == USBIP_VUDC) in usbip_recv_iso()
688 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in usbip_recv_iso()
690 usbip_event_add(ud, VDEV_EVENT_ERROR_TCP); in usbip_recv_iso()
709 if (ud->side == USBIP_STUB || ud->side == USBIP_VUDC) in usbip_recv_iso()
710 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in usbip_recv_iso()
712 usbip_event_add(ud, VDEV_EVENT_ERROR_TCP); in usbip_recv_iso()
771 if (ud->side == USBIP_STUB || ud->side == USBIP_VUDC) { in usbip_recv_xbuff()
828 if (ud->side == USBIP_STUB || ud->side == USBIP_VUDC) in usbip_recv_xbuff()
829 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in usbip_recv_xbuff()
[all …]
A Dstub_tx.c21 usbip_event_add(&sdev->ud, VDEV_EVENT_ERROR_MALLOC); in stub_enqueue_ret_unlink()
92 if (sdev->ud.tcp_socket == NULL) { in stub_complete()
196 usbip_event_add(&sdev->ud, SDEV_EVENT_ERROR_MALLOC); in stub_send_ret_submit()
292 usbip_event_add(&sdev->ud, in stub_send_ret_submit()
304 usbip_event_add(&sdev->ud, in stub_send_ret_submit()
316 ret = kernel_sendmsg(sdev->ud.tcp_socket, &msg, in stub_send_ret_submit()
324 usbip_event_add(&sdev->ud, SDEV_EVENT_ERROR_TCP); in stub_send_ret_submit()
397 usbip_event_add(&sdev->ud, SDEV_EVENT_ERROR_TCP); in stub_send_ret_unlink()
419 struct usbip_device *ud = data; in stub_tx_loop() local
420 struct stub_device *sdev = container_of(ud, struct stub_device, ud); in stub_tx_loop()
[all …]
A Dvhci_tx.c87 usbip_event_add(&vdev->ud, SDEV_EVENT_ERROR_MALLOC); in vhci_send_cmd_submit()
128 usbip_event_add(&vdev->ud, in vhci_send_cmd_submit()
139 ret = kernel_sendmsg(vdev->ud.tcp_socket, &msg, iov, iovnum, in vhci_send_cmd_submit()
144 usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_TCP); in vhci_send_cmd_submit()
219 ret = kernel_sendmsg(vdev->ud.tcp_socket, &msg, &iov, 1, txsize); in vhci_send_cmd_unlink()
223 usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_TCP); in vhci_send_cmd_unlink()
237 struct usbip_device *ud = data; in vhci_tx_loop() local
238 struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); in vhci_tx_loop()
A Dstub.h24 struct usbip_device ud; member
/drivers/dma/ti/
A Dk3-udma-private.c25 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()
57 return ud->dev; in xudma_get_device()
63 return ud->ringacc; in xudma_get_ringacc()
69 return ud->psil_base; in xudma_dev_get_psil_base()
75 return &ud->tisci_rm; in xudma_dev_get_tisci_rm()
93 if (!ud->rflow_gp_map) in xudma_rflow_is_gp()
123 __udma_put_rflow(ud, p); in xudma_rflow_put()
[all …]
A Dk3-udma.c1376 struct udma_dev *ud = uc->ud; in bcdma_get_bchan() local
1409 struct udma_dev *ud = uc->ud; in udma_get_tchan() local
1458 struct udma_dev *ud = uc->ud; in udma_get_rchan() local
1485 struct udma_dev *ud = uc->ud; in udma_get_chan_pair() local
1533 struct udma_dev *ud = uc->ud; in udma_get_rflow() local
1559 struct udma_dev *ud = uc->ud; in bcdma_put_bchan() local
4154 ud = uc->ud; in udma_dma_filter_fn()
4810 !ud->rflow_in_use || !ud->bchans || !ud->tchans || !ud->rchans || in bcdma_setup_resources()
5018 if (!ud->tchan_map || !ud->rchan_map || !ud->tflow_map || !ud->tchans || in pktdma_setup_resources()
5019 !ud->rchans || !ud->rflows || !ud->rflow_in_use) in pktdma_setup_resources()
[all …]
A Dk3-udma.h128 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 u32 xudma_dev_get_psil_base(struct udma_dev *ud);
140 struct udma_tchan *xudma_tchan_get(struct udma_dev *ud, int id);
141 struct udma_rchan *xudma_rchan_get(struct udma_dev *ud, int id);
142 struct udma_rflow *xudma_rflow_get(struct udma_dev *ud, int id);
144 void xudma_tchan_put(struct udma_dev *ud, struct udma_tchan *p);
156 bool xudma_rflow_is_gp(struct udma_dev *ud, int id);
157 int xudma_get_rflow_ring_offset(struct udma_dev *ud);
[all …]
/drivers/net/wireless/ath/ath5k/
A Ddesc.c91 tx_ctl = &desc->ud.ds_tx5210.tx_ctl; in ath5k_hw_setup_2word_tx_desc()
262 tx_ctl = &desc->ud.ds_tx5212.tx_ctl; in ath5k_hw_setup_4word_tx_desc()
286 memset(&desc->ud.ds_tx5212.tx_stat, 0, in ath5k_hw_setup_4word_tx_desc()
287 sizeof(desc->ud.ds_tx5212.tx_stat)); in ath5k_hw_setup_4word_tx_desc()
406 tx_ctl = &desc->ud.ds_tx5212.tx_ctl; in ath5k_hw_setup_mrr_tx_desc()
448 tx_status = &desc->ud.ds_tx5210.tx_stat; in ath5k_hw_proc_2word_tx_status()
501 tx_status = &desc->ud.ds_tx5212.tx_stat; in ath5k_hw_proc_4word_tx_status()
565 rx_ctl = &desc->ud.ds_rx.rx_ctl; in ath5k_hw_setup_rx_desc()
574 memset(&desc->ud.ds_rx, 0, sizeof(struct ath5k_hw_all_rx_desc)); in ath5k_hw_setup_rx_desc()
607 rx_status = &desc->ud.ds_rx.rx_stat; in ath5k_hw_proc_5210_rx_status()
[all …]
/drivers/net/
A Dnetconsole.c871 static struct netconsole_target *userdata_to_target(struct userdata *ud) in userdata_to_target() argument
875 netconsole_group = to_config_group(ud->group.cg_item.ci_parent); in userdata_to_target()
925 struct userdata *ud; in userdatum_value_store() local
938 ud = to_userdata(item->ci_parent); in userdatum_value_store()
939 nt = userdata_to_target(ud); in userdatum_value_store()
1134 struct userdata *ud; in userdatum_make_item() local
1139 ud = to_userdata(&group->cg_item); in userdatum_make_item()
1140 nt = userdata_to_target(ud); in userdatum_make_item()
1155 struct userdata *ud; in userdatum_drop() local
1157 ud = to_userdata(&group->cg_item); in userdatum_drop()
[all …]
/drivers/clk/baikal-t1/
A Dccu-pll.c91 unsigned long ud, ut; in ccu_pll_reset() local
94 ud = ccu_pll_lock_delay_us(ref_clk, nr); in ccu_pll_reset()
95 ut = ud * CCU_PLL_LOCK_CHECK_RETRIES; in ccu_pll_reset()
101 val & CCU_PLL_CTL_LOCK, ud, ut); in ccu_pll_reset()
/drivers/infiniband/hw/hfi1/
A Dtrace.c413 be32_to_cpu(eh->ud.deth[0]), in parse_everbs_hdrs()
414 be32_to_cpu(eh->ud.deth[1]) & RVT_QPN_MASK, in parse_everbs_hdrs()
415 be32_to_cpu(eh->ud.deth[1]) >> in parse_everbs_hdrs()
420 be32_to_cpu(eh->ud.deth[0]), in parse_everbs_hdrs()
421 be32_to_cpu(eh->ud.deth[1]) & RVT_QPN_MASK); in parse_everbs_hdrs()
A DMakefile47 ud.o \
/drivers/infiniband/sw/rxe/
A Drxe_av.c148 ah_num = pkt->wqe->wr.wr.ud.ah_num; in rxe_get_av()
172 return &pkt->wqe->wr.wr.ud.av; in rxe_get_av()
/drivers/tty/serial/
A Dsprd_serial.c289 struct sprd_uart_dma *ud, u32 trans_len, in sprd_uart_dma_submit() argument
301 dma_des = dmaengine_prep_slave_single(ud->chn, ud->phys_addr, trans_len, in sprd_uart_dma_submit()
309 ud->cookie = dmaengine_submit(dma_des); in sprd_uart_dma_submit()
310 if (dma_submit_error(ud->cookie)) in sprd_uart_dma_submit()
311 return dma_submit_error(ud->cookie); in sprd_uart_dma_submit()
313 dma_async_issue_pending(ud->chn); in sprd_uart_dma_submit()

Completed in 673 milliseconds

12