Home
last modified time | relevance | path

Searched refs:buffer (Results 1301 - 1325 of 11096) sorted by relevance

1...<<51525354555657585960>>...444

/third_party/icu/icu4c/source/tools/toolutil/
H A Dpkg_gencmn.cpp122 static char buffer[4096]; in createCommonDataFile() local
132 fprintf(stderr, "gencmn: unable to allocate memory for line buffer of size %d\n", LINE_BUFFER_SIZE); in createCommonDataFile()
281 length=T_FileStream_read(file, buffer, sizeof(buffer)); in createCommonDataFile()
286 udata_writeBlock(out, buffer, length); in createCommonDataFile()
315 filename=s=buffer; in createCommonDataFile()
341 sprintf(buffer, in createCommonDataFile()
351 T_FileStream_writeLine(out, buffer); in createCommonDataFile()
353 sprintf(buffer, "extern const char\n %s%s[]", symPrefix?symPrefix:"", files[0].pathname); in createCommonDataFile()
354 T_FileStream_writeLine(out, buffer); in createCommonDataFile()
[all...]
/third_party/vk-gl-cts/external/amber/src/src/vulkan/
H A Dpipeline.cc240 return Result("Missing push constant buffer data"); in AddPushConstantBuffer()
277 // Don't add the buffer if it's already added. in AddDescriptorBuffer()
278 const auto& buffer = std::find_if( in AddDescriptorBuffer() local
281 if (buffer != descriptor_buffers_.end()) { in AddDescriptorBuffer()
295 return Result("Pipeline::AddBufferDescriptor not supported buffer type"); in AddBufferDescriptor()
427 for (auto buffer : descriptor_buffers_) { in SendDescriptorDataToDeviceIfNeeded()
428 if (descriptor_transfer_resources_.count(buffer) == 0) { in SendDescriptorDataToDeviceIfNeeded()
433 Result r = descriptor_transfer_resources_[buffer]->Initialize(); in SendDescriptorDataToDeviceIfNeeded()
438 // Note that if a buffer for a descriptor is host accessible and in SendDescriptorDataToDeviceIfNeeded()
440 // directly writes data to the buffer in SendDescriptorDataToDeviceIfNeeded()
458 GetCommandBuffer(), buffer, transfer_buffer); SendDescriptorDataToDeviceIfNeeded() local
466 GetCommandBuffer(), buffer, transfer_image); SendDescriptorDataToDeviceIfNeeded() local
[all...]
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
H A Dpkg_gencmn.cpp122 static char buffer[4096]; in createCommonDataFile() local
132 fprintf(stderr, "gencmn: unable to allocate memory for line buffer of size %d\n", LINE_BUFFER_SIZE); in createCommonDataFile()
281 length=T_FileStream_read(file, buffer, sizeof(buffer)); in createCommonDataFile()
286 udata_writeBlock(out, buffer, length); in createCommonDataFile()
315 filename=s=buffer; in createCommonDataFile()
341 sprintf(buffer, in createCommonDataFile()
351 T_FileStream_writeLine(out, buffer); in createCommonDataFile()
353 sprintf(buffer, "extern const char\n %s%s[]", symPrefix?symPrefix:"", files[0].pathname); in createCommonDataFile()
354 T_FileStream_writeLine(out, buffer); in createCommonDataFile()
[all...]
/third_party/skia/fuzz/
H A DFuzzCommon.cpp287 SkScalar buffer[kArrayLength]; in FuzzNiceMatrix() local
295 fuzz->nextRange(&buffer[0], -4000.0f, 4000.0f); in FuzzNiceMatrix()
296 fuzz->nextRange(&buffer[1], -4000.0f, 4000.0f); in FuzzNiceMatrix()
297 *m = SkMatrix::Translate(buffer[0], buffer[1]); in FuzzNiceMatrix()
300 fuzz->nextRange(&buffer[0], -400.0f, 400.0f); in FuzzNiceMatrix()
301 fuzz->nextRange(&buffer[1], -400.0f, 400.0f); in FuzzNiceMatrix()
302 fuzz->nextRange(&buffer[2], -4000.0f, 4000.0f); in FuzzNiceMatrix()
303 fuzz->nextRange(&buffer[3], -4000.0f, 4000.0f); in FuzzNiceMatrix()
304 *m = SkMatrix::Scale(buffer[ in FuzzNiceMatrix()
[all...]
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fIndirectComputeDispatchTests.cpp57 // - indirect + size outside buffer bounds
58 // - no buffer bound to DRAW_INDIRECT_BUFFER
59 // - (implict) buffer mapped
65 // - compute program overwiting buffer
92 "layout(binding = 0, std430) buffer Result\n" in genVerifySources()
135 void createCommandBuffer (deUint32 buffer) const;
136 void createResultBuffer (deUint32 buffer) const;
138 bool verifyResultBuffer (deUint32 buffer);
140 void createCmdBufferUpload (deUint32 buffer) const;
141 void createCmdBufferCompute (deUint32 buffer) cons
292 verifyResultBuffer(deUint32 buffer) verifyResultBuffer() argument
[all...]
/third_party/skia/src/effects/imagefilters/
H A DSkLightingImageFilter.cpp83 static SkPoint3 read_point3(SkReadBuffer& buffer) { in read_point3() argument
85 point.fX = buffer.readScalar(); in read_point3()
86 point.fY = buffer.readScalar(); in read_point3()
87 point.fZ = buffer.readScalar(); in read_point3()
88 buffer.validate(SkScalarIsFinite(point.fX) && in read_point3()
94 static void write_point3(const SkPoint3& point, SkWriteBuffer& buffer) { in write_point3() argument
95 buffer.writeScalar(point.fX); in write_point3()
96 buffer.writeScalar(point.fY); in write_point3()
97 buffer.writeScalar(point.fZ); in write_point3()
120 void flattenLight(SkWriteBuffer& buffer) cons
134 SkImageFilterLight(SkReadBuffer& buffer) SkImageFilterLight() argument
895 SkDistantLight(SkReadBuffer& buffer) SkDistantLight() argument
962 SkPointLight(SkReadBuffer& buffer) SkPointLight() argument
1062 SkSpotLight(SkReadBuffer& buffer) SkSpotLight() argument
1139 UnflattenLight(SkReadBuffer& buffer) UnflattenLight() argument
1247 CreateProc(SkReadBuffer& buffer) CreateProc() argument
1386 CreateProc(SkReadBuffer& buffer) CreateProc() argument
[all...]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Ddbtest.c168 * as integers, strings, buffers, fields, buffer fields, etc.
275 byte_length = obj_desc->buffer.length; in acpi_db_test_one_object()
495 u8 *buffer; in acpi_db_test_buffer_type() local
504 acpi_os_printf(" Ignoring zero length buffer"); in acpi_db_test_buffer_type()
508 /* Allocate a local buffer */ in acpi_db_test_buffer_type()
510 buffer = ACPI_ALLOCATE_ZEROED(byte_length); in acpi_db_test_buffer_type()
511 if (!buffer) { in acpi_db_test_buffer_type()
522 /* Emit a few bytes of the buffer */ in acpi_db_test_buffer_type()
525 temp1->buffer.length); in acpi_db_test_buffer_type()
527 acpi_os_printf(" %2.2X", temp1->buffer in acpi_db_test_buffer_type()
[all...]
/kernel/linux/linux-5.10/lib/
H A Ddecompress_unlzma.c70 uint8_t *buffer; member
85 static long INIT nofill(void *buffer, unsigned long len) in nofill() argument
93 rc->buffer_size = rc->fill((char *)rc->buffer, LZMA_IOBUF_SIZE); in rc_read()
96 rc->ptr = rc->buffer; in rc_read()
97 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_read()
103 char *buffer, long buffer_size) in rc_init()
109 rc->buffer = (uint8_t *)buffer; in rc_init()
111 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_init()
112 rc->ptr = rc->buffer; in rc_init()
101 rc_init(struct rc *rc, long (*fill)(void*, unsigned long), char *buffer, long buffer_size) rc_init() argument
278 uint8_t *buffer; global() member
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Ddbtest.c168 * as integers, strings, buffers, fields, buffer fields, etc.
275 byte_length = obj_desc->buffer.length; in acpi_db_test_one_object()
495 u8 *buffer; in acpi_db_test_buffer_type() local
504 acpi_os_printf(" Ignoring zero length buffer"); in acpi_db_test_buffer_type()
508 /* Allocate a local buffer */ in acpi_db_test_buffer_type()
510 buffer = ACPI_ALLOCATE_ZEROED(byte_length); in acpi_db_test_buffer_type()
511 if (!buffer) { in acpi_db_test_buffer_type()
522 /* Emit a few bytes of the buffer */ in acpi_db_test_buffer_type()
525 temp1->buffer.length); in acpi_db_test_buffer_type()
527 acpi_os_printf(" %2.2X", temp1->buffer in acpi_db_test_buffer_type()
[all...]
/kernel/linux/linux-6.6/net/sctp/
H A Dsysctl.c47 void *buffer, size_t *lenp, loff_t *ppos);
49 void *buffer, size_t *lenp, loff_t *ppos);
50 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, void *buffer,
52 static int proc_sctp_do_udp_port(struct ctl_table *ctl, int write, void *buffer,
55 void *buffer, size_t *lenp, loff_t *ppos);
57 void *buffer, size_t *lenp, loff_t *ppos);
59 void *buffer, size_t *lenp, loff_t *ppos);
392 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg()
411 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
437 void *buffer, size_ in proc_sctp_do_rto_min()
391 proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) proc_sctp_do_hmac_alg() argument
436 proc_sctp_do_rto_min(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) proc_sctp_do_rto_min() argument
464 proc_sctp_do_rto_max(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) proc_sctp_do_rto_max() argument
492 proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) proc_sctp_do_alpha_beta() argument
502 proc_sctp_do_auth(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) proc_sctp_do_auth() argument
531 proc_sctp_do_udp_port(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) proc_sctp_do_udp_port() argument
572 proc_sctp_do_probe_interval(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) proc_sctp_do_probe_interval() argument
[all...]
/kernel/linux/linux-6.6/lib/
H A Ddecompress_unlzma.c70 uint8_t *buffer; member
85 static long INIT nofill(void *buffer, unsigned long len) in nofill() argument
93 rc->buffer_size = rc->fill((char *)rc->buffer, LZMA_IOBUF_SIZE); in rc_read()
96 rc->ptr = rc->buffer; in rc_read()
97 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_read()
103 char *buffer, long buffer_size) in rc_init()
109 rc->buffer = (uint8_t *)buffer; in rc_init()
111 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_init()
112 rc->ptr = rc->buffer; in rc_init()
101 rc_init(struct rc *rc, long (*fill)(void*, unsigned long), char *buffer, long buffer_size) rc_init() argument
278 uint8_t *buffer; global() member
[all...]
/third_party/backends/backend/
H A Dplustek-pp_p48xx.c115 pULong buffer; in p48xxDoTest() local
119 buffer = _KALLOC( sizeof(UChar) * _TEST_SZ, GFP_KERNEL ); in p48xxDoTest()
120 if( NULL == buffer ) in p48xxDoTest()
143 buffer[ul] = ul + adder + _START_VAL; in p48xxDoTest()
145 /* fill to buffer */ in p48xxDoTest()
146 IOMoveDataToScanner( ps, (pUChar)buffer, _TEST_SZ ); in p48xxDoTest()
157 IOReadScannerImageData( ps, (pUChar)buffer, _TEST_SZ ); in p48xxDoTest()
161 if (buffer[ul] != ul + _START_VAL) { in p48xxDoTest()
178 IOReadScannerImageData( ps, (pUChar)buffer, _TEST_SZ); in p48xxDoTest()
182 if( buffer[u in p48xxDoTest()
300 pUChar buffer; p48xxCheck4800Memory() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DHashing.h287 /// \brief Mix in a 64-byte buffer of data.
379 /// \brief Helper to store data from a value into a buffer and advance the
380 /// pointer into that buffer.
383 /// buffer, and if not immediately returns false. If there is space, it
384 /// copies the underlying bytes of value into the buffer, advances the
406 char buffer[64], *buffer_ptr = buffer; in hash_combine_range_impl() local
407 char *const buffer_end = std::end(buffer); in hash_combine_range_impl()
412 return hash_short(buffer, buffer_ptr - buffer, see in hash_combine_range_impl()
497 char buffer[64]; global() member
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DHashing.h286 /// Mix in a 64-byte buffer of data.
377 /// Helper to store data from a value into a buffer and advance the
378 /// pointer into that buffer.
381 /// buffer, and if not immediately returns false. If there is space, it
382 /// copies the underlying bytes of value into the buffer, advances the
404 char buffer[64], *buffer_ptr = buffer; in hash_combine_range_impl() local
405 char *const buffer_end = std::end(buffer); in hash_combine_range_impl()
410 return hash_short(buffer, buffer_ptr - buffer, see in hash_combine_range_impl()
495 char buffer[64] = {}; global() member
[all...]
/third_party/python/Modules/
H A D_bz2module.c11 // Blocks output buffer wrappers
21 OutputBuffer_InitAndGrow(_BlocksOutputBuffer *buffer, Py_ssize_t max_length, in OutputBuffer_InitAndGrow() argument
27 buffer, max_length, (void**) next_out); in OutputBuffer_InitAndGrow()
35 OutputBuffer_Grow(_BlocksOutputBuffer *buffer, in OutputBuffer_Grow() argument
41 buffer, (void**) next_out, (Py_ssize_t) *avail_out); in OutputBuffer_Grow()
47 OutputBuffer_GetDataSize(_BlocksOutputBuffer *buffer, uint32_t avail_out) in OutputBuffer_GetDataSize() argument
49 return _BlocksOutputBuffer_GetDataSize(buffer, (Py_ssize_t) avail_out); in OutputBuffer_GetDataSize()
53 OutputBuffer_Finish(_BlocksOutputBuffer *buffer, uint32_t avail_out) in OutputBuffer_Finish() argument
55 return _BlocksOutputBuffer_Finish(buffer, (Py_ssize_t) avail_out); in OutputBuffer_Finish()
59 OutputBuffer_OnError(_BlocksOutputBuffer *buffer) in OutputBuffer_OnError() argument
178 _BlocksOutputBuffer buffer = {.list = NULL}; compress() local
442 _BlocksOutputBuffer buffer = {.list = NULL}; decompress_buf() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dsyscalls.c86 unsigned long __user *buffer = (unsigned long __user *)n; in ppc_select() local
87 if (!access_ok(buffer, 5*sizeof(unsigned long)) in ppc_select()
88 || __get_user(n, buffer) in ppc_select()
89 || __get_user(inp, ((fd_set __user * __user *)(buffer+1))) in ppc_select()
90 || __get_user(outp, ((fd_set __user * __user *)(buffer+2))) in ppc_select()
91 || __get_user(exp, ((fd_set __user * __user *)(buffer+3))) in ppc_select()
92 || __get_user(tvp, ((struct __kernel_old_timeval __user * __user *)(buffer+4)))) in ppc_select()
/kernel/linux/linux-5.10/crypto/
H A Dcipher.c25 u8 *buffer, *alignbuffer; in setkey_unaligned() local
29 buffer = kmalloc(absize, GFP_ATOMIC); in setkey_unaligned()
30 if (!buffer) in setkey_unaligned()
33 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
36 kfree_sensitive(buffer); in setkey_unaligned()
67 u8 buffer[MAX_CIPHER_BLOCKSIZE + MAX_CIPHER_ALIGNMASK]; in cipher_crypt_one() local
68 u8 *tmp = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in cipher_crypt_one()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dcompaction_test.c31 char buffer[256] = {0}; in read_memory_info() local
35 if (!(fgets(buffer, sizeof(buffer), cmdfile))) { in read_memory_info()
42 *memfree = atoll(buffer); in read_memory_info()
46 if (!(fgets(buffer, sizeof(buffer), cmdfile))) { in read_memory_info()
52 *hugepagesize = atoll(buffer); in read_memory_info()
/kernel/linux/linux-5.10/samples/watch_queue/
H A Dwatch_test.c66 unsigned char buffer[433], *p, *end; in consumer() local
74 buf_len = read(fd, buffer, sizeof(buffer)); in consumer()
85 if (buf_len > sizeof(buffer)) { in consumer()
86 fprintf(stderr, "Read buffer overrun: %zd\n", buf_len); in consumer()
92 p = buffer; in consumer()
93 end = buffer + buf_len; in consumer()
107 p - buffer, n.n.type, n.n.subtype, n.n.info); in consumer()
/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidump/
H A Dapfiles.c175 * DESCRIPTION: Open a file and read it entirely into a new buffer
182 struct acpi_table_header *buffer = NULL; in ap_get_table_from_file() local
195 /* Need file size to allocate a buffer */ in ap_get_table_from_file()
204 /* Allocate a buffer for the entire file */ in ap_get_table_from_file()
206 buffer = ACPI_ALLOCATE_ZEROED(file_size); in ap_get_table_from_file()
207 if (!buffer) { in ap_get_table_from_file()
209 "Could not allocate file buffer of size: %u\n", in ap_get_table_from_file()
216 actual = fread(buffer, 1, file_size, file); in ap_get_table_from_file()
219 ACPI_FREE(buffer); in ap_get_table_from_file()
220 buffer in ap_get_table_from_file()
[all...]
/kernel/linux/linux-5.10/include/keys/
H A Dtrusted_tpm.h15 #define LOAD32(buffer, offset) (ntohl(*(uint32_t *)&buffer[offset]))
16 #define LOAD32N(buffer, offset) (*(uint32_t *)&buffer[offset])
17 #define LOAD16(buffer, offset) (ntohs(*(uint16_t *)&buffer[offset]))
34 int TSS_checkhmac1(unsigned char *buffer,
90 pr_info("\ntrusted-key: tpm buffer\n"); in dump_tpm_buf()
/kernel/linux/linux-6.6/crypto/
H A Dcipher.c26 u8 *buffer, *alignbuffer; in setkey_unaligned() local
30 buffer = kmalloc(absize, GFP_ATOMIC); in setkey_unaligned()
31 if (!buffer) in setkey_unaligned()
34 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
38 kfree(buffer); in setkey_unaligned()
69 u8 buffer[MAX_CIPHER_BLOCKSIZE + MAX_CIPHER_ALIGNMASK]; in cipher_crypt_one() local
70 u8 *tmp = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in cipher_crypt_one()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dcompaction_test.c31 char buffer[256] = {0}; in read_memory_info() local
35 if (!(fgets(buffer, sizeof(buffer), cmdfile))) { in read_memory_info()
42 *memfree = atoll(buffer); in read_memory_info()
46 if (!(fgets(buffer, sizeof(buffer), cmdfile))) { in read_memory_info()
52 *hugepagesize = atoll(buffer); in read_memory_info()
/kernel/linux/linux-6.6/tools/power/acpi/tools/acpidump/
H A Dapfiles.c175 * DESCRIPTION: Open a file and read it entirely into a new buffer
182 struct acpi_table_header *buffer = NULL; in ap_get_table_from_file() local
195 /* Need file size to allocate a buffer */ in ap_get_table_from_file()
204 /* Allocate a buffer for the entire file */ in ap_get_table_from_file()
206 buffer = ACPI_ALLOCATE_ZEROED(file_size); in ap_get_table_from_file()
207 if (!buffer) { in ap_get_table_from_file()
209 "Could not allocate file buffer of size: %u\n", in ap_get_table_from_file()
216 actual = fread(buffer, 1, file_size, file); in ap_get_table_from_file()
219 ACPI_FREE(buffer); in ap_get_table_from_file()
220 buffer in ap_get_table_from_file()
[all...]
/kernel/linux/linux-6.6/samples/watch_queue/
H A Dwatch_test.c66 unsigned char buffer[433], *p, *end; in consumer() local
74 buf_len = read(fd, buffer, sizeof(buffer)); in consumer()
85 if (buf_len > sizeof(buffer)) { in consumer()
86 fprintf(stderr, "Read buffer overrun: %zd\n", buf_len); in consumer()
92 p = buffer; in consumer()
93 end = buffer + buf_len; in consumer()
107 p - buffer, n.n.type, n.n.subtype, n.n.info); in consumer()

Completed in 18 milliseconds

1...<<51525354555657585960>>...444