/openbmc/linux/Documentation/devicetree/bindings/mailbox/ |
H A D | apple,mailbox.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Hector Martin <marcan@marcan.st> 11 - Sven Peter <sven@svenpeter.dev> 15 messages between the main CPU and a co-processor. Multiple instances 17 One of the two FIFOs is used to send data to a co-processor while the other 25 - description: 30 - enum: 31 - apple,t8103-asc-mailbox [all …]
|
/openbmc/linux/arch/arm64/boot/dts/apple/ |
H A D | t600x-nvme.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 9 compatible = "apple,t6000-asc-mailbox", "apple,asc-mailbox-v4"; 11 interrupt-parent = <&aic>; 16 interrupt-names = "send-empty", "send-not-empty", 17 "recv-empty", "recv-not-empty"; 18 power-domains = <&DIE_NODE(ps_ans2)>; 19 #mbox-cells = <0>; 23 compatible = "apple,t6000-sart"; 25 power-domains = <&DIE_NODE(ps_ans2)>; 29 compatible = "apple,t6000-nvme-ans2", "apple,nvme-ans2"; [all …]
|
/openbmc/linux/net/rds/ |
H A D | ib_recv.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 37 #include <linux/dma-mapping.h> 50 struct rds_ib_recv_work *recv; in rds_ib_recv_init_ring() local 53 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rds_ib_recv_init_ring() 56 recv->r_ibinc = NULL; in rds_ib_recv_init_ring() 57 recv->r_frag = NULL; in rds_ib_recv_init_ring() 59 recv->r_wr.next = NULL; in rds_ib_recv_init_ring() 60 recv->r_wr.wr_id = i; in rds_ib_recv_init_ring() 61 recv->r_wr.sg_list = recv->r_sge; in rds_ib_recv_init_ring() [all …]
|
/openbmc/linux/drivers/usb/usbip/ |
H A D | vhci_rx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2003-2008 Takahiro Hirofuchi 12 /* get URB from transmitted urb queue. caller must hold vdev->priv_lock */ 19 list_for_each_entry_safe(priv, tmp, &vdev->priv_rx, list) { in pickup_urb_and_free_priv() 20 if (priv->seqnum != seqnum) in pickup_urb_and_free_priv() 23 urb = priv->urb; in pickup_urb_and_free_priv() 24 status = urb->status; in pickup_urb_and_free_priv() 29 case -ENOENT: in pickup_urb_and_free_priv() 31 case -ECONNRESET: in pickup_urb_and_free_priv() 32 dev_dbg(&urb->dev->dev, in pickup_urb_and_free_priv() [all …]
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial_mxc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <asm/arch/imx-regs.h> 28 #define UCR1_RRDYEN (1<<9) /* Recv ready interrupt enable */ 29 #define UCR1_RDMAEN (1<<8) /* Recv ready DMA enable */ 31 #define UCR1_TXMPTYEN (1<<6) /* Transimitter empty interrupt enable */ 74 #define UCR4_DREN (1<<0) /* Recv data ready interrupt enable */ 93 #define USR2_TXFE (1<<14) /* Transmit buffer FIFO empty */ 102 #define USR2_RDR (1<<0) /* Recv data ready */ 105 #define UTS_TXEMPTY (1<<6) /* TxFIFO empty */ 106 #define UTS_RXEMPTY (1<<5) /* RxFIFO empty */ [all …]
|
/openbmc/u-boot/drivers/tpm/ |
H A D | tpm2_tis_sandbox.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 #include <tpm-v2.h> 161 if (!pw_sz && !tpm->pw_sz[*hierarchy]) in sandbox_tpm2_check_session() 175 if (pw_sz != tpm->pw_sz[*hierarchy] || in sandbox_tpm2_check_session() 176 strncmp(pw, tpm->pw[*hierarchy], tpm->pw_sz[*hierarchy])) { in sandbox_tpm2_check_session() 190 if (!tpm->init_done || tpm->startup_done) in sandbox_tpm2_check_readyness() 195 if (!tpm->init_done || !tpm->startup_done) in sandbox_tpm2_check_readyness() 200 if (!tpm->startup_done) in sandbox_tpm2_check_readyness() 205 if (!tpm->tests_done) in sandbox_tpm2_check_readyness() 214 static int sandbox_tpm2_fill_buf(u8 *recv, size_t *recv_len, u16 tag, u32 rc) in sandbox_tpm2_fill_buf() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_ct.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2016-2019 Intel Corporation 31 if (!(ct)->dead_ct_reported) { \ 32 (ct)->dead_ct_reason |= 1 << CT_DEAD_##reason; \ 33 queue_work(system_unbound_wq, &(ct)->dead_ct_worker); \ 61 * +--------+-----------------------------------------------+------+ 65 * +--------+-----------------------------------------------+ 4K | 66 * | 0x0800 | G2H `CTB Descriptor`_ (recv) | | 67 * +--------+-----------------------------------------------+------+ 70 * +--------+-----------------------------------------------+------+ [all …]
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A D | stack.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 __func__, hh->prim, hh->id, skb); in _queue_message() 28 skb_queue_tail(&st->msgq, skb); in _queue_message() 29 if (likely(!test_bit(mISDN_STACK_STOPPED, &st->status))) { in _queue_message() 30 test_and_set_bit(mISDN_STACK_WORK, &st->status); in _queue_message() 31 wake_up_interruptible(&st->workq); in _queue_message() 38 _queue_message(ch->st, skb); in mISDN_queue_message() 47 mutex_lock(&st->lmutex); in get_channel4id() 48 list_for_each_entry(ch, &st->layer2, list) { in get_channel4id() 49 if (id == ch->nr) in get_channel4id() [all …]
|
/openbmc/qemu/migration/ |
H A D | multifd.h | 4 * Copyright (c) 2019-2020 Red Hat Inc 10 * See the COPYING file in the top-level directory. 70 * - normal pages (initial normal_pages entries) 71 * - zero pages (following zero_pages entries) 109 return data->type == MULTIFD_PAYLOAD_NONE; in multifd_payload_empty() 115 data->type = type; in multifd_set_payload_type() 218 /* buffers to recv */ 228 /* used for de-compression methods */ 242 * Must allocate p->iov. If packets are in use (default), one 246 * p->write_flags may be used for passing flags to the QIOChannel. [all …]
|
/openbmc/linux/tools/testing/vsock/ |
H A D | vsock_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vsock_test - vsock.ko test suite 36 .svm_cid = opts->peer_cid, in test_stream_connection_reset() 51 if (ret != -1) { in test_stream_connection_reset() 72 .svm_cid = opts->peer_cid, in test_stream_bind_only_client() 90 if (ret != -1) { in test_stream_bind_only_client() 139 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_client_close_client() 160 * -EPIPE error on send. in test_stream_client_close_server() 164 send_byte(fd, -EPIPE, 0); in test_stream_client_close_server() 174 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_server_close_client() [all …]
|
/openbmc/linux/drivers/infiniband/ulp/rtrs/ |
H A D | README | 15 RTRS provides I/O fail-over and load-balancing capabilities by using 17 Documentation/ABI/testing/sysfs-class-rtrs-client). 26 -------- 64 ------------------------ 93 (i.e. steps 1-4 finished for all paths requested for a session) 95 6. Server and client exchange periodically heartbeat messages (empty rdma 105 RTRS_MSG_CON_REQ -------------------> 106 <------------------- RTRS_MSG_CON_RSP 109 RTRS_MSG_INFO_REQ -------------------> 110 <------------------- RTRS_MSG_INFO_RSP [all …]
|
/openbmc/linux/drivers/mailbox/ |
H A D | apple-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 9 * exchange 64+32 bit messages between the main CPU and a co-processor. 13 * Both the main CPU and the co-processor see the same set of registers but 19 #include <linux/apple-mailbox.h> 113 readl_relaxed(apple_mbox->regs + apple_mbox->hw->a2i_control); in apple_mbox_hw_can_send() 115 return !(mbox_ctrl & apple_mbox->hw->control_full); in apple_mbox_hw_can_send() 121 readl_relaxed(apple_mbox->regs + apple_mbox->hw->a2i_control); in apple_mbox_hw_send_empty() 123 return mbox_ctrl & apple_mbox->hw->control_empty; in apple_mbox_hw_send_empty() 130 return -EBUSY; in apple_mbox_hw_send() 132 dev_dbg(apple_mbox->dev, "> TX %016llx %08x\n", msg->msg0, msg->msg1); in apple_mbox_hw_send() [all …]
|
H A D | tegra-hsp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2016-2023, NVIDIA CORPORATION. All rights reserved. 17 #include <dt-bindings/mailbox/tegra186-hsp.h> 79 void (*recv)(struct tegra_hsp_channel *channel); member 128 return readl(hsp->regs + offset); in tegra_hsp_readl() 134 writel(value, hsp->regs + offset); in tegra_hsp_writel() 140 return readl(channel->regs + offset); in tegra_hsp_channel_readl() 146 writel(value, channel->regs + offset); in tegra_hsp_channel_writel() 153 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_ENABLE); in tegra_hsp_doorbell_can_ring() 163 list_for_each_entry(entry, &hsp->doorbells, list) in __tegra_hsp_doorbell_get() [all …]
|
/openbmc/linux/drivers/soc/ixp4xx/ |
H A D | ixp4xx-npe.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - Intel IXP4xx Developer's Manual and other e-papers 9 * - Intel IXP400 Access Library Software (BSD license) 10 * - previous works by Christian Hohnstaedt <chohnstaedt@innominate.com> 15 #include <linux/dma-mapping.h> 121 #define NPE_A_FIRMWARE "NPE-A" 122 #define NPE_B_FIRMWARE "NPE-B" 123 #define NPE_C_FIRMWARE "NPE-C" 167 return (__raw_readl(&npe->regs->exec_status_cmd) & STAT_RUN) != 0; in npe_running() 172 __raw_writel(data, &npe->regs->exec_data); in npe_cmd_write() [all …]
|
/openbmc/linux/arch/mips/include/asm/sn/ |
H A D | ioc3.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 50 u8 fill0[0x151 - 0x142 - 1]; 56 u8 fill1[0x159 - 0x153 - 1]; 62 u8 fill2[0x16a - 0x15b - 1]; 67 u8 fill3[0x170 - 0x16b - 1]; 153 u32 pad1[(0x20000 - 0x00154) / 4]; 157 u32 pad2[(0x40000 - 0x20180) / 4]; 160 u32 ssram[(0x80000 - 0x40000) / 4]; 163 0x80000 - Access to the generic devices selected with DEV0 165 0xA0000 - Access to the generic devices selected with DEV1 [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | mad.c | 2 * Copyright (c) 2004-2007 Voltaire, Inc. All rights reserved. 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 40 #include <linux/dma-mapping.h> 62 struct ib_ud_wr *wr = &mad_send_wr->send_wr; in create_mad_addr_info() 65 rdma_query_ah(wr->ah, &attr); in create_mad_addr_info() 68 entry->sl = attr.sl; in create_mad_addr_info() 69 entry->rqpn = wr->remote_qpn; in create_mad_addr_info() 70 entry->rqkey = wr->remote_qkey; in create_mad_addr_info() 71 entry->dlid = rdma_ah_get_dlid(&attr); in create_mad_addr_info() [all …]
|
/openbmc/linux/drivers/misc/ti-st/ |
H A D | st_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Texas Instruments 31 pr_info("%s: id %d\n", __func__, new_proto->chnl_id); in add_channel_to_table() 33 st_gdata->list[new_proto->chnl_id] = new_proto; in add_channel_to_table() 34 st_gdata->is_registered[new_proto->chnl_id] = true; in add_channel_to_table() 40 pr_info("%s: id %d\n", __func__, proto->chnl_id); in remove_channel_from_table() 41 /* st_gdata->list[proto->chnl_id] = NULL; */ in remove_channel_from_table() 42 st_gdata->is_registered[proto->chnl_id] = false; in remove_channel_from_table() 48 * This is a wrapper function to tty->ops->write_room. 54 if (unlikely(st_gdata == NULL || st_gdata->tty == NULL)) { in st_get_uart_wr_room() [all …]
|
/openbmc/linux/drivers/hid/intel-ish-hid/ishtp/ |
H A D | client.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (c) 2003-2016, Intel Corporation. 12 #include "ishtp-dev.h" 63 /* Rx in-process list */ 76 * if we get a FC, and the list is not empty, we must know whether we 78 * if so -need to increase FC counter, otherwise, need to start sending 80 * (!)This is for counting-FC implementation only. Within single-FC the 95 /* Send/recv stats */ 144 * ishtp_cl_cmp_id - tells if file private data have same id 145 * returns true - if ids are the same and not NULL [all …]
|
/openbmc/linux/drivers/net/fddi/skfp/h/ |
H A D | targethw.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 37 #define OI_STAT_PRESENT 1 /* entry present but not empty */ 123 struct mac_counter mac_ct ; /* recv., lost, error */
|
/openbmc/qemu/hw/usb/ |
H A D | dev-smartcard-reader.c | 8 * Based on usb-serial.c, see its copyright and attributions below. 11 * See the COPYING file in the top-level directory. 12 * ------- (original copyright & attribution for usb-serial.c below) -------- 14 * Copyright (c) 2008 Samuel Thibault <samuel.thibault@ens-lyon.org> 31 * symptom: dmesg shows ERMOTEIO (-121), pcscd shows -99. This can happen 32 * when a short packet is sent, as seen in uhci-usb.c, resulting from a urb 41 #include "qemu/error-report.h" 43 #include "hw/qdev-properties.h" 53 if (lvl <= s->debug) { \ 54 printf("usb-ccid: " fmt , ## __VA_ARGS__); \ [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | so_txtime.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * mode using the '-r' option. Receiver will compare arrival timestamps to 10 * queue. The streams can differ due to out-of-order delivery and drops. 82 iov.iov_base = &ts->data; in do_send_one() 90 if (ts->delay_us >= 0) { in do_send_one() 95 tdeliver = glob_tstart + ts->delay_us * 1000; in do_send_one() 100 cm->cmsg_level = SOL_SOCKET; in do_send_one() 101 cm->cmsg_type = SCM_TXTIME; in do_send_one() 102 cm->cmsg_len = CMSG_LEN(sizeof(tdeliver)); in do_send_one() 107 if (ret == -1) in do_send_one() [all …]
|
/openbmc/linux/net/smc/ |
H A D | smc_core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 29 * also is the default value for SMC-R v1 and v2.0 32 * SMC-R v2.1 and later negotiation, vendors or 34 * 16-255 as needed. 95 struct smc_ib_device *smcibdev; /* ib-device */ 96 u8 ibport; /* port - values 1 | 2 */ 125 struct smc_wr_buf *wr_rx_bufs; /* WR recv payload buffers */ 126 struct ib_recv_wr *wr_rx_ibs; /* WR recv meta data */ 127 struct ib_sge *wr_rx_sges; /* WR recv scatter meta data */ [all …]
|
/openbmc/linux/Documentation/networking/ |
H A D | rds.rst | 1 .. SPDX-License-Identifier: GPL-2.0 14 http://oss.oracle.com/pipermail/rds-devel/2007-November/000228.html 22 cluster - so in a cluster with N processes you need N sockets, in contrast 23 to N*N if you use a connection-oriented socket transport like TCP. 25 RDS is not Infiniband-specific; it was designed to support different 29 The high-level semantics of RDS from the application's point of view are 39 transport has to be IP-based. In fact, RDS over IB uses a 59 a active-active HA scenario), but only as long as the address 72 to create RDS sockets. SOL_RDS is the socket-level to be used 87 This is a soft limit rather than a hard limit - RDS will [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | xilinx_emaclite.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2007-2009 Michal Simek 42 /* Recv complete */ 44 /* Recv interrupt enable bit */ 64 u32 tx_ping; /* 0x0 - TX Ping buffer */ 66 u32 mdioaddr; /* 0x7e4 - MDIO Address Register */ 67 u32 mdiowr; /* 0x7e8 - MDIO Write Data Register */ 68 u32 mdiord;/* 0x7ec - MDIO Read Data Register */ 69 u32 mdioctrl; /* 0x7f0 - MDIO Control Register */ 70 u32 tx_ping_tplr; /* 0x7f4 - Tx packet length */ [all …]
|
/openbmc/qemu/hw/i2c/ |
H A D | npcm7xx_smbus.c | 22 #include "qemu/guest-random.h" 164 #define NPCM7XX_SMBUS_ENABLED(s) ((s)->ctl2 & NPCM7XX_SMBCTL2_ENABLE) 165 #define NPCM7XX_SMBUS_FIFO_ENABLED(s) ((s)->fif_ctl & \ 168 /* VERSION fields values, read-only. */ 204 if (s->ctl1 & NPCM7XX_SMBCTL1_INTEN) { in npcm7xx_smbus_update_irq() 205 level = !!((s->ctl1 & NPCM7XX_SMBCTL1_NMINTE && in npcm7xx_smbus_update_irq() 206 s->st & NPCM7XX_SMBST_NMATCH) || in npcm7xx_smbus_update_irq() 207 (s->st & NPCM7XX_SMBST_BER) || in npcm7xx_smbus_update_irq() 208 (s->st & NPCM7XX_SMBST_NEGACK) || in npcm7xx_smbus_update_irq() 209 (s->st & NPCM7XX_SMBST_SDAST) || in npcm7xx_smbus_update_irq() [all …]
|