Home
last modified time | relevance | path

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

12345678910>>...26

/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/net/devlink/
H A 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/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
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/drivers/infiniband/hw/bnxt_re/
H A 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/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
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/drivers/net/ethernet/marvell/octeon_ep/
H A 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/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.
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/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)
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/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A 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 …]
/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()
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/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 …]
H A Dnic_main.c1 // SPDX-License-Identifier: GPL-2.0-only
60 /* MSI-X */
90 writeq_relaxed(val, nic->reg_base + offset); in nic_reg_write()
95 return readq_relaxed(nic->reg_base + offset); in nic_reg_read()
98 /* PF -> VF mailbox communication APIs */
101 int vf_cnt = pci_sriov_get_totalvfs(nic->pdev); in nic_enable_mbx_intr()
103 #define INTR_MASK(vfs) ((vfs < 64) ? (BIT_ULL(vfs) - 1) : (~0ull)) in nic_enable_mbx_intr()
113 INTR_MASK(vf_cnt - 64)); in nic_enable_mbx_intr()
115 INTR_MASK(vf_cnt - 64)); in nic_enable_mbx_intr()
135 void __iomem *mbx_addr = nic->reg_base + nic_get_mbx_addr(vf); in nic_send_msg_to_vf()
[all …]
/linux/drivers/misc/bcm-vk/
H A 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 …]
H A 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/drivers/gpu/drm/display/
H A 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/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;
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/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>
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/fs/ceph/
H A 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_roo in ceph_has_realms_with_quotas()
42 ceph_handle_quota(struct ceph_mds_client * mdsc,struct ceph_mds_session * session,struct ceph_msg * msg) ceph_handle_quota() argument
334 u64 max, rvalue; check_quota_exceeded() local
445 loff_t size = i_size_read(inode); ceph_quota_is_max_bytes_exceeded() local
467 loff_t size = ceph_inode(inode)->i_reported_size; ceph_quota_is_max_bytes_approaching() local
[all...]
H A 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/drivers/media/platform/st/sti/hva/
H A 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/net/rxrpc/
H A 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/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.
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/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/soc/apple/
H A Drtkit.c1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
7 #include "rtkit-internal.h"
78 u64 msg; member
84 if (rtk->crashed) in apple_rtkit_is_running()
86 if ((rtk->iop_power_state & 0xff) != APPLE_RTKIT_PWR_STATE_ON) in apple_rtkit_is_running()
88 if ((rtk->ap_power_state & 0xff) != APPLE_RTKIT_PWR_STATE_ON) in apple_rtkit_is_running()
96 return rtk->crashed; in apple_rtkit_is_crashed()
101 u64 msg) in apple_rtkit_management_send() argument
103 msg &= ~APPLE_RTKIT_MGMT_TYPE; in apple_rtkit_management_send()
104 msg |= FIELD_PREP(APPLE_RTKIT_MGMT_TYPE, type); in apple_rtkit_management_send()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/
H A Darcturus_ppt.c252 struct smu_table_context *smu_table = &smu->smu_table; in arcturus_tables_init()
253 struct smu_table *tables = smu_table->tables; in arcturus_tables_init()
271 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in arcturus_tables_init()
272 if (!smu_table->metrics_table) in arcturus_tables_init()
273 return -ENOMEM; in arcturus_tables_init()
274 smu_table->metrics_time = 0; in arcturus_tables_init()
276 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_3); in arcturus_tables_init()
277 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in arcturus_tables_init()
278 if (!smu_table->gpu_metrics_table) { in arcturus_tables_init()
279 kfree(smu_table->metrics_table); in arcturus_tables_init()
[all …]

12345678910>>...26