| /linux/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 = NULL; in get_event() local [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 state */ in usbip_sockfd_store() [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.lock); 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.lock); in vhci_port_disconnect() [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->tcp_rx); in vudc_shutdown() 441 ud->tcp_rx = NULL; in vudc_shutdown() [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_TCP); in v_rx_pdu() 205 spin_lock_irq(&ud->lock); in v_rx_pdu() [all …]
|
| H A D | usbip_common.h | 315 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 …]
|
| H 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()
|
| H A D | usbip_common.c | 660 int usbip_recv_iso(struct usbip_device *ud, struct urb *urb) in usbip_recv_iso() argument 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() 728 void usbip_pad_iso(struct usbip_device *ud, struct urb *urb) in usbip_pad_iso() argument 762 int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb) in usbip_recv_xbuff() argument [all …]
|
| /linux/drivers/dma/ti/ |
| 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->desc_to_purge, &head); in udma_purge_desc_work() 564 spin_unlock_irqrestore(&ud->lock, flags); in udma_purge_desc_work() [all …]
|
| 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->dev; in xudma_get_device() [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 u32 xudma_dev_get_psil_base(struct udma_dev *ud); 135 struct udma_tisci_rm *xudma_dev_get_tisci_rm(struct udma_dev *ud); 137 int xudma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt); 138 int xudma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt); 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); [all …]
|
| /linux/Documentation/devicetree/bindings/display/panel/ |
| H A D | sharp,lq150x1lg11.yaml | 25 GPIO for the RL/UD (rotate 180 degrees) pin. 27 the RL/UD and/or SELLVDS pins are assumed to be handled 35 the RL/UD and/or SELLVDS pins are assumed to be handled 54 rlud-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; /* RL/UD */
|
| H A D | sharp,ls037v7dw01.yaml | 35 GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf 59 &gpio1 3 GPIO_ACTIVE_HIGH>; /* gpio3, lcd UD */
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | desc.c | 91 tx_ctl = &desc->ud.ds_tx5210.tx_ctl; in ath5k_hw_setup_2word_tx_desc() 111 memset(&desc->ud.ds_tx5210, 0, sizeof(struct ath5k_hw_5210_tx_desc)); 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() [all …]
|
| /linux/drivers/block/ |
| H A D | ataflop.c | 309 #define UD unit[drive] macro 538 FDC_WRITE( FDCREG_TRACK, UD.track ); in fd_select_drive() 618 if (++drive > 1 || !UD.connected) in check_change() 632 if (stat != UD.wpstat) { in check_change() 634 UD.wpstat = stat; in check_change() 867 if (UD.track == -1) in do_fd_action() 869 else if (UD.track != ReqTrack << UDT->stretch) in do_fd_action() 1449 if (UD.wpstat) { in floppy_check_events() 1466 if (UD.flags & FTD_MSG) in floppy_revalidate() 1532 if (!UD.connected) { in ataflop_queue_rq() [all …]
|
| /linux/arch/powerpc/platforms/powermac/ |
| H A D | pfunc_core.c | 273 LOG_PARSE("pmf: read_i2c(bytes: %ud)\n", bytes); in pmf_parser_read_i2c() 283 LOG_PARSE("pmf: write_i2c(bytes: %ud) ...\n", bytes); in pmf_parser_write_i2c() 298 LOG_PARSE("pmf: rmw_i2c(maskbytes: %ud, valuebytes: %ud, " in pmf_parser_rmw_i2c() 313 LOG_PARSE("pmf: read_cfg(offset: %x, bytes: %ud)\n", offset, bytes); in pmf_parser_read_cfg() 325 LOG_PARSE("pmf: write_cfg(offset: %x, bytes: %ud)\n", offset, bytes); in pmf_parser_write_cfg() 340 LOG_PARSE("pmf: rmw_cfg(maskbytes: %ud, valuebytes: %ud," in pmf_parser_rmw_cfg() 356 LOG_PARSE("pmf: read_i2c_sub(subaddr: %x, bytes: %ud)\n", in pmf_parser_read_i2c_sub() 368 LOG_PARSE("pmf: write_i2c_sub(subaddr: %x, bytes: %ud) ...\n", in pmf_parser_write_i2c_sub() 394 LOG_PARSE("pmf: rmw_i2c_sub(subaddr: %x, maskbytes: %ud, valuebytes: %ud" in pmf_parser_rmw_i2c_sub() 491 LOG_PARSE("pmf: mask_and_compare(length: %ud ...\n", bytes); in pmf_parser_mask_and_compare()
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | svcauth_gss.c | 1219 struct gssp_upcall_data *ud, in gss_proxy_save_rsc() argument 1247 if (!ud->found_creds) { in gss_proxy_save_rsc() 1255 rsci.cred = ud->creds; in gss_proxy_save_rsc() 1256 memset(&ud->creds, 0, sizeof(struct svc_cred)); in gss_proxy_save_rsc() 1260 gm = gss_mech_get_by_OID(&ud->mech_oid); in gss_proxy_save_rsc() 1267 status = gss_import_sec_context(ud->out_handle.data, in gss_proxy_save_rsc() 1268 ud->out_handle.len, in gss_proxy_save_rsc() 1294 struct gssp_upcall_data ud; in svcauth_gss_proxy_init() local 1301 memset(&ud, 0, sizeof(ud)); in svcauth_gss_proxy_init() 1302 ret = gss_read_proxy_verf(rqstp, gc, &ud.in_handle, &ud.in_token); in svcauth_gss_proxy_init() [all …]
|
| /linux/Documentation/infiniband/ |
| H A D | ipoib.rst | 40 In datagram mode, the IB UD (Unreliable Datagram) transport is used 52 In connected mode, the interface's UD QP is still used for multicast 55 networking stack to use the smaller UD MTU for these neighbours.
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_av.c | 148 ah_num = pkt->wqe->wr.wr.ud.ah_num; in rxe_get_av() 171 /* only old user provider for UD sends*/ in rxe_get_av() 172 return &pkt->wqe->wr.wr.ud.av; in rxe_get_av()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | trace.c | 411 case OP(UD, SEND_ONLY): in parse_everbs_hdrs() 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() 418 case OP(UD, SEND_ONLY_WITH_IMMEDIATE): 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()
|
| /linux/include/rdma/ |
| H 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/tools/testing/selftests/kvm/x86/ |
| H A D | monitor_mwait_test.c | 23 * If both MWAIT and its quirk are disabled, MONITOR/MWAIT should #UD, in all 33 "Expected #UD on " insn " for testcase '0x%x', got %s", \
|
| /linux/drivers/clk/baikal-t1/ |
| H 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/drivers/tty/serial/ |
| H A D | sprd_serial.c | 289 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()
|