Home
last modified time | relevance | path

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

12345678910>>...23

/freebsd/lib/libopenbsd/
H A Dimsg-buffer.c1 /* $OpenBSD: imsg-buffer.c,v 1.7 2015/07/12 18:40:49 nicm Exp $ */
43 if ((buf->buf = malloc(len)) == NULL) { in ibuf_open()
47 buf->size = buf->max = len; in ibuf_open()
48 buf->fd = -1; in ibuf_open()
54 ibuf_dynamic(size_t len, size_t max) in ibuf_dynamic() argument
58 if (max < len) in ibuf_dynamic()
64 if (max > 0) in ibuf_dynamic()
65 buf->max = max; in ibuf_dynamic()
75 /* on static buffers max is eq size and so the following fails */ in ibuf_realloc()
76 if (buf->wpos + len > buf->max) { in ibuf_realloc()
[all …]
/freebsd/contrib/lib9p/
H A Dpack.c29 * Based on libixp code: ©2007-2010 Kris Maglione <maglione.k at Gmail>
63 * using msg to track position and direction within request/response.
66 * just len itself, converted to signed), or -1 if we ran out of space.
68 * Note that if we return -1, subsequent l9p_iov_io() calls with
69 * the same (and not-reset) msg and len > 0 will also return -1.
73 l9p_iov_io(struct l9p_message *msg, void *buffer, size_t len) in l9p_iov_io() argument
78 assert(msg != NULL); in l9p_iov_io()
83 if (msg->lm_cursor_iov >= msg->lm_niov) in l9p_iov_io()
84 return (-1); in l9p_iov_io()
89 size_t idx = msg->lm_cursor_iov; in l9p_iov_io()
[all …]
/freebsd/sys/sys/
H A Dmsg.h1 /* $NetBSD: msg.h,v 1.4 1994/06/29 06:44:43 cgd Exp $ */
3 /*-
4 * SVID compatible msg.h file
33 * The MSG_NOERROR identifier value, the msqid_ds struct and the msg struct
65 struct ipc_perm_old msg_perm; /* msg queue permission bits */
66 struct msg *__msg_first; /* first message in the queue */
67 struct msg *__msg_last; /* last message in the queue */
70 msglen_t msg_qbytes; /* max # of bytes on the queue */
85 * "msg" in "struct msg" and the names of all of the nonstandard members
90 struct ipc_perm msg_perm; /* msg queue permission bits */
[all …]
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_sp.c2 * Copyright (c) 2015-2024, Broadcom. All rights reserved. The term
52 if (!_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap()
54 pcie_capability_read_word(rcfw->pdev, PCI_EXP_DEVCTL2, &pcie_ctl2); in bnxt_qplib_is_atomic_cap()
61 struct bnxt_qplib_cmdqmsg msg = {}; in bnxt_qplib_query_version() local
67 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, NULL, sizeof(req), in bnxt_qplib_query_version()
69 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_version()
71 dev_err(&rcfw->pdev->dev, "QPLIB: Failed to query version\n"); in bnxt_qplib_query_version()
83 struct bnxt_qplib_cmdqmsg msg = {}; in bnxt_qplib_get_dev_attr() local
94 cctx = rcfw->res->cctx; in bnxt_qplib_get_dev_attr()
95 attr = rcfw->res->dattr; in bnxt_qplib_get_dev_attr()
[all …]
/freebsd/sys/dev/vnic/
H A Dnic.h64 /* Min/Max packet size */
66 #define NIC_HW_MAX_FRS 9200 /* 9216 max packet including FCS */
68 /* Max pkinds */
75 * BGX0-LMAC0-CHAN0 - VNIC CHAN0
76 * BGX0-LMAC1-CHAN0 - VNIC CHAN16
78 * BGX1-LMAC0-CHAN0 - VNIC CHAN128
80 * BGX1-LMAC3-CHAN0 - VNIC CHAN174
87 /* TNS bypass mode: 1-1 mapping between VNIC and BGX:LMAC */
90 #define NIC_MAX_CPI_PER_LMAC 64 /* Max when CPI_ALG is IP diffserv */
132 /* MSI-X interrupts */
[all …]
/freebsd/include/rpc/
H A Dsvc.h3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
11 * - Redistributions of source code must retain the above copyright notice,
13 * - Redistributions in binary form must reproduce the above copyright notice,
16 * - Neither the name of Sun Microsystems, Inc. nor the names of its
34 * svc.h, Server-side remote procedure call interface.
36 * Copyright (C) 1986-1993 by Sun Microsystems, Inc.
76 #define RPC_SVC_CONNMAXREC_SET 0 /* set max rec size, enable nonblock */
110 /* XXX - fvdl stick this here for ABI backward compat reasons */
112 /* catch-all function */
[all …]
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_local.h2 * Copyright 2007-2025 The OpenSSL Project Authors. All Rights Reserved.
3 * Copyright Nokia 2007-2019
4 * Copyright Siemens AG 2015-2019
42 /* HTTP-based transfer */
50 int msg_timeout; /* max seconds to wait for each CMP message round trip */
51 int total_timeout; /* max number of seconds an enrollment may take, incl. */
52 int tls_used; /* whether to use TLS for client-side HTTP connections */
76 * when validating message protection; this is used for 3GPP-style E.7
89 EVP_MD *pbm_owf; /* one-way function (OWF), default: SHA256 */
91 int pbm_mac; /* NID of MAC algorithm, default: HMAC-SHA1 as per RFC 4210 */
[all …]
/freebsd/lib/libc/rpc/
H A Dclnt_bcast.c3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
11 * - Redistributions of source code must retain the above copyright notice,
13 * - Redistributions in binary form must reproduce the above copyright notice,
16 * - Neither the name of Sun Microsystems, Inc. nor the names of its
33 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
42 * The following is kludged-up support for simple rpc broadcasts.
71 #include "un-namespace.h"
75 #define MAXBCAST 20 /* Max no of broadcasting transports */
84 * The current parameter xdr packet size is limited by the max tsdu
[all …]
H A Dsvc_dg.c3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
11 * - Redistributions of source code must retain the above copyright notice,
13 * - Redistributions in binary form must reproduce the above copyright notice,
16 * - Neither the name of Sun Microsystems, Inc. nor the names of its
34 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
40 * Does some caching in the hopes of achieving execute-at-most-once semantics.
60 #include "un-namespace.h"
65 #define su_data(xprt) ((struct svc_dg_data *)((xprt)->xp_p2))
66 #define rpc_buffer(xprt) ((xprt)->xp_p1)
[all …]
/freebsd/tools/test/stress2/misc/
H A Dmachipc2.sh32 ps -p1 | grep -q launchd || exit 0
37 # Test fails without the -lpthread. Need to investigate why.
38 cc -o machipc2 -Wall -Wextra -O2 -g machipc2.c -lmach -lpthread || exit 1
42 (cd ../testcases/swap; ./swap -t 5m -i 20 -h -v) &
46 rm -f /tmp/machipc2
132 } msg;
134 msg.header.msgh_remote_port = remote_port;
135 msg.header.msgh_local_port = MACH_PORT_NULL;
136 msg.header.msgh_bits = MACH_MSGH_BITS (MACH_MSG_TYPE_COPY_SEND, 0) |
138 msg.header.msgh_size = sizeof msg;
[all …]
/freebsd/crypto/krb5/src/lib/rpc/
H A Dsvc_udp.c41 * achieving execute-at-most-once semantics.)
44 #include "k5-platform.h"
51 #include <port-sockets.h>
52 #include <socket-utils.h>
59 #define rpc_buffer(xprt) ((xprt)->xp_p1)
60 #ifndef MAX
61 #define MAX(a, b) ((a > b) ? a : b) macro
85 * kept in xprt->xp_p2
88 u_int su_iosz; /* byte size of send.recv buffer */
94 #define su_data(xprt) ((struct svcudp_data *)(xprt->xp_p2))
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp1 //===- SourceMgr.cpp - Manager for Simple Source Buffers & Diagnostics ----===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
60 for (unsigned i = 0, e = IncludeDirectories.size(); i != e && !NewBufOrErr; in OpenIncludeFile()
74 for (unsigned i = 0, e = Buffers.size(); i != e; ++i) in FindBufferContainingLoc()
75 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && in FindBufferContainingLoc()
78 Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd()) in FindBufferContainingLoc()
91 size_t Sz = Buffer->getBufferSize(); in GetOrCreateOffsetCache()
92 assert(Sz <= std::numeric_limits<T>::max()); in GetOrCreateOffsetCache()
[all …]
/freebsd/sys/dev/firmware/arm/
H A Dscmi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
134 struct scmi_msg msg; member
139 #define msg_to_req(m) __containerof((m), struct scmi_req, msg)
152 (&((_sc)->trs->inflight_ht[(_tk) & (_sc)->trs->inflight_mask]))
199 sc->dev = dev; in scmi_attach()
202 if (node == -1) in scmi_attach()
211 device_printf(dev, "Transport - max_msg:%d max_payld_sz:%lu reply_timo_ms:%d\n", in scmi_attach()
214 sc->sysctl_root = SYSCTL_ADD_NODE(NULL, SYSCTL_STATIC_CHILDREN(_hw), in scmi_attach()
216 sysctl_trans = SYSCTL_ADD_NODE(NULL, SYSCTL_CHILDREN(sc->sysctl_root), in scmi_attach()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/mfd/
H A Dgoogle,cros-ec.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/mfd/google,cros-ec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Benson Leung <bleung@chromium.org>
11 - Guenter Roeck <groeck@chromium.org>
22 - description:
24 const: google,cros-ec-i2c
25 - description:
27 const: google,cros-ec-spi
[all …]
/freebsd/contrib/ntp/libntp/
H A Da_md5encrypt.c45 * overhead in time-critical paths. ntpsec also caches the algorithms in make_mac()
47 * This is not thread-safe, but that is in make_mac()
78 const robuffT * msg in make_mac()
96 void const * keyptr = key->buf; in make_mac()
99 /* adjust key size (zero padded buffer) if necessary */ in make_mac()
100 if (AES_128_KEY_SIZE > key->len) { in make_mac()
101 memcpy(keybuf, keyptr, key->len); in make_mac()
102 zero_mem((keybuf + key->len), in make_mac()
103 (AES_128_KEY_SIZE - key->le in make_mac()
48 make_mac(const rwbuffT * digest,int ktype,const robuffT * key,const robuffT * msg) make_mac() argument
228 MD5authdecrypt(int type,const u_char * key,size_t klen,u_int32 * pkt,size_t length,size_t size,keyid_t keyno) MD5authdecrypt() argument
[all...]
/freebsd/sys/dev/ena/
H A Dena_sysctl.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2015-2024 Amazon.com, Inc. or its affiliates.
59 /* Limit max ENA sample rate to be an hour. */
139 * Use 9k mbufs for the Rx buffers. Default to 0 (use page size mbufs instead).
143 * However, page size mbufs has a bit smaller throughput than 9k mbufs, so if
151 * Force the driver to use large or regular LLQ (Low Latency Queue) header size.
154 * header size greater than 96B, as it may reduce the latency.
155 * It also reduces the maximum Tx queue size by half, so it may cause more Tx
161 "Change default LLQ entry size received from the device");
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/
H A Dlldb-defines.h1 //===-- lldb-defines.h ------------------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 #include "lldb/lldb-types.h"
62 5 // The register that would contain pointer size or less argument 1 (if any)
64 6 // The register that would contain pointer size or less argument 2 (if any)
66 7 // The register that would contain pointer size or less argument 3 (if any)
68 8 // The register that would contain pointer size or less argument 4 (if any)
70 9 // The register that would contain pointer size or less argument 5 (if any)
72 10 // The register that would contain pointer size or less argument 6 (if any)
[all …]
/freebsd/sys/netgraph/
H A Dng_message.h5 /*-
6 * Copyright (c) 1996-1999 Whistle Communications, Inc.
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
46 * ASCII string size limits
49 #define NG_TYPESIZ 32 /* max type name len (including null) */
50 #define NG_HOOKSIZ 32 /* max hook name len (including null) */
51 #define NG_NODESIZ 32 /* max node name len (including null) */
52 #define NG_PATHSIZ 512 /* max path len (including null) */
53 #define NG_CMDSTRSIZ 32 /* max command string (including null) */
101 #define NGF_ORIG 0x00000000 /* the msg is the original request */
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_kmem.c1 // SPDX-License-Identifier: BSD-2-Clause
3 * Copyright (c) 2006-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>
54 #define malloc(size, type, flags) malloc(size) argument
71 zfs_kmem_alloc(size_t size, int kmflags) in zfs_kmem_alloc() argument
77 size += sizeof (struct kmem_item); in zfs_kmem_alloc()
79 p = malloc(MAX(size, 16), M_SOLARIS, kmflags); in zfs_kmem_alloc()
88 stack_save(&i->stack); in zfs_kmem_alloc()
98 zfs_kmem_free(void *buf, size_t size __unused) in zfs_kmem_free()
107 buf = (uint8_t *)buf - sizeof (struct kmem_item); in zfs_kmem_free()
116 memset(buf, 0xDC, MAX(size, 16)); in zfs_kmem_free()
[all …]
/freebsd/sys/rpc/
H A Dsvc.h3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
11 * - Redistributions of source code must retain the above copyright notice,
13 * - Redistributions in binary form must reproduce the above copyright notice,
16 * - Neither the name of Sun Microsystems, Inc. nor the names of its
34 * svc.h, Server-side remote procedure call interface.
36 * Copyright (C) 1986-1993 by Sun Microsystems, Inc.
83 #define RPC_SVC_CONNMAXREC_SET 0 /* set max rec size, enable nonblock */
108 /* catch-all function */
121 * xp_p2 - Points to the CLIENT structure for the RPC server end
[all …]
/freebsd/sys/powerpc/powernv/
H A Dopal_i2c.c1 /*-
2 * Copyright (c) 2017-2018 QCM Technologies.
3 * Copyright (c) 2017-2018 Semihalf.
74 uint8_t subaddr_sz; /* Max 4 */
78 uint32_t subaddr; /* Sub-address if any */
79 uint32_t size; /* Data size */ member
102 #define I2C_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
103 #define I2C_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
105 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \
118 if (!(ofw_bus_is_compatible(dev, "ibm,opal-i2c"))) in opal_i2c_probe()
[all …]
/freebsd/sys/netgraph/bluetooth/hci/
H A Dng_hci_main.c5 /*-
6 * SPDX-License-Identifier: BSD-2-Clause
32 * $Id: ng_hci_main.c,v 1.2 2003/03/18 00:09:36 max Exp $
130 unit->node = node; in ng_hci_constructor()
131 unit->debug = NG_HCI_WARN_LEVEL; in ng_hci_constructor()
133 unit->link_policy_mask = 0xffff; /* Enable all supported modes */ in ng_hci_constructor()
134 unit->packet_mask = 0xffff; /* Enable all packet types */ in ng_hci_constructor()
135 unit->role_switch = 1; /* Enable role switch (if device supports it) */ in ng_hci_constructor()
141 * One ACL packet with max. size of 17 bytes (1 DM1 packet) in ng_hci_constructor()
142 * One SCO packet with max. size of 10 bytes (1 HV1 packet) in ng_hci_constructor()
[all …]
/freebsd/crypto/openssl/crypto/slh_dsa/
H A Dslh_dsa.c2 * Copyright 2024-2025 The OpenSSL Project Authors. All Rights Reserved.
17 /* The size of md is (21..40 bytes) - since a is in bits round up to nearest byte */
18 #define MD_LEN(params) (((params)->k * (params)->a + 7) >> 3)
24 * @brief SLH-DSA Signature generation
34 * @param msg The message to sign. This may be encoded beforehand.
35 * @param msg_len The size of |msg|
37 * @param sig_len The size of the returned |sig|
38 * @param sig_size The maximum size of |sig|
39 * @param opt_rand An optional random value to use of size |n|. It can be NULL.
43 const uint8_t *msg, size_t msg_len, in slh_sign_internal() argument
[all …]
/freebsd/crypto/openssl/fuzz/
H A Dslh-dsa.c12 * Test slh-dsa operation.
25 * @brief Consumes an 8-bit unsigned integer from a buffer.
27 * This function extracts an 8-bit unsigned integer from the provided buffer,
31 * @param len Pointer to the size of the remaining buffer; updated after consumption.
32 * @param val Pointer to store the extracted 8-bit value.
42 *len -= sizeof(uint8_t); in consume_uint8t()
49 * This function creates a DSA key pair based on the specified key size and
53 * @param keysize The desired key size in bits.
93 * @brief Selects a key type and determines the key size.
95 * This function maps a selector value to a specific SLH-DSA algorithm
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/rockchip/
H A Drk3588-extra.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include "rk3588-base.dtsi"
7 #include "rk3588-extra-pinctrl.dtsi"
11 compatible = "rockchip,rk3588-dwc3", "snps,dwc3";
16 clock-names = "ref_clk", "suspend_clk", "bus_clk";
19 phy-names = "usb2-phy", "usb3-phy";
21 power-domains = <&power RK3588_PD_USB>;
24 snps,dis-u2-freeclk-exists-quirk;
25 snps,dis-del-phy-power-chg-quirk;
26 snps,dis-tx-ipgap-linecheck-quirk;
[all …]

12345678910>>...23