Home
last modified time | relevance | path

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

12345678910>>...33

/linux-6.14.4/sound/soc/sof/
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-6.14.4/include/uapi/linux/
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
66 * decrease the size with msgctl(IPC_SET), root tasks
68 * size. The optimal value is application dependent.
71 * MAXMAX is the maximum size of an individual message, it's a global
72 * (per-namespace) limit that applies for all message queues.
[all …]
/linux-6.14.4/net/devlink/
Dsb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 u32 size; member
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()
[all …]
/linux-6.14.4/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c2 * 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()
73 struct bnxt_qplib_cmdqmsg msg = {}; in bnxt_qplib_query_version() local
81 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, NULL, sizeof(req), sizeof(resp), 0); in bnxt_qplib_query_version()
82 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_version()
93 struct bnxt_qplib_dev_attr *attr = rcfw->res->dattr; in bnxt_qplib_get_dev_attr()
95 struct bnxt_qplib_cmdqmsg msg = {}; in bnxt_qplib_get_dev_attr() local
104 cctx = rcfw->res->cctx; in bnxt_qplib_get_dev_attr()
[all …]
/linux-6.14.4/net/tipc/
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
59 * @size: message size (including TIPC header)
62 * Return: a new buffer with data pointers set to the specified size.
68 struct sk_buff *tipc_buf_acquire(u32 size, gfp_t gfp) in tipc_buf_acquire() argument
72 skb = alloc_skb_fclone(BUF_OVERHEAD + size, gfp); in tipc_buf_acquire()
[all …]
/linux-6.14.4/drivers/net/ethernet/marvell/octeon_ep/
Doctep_ctrl_mbox.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 * |-------------------------------------------|
15 * |bar memory size (4 bytes) |
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) |
[all …]
/linux-6.14.4/drivers/platform/chrome/
Dcros_ec_proto.c1 // SPDX-License-Identifier: GPL-2.0
22 [EC_RES_INVALID_COMMAND] = -EOPNOTSUPP,
23 [EC_RES_ERROR] = -EIO,
24 [EC_RES_INVALID_PARAM] = -EINVAL,
25 [EC_RES_ACCESS_DENIED] = -EACCES,
26 [EC_RES_INVALID_RESPONSE] = -EPROTO,
27 [EC_RES_INVALID_VERSION] = -ENOPROTOOPT,
28 [EC_RES_INVALID_CHECKSUM] = -EBADMSG,
29 [EC_RES_IN_PROGRESS] = -EINPROGRESS,
30 [EC_RES_UNAVAILABLE] = -ENODATA,
[all …]
/linux-6.14.4/sound/virtio/
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.
50 struct virtio_snd *snd = kcontrol->private_data; in virtsnd_kctl_info()
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()
[all …]
/linux-6.14.4/include/linux/platform_data/
Dcros_ec_proto.h1 /* SPDX-License-Identifier: GPL-2.0 */
35 * Max bus-specific overhead incurred by request/responses.
50 * EC panic is not covered by the standard (0-F) ACPI notify values.
51 * Arbitrarily choosing B0 to notify ec panic, which is in the 84-BF
66 /* Max length of messages for proto 2*/
74 * struct cros_ec_command - Information about a ChromeOS EC command.
78 * @insize: Max number of bytes to accept from the EC.
92 * struct cros_ec_device - Information about a ChromeOS EC device.
93 * @phys_name: Name of physical comms layer (e.g. 'i2c-4').
96 * @cmd_readmem: Direct read of the EC memory-mapped region, if supported.
[all …]
/linux-6.14.4/drivers/media/platform/st/sti/delta/
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()
47 void *data, u32 size) in is_valid_data() argument
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.
[all …]
/linux-6.14.4/tools/accounting/
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)
61 /* Maximum size of response requested or message sent */
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()
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_6_ppt.c144 // clang-format off
200 // clang-format on
276 (metrics_a->field) : (metrics_x->field))
288 struct smu_13_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; in smu_v13_0_6_cap_set()
290 dpm_context->caps |= BIT_ULL(cap); in smu_v13_0_6_cap_set()
296 struct smu_13_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; in smu_v13_0_6_cap_clear()
298 dpm_context->caps &= ~BIT_ULL(cap); in smu_v13_0_6_cap_clear()
304 struct smu_13_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; in smu_v13_0_6_cap_supported()
306 return !!(dpm_context->caps & BIT_ULL(cap)); in smu_v13_0_6_cap_supported()
320 uint32_t fw_ver = smu->smc_fw_version; in smu_v13_0_14_init_caps()
[all …]
Daldebaran_ppt.c92 * SMU support BAD CHENNEL info MSG since version 68.51.00,
98 {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000},
229 struct smu_table_context *smu_table = &smu->smu_table; in aldebaran_tables_init()
230 struct smu_table *tables = smu_table->tables; in aldebaran_tables_init()
247 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in aldebaran_tables_init()
248 if (!smu_table->metrics_table) in aldebaran_tables_init()
249 return -ENOMEM; in aldebaran_tables_init()
250 smu_table->metrics_time = 0; in aldebaran_tables_init()
252 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_3); in aldebaran_tables_init()
253 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in aldebaran_tables_init()
[all …]
/linux-6.14.4/drivers/net/ethernet/cavium/thunder/
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-6.14.4/drivers/misc/bcm-vk/
Dbcm_vk_msg.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright 2018-2020 Broadcom.
21 u32 size; /* member
22 * size, which is in number of 16byte blocks,
26 * nxt offset to the next msg queue struct.
53 * message block - basic unit in the message where a message's size is always
61 u8 size; /* size of the message in number of vk_msg_blk's */ member
75 /* shift for fast division of basic msg blk size */
100 #define VK_DMA_MAX_ADDRS 4 /* Max 4 DMA Addresses */
113 * put the to_v_msg at the end so that we could simply append to_v msg
[all …]
Dbcm_vk_msg.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2018-2020 Broadcom.
21 /* functions to manipulate the transport id in msg block */
28 /* number x q_size will be the max number of msg processed per loop */
37 MODULE_PARM_DESC(batch_log, "Max num of logs per batch operation.\n");
44 static u32 get_q_num(const struct vk_msg_blk *msg) in get_q_num() argument
46 u32 q_num = msg->trans_id & BCM_VK_MSG_Q_MASK; in get_q_num()
53 static void set_q_num(struct vk_msg_blk *msg, u32 q_num) in set_q_num() argument
62 msg->trans_id = (msg->trans_id & ~BCM_VK_MSG_Q_MASK) | trans_q; in set_q_num()
65 static u32 get_msg_id(const struct vk_msg_blk *msg) in get_msg_id() argument
[all …]
/linux-6.14.4/drivers/gpu/drm/display/
Ddrm_dp_helper.c77 return link_status[r - DP_LANE0_1_STATUS]; in dp_link_status()
231 drm_dbg_kms(aux->drm_dev, "%s: invalid AUX interval 0x%02x (max 4)\n", in __8b10b_clock_recovery_delay_us()
232 aux->name, rd_interval); in __8b10b_clock_recovery_delay_us()
243 drm_dbg_kms(aux->drm_dev, "%s: invalid AUX interval 0x%02x (max 4)\n", in __8b10b_channel_eq_delay_us()
244 aux->name, rd_interval); in __8b10b_channel_eq_delay_us()
256 drm_dbg_kms(aux->drm_dev, "%s: invalid AUX interval 0x%02x\n", in __128b132b_channel_eq_delay_us()
257 aux->name, rd_interval); in __128b132b_channel_eq_delay_us()
279 * - Clock recovery vs. channel equalization
280 * - DPRX vs. LTTPR
281 * - 128b/132b vs. 8b/10b
[all …]
/linux-6.14.4/tools/testing/selftests/net/
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;
65 int tlen; /* send() buffer size, may exceed mss */
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 -
[all …]
/linux-6.14.4/drivers/firmware/
Dturris-mox-rwtm.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/armada-37xx-rwtm-mailbox.h>
15 #include <linux/dma-mapping.h>
30 #define DRIVER_NAME "turris-mox-rwtm"
37 * https://gitlab.labs.nic.cz/turris/mox-boot-builder/tree/master/wtmi.
65 * struct mox_rwtm - driver private data structure
77 * @ram_size: RAM size of the device
120 return rwtm->mbox_client.dev; in rwtm_dev()
129 if (!rwtm->has_##cat) \
130 return -ENODATA; \
[all …]
/linux-6.14.4/fs/ceph/
Dquota.c1 // SPDX-License-Identifier: GPL-2.0
3 * quota.c - CephFS quota
5 * Copyright (C) 2017-2018 SUSE
15 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_adjust_quota_realms_count()
17 atomic64_inc(&mdsc->quotarealms_count); in ceph_adjust_quota_realms_count()
19 atomic64_dec(&mdsc->quotarealms_count); in ceph_adjust_quota_realms_count()
24 struct super_block *sb = inode->i_sb; in ceph_has_realms_with_quotas()
26 struct inode *root = d_inode(sb->s_root); in ceph_has_realms_with_quotas()
28 if (atomic64_read(&mdsc->quotarealms_count) > 0) in ceph_has_realms_with_quotas()
34 if (ceph_vino_is_reserved(ceph_inode(inode)->i_vino)) in ceph_has_realms_with_quotas()
[all …]
Dmetric.c1 /* SPDX-License-Identifier: GPL-2.0 */
31 struct ceph_client_metric *m = &mdsc->metric; in ceph_mdsc_send_metrics()
32 u64 nr_caps = atomic64_read(&m->total_caps); in ceph_mdsc_send_metrics()
34 struct ceph_client *cl = mdsc->fsc->client; in ceph_mdsc_send_metrics()
35 struct ceph_msg *msg; in ceph_mdsc_send_metrics() local
41 mutex_lock(&mdsc->mutex); in ceph_mdsc_send_metrics()
42 if (ceph_mdsmap_get_state(mdsc->mdsmap, s->s_mds) != CEPH_MDS_STATE_ACTIVE) { in ceph_mdsc_send_metrics()
43 mutex_unlock(&mdsc->mutex); in ceph_mdsc_send_metrics()
46 mutex_unlock(&mdsc->mutex); in ceph_mdsc_send_metrics()
53 msg = ceph_msg_new(CEPH_MSG_CLIENT_METRICS, len, GFP_NOFS, true); in ceph_mdsc_send_metrics()
[all …]
/linux-6.14.4/net/rxrpc/
Drxperf.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* In-kernel rxperf server for testing purposes.
54 size_t req_len; /* Size of request blob */
55 size_t reply_len; /* Size of reply blob */
85 call->state = to; in rxperf_set_call_state()
91 if (call->state != RXPERF_CALL_COMPLETE) { in rxperf_set_call_complete()
92 call->abort_code = remote_abort; in rxperf_set_call_complete()
93 call->error = error; in rxperf_set_call_complete()
94 call->state = RXPERF_CALL_COMPLETE; in rxperf_set_call_complete()
112 queue_work(rxperf_workqueue, &call->work); in rxperf_queue_call_work()
[all …]
/linux-6.14.4/drivers/media/platform/st/sti/hva/
Dhva-h264.c1 // SPDX-License-Identifier: GPL-2.0
9 #include "hva-hw.h"
15 /* video max size*/
23 /* formula to get temporal or spatial data size */
32 /* source buffer copy in YUV 420 MB-tiled format with size=16*256*3/2 */
37 * for deblocking with size=4*16*MBx*2
41 /* factor for bitrate and cpb buffer size max values if profile >= high */
44 /* factor for bitrate and cpb buffer size max values if profile < high */
167 * @slice_mb_size: defines the slice size in number of macroblocks
200 * @brc_type: selects the bit-rate control algorithm
[all …]
/linux-6.14.4/drivers/scsi/bfa/
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.
48 * Request and response circular queue base addresses, size and
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 */
[all …]
/linux-6.14.4/drivers/media/rc/
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 …]

12345678910>>...33