/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 …]
|
/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 …]
|
H A D | t8103.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interrupt-controller/apple-aic.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/pinctrl/apple.h> 16 compatible = "apple,t8103", "apple,arm-platform"; 18 #address-cells = <2>; 19 #size-cells = <2>; 22 #address-cells = <2>; 23 #size-cells = <0>; [all …]
|
/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 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 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() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/linux/drivers/soc/apple/ |
H A D | 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 107 spin_lock_irqsave(&mbox->tx_lock, flags); in apple_mbox_send() 108 mbox_ctrl = readl_relaxed(mbox->regs + mbox->hw->a2i_control); in apple_mbox_send() 110 while (mbox_ctrl & mbox->hw->control_full) { in apple_mbox_send() 113 mbox->regs + mbox->hw->a2i_control, mbox_ctrl, in apple_mbox_send() 114 !(mbox_ctrl & mbox->hw->control_full), 100, in apple_mbox_send() 118 spin_unlock_irqrestore(&mbox->tx_lock, flags); in apple_mbox_send() 126 * FIFO is empty. It will also keep firing if the FIFO was empty in apple_mbox_send() [all …]
|
/linux/drivers/mailbox/ |
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 …]
|
/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 28 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 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() [all …]
|
/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 …]
|
/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 81 * other party may NOT send FC until it receives complete message 95 /* Send/recv stats */ 143 * ishtp_cl_cmp_id - tells if file private data have same id [all …]
|
/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 */ 38 #define OI_STAT_VALID 2 /* holds valid ID, but is not active */ 109 * GENERIC ; do not modify beyond this line 123 struct mac_counter mac_ct ; /* recv., lost, error */
|
/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 38 The fact that IPv4 addresses are used does not mean the underlying 39 transport has to be IP-based. In fact, RDS over IB uses a 58 does not change. RDS will tolerate IPs moving around (eg in 59 a active-active HA scenario), but only as long as the address [all …]
|
H A D | ipvs-sysctl.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 IPvs-sysctl 10 am_droprate - INTEGER 16 amemthresh - INTEGER 25 backup_only - BOOLEAN 26 - 0 - disabled (default) 27 - not 0 - enabled 32 conn_reuse_mode - INTEGER 33 1 - default 52 conntrack - BOOLEAN [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_connect.c | 1 // SPDX-License-Identifier: GPL-2.0 109 fprintf(stderr, "Usage: mptcp_connect [-6] [-c cmsg] [-f offset] [-i file] [-I num] [-j] [-l] " in die_usage() 110 "[-m mode] [-M mark] [-o option] [-p port] [-P mode] [-r num] [-R num] " in die_usage() 111 "[-s MPTCP|TCP] [-S num] [-t num] [-T num] [-w sec] connect_address\n"); in die_usage() 112 fprintf(stderr, "\t-6 use ipv6\n"); in die_usage() 113 fprintf(stderr, "\t-c cmsg -- test cmsg type <cmsg>\n"); in die_usage() 114 fprintf(stderr, "\t-f offset -- stop the I/O after receiving and sending the specified amount " in die_usage() 118 fprintf(stderr, "\t-i file -- read the data to send from the given file instead of stdin"); in die_usage() 119 fprintf(stderr, "\t-I num -- repeat the transfer 'num' times. In listen mode accepts num " in die_usage() 121 fprintf(stderr, "\t-j -- add additional sleep at connection start and tear down " in die_usage() [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 59 /* -1 is an invalid flag. */ in test_hashmap() 60 assert(bpf_map_update_elem(fd, &key, &value, -1) < 0 && in test_hashmap() 74 /* Check that key=2 is not found. */ in test_hashmap() 79 /* key=2 is not there. */ in test_hashmap() 124 /* Check that map is empty. */ in test_hashmap() 182 /* Insert key=1 element which should not exist. */ in test_hashmap_percpu() 191 /* -1 is an invalid flag. */ in test_hashmap_percpu() 192 assert(bpf_map_update_elem(fd, &key, value, -1) < 0 && in test_hashmap_percpu() 203 /* Check that key=2 is not found. */ in test_hashmap_percpu() [all …]
|
/linux/tools/testing/selftests/mqueue/ |
H A D | mq_perf_tests.c | 47 " %s [-c #[,#..] -f] path\n" 49 " -c # Skip most tests and go straight to a high queue depth test\n" 59 " -f Only usable with continuous mode. Pin ourself to the CPUs\n" 67 " CPUs locked away from the test workload, but not doing\n" 99 mqd_t queue = -1; 120 "re-run the tests using fake mode in order to check " 136 "the no-mqueue work and mqueue work tests", 192 if (queue != -1) in shutdown() 283 * open_queue - open the global queue for testing 284 * @attr - An attr struct specifying the desired queue traits [all …]
|
/linux/drivers/net/ethernet/altera/ |
H A D | altera_sgdma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 56 priv->txctrlreg = SGDMA_CTRLREG_ILASTD | in sgdma_initialize() 59 priv->rxctrlreg = SGDMA_CTRLREG_IDESCRIP | in sgdma_initialize() 63 INIT_LIST_HEAD(&priv->txlisthd); in sgdma_initialize() 64 INIT_LIST_HEAD(&priv->rxlisthd); in sgdma_initialize() 66 priv->rxdescphys = (dma_addr_t) 0; in sgdma_initialize() 67 priv->txdescphys = (dma_addr_t) 0; in sgdma_initialize() 69 priv->rxdescphys = dma_map_single(priv->device, in sgdma_initialize() 70 (void __force *)priv->rx_dma_desc, in sgdma_initialize() 71 priv->rxdescmem, DMA_BIDIRECTIONAL); in sgdma_initialize() [all …]
|
/linux/drivers/watchdog/ |
H A D | mei_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0 40 * enum mei_wdt_state - internal watchdog state 43 * @MEI_WDT_IDLE: wd is idle and not opened 47 * @MEI_WDT_NOT_REQUIRED: wd device is not required 79 * struct mei_wdt - mei watchdog driver 109 * struct mei_mc_hdr - Management Control Command Header 124 * struct mei_wdt_start_request - watchdog start/ping 137 * struct mei_wdt_start_response - watchdog start/ping response 150 * struct mei_wdt_stop_request - watchdog stop 159 * mei_wdt_ping - send wd start/ping command [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | adapter.h | 2 * Copyright (c) 2003-2008 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 33 /* This file should not be included directly. Include common.h instead. */ 63 int (*recv)(struct port_info *pi, struct sk_buff *skb); member 102 struct sge_fl { /* SGE per free-buffer list state */ 118 unsigned long empty; /* # of times queue ran out of buffers */ member 139 within current sop-eop */ 150 unsigned long pure_rsps; /* # of pure (non-data) responses */ [all …]
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | hif.c | 2 * Copyright (c) 2007-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 23 #include "hif-ops.h" 37 buf = req->virt_dma_buf; in ath6kl_hif_cp_scat_dma_buf() 39 for (i = 0; i < req->scat_entries; i++) { in ath6kl_hif_cp_scat_dma_buf() 41 memcpy(req->scat_list[i].buf, buf, in ath6kl_hif_cp_scat_dma_buf() 42 req->scat_list[i].len); in ath6kl_hif_cp_scat_dma_buf() 44 memcpy(buf, req->scat_list[i].buf, in ath6kl_hif_cp_scat_dma_buf() 45 req->scat_list[i].len); in ath6kl_hif_cp_scat_dma_buf() 47 buf += req->scat_list[i].len; in ath6kl_hif_cp_scat_dma_buf() [all …]
|