Home
last modified time | relevance | path

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

12345678910>>...23

/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/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/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/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.
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/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/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/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/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)) argument
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/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/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/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
82 * @ram_size: RAM size of the device
112 return rwtm->mbox_client.dev; in rwtm_dev()
121 if (!rwtm->has_board_info) \
[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.
55 size_t req_len; /* Size of request blob */
56 size_t reply_len; /* Size of reply blob */
86 call->state = to; in rxperf_set_call_state()
92 if (call->stat in rxperf_set_call_complete()
247 static int max = 0; rxperf_log_error() local
248 const char *msg; rxperf_log_error() local
508 struct msghdr msg = {}; rxperf_process_call() local
[all...]
/linux/fs/ceph/
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/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/net/batman-adv/
H A Ddistributed-arp-table.c1 // SPDX-License-Identifier: GPL-2.0
7 #include "distributed-arp-table.h"
43 #include "hard-interface.h"
49 #include "translation-table.h"
92 #define BATADV_DHCP_YIADDR_LEN sizeof(((struct batadv_dhcp_packet *)0)->yiaddr)
93 #define BATADV_DHCP_CHADDR_LEN sizeof(((struct batadv_dhcp_packet *)0)->chaddr)
98 * batadv_dat_start_timer() - initialise the DAT periodic worker
103 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work, in batadv_dat_start_timer()
108 * batadv_dat_entry_release() - release dat_entry from lists and queue for free
122 * batadv_dat_entry_put() - decrement the dat_entry refcounter and possibly
[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"
80 u64 msg; member
86 if (rtk->crashed) in apple_rtkit_is_running()
88 if ((rtk->iop_power_state & 0xff) != APPLE_RTKIT_PWR_STATE_ON) in apple_rtkit_is_running()
90 if ((rtk->ap_power_state & 0xff) != APPLE_RTKIT_PWR_STATE_ON) in apple_rtkit_is_running()
98 return rtk->crashed; in apple_rtkit_is_crashed()
103 u64 msg) in apple_rtkit_management_send() argument
107 msg &= ~APPLE_RTKIT_MGMT_TYPE; in apple_rtkit_management_send()
108 msg |= FIELD_PREP(APPLE_RTKIT_MGMT_TYPE, type); in apple_rtkit_management_send()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-cros-ec-tunnel.c1 // SPDX-License-Identifier: GPL-2.0+
17 * struct ec_i2c_device - Driver data for I2C tunnel
39 * ec_i2c_count_message - Count bytes needed for ec_i2c_construct_message
49 int size; in ec_i2c_count_message() local
51 size = sizeof(struct ec_params_i2c_passthru); in ec_i2c_count_message()
52 size += num * sizeof(struct ec_params_i2c_passthru_msg); in ec_i2c_count_message()
55 size += i2c_msgs[i].len; in ec_i2c_count_message()
57 return size; in ec_i2c_count_message()
61 * ec_i2c_construct_message - construct a message to go to the EC
84 params->port = bus_num; in ec_i2c_construct_message()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_transport_access_macros.h1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
2 /* Copyright(c) 2014 - 2020 Intel Corporation */
16 /* Valid internal ring size values */
27 /* Valid internal msg size values */
34 /* Size to bytes conversion macros for ring and msg size values */
35 #define ADF_MSG_SIZE_TO_BYTES(SIZE) (SIZE << 5) argument
36 #define ADF_BYTES_TO_MSG_SIZE(SIZE) (SIZE >> 5) argument
37 #define ADF_SIZE_TO_RING_SIZE_IN_BYTES(SIZE) ((1 << (SIZE - 1)) << 7) argument
38 #define ADF_RING_SIZE_IN_BYTES_TO_SIZE(SIZE) ((1 << (SIZE - 1)) >> 7) argument
40 /* Minimum ring buffer size for memory allocation */
[all …]

12345678910>>...23