Home
last modified time | relevance | path

Searched +full:recv +full:- +full:empty (Results 1 – 25 of 92) sorted by relevance

1234

/linux/arch/arm64/boot/dts/apple/
H A Dt600x-nvme.dtsi1 // 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 …]
/linux/net/rds/
H A Dib_recv.c14 * - 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 …]
/linux/drivers/mailbox/
H A Dtegra-hsp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2016-2025, NVIDIA CORPORATION. All rights reserved.
17 #include <dt-bindings/mailbox/tegra186-hsp.h>
71 void (*recv)(struct tegra_hsp_channel *channel); member
134 return readl(hsp->regs + offset); in tegra_hsp_readl()
140 writel(value, hsp->regs + offset); in tegra_hsp_writel()
146 return readl(channel->regs + offset); in tegra_hsp_channel_readl()
152 writel(value, channel->regs + offset); in tegra_hsp_channel_writel()
159 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_ENABLE); in tegra_hsp_doorbell_can_ring()
169 list_for_each_entry(entry, &hsp->doorbells, list) in __tegra_hsp_doorbell_get()
[all …]
/linux/drivers/infiniband/ulp/rtrs/
H A DREADME15 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 …]
/linux/drivers/soc/apple/
H A Dmailbox.c1 // 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
110 spin_lock_irqsave(&mbox->tx_lock, flags); in apple_mbox_send()
111 mbox_ctrl = readl_relaxed(mbox->regs + mbox->hw->a2i_control); in apple_mbox_send()
113 while (mbox_ctrl & mbox->hw->control_full) { in apple_mbox_send()
116 mbox->regs + mbox->hw->a2i_control, mbox_ctrl, in apple_mbox_send()
117 !(mbox_ctrl & mbox->hw->control_full), 100, in apple_mbox_send()
121 spin_unlock_irqrestore(&mbox->tx_lock, flags); in apple_mbox_send()
129 * FIFO is empty. It will also keep firing if the FIFO was empty in apple_mbox_send()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcq.c2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
52 spin_lock_irqsave(&ctx->lock, flags); in mlx5_cq_tasklet_cb()
53 list_splice_tail_init(&ctx->list, &ctx->process_list); in mlx5_cq_tasklet_cb()
54 spin_unlock_irqrestore(&ctx->lock, flags); in mlx5_cq_tasklet_cb()
56 list_for_each_entry_safe(mcq, temp, &ctx->process_list, in mlx5_cq_tasklet_cb()
58 list_del_init(&mcq->tasklet_ctx.list); in mlx5_cq_tasklet_cb()
59 mcq->tasklet_ctx.comp(mcq, NULL); in mlx5_cq_tasklet_cb()
65 if (!list_empty(&ctx->process_list)) in mlx5_cq_tasklet_cb()
[all …]
/linux/arch/mips/include/asm/sn/
H A Dioc3.h1 /* 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/drivers/infiniband/core/
H A Dmad.c2 * 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 …]
/linux/tools/testing/selftests/net/
H A Dso_txtime.c
/linux/tools/testing/selftests/drivers/net/
H A Dso_txtime.c1 // 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.
87 iov.iov_base = &ts->data; in do_send_one()
95 if (ts->delay_us >= 0) { in do_send_one()
100 tdeliver = glob_tstart + ts->delay_us * 1000; in do_send_one()
105 cm->cmsg_level = SOL_SOCKET; in do_send_one()
106 cm->cmsg_type = SCM_TXTIME; in do_send_one()
107 cm->cmsg_len = CMSG_LEN(sizeof(tdeliver)); in do_send_one()
112 if (ret == -1) in do_send_one()
[all …]
/linux/drivers/net/fddi/skfp/h/
H A Dtargethw.h1 /* 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 */
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_ktls.c1 // SPDX-License-Identifier: GPL-2.0
46 return -1; in init_ktls_pairs()
55 return -1; in create_ktls_pairs()
59 return -1; in create_ktls_pairs()
74 v4->sin_family = AF_INET; in test_sockmap_ktls_update_fails_when_sock_has_ulp()
78 v6->sin6_family = AF_INET6; in test_sockmap_ktls_update_fails_when_sock_has_ulp()
101 /* save sk->sk_prot and set it to tls_prots */ in test_sockmap_ktls_update_fails_when_sock_has_ulp()
111 /* call sk->sk_pro in test_sockmap_ktls_update_fails_when_sock_has_ulp()
[all...]
H A Dselect_reuseport.c1 // SPDX-License-Identifier: GPL-2.0
37 static int reuseport_array = -1, outer_map = -1;
56 return -1; \
137 sa->ss_family = family;
138 if (sa->ss_family == AF_INET6) in sa46_init_loopback()
139 ((struct sockaddr_in6 *)sa)->sin6_addr = in6addr_loopback; in sa46_init_loopback()
141 ((struct sockaddr_in *)sa)->sin_add in sa46_init_loopback()
[all...]
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.c1 // SPDX-License-Identifier: GPL-2.0
113 fprintf(stderr, "Usage: mptcp_connect [-6] [-c cmsg] [-f offset] [-i file] [-I num] [-j] [-l] " in die_usage()
114 "[-m mode] [-M mark] [-o option] [-p port] [-P mode] [-r num] [-R num] " in die_usage()
115 "[-s MPTCP|TCP] [-S num] [-t num] [-T num] [-w sec] connect_address\n"); in die_usage()
116 fprintf(stderr, "\t-6 use ipv6\n"); in die_usage()
117 fprintf(stderr, "\t-c cmsg -- test cmsg type <cmsg>\n"); in die_usage()
118 fprintf(stderr, "\t-f offset -- stop the I/O after receiving and sending the specified amount " in die_usage()
122 fprintf(stderr, "\t-i file -- read the data to send from the given file instead of stdin"); in die_usage()
123 fprintf(stderr, "\t-I num -- repeat the transfer 'num' times. In listen mode accepts num " in die_usage()
125 fprintf(stderr, "\t-j -- add additional sleep at connection start and tear down " in die_usage()
[all …]
/linux/drivers/perf/
H A Dxgene_pmu.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * APM X-Gene SoC PMU (Performance Monitor Unit)
79 #define GET_CNTR(ev) (ev->hw.idx)
80 #define GET_EVENTID(ev) (ev->hw.config & 0xFFULL)
81 #define GET_AGENTID(ev) (ev->hw.config_base & 0xFFFFFFFFUL)
82 #define GET_AGENT1ID(ev) ((ev->hw.config_base >> 32) & 0xFFFFFFFFUL)
172 XGENE_PMU_FORMAT_ATTR(l3c_eventid, "config:0-7"),
173 XGENE_PMU_FORMAT_ATTR(l3c_agentid, "config1:0-9"),
178 XGENE_PMU_FORMAT_ATTR(iob_eventid, "config:0-7"),
179 XGENE_PMU_FORMAT_ATTR(iob_agentid, "config1:0-63"),
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_maps.c1 // SPDX-License-Identifier: GPL-2.0-only
55 /* -1 is an invalid flag. */ in test_hashmap()
56 assert(bpf_map_update_elem(fd, &key, &value, -1) < 0 && in test_hashmap()
120 /* Check that map is empty. */ in test_hashmap()
187 /* -1 is an invalid flag. */ in test_hashmap_percpu()
188 assert(bpf_map_update_elem(fd, &key, value, -1) < 0 && in test_hashmap_percpu()
254 /* Check that map is empty. */ in test_hashmap_percpu()
291 "err: %s\n", strerror(-ret)); in helper_fill_hashmap()
328 assert(value[0] - 1 == key); in test_hashmap_walk()
454 bpf_percpu(values, nr_cpus - 1) == 0); in test_arraymap_percpu()
[all …]
/linux/tools/testing/selftests/mqueue/
H A Dmq_perf_tests.c47 " %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"
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
285 * @result - An attr struct that lists the actual traits the queue has
[all …]
/linux/tools/net/ynl/pyynl/
H A Dcli.py2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
17 # pylint: disable=no-name-in-module,wrong-import-position
22 # pylint: disable=too-few-public-methods,too-many-locals
50 """A custom encoder for emitting JSON with ynl-specific instance types"""
65 attr_info = f'{prefix}- {color(attr_name, Colors.BOLD)}: {attr.type}'
78 if attr.type == 'nest' and 'nested-attributes' in attr.yaml:
79 nested_set_name = attr.yaml['nested-attributes']
80 attr_info += f" -> {nested_set_name}"
121 """Handle --list-attrs $op, print the attr information to stdout"""
152 # pylint: disable=too-many-locals,too-many-branches,too-many-statements
[all …]
/linux/drivers/net/wireless/ath/ath6kl/
H A Dhif.c2 * 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 …]
/linux/drivers/net/ethernet/altera/
H A Daltera_sgdma.c1 // 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/net/ethernet/chelsio/cxgb3/
H A Dadapter.h2 * 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
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 */
154 unsigned long empty; /* # of times queue ran out of credits */ member
166 unsigned int in_use; /* # of in-use Tx descriptors */
[all …]
/linux/drivers/watchdog/
H A Dmei_wdt.c1 // SPDX-License-Identifier: GPL-2.0
40 * enum mei_wdt_state - internal watchdog state
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
174 req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand); in mei_wdt_ping()
177 req.timeout = wdt->timeout; in mei_wdt_ping()
[all …]
/linux/kernel/bpf/
H A Dcpumap.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * CPU will do SKB-allocation and call the normal network stack.
20 * basically allows for 10G wirespeed pre-filtering via bpf.
41 * will maximum be stored/queued for one driver ->poll() call. It is
47 #define CPU_MAP_BULK_SIZE 8 /* 8 == one cacheline on 64-bit archs */
64 /* XDP can run multiple RX-ring queues, need __percpu enqueue store */
67 /* Queue with potential multi-producers, and single-consumer kthread */
87 u32 value_size = attr->value_size; in cpu_map_alloc()
91 if (attr->max_entries == 0 || attr->key_size != 4 || in cpu_map_alloc()
94 attr->map_flags & ~BPF_F_NUMA_NODE) in cpu_map_alloc()
[all …]
/linux/include/linux/
H A Dtpm.h1 /* SPDX-License-Identifier: GPL-2.0-only */
46 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len); member
214 return chip->flags & TPM_CHIP_FLAG_FIRMWARE_UPGRADE; in tpm_is_firmware_upgrade()
234 return -ENOMEM; in tpm_ret_to_err()
236 return -EINVAL; in tpm_ret_to_err()
238 return -EPERM; in tpm_ret_to_err()
260 /* simple authorization for empty auth */ in tpm_buf_append_empty_auth()
270 return -ENODEV; in tpm_is_tpm2()
275 return -ENODEV; in tpm_pcr_read()
281 return -ENODEV; in tpm_pcr_extend()
[all …]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 # pylint: disable=missing-class-docstring, missing-function-docstring
4 # pylint: disable=too-many-branches, too-many-locals, too-many-instance-attributes
5 # pylint: disable=too-many-lines
39 # pylint: disable=too-few-public-methods
121 'binary', 'string', 'nul-string',
122 'nested', 'nested-array',
128 self.error = -nl_msg.error
154 pol = ynl.get_policy('page-pool-stats-get', 'do')
160 nested). Optional attributes depending on the 'type': min-value,
[all …]

1234