| /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 [ - [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/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-topolog 22 struct sof_ipc4_msg *msg = &cdata->msg; sof_ipc4_set_get_kcontrol_data() local 91 struct sof_ipc4_msg *msg = &cdata->msg; sof_ipc4_set_volume_data() local 211 struct sof_ipc4_msg *msg = &cdata->msg; sof_ipc4_set_generic_control_data() local 248 struct sof_ipc4_msg *msg = &cdata->msg; sof_ipc4_refresh_generic_control() local 411 struct sof_ipc4_msg *msg = &cdata->msg; sof_ipc4_set_get_bytes_data() local [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 39 #define GENLMSG_PAYLOAD(glh) (NLMSG_PAYLOAD(glh, 0) - GENL_HDRLEN) 41 #define NLA_PAYLOAD(len) (len - NLA_HDRLEN) 77 fprintf(stderr, "getdelays [-dil in usage() 128 struct msgtemplate msg; send_cmd() local 285 PRINT_FILED_DELAY(name,version,t,count,total,max,min) global() argument 307 PRINT_FILED_DELAY_WITH_TS(name,version,t,count,total,max,min,max_ts) global() argument 471 struct msgtemplate msg; main() local [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 129 struct tipc_msg *msg; tipc_buf_append() local 484 tipc_msg_bundle(struct sk_buff * bskb,struct tipc_msg * msg,u32 max) tipc_msg_bundle() argument 485 tipc_msg_bundle(struct sk_buff * bskb,struct tipc_msg * msg,u32 max) tipc_msg_bundle() argument 523 struct tipc_msg *msg, *inner, *outer; tipc_msg_try_bundle() local 677 tipc_msg_skb_clone(struct sk_buff_head * msg,struct sk_buff_head * cpy) tipc_msg_skb_clone() argument 703 struct tipc_msg *msg = buf_msg(skb); tipc_msg_lookup_dest() local 801 tipc_msg_pskb_copy(u32 dst,struct sk_buff_head * msg,struct sk_buff_head * cpy) tipc_msg_pskb_copy() argument [all...] |
| H A D | name_table.c | 4 * Copyright (c) 2000-2006, 2014-2018, Ericsson AB 5 * Copyright (c) 2004-2008, 2010-2014, Wind River Systems 6 * Copyright (c) 2020-2021, Red Hat Inc 52 * struct service_range - container for all bindings of a service range 56 * @max: largest 'upper' in this node subtree 60 * Used by round-robin lookup algorithm 66 u32 max; member 72 * struct tipc_service - container for all published instances of a service type 91 #define service_range_upper(sr) ((sr)->upper) 93 struct service_range, tree_node, u32, max, in RB_DECLARE_CALLBACKS_MAX() argument [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 47 # The only missing status is "..", which was mapped as "---", 74 self.msg = "" 76 def emit(self, msg="", end="\n"): 79 self.msg += msg 65 emit(self, msg="", end="n") global() argument 68 parse_error(self, fname, ln, msg, data=None) global() argument [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; global() member 343 struct i2c_msg msg = { opera1_bw() local 414 struct i2c_msg msg = { samsung_dtos403ih102a_set() local 648 struct i2c_msg msg = { .flags = 0, dvb_pll_sleep() local 671 struct i2c_msg msg = dvb_pll_set_params() local 745 struct i2c_msg msg = { .flags = 0, dvb_pll_init() local 786 struct i2c_msg msg = { .addr = pll_addr, .flags = I2C_M_RD, .len = 1 }; dvb_pll_attach() local [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 36 struct opal_msg msg; in powercap_show() 50 ret = opal_get_powercap(pcap_attr->handle, token, (u32 *)__pa(&pcap)); in powercap_show() 53 ret = opal_async_wait_response(token, &msg); in powercap_show() 56 ret = -EI in powercap_show() 35 struct opal_msg msg; powercap_show() local 87 struct opal_msg msg; powercap_store() local 165 u32 cur, min, max; opal_powercap_init() local [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/sound/virtio/ |
| H A D | virtio_kctl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * virtio-snd: Virtio sound device 24 ARRAY_SIZE(((struct virtio_snd_ctl_value *)0)->value.integer), 26 ARRAY_SIZE(((struct virtio_snd_ctl_value *)0)->value.integer), 28 ARRAY_SIZE(((struct virtio_snd_ctl_value *)0)->value.integer64), 30 ARRAY_SIZE(((struct virtio_snd_ctl_value *)0)->value.enumerated), 32 ARRAY_SIZE(((struct virtio_snd_ctl_value *)0)->value.bytes), 57 struct virtio_device *vdev = snd->vde in virtsnd_kctl_info() 110 struct virtio_snd_msg *msg; virtsnd_kctl_get() local 183 struct virtio_snd_msg *msg; virtsnd_kctl_put() local 243 struct virtio_snd_msg *msg; virtsnd_kctl_tlv_op() local 323 struct virtio_snd_msg *msg; virtsnd_kctl_get_enum_items() local [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 //! Various assertions that happen during build-time. 5 //! There are three types of build-time assertions that you can use: 6 //! - [`static_assert!`] 7 //! - [`const_assert!`] 8 //! - [`build_assert!`] 75 /// Static assert (i.e. compile-time assert). 91 /// [RFC 2790]: https://github.com/rust-lan [all...] |
| /linux/net/smc/ |
| H A D | smc_llc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 37 u16 length_v2; /* 44 - 8192*/ 141 u8 num_rkeys; /* first rtoken byte of CONFIRM LINK msg */ 202 union smc_llc_msg msg; member 209 struct smc_llc_qentry *qentry = flow->qentry; in smc_llc_flow_qentry_clr() 211 flow->qentry = NULL; in smc_llc_flow_qentry_clr() 219 if (flow->qentry) { in smc_llc_flow_qentry_del() 220 qentry = flow->qentry; in smc_llc_flow_qentry_del() 221 flow->qentry = NULL; in smc_llc_flow_qentry_del() [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/net/ethernet/intel/ice/virt/ |
| H A D | queues.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * ice_vc_get_max_frame_size - get max frame size allowed for VF 13 * @vf: VF used to determine max frame size 15 * Max frame size is determined based on the current port's max frame size and 17 * it's in a port VLAN so the PF needs to account for this in max frame size 18 * checks and sending the max frame size to the VF. 25 max_frame_size = pi->phy.link_info.max_frame_size; in ice_vc_get_max_frame_size() 28 max_frame_size -= VLAN_HLEN; in ice_vc_get_max_frame_size() 43 return qid < vsi->alloc_txq; in ice_vc_isvalid_q_id() 62 * ice_vf_cfg_qs_bw - Configure per queue bandwidth [all …]
|
| /linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
| H A D | smu_v13_0_6_ppt.c | 126 // clang-format off 184 // clang-format on 245 (metrics_v0->field) : (metrics_v2->field)) 247 (metrics_v1->field) : GET_GPU_METRIC_FIELD(field, version)) 261 if ((smu->adev->flags & AMD_IS_APU) && in smu_v13_0_6_get_metrics_version() 262 smu->smc_fw_version <= 0x4556900) in smu_v13_0_6_get_metrics_version() 264 else if (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == in smu_v13_0_6_get_metrics_version() 274 struct smu_13_0_dpm_context *dpm_context = smu->smu_dp in smu_v13_0_6_cap_set() 987 smu_v13_0_6_get_dpm_ultimate_freq(struct smu_context * smu,enum smu_clk_type clk_type,uint32_t * min,uint32_t * max) smu_v13_0_6_get_dpm_ultimate_freq() argument 1466 smu_v13_0_6_upload_dpm_level(struct smu_context * smu,bool max,uint32_t feature_mask,uint32_t level) smu_v13_0_6_upload_dpm_level() argument 1975 smu_v13_0_6_set_gfx_soft_freq_limited_range(struct smu_context * smu,uint32_t min,uint32_t max) smu_v13_0_6_set_gfx_soft_freq_limited_range() argument 2054 smu_v13_0_6_set_soft_freq_limited_range(struct smu_context * smu,enum smu_clk_type clk_type,uint32_t min,uint32_t max,bool automatic) smu_v13_0_6_set_soft_freq_limited_range() argument 2423 smu_v13_0_6_i2c_xfer(struct i2c_adapter * i2c_adap,struct i2c_msg * msg,int num_msgs) smu_v13_0_6_i2c_xfer() argument 3254 smu_v13_0_6_ras_send_msg(struct smu_context * smu,enum smu_message_type msg,uint32_t param,uint32_t * read_arg) smu_v13_0_6_ras_send_msg() argument 3307 uint32_t msg; smu_v13_0_6_get_valid_mca_count() local 3336 uint32_t msg, param; __smu_v13_0_6_mca_dump_bank() local 3772 uint32_t msg; smu_v13_0_6_get_valid_aca_count() local 3820 uint32_t msg, param; __smu_v13_0_6_aca_bank_dump() local [all...] |