Home
last modified time | relevance | path

Searched +full:max +full:- +full:msg (Results 1 – 25 of 733) sorted by relevance

12345678910>>...30

/linux/include/trace/events/
H A Dwbt.h1 /* 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 Ddiag.sh2 # 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 Dipc4-control.c1 // 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 Dbridge_mdb_max.sh2 # 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/tools/testing/selftests/net/
H A Dudpgso.c1 // 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 Dtxtimestamp.c1 // 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] -l -p $DESTPORT` will do
87 static int saved_tskey = -1;
88 static int saved_tskey_type = -1;
92 int64_t max; member
105 return ts->tv_sec * NSEC_PER_SEC + ts->tv_nsec; in timespec_to_ns64()
[all …]
/linux/net/tipc/
H A Dmsg.c2 * 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 Dsb.c1 // 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/drivers/firmware/
H A Dturris-mox-rwtm.c1 // 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 Dmsg.h1 /* 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 Dir-sharp-decoder.c1 // 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 Ddvb-pll.c1 // 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/arch/powerpc/platforms/powernv/
H A Dopal-powercap.c1 // 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/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_ctrl_mbox.h1 /* 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 Dvirtio_kctl.c1 // 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 Dbfi_ms.h1 /* 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 Dnic.h1 /* 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 Dbuild_assert.rs1 // 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/net/core/
H A Dscm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* scm.c - Socket level control messages processing.
52 kuid_t uid = make_kuid(cred->user_ns, creds->uid); in scm_check_creds()
53 kgid_t gid = make_kgid(cred->user_ns, creds->gi in scm_check_creds()
166 __scm_send(struct socket * sock,struct msghdr * msg,struct scm_cookie * p) __scm_send() argument
255 put_cmsg(struct msghdr * msg,int level,int type,int len,void * data) put_cmsg() argument
309 put_cmsg_notrunc(struct msghdr * msg,int level,int type,int len,void * data) put_cmsg_notrunc() argument
319 put_cmsg_scm_timestamping64(struct msghdr * msg,struct scm_timestamping_internal * tss_internal) put_cmsg_scm_timestamping64() argument
333 put_cmsg_scm_timestamping(struct msghdr * msg,struct scm_timestamping_internal * tss_internal) put_cmsg_scm_timestamping() argument
347 scm_max_fds(struct msghdr * msg) scm_max_fds() argument
354 scm_detach_fds(struct msghdr * msg,struct scm_cookie * scm) scm_detach_fds() argument
433 scm_passec(struct sock * sk,struct msghdr * msg,struct scm_cookie * scm) scm_passec() argument
455 scm_passec(struct sock * sk,struct msghdr * msg,struct scm_cookie * scm) scm_passec() argument
465 scm_pidfd_recv(struct msghdr * msg,struct scm_cookie * scm) scm_pidfd_recv() argument
501 __scm_recv_common(struct sock * sk,struct msghdr * msg,struct scm_cookie * scm,int flags) __scm_recv_common() argument
532 scm_recv(struct socket * sock,struct msghdr * msg,struct scm_cookie * scm,int flags) scm_recv() argument
542 scm_recv_unix(struct socket * sock,struct msghdr * msg,struct scm_cookie * scm,int flags) scm_recv_unix() argument
[all...]
/linux/drivers/platform/chrome/
H A Dcros_ec_debugfs.c1 // 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/dpll/
H A Ddpll_netlink.c1 // 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 Dgetdelays.c1 // 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/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_6_ppt.c125 // clang-format off
183 // clang-format on
244 (metrics_v0->field) : (metrics_v2->field))
246 (metrics_v1->field) : GET_GPU_METRIC_FIELD(field, version))
260 if ((smu->adev->flags & AMD_IS_APU) && in smu_v13_0_6_get_metrics_version()
261 smu->smc_fw_version <= 0x4556900) in smu_v13_0_6_get_metrics_version()
263 else if (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == in smu_v13_0_6_get_metrics_version()
273 struct smu_13_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; in smu_v13_0_6_cap_set()
275 dpm_context->caps |= BIT_ULL(cap); in smu_v13_0_6_cap_set()
281 struct smu_13_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; in smu_v13_0_6_cap_clear()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_pfvf_utils.c1 // 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 …]
/linux/drivers/media/platform/st/sti/delta/
H A Ddelta-ipc.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "delta-ipc.h"
11 #include "delta-mem.h"
38 #define msg_to_ctx(msg) ((struct delta_ipc_ctx *)(msg)->header.host_hdl) argument
39 #define msg_to_copro_hdl(msg) ((msg)->header.copro_hdl) argument
43 return (ctx->ipc_buf->paddr + (vaddr - ctx->ipc_buf->vaddr)); in to_paddr()
49 return ((data >= ctx->ipc_buf->vaddr) && in is_valid_data()
50 ((data + size) <= (ctx->ipc_buf->vaddr + ctx->ipc_buf->size))); in is_valid_data()
58 * this IPC shared memory, avoiding de-facto recopies inside delta-ipc.
62 * - struct delta_ipc_open_msg
[all …]

12345678910>>...30