Home
last modified time | relevance | path

Searched +full:buffer +full:- +full:size (Results 1 – 25 of 1056) sorted by relevance

12345678910>>...43

/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_hdmi.c17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
37 static u8 hdmi_infoframe_checksum(const u8 *ptr, size_t size) in hdmi_infoframe_checksum() argument
43 for (i = 0; i < size; i++) in hdmi_infoframe_checksum()
46 return 256 - csum; in hdmi_infoframe_checksum()
49 static void hdmi_infoframe_set_checksum(void *buffer, size_t size) in hdmi_infoframe_set_checksum() argument
51 u8 *ptr = buffer; in hdmi_infoframe_set_checksum()
53 ptr[3] = hdmi_infoframe_checksum(buffer, size); in hdmi_infoframe_set_checksum()
57 * hdmi_avi_infoframe_init() - initialize an HDMI AVI infoframe
64 frame->type = HDMI_INFOFRAME_TYPE_AVI; in hdmi_avi_infoframe_init()
65 frame->version = 2; in hdmi_avi_infoframe_init()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_str.cpp2 * kmp_str.cpp -- String manipulation routines.
5 //===--------
71 __kmp_str_buf_clear(kmp_str_buf_t * buffer) __kmp_str_buf_clear() argument
80 __kmp_str_buf_reserve(kmp_str_buf_t * buffer,size_t size) __kmp_str_buf_reserve() argument
110 __kmp_str_buf_detach(kmp_str_buf_t * buffer) __kmp_str_buf_detach() argument
123 __kmp_str_buf_free(kmp_str_buf_t * buffer) __kmp_str_buf_free() argument
134 __kmp_str_buf_cat(kmp_str_buf_t * buffer,char const * str,size_t len) __kmp_str_buf_cat() argument
161 __kmp_str_buf_vprint(kmp_str_buf_t * buffer,char const * format,va_list args) __kmp_str_buf_vprint() argument
168 int size; __kmp_str_buf_vprint() local
221 __kmp_str_buf_print(kmp_str_buf_t * buffer,char const * format,...) __kmp_str_buf_print() argument
232 __kmp_str_buf_print_size(kmp_str_buf_t * buf,size_t size) __kmp_str_buf_print_size() argument
453 int size = 512; __kmp_str_format() local
454 char *buffer = NULL; __kmp_str_format() local
[all...]
H A Dkmp_alloc.cpp2 * kmp_alloc.cpp -- private/shared dynamic memory allocation and management
5 //===----------------------------------------------------------------------===//
9 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
11 //===----------------------------------------------------------------------===//
20 /* Thread private buffer management code */
38 /* The three modes of operation are, fifo search, lifo search, and best-fit */
46 static void bpool(kmp_info_t *th, void *buffer, bufsize len);
47 static void *bget(kmp_info_t *th, bufsize size);
48 static void *bgetz(kmp_info_t *th, bufsize size);
49 static void *bgetr(kmp_info_t *th, void *buffer, bufsize newsize);
[all …]
/freebsd/sys/contrib/ck/include/
H A Dck_ring.h2 * Copyright 2009-2015 Samy Al Bahra.
37 * Concurrent ring buffer.
42 char pad[CK_MD_CACHELINE - sizeof(unsigned int)];
45 char _pad[CK_MD_CACHELINE - sizeof(unsigned int) * 2];
46 unsigned int size; member
61 c = ck_pr_load_uint(&ring->c_head); in ck_ring_size()
62 p = ck_pr_load_uint(&ring->p_tail); in ck_ring_size()
63 return (p - c) & ring->mask; in ck_ring_size()
70 return ring->size; in ck_ring_capacity()
75 * on the ring. This is primarily meant for persistent ck_ring use-cases. The
[all …]
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_port_buffer.c1 /*-
2 * Copyright (c) 2018-2019 Mellanox Technologies. All rights reserved.
36 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_port_query_buffer()
39 void *buffer; in mlx5e_port_query_buffer() local
46 return -ENOMEM; in mlx5e_port_query_buffer()
53 buffer = MLX5_ADDR_OF(pbmc_reg, out, buffer[i]); in mlx5e_port_query_buffer()
54 port_buffer->buffer[i].lossy = in mlx5e_port_query_buffer()
55 MLX5_GET(bufferx_reg, buffer, lossy); in mlx5e_port_query_buffer()
56 port_buffer->buffer[i].epsb = in mlx5e_port_query_buffer()
57 MLX5_GET(bufferx_reg, buffer, epsb); in mlx5e_port_query_buffer()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DBinaryByteStream.h1 //===- BinaryByteStream.h ---------
40 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
41 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
49 readLongestContiguousChunk(uint64_t Offset,ArrayRef<uint8_t> & Buffer) readLongestContiguousChunk() argument
76 MemoryBufferByteStream(std::unique_ptr<MemoryBuffer> Buffer,llvm::support::endianness Endian) MemoryBufferByteStream() argument
99 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
100 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
105 readLongestContiguousChunk(uint64_t Offset,ArrayRef<uint8_t> & Buffer) readLongestContiguousChunk() argument
111 writeBytes(uint64_t Offset,ArrayRef<uint8_t> Buffer) writeBytes() argument
147 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
148 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
161 readLongestContiguousChunk(uint64_t Offset,ArrayRef<uint8_t> & Buffer) readLongestContiguousChunk() argument
171 writeBytes(uint64_t Offset,ArrayRef<uint8_t> Buffer) writeBytes() argument
206 StreamImpl(std::unique_ptr<FileOutputBuffer> Buffer,llvm::support::endianness Endian) StreamImpl() argument
232 FileBufferByteStream(std::unique_ptr<FileOutputBuffer> Buffer,llvm::support::endianness Endian) FileBufferByteStream() argument
240 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
241 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
246 readLongestContiguousChunk(uint64_t Offset,ArrayRef<uint8_t> & Buffer) readLongestContiguousChunk() argument
[all...]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c2 FastLZ - lightning-fast lossless compression library
38 /* for Adler-32 checksum algorithm, see RFC 1950 Section 8.2 */
51 len -= k; in update_adler32()
62 k -= 8; in update_adler32()
65 while (k-- > 0) { in update_adler32()
78 rc = write_to_buf(_out_buff->data, _out_buff->size, &_out_buff->offset, in write_magic()
104 if (in_buf_size - *offset < out_buf_size) in read_from_buf()
113 unsigned long size, unsigned long checksum, in write_chunk_header() argument
116 unsigned char buffer[CUDBG_CHUNK_BUF_LEN]; in write_chunk_header() local
119 buffer[0] = id & 255; in write_chunk_header()
[all …]
/freebsd/sys/contrib/edk2/Include/Library/
H A DMemoryAllocationLib.h5 …allows code to be written in a phase-independent manner because the allocation of memory in PEI, D…
9 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
10 SPDX-License-Identifier: BSD-2-Clause-Patent
21 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
27 @return A pointer to the allocated buffer or NULL if allocation fails.
40 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
46 @return A pointer to the allocated buffer or NULL if allocation fails.
59 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
65 @return A pointer to the allocated buffer or NULL if allocation fails.
78 Frees the number of 4KB pages specified by Pages from the buffer specified by Buffer. Buffer
[all …]
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dadv_data.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
41 static char* const adv_data2str(int len, uint8_t* data, char* buffer,
42 int size);
43 static char* const adv_name2str(int len, uint8_t* advdata, char* buffer,
44 int size);
45 static char* const adv_uuid2str(int datalen, uint8_t* data, char* buffer,
46 int size);
63 char buffer[2048]; in print_adv_data() local
68 datalen--; in print_adv_data()
[all …]
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_iobuf.c1 /*-
48 * Buffer-backed NVRAM I/O context.
51 * backing contigious buffer via bhnd_nvram_io_read_ptr() and
56 void *buf; /**< backing buffer. if inline-allocated, will
58 size_t size; /**< size of @p buf */ member
60 uint8_t data[]; /**< inline buffer allocation */
67 * buffer of @p size and @p capacity. in BHND_NVRAM_IOPS_DEFN()
72 * If @p capacity is less than @p size, a capacity of @p size will be used. in BHND_NVRAM_IOPS_DEFN()
74 * @param size The initial size of the I/O context. in BHND_NVRAM_IOPS_DEFN()
75 * @param capacity The total capacity of the I/O context buffer; in BHND_NVRAM_IOPS_DEFN()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_flag_parser.h1 //===-- sanitizer_flag_parser.h --------
28 Format(char * buffer,uptr size) Format() argument
37 FormatString(char * buffer,uptr size,const char * str_to_use) FormatString() argument
78 Format(char * buffer,uptr size) Format() argument
99 Format(char * buffer,uptr size) Format() argument
111 Format(char * buffer,uptr size) Format() argument
125 Format(char * buffer,uptr size) Format() argument
140 Format(char * buffer,uptr size) Format() argument
155 Format(char * buffer,uptr size) Format() argument
[all...]
/freebsd/contrib/unbound/sldns/
H A Dsbuffer.c2 * buffer.c -- generic memory buffer .
4 * Copyright (c) 2001-2008, NLnet Labs. All rights reserved.
21 sldns_buffer *buffer = (sldns_buffer*)malloc(sizeof(sldns_buffer)); in sldns_buffer_new() local
23 if (!buffer) { in sldns_buffer_new()
27 buffer->_data = (uint8_t *) malloc(capacity); in sldns_buffer_new()
28 if (!buffer->_data) { in sldns_buffer_new()
29 free(buffer); in sldns_buffer_new()
33 buffer->_position = 0; in sldns_buffer_new()
34 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_new()
35 buffer->_fixed = 0; in sldns_buffer_new()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/XRay/
H A DRecordInitializer.cpp1 //===- FDRRecordProducer.cpp - XRay FDR Mode Record Producer --------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
17 "Invalid offset for a buffer extent (%" PRId64 ").", OffsetPtr); in visit()
20 R.Size = E.getU64(&OffsetPtr); in visit()
23 "Cannot read buffer extent at offset %" PRId64 ".", in visit()
26 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - PreReadOffset); in visit()
53 // Align to metadata record size boundary. in visit()
54 assert(OffsetPtr - BeginOffset <= MetadataRecord::kMetadataBodySize); in visit()
55 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - BeginOffset); in visit()
[all …]
/freebsd/usr.bin/dtc/
H A Ddtb.cc1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
8 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
45 void write(dtc::byte_buffer &buffer, int fd) in write() argument
47 size_t size = buffer.size(); in write() local
48 uint8_t *data = buffer.data(); in write()
49 while (size > 0) in write()
51 ssize_t r = ::write(fd, data, size); in write()
55 size -= r; in write()
60 exit(-1); in write()
[all …]
/freebsd/contrib/ldns/
H A Dedns.c8 * (c) NLnet Labs, 2004-2022
27 return edns->_size; in ldns_edns_get_size()
34 return edns->_code; in ldns_edns_get_code()
41 return edns->_data; in ldns_edns_get_data()
48 size_t size; in ldns_edns_get_wireformat_buffer() local
50 ldns_buffer* buffer; in ldns_edns_get_wireformat_buffer() local
57 size = ldns_edns_get_size(edns); in ldns_edns_get_wireformat_buffer()
60 buffer = ldns_buffer_new(size + 4); in ldns_edns_get_wireformat_buffer()
62 if (buffer == NULL) { in ldns_edns_get_wireformat_buffer()
66 ldns_buffer_write_u16(buffer, option); in ldns_edns_get_wireformat_buffer()
[all …]
/freebsd/sys/arm/nvidia/drm2/
H A Dhdmi.c17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
35 static uint8_t hdmi_infoframe_checksum(uint8_t *ptr, size_t size) in hdmi_infoframe_checksum() argument
41 for (i = 0; i < size; i++) in hdmi_infoframe_checksum()
44 return 256 - csum; in hdmi_infoframe_checksum()
47 static void hdmi_infoframe_set_checksum(void *buffer, size_t size) in hdmi_infoframe_set_checksum() argument
49 uint8_t *ptr = buffer; in hdmi_infoframe_set_checksum()
51 ptr[3] = hdmi_infoframe_checksum(buffer, size); in hdmi_infoframe_set_checksum()
55 * hdmi_avi_infoframe_init() - initialize an HDMI AVI infoframe
64 frame->type = HDMI_INFOFRAME_TYPE_AVI; in hdmi_avi_infoframe_init()
65 frame->version = 2; in hdmi_avi_infoframe_init()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DFileOutputBuffer.cpp1 //===- FileOutputBuffer.cpp - File Output Buffer -------
67 fs::mapped_file_region Buffer; global() member in __anon71e275e70111::OnDiskBuffer
108 OwningMemoryBlock Buffer; global() member in __anon71e275e70111::InMemoryBuffer
115 createInMemoryBuffer(StringRef Path,size_t Size,unsigned Mode) createInMemoryBuffer() argument
125 createOnDiskBuffer(StringRef Path,size_t Size,unsigned Mode) createOnDiskBuffer() argument
156 create(StringRef Path,size_t Size,unsigned Flags) create() argument
[all...]
H A DBinaryStreamRef.cpp1 //===- BinaryStreamRef.cpp - --------
24 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
25 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
29 readLongestContiguousChunk(uint64_t Offset,ArrayRef<uint8_t> & Buffer) readLongestContiguousChunk() argument
47 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
48 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
52 readLongestContiguousChunk(uint64_t Offset,ArrayRef<uint8_t> & Buffer) readLongestContiguousChunk() argument
78 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) const readBytes() argument
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dsimple_packed_serialization_test.cpp1 //===-- simple_packed_serialization_test.cpp --------
20 char Buffer[NumBytes]; TEST() local
39 char Buffer[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; TEST() local
55 size_t Size = BST::size(Value); blobSerializationRoundTrip() local
56 auto Buffer = std::make_unique<char[]>(Size); blobSerializationRoundTrip() local
137 size_t Size = SPSArgList<SPSSequence<char>>::size(OutS); TEST() local
138 auto Buffer = std::make_unique<char[]>(Size); TEST() local
180 size_t Size = BAL::size(Arg1, Arg2, Arg3); TEST() local
181 auto Buffer = std::make_unique<char[]>(Size); TEST() local
[all...]
/freebsd/contrib/libcbor/src/cbor/
H A Dserialization.c2 * Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com>
20 size_t cbor_serialize(const cbor_item_t *item, unsigned char *buffer, in cbor_serialize() argument
22 // cppcheck-suppress missingReturn in cbor_serialize()
25 return cbor_serialize_uint(item, buffer, buffer_size); in cbor_serialize()
27 return cbor_serialize_negint(item, buffer, buffer_size); in cbor_serialize()
29 return cbor_serialize_bytestring(item, buffer, buffer_size); in cbor_serialize()
31 return cbor_serialize_string(item, buffer, buffer_size); in cbor_serialize()
33 return cbor_serialize_array(item, buffer, buffer_size); in cbor_serialize()
35 return cbor_serialize_map(item, buffer, buffer_size); in cbor_serialize()
37 return cbor_serialize_tag(item, buffer, buffer_size); in cbor_serialize()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp1 //===- MappedBlockStream.cpp - Reads stream data from an MSF file --------
87 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
88 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
166 readLongestContiguousChunk(uint64_t Offset,ArrayRef<uint8_t> & Buffer) readLongestContiguousChunk() argument
197 tryReadContiguously(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) tryReadContiguously() argument
198 tryReadContiguously(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) tryReadContiguously() argument
239 readBytes(uint64_t Offset,MutableArrayRef<uint8_t> Buffer) readBytes() argument
372 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
373 readBytes(uint64_t Offset,uint64_t Size,ArrayRef<uint8_t> & Buffer) readBytes() argument
378 readLongestContiguousChunk(uint64_t Offset,ArrayRef<uint8_t> & Buffer) readLongestContiguousChunk() argument
387 writeBytes(uint64_t Offset,ArrayRef<uint8_t> Buffer) writeBytes() argument
[all...]
/freebsd/sys/contrib/ncsw/inc/etc/
H A Dmemcpy_ext.h1 /* Copyright (c) 2008-2012 Freescale Semiconductor, Inc
66 @Description Copies one memory buffer into another one in 4-byte chunks!
73 @Param[in] pDst - The address of the destination buffer.
74 @Param[in] pSrc - The address of the source buffer.
75 @Param[in] size - The number of bytes that will be copied from pSrc to pDst.
77 @Return pDst (the address of the destination buffer).
80 to supply non-null parameters as source & destination and size
81 that actually fits into the destination buffer.
83 void * MemCpy32(void* pDst,void* pSrc, uint32_t size);
84 void * IO2IOCpy32(void* pDst,void* pSrc, uint32_t size);
[all …]
/freebsd/sys/dev/ixgbe/
H A Dixgbe_mbx.c2 SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
42 * ixgbe_read_mbx - Reads a message from the mailbox
44 * @msg: The message buffer
45 * @size: Length of buffer
48 * returns SUCCESS if it successfully read message from buffer
50 s32 ixgbe_read_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) in ixgbe_read_mbx() argument
52 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_mbx()
56 /* limit read to size of mailbox */ in ixgbe_read_mbx()
57 if (size > mbx->size) { in ixgbe_read_mbx()
[all …]
/freebsd/usr.sbin/nscd/agents/
H A Dpasswd.c1 /*-
46 passwd_marshal_func(struct passwd *pwd, char *buffer, size_t *buffer_size) in passwd_marshal_func() argument
50 size_t desired_size, size; in passwd_marshal_func() local
54 strlen(pwd->pw_name) + 1; in passwd_marshal_func()
55 if (pwd->pw_passwd != NULL) in passwd_marshal_func()
56 desired_size += strlen(pwd->pw_passwd) + 1; in passwd_marshal_func()
57 if (pwd->pw_class != NULL) in passwd_marshal_func()
58 desired_size += strlen(pwd->pw_class) + 1; in passwd_marshal_func()
59 if (pwd->pw_gecos != NULL) in passwd_marshal_func()
60 desired_size += strlen(pwd->pw_gecos) + 1; in passwd_marshal_func()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DUtility.h1 //===--- Utility.h -------
35 char *Buffer = nullptr; global() variable
75 OutputBuffer(char * StartBuf,size_t Size) OutputBuffer() argument
109 if (size_t Size = R.size()) { global() variable
124 size_t Size = R.size(); prepend() local
[all...]

12345678910>>...43