Home
last modified time | relevance | path

Searched refs:buffer (Results 1001 - 1025 of 15492) sorted by relevance

1...<<41424344454647484950>>...620

/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_suballoc.c29 /* A simple allocator that suballocates memory from a large buffer. */
43 * \param zero_buffer_memory determines whether the buffer contents should be
67 pipe_resource_reference(&allocator->buffer, NULL); in u_suballocator_destroy()
77 /* Don't allow allocations larger than the buffer size. */ in u_suballocator_alloc()
81 /* Make sure we have enough space in the buffer. */ in u_suballocator_alloc()
82 if (!allocator->buffer || in u_suballocator_alloc()
84 /* Allocate a new buffer. */ in u_suballocator_alloc()
85 pipe_resource_reference(&allocator->buffer, NULL); in u_suballocator_alloc()
101 allocator->buffer = screen->resource_create(screen, &templ); in u_suballocator_alloc()
102 if (!allocator->buffer) in u_suballocator_alloc()
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/rands/seeding/
H A Drand_win.c52 unsigned char *buffer; in ossl_pool_acquire_entropy() local
71 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy()
72 if (buffer != NULL) { in ossl_pool_acquire_entropy()
74 if (BCryptGenRandom(NULL, buffer, bytes_needed, in ossl_pool_acquire_entropy()
85 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy()
86 if (buffer != NULL) { in ossl_pool_acquire_entropy()
91 if (CryptGenRandom(hProvider, bytes_needed, buffer) != 0) in ossl_pool_acquire_entropy()
104 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy()
105 if (buffer != NULL) { in ossl_pool_acquire_entropy()
111 if (CryptGenRandom(hProvider, bytes_needed, buffer) ! in ossl_pool_acquire_entropy()
[all...]
/third_party/vk-gl-cts/external/amber/src/src/vulkan/
H A Dpush_constant.cc49 return a.offset + static_cast<uint32_t>(a.buffer->GetSizeInBytes()) < in GetVkPushConstantRange()
50 b.offset + static_cast<uint32_t>(b.buffer->GetSizeInBytes()); in GetVkPushConstantRange()
55 static_cast<uint32_t>(it->buffer->GetSizeInBytes()) - in GetVkPushConstantRange()
105 Result PushConstant::AddBuffer(const Buffer* buffer, uint32_t offset) { in AddBuffer() argument
108 push_constant_data_.back().buffer = buffer; in AddBuffer()
118 if (input.buffer->GetSizeInBytes() > in UpdateMemoryWithInput()
126 buffer_->SetFormat(input.buffer->GetFormat()); in UpdateMemoryWithInput()
127 } else if (!buffer_->GetFormat()->Equal(input.buffer->GetFormat())) { in UpdateMemoryWithInput()
131 buffer_->SetDataFromBuffer(input.buffer, inpu in UpdateMemoryWithInput()
[all...]
/third_party/skia/src/gpu/
H A DGrBufferAllocPool.h30 * At creation time a minimum per-buffer size can be specified. Additionally,
40 * cpu buffer allocations to avoid reallocating them.
84 * GPU buffer objects.
91 * Returns a block of memory to hold data. A buffer designated to hold the
92 * data is given to the caller. The buffer may or may not be locked. The
100 * buffer at the offset indicated by offset. Until that time it may be
101 * in temporary storage and/or the buffer may be locked.
104 * @param alignment alignment constraint from start of buffer
105 * @param buffer returns the buffer tha
323 makeSpace(int drawCount, sk_sp<const GrBuffer>* buffer, size_t* offset) makeSpace() argument
332 makeIndexedSpace(int drawCount, sk_sp<const GrBuffer>* buffer, size_t* offset) makeIndexedSpace() argument
[all...]
/third_party/openssl/providers/implementations/rands/seeding/
H A Drand_win.c52 unsigned char *buffer; in ossl_pool_acquire_entropy() local
71 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy()
72 if (buffer != NULL) { in ossl_pool_acquire_entropy()
74 if (BCryptGenRandom(NULL, buffer, bytes_needed, in ossl_pool_acquire_entropy()
85 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy()
86 if (buffer != NULL) { in ossl_pool_acquire_entropy()
91 if (CryptGenRandom(hProvider, bytes_needed, buffer) != 0) in ossl_pool_acquire_entropy()
104 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy()
105 if (buffer != NULL) { in ossl_pool_acquire_entropy()
111 if (CryptGenRandom(hProvider, bytes_needed, buffer) ! in ossl_pool_acquire_entropy()
[all...]
/third_party/skia/third_party/externals/icu/source/io/
H A Dustream.cpp43 char buffer[200]; in operator <<() local
52 char *s, *sLimit = buffer + (sizeof(buffer) - 1); in operator <<()
55 s = buffer; in operator <<()
60 if(s > buffer) { in operator <<()
61 stream << buffer; in operator <<() local
82 char buffer[16]; in operator >>() local
132 buffer[idx++] = ch; in operator >>()
134 stream.putback(buffer[--idx]); in operator >>()
157 buffer[id in operator >>()
[all...]
/third_party/skia/tests/
H A DMemsetTest.cpp48 uint16_t buffer[TOTAL]; in test_16() local
52 set_zero(buffer, sizeof(buffer)); in test_16()
54 uint16_t* base = &buffer[PAD + alignment]; in test_16()
57 compare16(reporter, buffer, 0, PAD + alignment); in test_16()
65 uint32_t buffer[TOTAL]; in test_32() local
69 set_zero(buffer, sizeof(buffer)); in test_32()
71 uint32_t* base = &buffer[PAD + alignment]; in test_32()
74 compare32(reporter, buffer, in test_32()
[all...]
/third_party/skia/src/shaders/gradients/
H A DSkSweepGradient.cpp36 sk_sp<SkFlattenable> SkSweepGradient::CreateProc(SkReadBuffer& buffer) {
38 if (!desc.unflatten(buffer)) {
41 const SkPoint center = buffer.readPoint();
43 const auto tBias = buffer.readScalar(),
44 tScale = buffer.readScalar();
53 void SkSweepGradient::flatten(SkWriteBuffer& buffer) const {
54 this->INHERITED::flatten(buffer);
55 buffer.writePoint(fCenter);
56 buffer.writeScalar(fTBias);
57 buffer
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dcharstr.h43 CharString() : len(0) { buffer[0]=0; } in CharString()
45 buffer[0]=0; in CharString()
49 buffer[0]=0; in CharString()
53 buffer[0]=0; in CharString()
80 char operator[](int32_t index) const { return buffer[index]; } in operator []()
81 StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); } in toStringPiece()
83 const char *data() const { return buffer.getAlias(); } in data()
84 char *data() { return buffer.getAlias(); } in data()
100 * @param dest Destination string buffer.
101 * @param capacity Size of the dest buffer (numbe
175 MaybeStackArray<char, 40> buffer; global() member in CharString
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_texture.c330 ctx->flush_resource(ctx, &tex->buffer.b.b); in si_eliminate_fast_color_clear()
348 assert(tex->buffer.b.b.nr_samples <= 1); in si_texture_discard_cmask()
351 tex->cmask_base_address_reg = tex->buffer.gpu_address >> 8; in si_texture_discard_cmask()
356 if (tex->cmask_buffer != &tex->buffer) in si_texture_discard_cmask()
371 (!tex->buffer.b.is_shared || in si_can_disable_dcc()
372 !(tex->buffer.external_usage & PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE)) && in si_can_disable_dcc()
432 struct pipe_resource templ = tex->buffer.b.b; in si_reallocate_texture_inplace()
437 if (tex->buffer.b.is_shared || tex->num_planes > 1) in si_reallocate_texture_inplace()
461 si_resource_copy_region(&sctx->b, &new_tex->buffer.b.b, in si_reallocate_texture_inplace()
462 i, 0, 0, 0, &tex->buffer in si_reallocate_texture_inplace()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Ddynptr_fail.c257 char buffer[sizeof(*hdr)] = {}; in data_slice_out_of_bounds_skb() local
261 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); in data_slice_out_of_bounds_skb()
1077 char buffer[sizeof(*hdr)] = {}; in skb_invalid_slice_write() local
1081 hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer)); in skb_invalid_slice_write()
1098 char buffer[sizeof(*hdr)] = {}; in skb_invalid_data_slice1() local
1102 hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer)); in skb_invalid_data_slice1()
1124 char buffer[sizeo in skb_invalid_data_slice2() local
1151 char buffer[sizeof(*hdr)] = {}; skb_invalid_data_slice3() local
1177 char buffer[sizeof(*hdr)] = {}; skb_invalid_data_slice4() local
1201 char buffer[sizeof(*hdr)] = {}; xdp_invalid_data_slice1() local
1226 char buffer[sizeof(*hdr)] = {}; xdp_invalid_data_slice2() local
1295 char buffer[sizeof(*hdr)] = {}; dynptr_slice_var_len1() local
1312 char buffer[sizeof(struct ethhdr)] = {}; dynptr_slice_var_len2() local
1368 char buffer[sizeof(struct ethhdr)] = {}; invalid_slice_rdwr_rdonly() local
1622 char buffer[sizeof(__u32)] = {}; clone_skb_packet_data() local
1648 char buffer[sizeof(__u32)] = {}; clone_xdp_packet_data() local
1676 char buffer[8] = {}; test_dynptr_skb_small_buff() local
[all...]
/third_party/cups-filters/filter/
H A Dpdftops.c305 char buffer[8192]; /* Copy buffer */ local
406 while ((bytes = fread(buffer, 1, sizeof(buffer), stdin)) > 0)
407 bytes = write(fd, buffer, bytes);
1165 while ((bytes = cupsFileGetLine(fp, buffer, sizeof(buffer))) > 0 &&
1166 strncmp(buffer, "%%BeginProlog", 13))
1168 if (strncmp(buffer, "%%Title", 7) == 0)
1170 else if (strncmp(buffer, "
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Shader/
H A DPixelRoutine.cpp308 Pointer<Byte> buffer = sBuffer + 2 * x; in stencilTest() local
312 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB)); in stencilTest()
315 Byte8 value = *Pointer<Byte8>(buffer); in stencilTest()
409 Pointer<Byte> buffer; in depthTest() local
414 buffer = zBuffer + 4 * x; in depthTest()
419 buffer = zBuffer + 8 * x; in depthTest()
424 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,depthSliceB)); in depthTest()
434 zValue.xy = *Pointer<Float4>(buffer); in depthTest()
435 zValue.zw = *Pointer<Float4>(buffer + pitch - 8); in depthTest()
439 zValue = *Pointer<Float4>(buffer, 1 in depthTest()
680 Pointer<Byte> buffer; writeDepth() local
750 Pointer<Byte> buffer = sBuffer + 2 * x; writeStencil() local
1002 Pointer<Byte> buffer; readPixel() local
1579 Pointer<Byte> buffer = cBuffer + 2 * x; writeColor() local
1656 Pointer<Byte> buffer = cBuffer + x * 4; writeColor() local
1705 Pointer<Byte> buffer = cBuffer + x * 4; writeColor() local
1745 Pointer<Byte> buffer = cBuffer + 2 * x; writeColor() local
1770 Pointer<Byte> buffer = cBuffer + 1 * x; writeColor() local
1787 Pointer<Byte> buffer = cBuffer + 1 * x; writeColor() local
1803 Pointer<Byte> buffer = cBuffer + 4 * x; writeColor() local
1840 Pointer<Byte> buffer = cBuffer + 8 * x; writeColor() local
2044 Pointer<Byte> buffer; alphaBlend() local
2285 Pointer<Byte> buffer; writeColor() local
[all...]
/third_party/backends/backend/
H A Dhp5400_internal.c431 char *buffer; in WriteGammaCalibTable() local
435 buffer = malloc (2 * 65536); in WriteGammaCalibTable()
447 buffer[2 * j] = ptr[j]; in WriteGammaCalibTable()
448 buffer[2 * j + 1] = ptr[j] >> 8; in WriteGammaCalibTable()
452 65536, (void *) buffer); in WriteGammaCalibTable()
454 free (buffer); in WriteGammaCalibTable()
464 int *buffer = malloc (sizeof (int) * 65536); in SetDefaultGamma() local
468 buffer[i] = i; in SetDefaultGamma()
470 WriteGammaCalibTable (iHandle, buffer, buffer, buffe in SetDefaultGamma()
775 unsigned short *buffer; DoAverageScan() local
827 void *buffer; DoScan() local
879 char buffer[512]; Calibrate() local
[all...]
/device/soc/rockchip/rk3568/hardware/codec/jpeg/src/
H A Dcodec_jpeg_impl.cpp84 int32_t CodecJpegImpl::AllocateBuffer(BufferHandle **buffer, uint32_t size) in AllocateBuffer() argument
95 return displayVdi_->AllocMem(alloc, *buffer); in AllocateBuffer()
98 int32_t CodecJpegImpl::FreeBuffer(BufferHandle *buffer) in FreeBuffer() argument
104 if (buffer == nullptr) { in FreeBuffer()
105 CODEC_LOGE("buffer is nullptr"); in FreeBuffer()
109 displayVdi_->FreeMem(*buffer); in FreeBuffer()
113 int32_t CodecJpegImpl::DeCode(BufferHandle *buffer, BufferHandle *outBuffer, const struct CodecJpegDecInfo &decInfo) in DeCode() argument
115 if (buffer == nullptr || outBuffer == nullptr) { in DeCode()
116 CODEC_LOGE("buffer is nullptr or outBuffer is nullptr."); in DeCode()
125 auto ret = decoder.DeCode(buffer, outBuffe in DeCode()
[all...]
/foundation/ability/ability_runtime/utils/global/time/include/
H A Dtime_util.h49 char buffer[MAX_TIME_BUFF] = {0}; in FormatTime() local
50 std::strftime(buffer, sizeof(buffer), format.c_str(), &t); in FormatTime()
51 return std::string(buffer); in FormatTime()
62 char buffer[MAX_TIME_BUFF] = {0}; in DefaultCurrentTimeStr() local
63 std::strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", &t); in DefaultCurrentTimeStr()
70 return std::string(buffer) + "." + milliStr; in DefaultCurrentTimeStr()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/
H A Davrcp_ct_notification.h113 * @param[in] buffer The buffer of the frame.
118 bool DisassembleParameters(uint8_t *buffer) override;
249 * @param[in] buffer The buffer of the frame.
254 bool DisassemblePlaybackStatus(uint8_t *buffer);
262 * @param[in] buffer The buffer of the frame.
267 bool DisassembleTrackChanged(uint8_t *buffer);
275 * @param[in] buffer Th
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dmemory_file.cpp32 uint64_t MemoryFileStorage::Write(uint64_t index, const void* buffer, uint64_t count) in Write() argument
37 if (CloneData(buffer_.data() + index, buffer_.size() - index, buffer, static_cast<size_t>(count))) { in Write()
43 MemoryFile::MemoryFile(std::shared_ptr<MemoryFileStorage>&& buffer) : buffer_(move(buffer)) {} in MemoryFile() argument
52 uint64_t MemoryFile::Read(void* buffer, uint64_t count) in Read() argument
61 if (CloneData(buffer, static_cast<size_t>(count), &(buffer_->GetStorage().data()[index_]), in Read()
74 uint64_t MemoryFile::Write(const void* buffer, uint64_t count) in Write() argument
77 return buffer_->Write(0, buffer, count); in Write()
/foundation/multimedia/media_foundation/services/media_monitor/server/include/
H A Daudio_buffer_cache.h34 std::shared_ptr<AudioBuffer> buffer {nullptr};
41 int32_t RequestBuffer(std::shared_ptr<AudioBuffer> &buffer, int32_t size);
42 int32_t ReleaseBuffer(std::shared_ptr<AudioBuffer> &buffer);
44 int32_t GetBufferById(std::shared_ptr<AudioBuffer> &buffer, uint64_t bufferId);
45 int32_t SetBufferSize(std::shared_ptr<AudioBuffer> &buffer, int32_t size);
47 int32_t RequestCacheBuffer(std::shared_ptr<AudioBuffer> &buffer, int32_t size);
48 int32_t AllocAudioBuffer(std::shared_ptr<AudioBuffer> &buffer, int32_t size);
50 int32_t AllocBuffer(std::shared_ptr<AudioBuffer> &buffer, int32_t size);
/foundation/multimedia/image_effect/test/unittest/mock/src/
H A Dmock_pixel_map.cpp37 buffer = malloc(byteCount); in MockPixelMap()
45 ON_CALL(*this, GetPixels()).WillByDefault(Return(static_cast<const uint8_t *>(buffer))); in MockPixelMap()
55 if (this->buffer != nullptr) { in MockPixelMap()
56 free(this->buffer); in MockPixelMap()
58 buffer = addr; in MockPixelMap()
64 if (buffer != nullptr) { in ~MockPixelMap()
65 free(buffer); in ~MockPixelMap()
66 buffer = nullptr; in ~MockPixelMap()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/unittest/
H A Dhdiframebuffersurface_test.cpp55 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F() local
57 ASSERT_EQ(hdiFramebufferSurface_->ReleaseFramebuffer(buffer, fence), 0); in HWTEST_F()
58 buffer = new SurfaceBufferImpl(); in HWTEST_F()
59 ASSERT_NE(hdiFramebufferSurface_->ReleaseFramebuffer(buffer, fence), 0); in HWTEST_F()
106 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F() local
108 ASSERT_EQ(fbSurface->ReleaseFramebuffer(buffer, fence), 0); in HWTEST_F()
111 buffer = new SurfaceBufferImpl(); in HWTEST_F()
112 ASSERT_EQ(fbSurface->ReleaseFramebuffer(buffer, fence), 0); in HWTEST_F()
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
H A Dmscode_parser.c44 char buffer[50]; in mscode_note_content_type() local
46 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_content_type()
47 pr_err("Unknown OID: %s\n", buffer); in mscode_note_content_type()
73 char buffer[50]; in mscode_note_digest_algo() local
101 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_digest_algo()
102 pr_err("Unknown OID: %s\n", buffer); in mscode_note_digest_algo()
/kernel/linux/linux-5.10/sound/firewire/motu/
H A Dmotu-proc.c27 struct snd_info_buffer *buffer) in proc_read_clock()
39 snd_iprintf(buffer, "Rate:\t%d\n", rate); in proc_read_clock()
40 snd_iprintf(buffer, "Source:\t%s\n", clock_names[source]); in proc_read_clock()
44 struct snd_info_buffer *buffer) in proc_read_format()
54 snd_iprintf(buffer, "tx:\tmsg\tfixed\ttotal\n"); in proc_read_format()
59 snd_iprintf(buffer, in proc_read_format()
67 snd_iprintf(buffer, "rx:\tmsg\tfixed\ttotal\n"); in proc_read_format()
72 snd_iprintf(buffer, in proc_read_format()
26 proc_read_clock(struct snd_info_entry *entry, struct snd_info_buffer *buffer) proc_read_clock() argument
43 proc_read_format(struct snd_info_entry *entry, struct snd_info_buffer *buffer) proc_read_format() argument
/kernel/linux/linux-5.10/include/linux/iio/
H A Dbuffer-dma.h42 * struct iio_dma_buffer_block - IIO buffer block
48 * @queue: Parent DMA buffer queue
76 * struct iio_dma_buffer_queue_fileio - FileIO state for the DMA buffer
90 * struct iio_dma_buffer_queue - DMA buffer base structure
91 * @buffer: IIO buffer base structure
93 * @ops: DMA buffer callbacks
102 * @active: Whether the buffer is currently active
106 struct iio_buffer buffer; member
121 * struct iio_dma_buffer_ops - DMA buffer callbac
[all...]
/kernel/linux/linux-6.6/include/linux/iio/
H A Dbuffer-dma.h37 * struct iio_dma_buffer_block - IIO buffer block
43 * @queue: Parent DMA buffer queue
71 * struct iio_dma_buffer_queue_fileio - FileIO state for the DMA buffer
85 * struct iio_dma_buffer_queue - DMA buffer base structure
86 * @buffer: IIO buffer base structure
88 * @ops: DMA buffer callbacks
97 * @active: Whether the buffer is currently active
101 struct iio_buffer buffer; member
116 * struct iio_dma_buffer_ops - DMA buffer callbac
[all...]

Completed in 15 milliseconds

1...<<41424344454647484950>>...620