/linux-6.3-rc2/drivers/usb/usbip/ |
A D | usbip_event.c | 16 struct usbip_device *ud; member 27 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() 157 if (ue->ud == ud) in usbip_event_add() [all …]
|
A D | stub_dev.c | 30 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 D | vudc_sysfs.c | 131 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 D | vhci_sysfs.c | 42 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 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() 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 D | vudc_dev.c | 431 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() 519 struct usbip_device *ud = &udc->ud; in init_vudc_hw() local [all …]
|
A D | vudc_rx.c | 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() 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 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 459 struct usbip_device *ud = &sdev->ud; in stub_recv_cmd_submit() local 589 if (stub_recv_xbuff(ud, priv) < 0) in stub_recv_cmd_submit() 633 struct stub_device *sdev = container_of(ud, struct stub_device, ud); in stub_rx_pdu() 678 struct usbip_device *ud = data; in stub_rx_loop() local 681 if (usbip_event_happened(ud)) in stub_rx_loop() [all …]
|
A D | vhci_hcd.c | 1013 struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); in vhci_shutdown_connection() 1016 if (ud->tcp_socket) { in vhci_shutdown_connection() 1022 if (vdev->ud.tcp_rx) { in vhci_shutdown_connection() 1024 vdev->ud.tcp_rx = NULL; in vhci_shutdown_connection() 1026 if (vdev->ud.tcp_tx) { in vhci_shutdown_connection() 1028 vdev->ud.tcp_tx = NULL; in vhci_shutdown_connection() 1036 vdev->ud.sockfd = -1; in vhci_shutdown_connection() 1069 struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); in vhci_device_reset() 1080 if (ud->tcp_socket) { in vhci_device_reset() 1082 ud->tcp_socket = NULL; in vhci_device_reset() [all …]
|
A D | usbip_common.h | 321 int usbip_recv_iso(struct usbip_device *ud, struct urb *urb); 322 void usbip_pad_iso(struct usbip_device *ud, struct urb *urb); 323 int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb); 328 int usbip_start_eh(struct usbip_device *ud); 329 void usbip_stop_eh(struct usbip_device *ud); 330 void usbip_event_add(struct usbip_device *ud, unsigned long event); 331 int usbip_event_happened(struct usbip_device *ud); 350 static inline void usbip_kcov_handle_init(struct usbip_device *ud) in usbip_kcov_handle_init() argument 352 ud->kcov_handle = kcov_common_handle(); in usbip_kcov_handle_init() 355 static inline void usbip_kcov_remote_start(struct usbip_device *ud) in usbip_kcov_remote_start() argument [all …]
|
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() 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 D | stub_tx.c | 21 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 D | usbip_common.c | 681 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 D | vhci_tx.c | 87 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 D | stub.h | 24 struct usbip_device ud; member
|
/linux-6.3-rc2/drivers/dma/ti/ |
A D | k3-udma-private.c | 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() 55 return ud->dev; in xudma_get_device() 61 return ud->ringacc; in xudma_get_ringacc() 67 return ud->psil_base; in xudma_dev_get_psil_base() 73 return &ud->tisci_rm; in xudma_dev_get_tisci_rm() 91 if (!ud->rflow_gp_map) in xudma_rflow_is_gp() 121 __udma_put_rflow(ud, p); in xudma_rflow_put() [all …]
|
A D | k3-udma.c | 1368 struct udma_dev *ud = uc->ud; in bcdma_get_bchan() local 1401 struct udma_dev *ud = uc->ud; in udma_get_tchan() local 1450 struct udma_dev *ud = uc->ud; in udma_get_rchan() local 1477 struct udma_dev *ud = uc->ud; in udma_get_chan_pair() local 1525 struct udma_dev *ud = uc->ud; in udma_get_rflow() local 1551 struct udma_dev *ud = uc->ud; in bcdma_put_bchan() local 4106 ud = uc->ud; in udma_dma_filter_fn() 4716 !ud->rflow_in_use || !ud->bchans || !ud->tchans || !ud->rchans || in bcdma_setup_resources() 4900 if (!ud->tchan_map || !ud->rchan_map || !ud->tflow_map || !ud->tchans || in pktdma_setup_resources() 4901 !ud->rchans || !ud->rflows || !ud->rflow_in_use) in pktdma_setup_resources() [all …]
|
A D | k3-udma.h | 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); 141 struct udma_tchan *xudma_tchan_get(struct udma_dev *ud, int id); 142 struct udma_rchan *xudma_rchan_get(struct udma_dev *ud, int id); 143 struct udma_rflow *xudma_rflow_get(struct udma_dev *ud, int id); 157 bool xudma_rflow_is_gp(struct udma_dev *ud, int id); 158 int xudma_get_rflow_ring_offset(struct udma_dev *ud); [all …]
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath5k/ |
A D | desc.c | 91 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 …]
|
/linux-6.3-rc2/net/sunrpc/auth_gss/ |
A D | svcauth_gss.c | 1263 if (!ud->found_creds) { in gss_proxy_save_rsc() 1271 rsci.cred = ud->creds; in gss_proxy_save_rsc() 1284 ud->out_handle.len, in gss_proxy_save_rsc() 1310 struct gssp_upcall_data ud; in svcauth_gss_proxy_init() local 1317 memset(&ud, 0, sizeof(ud)); in svcauth_gss_proxy_init() 1318 ret = gss_read_proxy_verf(rqstp, gc, &ud.in_handle, &ud.in_token); in svcauth_gss_proxy_init() 1329 trace_rpcgss_svc_accept_upcall(rqstp, ud.major_status, ud.minor_status); in svcauth_gss_proxy_init() 1331 switch (ud.major_status) { in svcauth_gss_proxy_init() 1333 cli_handle = ud.out_handle; in svcauth_gss_proxy_init() 1352 &ud.out_token, ud.major_status, in svcauth_gss_proxy_init() [all …]
|
/linux-6.3-rc2/include/rdma/ |
A D | ib_hdrs.h | 67 } ud; member 211 return be32_to_cpu(ohdr->u.ud.deth[0]); in ib_get_qkey() 216 return ((be32_to_cpu(ohdr->u.ud.deth[1])) & IB_QPN_MASK); in ib_get_sqpn()
|
/linux-6.3-rc2/drivers/infiniband/hw/qib/ |
A D | qib_ud.c | 341 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; in qib_make_ud_req() 382 ohdr->u.ud.deth[0] = in qib_make_ud_req() 385 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in qib_make_ud_req() 447 qkey = be32_to_cpu(ohdr->u.ud.deth[0]); in qib_ud_rcv() 448 src_qp = be32_to_cpu(ohdr->u.ud.deth[1]) & RVT_QPN_MASK; in qib_ud_rcv() 511 wc.ex.imm_data = ohdr->u.ud.imm_data; in qib_ud_rcv()
|
/linux-6.3-rc2/drivers/infiniband/sw/rxe/ |
A D | rxe_av.c | 148 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()
|
/linux-6.3-rc2/drivers/clk/baikal-t1/ |
A D | ccu-pll.c | 91 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()
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | trace.c | 413 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()
|