| /linux/include/trace/events/ |
| H A D | wbt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include "../../../block/blk-wbt.h" 12 * wbt_stat - trace stats for blk_wb 36 strscpy(__entry->name, bdi_dev_name(bdi), 37 ARRAY_SIZE(__entry->name)); 38 __entry->rmean = stat[0].mean; 39 __entry->rmin = stat[0].min; 40 __entry->rmax = stat[0].max; 41 __entry->rnr_samples = stat[0].nr_samples; 42 __entry->wmean = stat[1].mean; [all …]
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | diag.sh | 2 # SPDX-License-Identifier: GPL-2.0 22 ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGUSR1 &>/dev/null 25 [ -z "$(ip netns pids "${ns}")" ] && break 34 ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGKILL &>/dev/null 51 local msg="$3" 52 local skip="${4-SKIP}" 57 mptcp_lib_print_title "$msg" 61 mptcp_lib_result_skip "${msg}" 64 mptcp_lib_result_fail "${msg}" 69 mptcp_lib_result_pass "${msg}" [all …]
|
| /linux/sound/soc/sof/ |
| H A D | ipc4-control.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 10 #include "sof-priv.h" 11 #include "sof-audio.h" 12 #include "ipc4-priv.h" 13 #include "ipc4-topology.h" 18 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_set_get_kcontrol_data() 19 struct snd_soc_component *scomp = scontrol->scomp; in sof_ipc4_set_get_kcontrol_data() 21 const struct sof_ipc_ops *iops = sdev->ipc->ops; in sof_ipc4_set_get_kcontrol_data() 22 struct sof_ipc4_msg *msg = &cdata->msg; in sof_ipc4_set_get_kcontrol_data() local 28 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_set_get_kcontrol_data() [all …]
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | bridge_mdb_max.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 24 # | +-----------------------------------------------------------------------+ | 25 # +---------------------------------------------------------------------------+ 187 local grp=${1:-1}; shift 190 local IPs=$(seq -f 192.0.2.%g 1 $((n - 1))) 210 local grp=${1:-1}; shift [all …]
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_sp.c | 2 * Broadcom NetXtreme-E RoCE driver. 4 * Copyright (c) 2016 - 2017, Broadcom. All rights reserved. The term 62 if (!bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap() 65 pcie_capability_read_word(rcfw->pdev, PCI_EXP_DEVCTL2, &pcie_ctl2); in bnxt_qplib_is_atomic_cap() 72 struct bnxt_qplib_cmdqmsg msg = {}; in bnxt_qplib_query_version() local 77 attr = rcfw->res->dattr; in bnxt_qplib_query_version() 82 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, NULL, sizeof(req), sizeof(resp), 0); in bnxt_qplib_query_version() 83 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_version() 86 attr->fw_ver[0] = resp.fw_maj; in bnxt_qplib_query_version() 87 attr->fw_ver[1] = resp.fw_minor; in bnxt_qplib_query_version() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | udpgso.c | 1 // SPDX-License-Identifier: GPL-2.0 45 #define CONST_MSS_V4 (CONST_MTU_TEST - CONST_HDRLEN_V4) 46 #define CONST_MSS_V6 (CONST_MTU_TEST - CONST_HDRLEN_V6) 58 static int cfg_specific_test_id = -1; 69 int r_len_last; /* recv(): size of last non-mss dgram, if any */ 139 /* send MAX segs */ 146 /* send MAX bytes */ 147 .tlen = ETH_MAX_MTU - CONST_HDRLEN_V4, 150 .r_len_last = ETH_MAX_MTU - CONST_HDRLEN_V4 - 154 /* send MAX + 1: fail */ [all …]
|
| H A D | txtimestamp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - SCHED, SND and ACK timestamps 9 * - RAW, UDP and TCP 10 * - IPv4 and IPv6 11 * - various packet sizes (to test GSO and TSO) 17 * A simple `nc6 [-u] - 92 int64_t max; global() member 312 __recv_errmsg_cmsg(struct msghdr * msg,int payload_len) __recv_errmsg_cmsg() argument 373 static struct msghdr msg; recv_errmsg() local 494 struct msghdr msg; do_test() local [all...] |
| /linux/net/tipc/ |
| H A D | msg.c | 2 * net/tipc/msg.c: TIPC message header routines 4 * Copyright (c) 2000-2006, 2014-2015, Ericsson AB 5 * Copyright (c) 2005, 2010-2011, Wind River Systems 39 #include "msg.h" 54 const int one_page_mtu = PAGE_SIZE - SKB_DATA_ALIGN(BUF_OVERHEAD) - 58 * tipc_buf_acquire - creates a TIPC message buffer 76 skb->next = NULL; in tipc_buf_acquire() 101 struct tipc_msg *msg; in tipc_msg_create() local 108 msg = buf_msg(buf); in tipc_msg_create() 109 tipc_msg_init(onode, msg, user, type, hdr_sz, dnode); in tipc_msg_create() [all …]
|
| /linux/net/devlink/ |
| H A D | sb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 return devlink_sb->ingress_pools_count + devlink_sb->egress_pools_count; in devlink_sb_pool_count() 29 list_for_each_entry(devlink_sb, &devlink->sb_list, list) { in devlink_sb_get_by_index() 30 if (devlink_sb->index == sb_index) in devlink_sb_get_by_index() 51 return ERR_PTR(-ENODEV); in devlink_sb_get_from_attrs() 54 return ERR_PTR(-EINVAL); in devlink_sb_get_from_attrs() 60 return devlink_sb_get_from_attrs(devlink, info->attrs); in devlink_sb_get_from_info() 70 return -EINVAL; in devlink_sb_pool_index_get_from_attrs() 74 return -EINVAL; in devlink_sb_pool_index_get_from_attrs() 83 return devlink_sb_pool_index_get_from_attrs(devlink_sb, info->attrs, in devlink_sb_pool_index_get_from_info() [all …]
|
| /linux/tools/lib/python/feat/ |
| H A D | parse_features.py | 4 # SPDX-License-Identifier: GPL-2.0 36 # The only missing status is "..", which was mapped as "---", 63 self.msg = "" 65 def emit(self, msg="", end="\n"): argument 66 self.msg += msg + end 68 def parse_error(self, fname, ln, msg, data=None): argument 76 print(f"Warning: file {fname}: {msg}", file=sys.stderr, end="") 85 """Parses a single arch-support.txt feature file""" 92 if base != "arch-support.txt": 97 subsys = os.path.dirname(fname).split("/")[-2] [all …]
|
| /linux/drivers/firmware/ |
| H A D | turris-mox-rwtm.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/armada-37xx-rwtm-mailbox.h> 15 #include <linux/dma-mapping.h> 29 #include <linux/turris-signing-key.h> 32 #define DRIVER_NAME "turris-mox-rwtm" 39 * https://gitlab.labs.nic.cz/turris/mox-boot-builder/tree/master/wtmi. 70 * struct mox_rwtm - driver private data structure 112 return rwtm->mbox_client.dev; in rwtm_dev() 121 if (!rwtm->has_board_info) \ 122 return -ENODATA; \ [all …]
|
| /linux/include/uapi/linux/ |
| H A D | msg.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 14 #define MSG_EXCEPT 020000 /* recv any msg except of specified type.*/ 20 struct msg *msg_first; /* first message on queue,unused */ 21 struct msg *msg_last; /* last message in queue,unused */ 29 unsigned short msg_qbytes; /* max number of bytes on queue */ 65 * MSGMNB is the default size of a new message queue. Non-root tasks can 72 * (per-namespace) limit that applies for all message queues. 77 #define MSGMNI 32000 /* <= IPCMNI */ /* max # of msg queue identifiers */ 78 #define MSGMAX 8192 /* <= INT_MAX */ /* max size of message (bytes) */ 79 #define MSGMNB 16384 /* <= INT_MAX */ /* default max size of a message queue */ [all …]
|
| /linux/drivers/media/rc/ |
| H A D | ir-sharp-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* ir-sharp-decoder.c - handle Sharp IR Pulse/Space protocol 4 * Copyright (C) 2013-2014 Imagination Technologies Ltd. 12 #include "rc-core-priv.h" 34 * ir_sharp_decode() - Decode one Sharp pulse or space 38 * This function returns -EINVAL if the pulse violates the state machine 42 struct sharp_dec *data = &dev->raw->sharp; in ir_sharp_decode() 43 u32 msg, echo, address, command, scancode; in ir_sharp_decode() local 47 data->state = STATE_INACTIVE; in ir_sharp_decode() 51 dev_dbg(&dev->dev, "Sharp decode started at state %d (%uus %s)\n", in ir_sharp_decode() [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | dvb-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include "dvb-pll.h" 45 { [ 0 ... (DVB_PLL_MAX-1) ] = DVB_PLL_UNDEFINED }; 49 /* ----------------------------------------------------------- */ 54 u32 max; member 69 /* ----------------------------------------------------------- */ 75 .max = 858 * MHz, 89 u32 bw = fe->dtv_property_cache.bandwidth_hz; in thomson_dtt759x_bw() 97 .max = 896 * MHz, 113 u32 bw = fe->dtv_property_cache.bandwidth_hz; in thomson_dtt7520x_bw() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeon_ep/ |
| H A D | octep_ctrl_mbox.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * |-------------------------------------------| 17 * |-------------------------------------------| 22 * |-------------------------------------------| 24 * | min=high 32 bits, max=low 32 bits | 29 * |-------------------------------------------| 32 * |max element size (4 bytes) | 36 * |-------------------------------------------| 39 * |max element size (4 bytes) | 42 * |Host to Fw Queue ((total size-288/2) bytes)| [all …]
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-powercap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #define pr_fmt(fmt) "opal-powercap: " fmt 35 struct opal_msg msg; in powercap_show() local 49 ret = opal_get_powercap(pcap_attr->handle, token, (u32 *)__pa(&pcap)); in powercap_show() 52 ret = opal_async_wait_response(token, &msg); in powercap_show() 55 ret = -EIO; in powercap_show() 58 ret = opal_error_code(opal_get_async_rc(msg)); in powercap_show() 62 ret = -EIO; in powercap_show() 68 ret = -EIO; in powercap_show() 87 struct opal_msg msg; in powercap_store() local [all …]
|
| /linux/sound/virtio/ |
| H A D | virtio_kctl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * virtio-snd: Virtio sound device 40 * virtsnd_kctl_info() - Returns information about the control. 45 * Return: 0 on success, -errno on failure. 51 struct virtio_kctl *kctl = &snd->kctls[kcontrol->private_value]; in virtsnd_kctl_info() 53 &snd->kctl_infos[kcontrol->private_value]; in virtsnd_kctl_info() 56 uinfo->type = g_v2a_type_map[le32_to_cpu(kinfo->type)]; in virtsnd_kctl_info() 57 uinfo->count = le32_to_cpu(kinfo->count); in virtsnd_kctl_info() 59 switch (uinfo->type) { in virtsnd_kctl_info() 61 uinfo->value.integer.min = in virtsnd_kctl_info() [all …]
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfi_ms.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 4 * Copyright (c) 2014- QLogic Corporation. 8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. 58 union bfi_addr_u stats_addr; /* DMA-able address for stats */ 109 struct bfi_mhdr_s mh; /* Common msg header */ 120 struct bfi_mhdr_s mh; /* common msg header */ 132 struct bfi_mhdr_s mh; /* common msg header */ 144 struct bfi_mhdr_s mh; /* common msg header */ 175 struct bfi_mhdr_s mh; /* common msg header */ [all …]
|
| /linux/drivers/net/ethernet/cavium/thunder/ |
| H A D | nic.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 45 /* Min/Max packet size */ 49 /* Max pkinds */ 52 /* Max when CPI_ALG is IP diffserv */ 80 /* MSI-X interrupts */ 98 * for reception it will not get dropped due to non-availability 371 /* MSI-X */ 377 /* VF <-> PF mailbox communication */ 383 /* PF <--> VF Mailbox communication 389 /* PF <--> VF mailbox communication */ [all …]
|
| /linux/rust/kernel/ |
| H A D | build_assert.rs | 1 // SPDX-License-Identifier: GPL-2.0 3 //! Build-time assert. 18 /// fn foo(a: usize) -> usize { 22 /// assert_eq!(foo(usize::MAX - 1), usize::MAX); // OK. 23 /// // foo(usize::MAX); // Fails to compile. 30 ($msg [all...] |
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 21 #define DRV_NAME "cros-ec-debugfs" 27 #define CIRC_ADD(idx, size, value) (((idx) + (value)) & ((size) - 1)) 37 * struct cros_ec_debugfs - EC debugging information. 72 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_console_log_work() 73 struct circ_buf *cb = &debug_info->log_buffer; in cros_ec_console_log_work() 75 .command = EC_CMD_CONSOLE_SNAPSHOT + ec->cmd_offset, in cros_ec_console_log_work() 79 (struct ec_params_console_read_v1 *)debug_info->read_msg->data; in cros_ec_console_log_work() 80 uint8_t *ec_buffer = (uint8_t *)debug_info->read_msg->data; in cros_ec_console_log_work() 85 ret = cros_ec_cmd_xfer_status(ec->ec_dev, &snapshot_msg); in cros_ec_console_log_work() [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-usbio.c | 1 // SPDX-License-Identifier: GPL-2.0 30 { "INTC10D2" }, /* MTL-CVF */ 42 static void usbio_i2c_uninit(struct i2c_adapter *adap, struct i2c_msg *msg) in usbio_i2c_uninit() argument 47 ubuf.busid = i2c->adev->id; in usbio_i2c_uninit() 48 ubuf.config = cpu_to_le16(msg->addr); in usbio_i2c_uninit() 50 usbio_bulk_msg(i2c->adev, USBIO_PKTTYPE_I2C, USBIO_I2CCMD_UNINIT, true, in usbio_i2c_uninit() 54 static int usbio_i2c_init(struct i2c_adapter *adap, struct i2c_msg *msg) in usbio_i2c_init() argument 62 ibuf.busid = i2c->adev->id; in usbio_i2c_init() 63 ibuf.config = cpu_to_le16(msg->addr); in usbio_i2c_init() 64 ibuf.speed = cpu_to_le32(i2c->speed); in usbio_i2c_init() [all …]
|
| /linux/drivers/dpll/ |
| H A D | dpll_netlink.c | 1 // SPDX-License-Identifier: GPL-2.0 30 return (struct dpll_dump_ctx *)cb->ctx; in dpll_dump_context() 34 dpll_msg_add_dev_handle(struct sk_buff *msg, struct dpll_device *dpll) in dpll_msg_add_dev_handle() argument 36 if (nla_put_u32(msg, DPLL_A_ID, dpll->id)) in dpll_msg_add_dev_handle() 37 return -EMSGSIZE; in dpll_msg_add_dev_handle() 43 dpll_msg_add_dev_parent_handle(struct sk_buff *msg, u32 id) in dpll_msg_add_dev_parent_handle() argument 45 if (nla_put_u32(msg, DPLL_A_PIN_PARENT_ID, id)) in dpll_msg_add_dev_parent_handle() 46 return -EMSGSIZE; in dpll_msg_add_dev_parent_handle() 56 if (!xa_get_mark(&dpll_pin_xa, pin->id, DPLL_REGISTERED)) in dpll_pin_available() 58 xa_for_each(&pin->parent_refs, i, par_ref) in dpll_pin_available() [all …]
|
| /linux/tools/accounting/ |
| H A D | getdelays.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Utility to get per-pid and per-tgid delay accounting statistics 12 * gcc -I/usr/src/linux/include getdelays.c -o getdelays 38 #define GENLMSG_PAYLOAD(glh) (NLMSG_PAYLOAD(glh, 0) - GENL_HDRLEN) 40 #define NLA_PAYLOAD(len) (len - NLA_HDRLEN) 76 fprintf(stderr, "getdelays [-dilv] [-w logfile] [-r bufsize] " in usage() 77 "[-m cpumask] [-t tgid] [-p pid]\n"); in usage() 78 fprintf(stderr, " -d: print delayacct stats\n"); in usage() 79 fprintf(stderr, " -i: print IO accounting (works only with -p)\n"); in usage() 80 fprintf(stderr, " -l: listen forever\n"); in usage() [all …]
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_pfvf_utils.c | 1 // SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) 27 if (unlikely((value & fmt->mask) != value)) { in set_value_on_csr_msg() 29 "PFVF message value 0x%X out of range, %u max allowed\n", in set_value_on_csr_msg() 30 value, fmt->mask); in set_value_on_csr_msg() 34 *csr_msg |= value << fmt->offset; in set_value_on_csr_msg() 40 struct pfvf_message msg, in adf_pfvf_csr_msg_of() argument 45 if (!set_value_on_csr_msg(accel_dev, &csr_msg, msg.type, &fmt->type) || in adf_pfvf_csr_msg_of() 46 !set_value_on_csr_msg(accel_dev, &csr_msg, msg.data, &fmt->data)) in adf_pfvf_csr_msg_of() 55 struct pfvf_message msg = { 0 }; in adf_pfvf_message_of() local 57 msg.type = (csr_msg >> fmt->type.offset) & fmt->type.mask; in adf_pfvf_message_of() [all …]
|