/third_party/node/deps/v8/src/objects/ |
H A D | fixed-array.h | 527 inline void copy_out(int index, byte* buffer, int slice_length); 528 inline void copy_in(int index, const byte* buffer, int slice_length); 602 void copy_in(int index, const T* buffer, int length) { 603 ByteArray::copy_in(index * sizeof(T), reinterpret_cast<const byte*>(buffer), 607 bool matches(const T* buffer, int length) { 609 return memcmp(GetDataStartAddress(), buffer, length * sizeof(T)) == 0; 612 bool matches(int offset, const T* buffer, int length) { in matches() argument 615 return memcmp(GetDataStartAddress() + sizeof(T) * offset, buffer, in matches()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_context.c | 457 struct pipe_resource *buffer = timestamps; in fd_trace_record_ts() local 460 uint64_t *ts = fd_bo_map(fd_resource(buffer)->bo); in fd_trace_record_ts() 466 batch->ctx->record_timestamp(ring, fd_resource(buffer)->bo, ts_offset); in fd_trace_record_ts() 476 struct pipe_resource *buffer = timestamps; in fd_trace_read_ts() local 477 struct fd_bo *ts_bo = fd_resource(buffer)->bo; in fd_trace_read_ts() 507 * blit_texcoord_vbuf, and vsc_size_mem, into a single buffer and 551 ctx->solid_vbuf_state.vertexbuf.vb[0].buffer.resource = ctx->solid_vbuf; in fd_context_setup_common_vbos() 569 ctx->blit_vbuf_state.vertexbuf.vb[0].buffer.resource = in fd_context_setup_common_vbos() 572 ctx->blit_vbuf_state.vertexbuf.vb[1].buffer.resource = ctx->solid_vbuf; in fd_context_setup_common_vbos()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/ |
H A D | ir3_const.h | 53 struct pipe_resource *buffer) in emit_const_prsc() 55 struct fd_resource *rsc = fd_resource(buffer); in emit_const_prsc() 111 * constant buffer. 134 /* and even if the start of the const buffer is before in ir3_emit_constant_data() 149 * Uploads sub-ranges of UBOs to the hardware's constant buffer (UBO access 180 /* and even if the start of the const buffer is before in ir3_emit_user_consts() 198 cb->buffer); in ir3_emit_user_consts() 231 * them to a buffer now, and save it in the constbuf so that we in ir3_emit_ubos() 237 cb->user_buffer, &cb->buffer_offset, &cb->buffer); in ir3_emit_ubos() 241 if ((constbuf->enabled_mask & (1 << i)) && cb->buffer) { in ir3_emit_ubos() 51 emit_const_prsc(struct fd_ringbuffer *ring, const struct ir3_shader_variant *v, uint32_t regid, uint32_t offset, uint32_t size, struct pipe_resource *buffer) emit_const_prsc() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_perfcounter.c | 120 struct r600_resource *buffer) in r600_pc_query_prepare_buffer() 128 struct r600_resource *buffer, uint64_t va) in r600_pc_query_emit_start() 154 pc->emit_start(ctx, buffer, va); in r600_pc_query_emit_start() 159 struct r600_resource *buffer, uint64_t va) in r600_pc_query_emit_stop() 165 pc->emit_stop(ctx, buffer, va); in r600_pc_query_emit_stop() 182 buffer, va); in r600_pc_query_emit_stop() 201 void *buffer, in r600_pc_query_add_result() 205 uint64_t *results = buffer; in r600_pc_query_add_result() 118 r600_pc_query_prepare_buffer(struct r600_common_screen *screen, struct r600_query_hw *hwquery, struct r600_resource *buffer) r600_pc_query_prepare_buffer() argument 126 r600_pc_query_emit_start(struct r600_common_context *ctx, struct r600_query_hw *hwquery, struct r600_resource *buffer, uint64_t va) r600_pc_query_emit_start() argument 157 r600_pc_query_emit_stop(struct r600_common_context *ctx, struct r600_query_hw *hwquery, struct r600_resource *buffer, uint64_t va) r600_pc_query_emit_stop() argument 199 r600_pc_query_add_result(struct r600_common_screen *rscreen, struct r600_query_hw *hwquery, void *buffer, union pipe_query_result *result) r600_pc_query_add_result() argument
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/ |
H A D | vktDescriptorSetsIndexingTestsUtils.cpp | 333 bufferInfo.buffer, // buffer; in recordCopyBufferToImage() 360 interface.cmdCopyBufferToImage(cmd, bufferInfo.buffer, image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, static_cast<deUint32>(copyRegions.size()), copyRegions.data()); in recordCopyBufferToImage() 445 interface.cmdCopyImageToBuffer(cmd, image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, bufferInfo.buffer, 1u, ©Region); in recordCopyImageToBuffer() 564 // create a frame buffer in createFrameBuffer() 581 outputFB->buffer = vk::createFramebuffer(interface, device, &framebufferCreateInfo); in createFrameBuffer() 608 Move<VkBuffer> buffer = vk::createBuffer(interface, device, &createInfo); in createBufferAndBind() local 610 const VkMemoryRequirements memRequirements = vk::getBufferMemoryRequirements(interface, device, *buffer); in createBufferAndBind() 613 VK_CHECK(interface.bindBufferMemory(device, *buffer, allocation->getMemory(), allocation->getOffset())); in createBufferAndBind() 615 output = BufferHandleAllocSp(new BufferHandleAlloc(buffer, allocatio in createBufferAndBind() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/descriptor_indexing/ |
H A D | vktDescriptorSetsIndexingTestsUtils.cpp | 333 bufferInfo.buffer, // buffer; in recordCopyBufferToImage() 360 interface.cmdCopyBufferToImage(cmd, bufferInfo.buffer, image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, static_cast<deUint32>(copyRegions.size()), copyRegions.data()); in recordCopyBufferToImage() 445 interface.cmdCopyImageToBuffer(cmd, image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, bufferInfo.buffer, 1u, ©Region); in recordCopyImageToBuffer() 564 // create a frame buffer in createFrameBuffer() 581 outputFB->buffer = vk::createFramebuffer(interface, device, &framebufferCreateInfo); in createFrameBuffer() 608 Move<VkBuffer> buffer = vk::createBuffer(interface, device, &createInfo); in createBufferAndBind() local 610 const VkMemoryRequirements memRequirements = vk::getBufferMemoryRequirements(interface, device, *buffer); in createBufferAndBind() 613 VK_CHECK(interface.bindBufferMemory(device, *buffer, allocation->getMemory(), allocation->getOffset())); in createBufferAndBind() 615 output = BufferHandleAllocSp(new BufferHandleAlloc(buffer, allocatio in createBufferAndBind() [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jdhuff.c | 49 bitread_perm_state bitstate; /* Bit buffer at start of MCU */ 270 * buffer could be used.) However, on some machines 32-bit shifts are 288 /* Load up the bit buffer to a depth of at least nbits */ in GLOBAL() 356 * data segment. There should be enough bits in the buffer register in GLOBAL() 369 /* Fill the buffer with zero bits */ in GLOBAL() 391 c0 = *buffer++; \ 392 c1 = *buffer; \ 398 buffer++; \ 402 /* Back out pre-execution and fill the buffer with zero bits */ \ 403 buffer 659 JOCTET *buffer; LOCAL() local [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftstream.c | 110 FT_Byte* buffer, in FT_BASE_DEF() 113 return FT_Stream_ReadAt( stream, stream->pos, buffer, count ); in FT_BASE_DEF() 120 FT_Byte* buffer, in FT_BASE_DEF() 137 read_bytes = stream->read( stream, pos, buffer, count ); in FT_BASE_DEF() 144 FT_MEM_COPY( buffer, stream->base + pos, read_bytes ); in FT_BASE_DEF() 164 FT_Byte* buffer, in FT_BASE_DEF() 174 read_bytes = stream->read( stream, stream->pos, buffer, count ); in FT_BASE_DEF() 181 FT_MEM_COPY( buffer, stream->base + stream->pos, read_bytes ); in FT_BASE_DEF()
|
/third_party/skia/third_party/externals/angle2/include/EGL/ |
H A D | egl.h | 174 typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDTEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer); 175 typedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASETEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer); 179 EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer); 180 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer); 221 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC) (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list); 227 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list); 318 typedef EGLImage (EGLAPIENTRYP PFNEGLCREATEIMAGEPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list); 329 EGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
|
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsMemoryStressCase.cpp | 255 void render (deUint32 buffer, int size); 375 void BufferRenderer::render (deUint32 buffer, int size) in render() argument 396 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, buffer)); in render() 667 deUint32 buffer = 0; in allocateBuffer() local 671 glGenBuffers(1, &buffer); in allocateBuffer() 680 glBindBuffer(GL_ARRAY_BUFFER, buffer); in allocateBuffer() 692 m_buffers.push_back(buffer); in allocateBuffer() 725 m_bufferRenderer.render(buffer, size); in allocateBuffer()
|
H A D | glsStateChangePerfTestCases.cpp | 246 GLuint buffer; in requireIndexBuffers() local 248 gl.genBuffers(1, &buffer); in requireIndexBuffers() 251 gl.bindBuffer(GL_ELEMENT_ARRAY_BUFFER, buffer); in requireIndexBuffers() 258 m_indexBuffers.push_back(buffer); in requireIndexBuffers() 276 GLuint buffer; in requireCoordBuffers() local 278 gl.genBuffers(1, &buffer); in requireCoordBuffers() 281 gl.bindBuffer(GL_ARRAY_BUFFER, buffer); in requireCoordBuffers() 288 m_coordBuffers.push_back(buffer); in requireCoordBuffers()
|
/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
H A D | napi_utils.cpp | 94 std::uint8_t* buffer = (std::uint8_t*) calloc(imgBuffer.size(), sizeof(uint8_t)); 95 if (buffer == nullptr) { 96 SLOGE("buffer malloc fail"); 97 free(buffer); 100 std::copy(imgBuffer.begin(), imgBuffer.end(), buffer); 104 auto imageSource = Media::ImageSource::CreateImageSource(buffer, imgBuffer.size(), opts, errorCode); 105 free(buffer); 703 napi_value buffer = nullptr; in GetValue() local 706 napi_status status = napi_get_typedarray_info(env, in, &type, &length, &data, &buffer, &offset); in GetValue() 721 napi_value buffer in SetValue() local 828 napi_value buffer = nullptr; GetValue() local 848 napi_value buffer = nullptr; SetValue() local 868 napi_value buffer = nullptr; GetValue() local 887 napi_value buffer = nullptr; SetValue() local 907 napi_value buffer = nullptr; GetValue() local 927 napi_value buffer = nullptr; SetValue() local 951 napi_value buffer = nullptr; GetValue() local [all...] |
/kernel/linux/linux-6.6/sound/core/seq/ |
H A D | seq_clientmgr.c | 414 * -EINVAL no enough user-space buffer to write the whole event 444 /* buffer overflow is detected */ in snd_seq_read() 2126 static void dump_ump_info(struct snd_info_buffer *buffer, in dump_ump_info() argument 2137 snd_iprintf(buffer, " UMP Endpoint: \"%s\"\n", ep->name); in dump_ump_info() 2141 snd_iprintf(buffer, " UMP Block %d: \"%s\" [%s]\n", in dump_ump_info() 2144 snd_iprintf(buffer, " Groups: %d-%d\n", in dump_ump_info() 2573 static void snd_seq_info_dump_subscribers(struct snd_info_buffer *buffer, in snd_seq_info_dump_subscribers() argument 2586 snd_iprintf(buffer, msg); in snd_seq_info_dump_subscribers() 2593 snd_iprintf(buffer, ", "); in snd_seq_info_dump_subscribers() 2594 snd_iprintf(buffer, " in snd_seq_info_dump_subscribers() 2623 snd_seq_info_dump_ports(struct snd_info_buffer *buffer, struct snd_seq_client *client) snd_seq_info_dump_ports() argument 2660 snd_seq_info_clients_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_seq_info_clients_read() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/ice1712/ |
H A D | ice1712.c | 1517 struct snd_info_buffer *buffer) in snd_ice1712_proc_read() 1522 snd_iprintf(buffer, "%s\n\n", ice->card->longname); in snd_ice1712_proc_read() 1523 snd_iprintf(buffer, "EEPROM:\n"); in snd_ice1712_proc_read() 1525 snd_iprintf(buffer, " Subvendor : 0x%x\n", ice->eeprom.subvendor); in snd_ice1712_proc_read() 1526 snd_iprintf(buffer, " Size : %i bytes\n", ice->eeprom.size); in snd_ice1712_proc_read() 1527 snd_iprintf(buffer, " Version : %i\n", ice->eeprom.version); in snd_ice1712_proc_read() 1528 snd_iprintf(buffer, " Codec : 0x%x\n", ice->eeprom.data[ICE_EEP1_CODEC]); in snd_ice1712_proc_read() 1529 snd_iprintf(buffer, " ACLink : 0x%x\n", ice->eeprom.data[ICE_EEP1_ACLINK]); in snd_ice1712_proc_read() 1530 snd_iprintf(buffer, " I2S ID : 0x%x\n", ice->eeprom.data[ICE_EEP1_I2SID]); in snd_ice1712_proc_read() 1531 snd_iprintf(buffer, " in snd_ice1712_proc_read() 1516 snd_ice1712_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ice1712_proc_read() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/libGLESv2/ |
H A D | entry_points_cl_autogen.cpp | 752 cl_mem buffer, in clEnqueueReadBuffer() 762 "command_queue = 0x%016" PRIxPTR ", buffer = 0x%016" PRIxPTR in clEnqueueReadBuffer() 766 (uintptr_t)command_queue, (uintptr_t)buffer, blocking_read, offset, size, in clEnqueueReadBuffer() 769 ANGLE_CL_VALIDATE_ERROR(EnqueueReadBuffer, command_queue, buffer, blocking_read, offset, size, in clEnqueueReadBuffer() 772 return EnqueueReadBuffer(command_queue, buffer, blocking_read, offset, size, ptr, in clEnqueueReadBuffer() 777 cl_mem buffer, in clEnqueueWriteBuffer() 787 "command_queue = 0x%016" PRIxPTR ", buffer = 0x%016" PRIxPTR in clEnqueueWriteBuffer() 791 (uintptr_t)command_queue, (uintptr_t)buffer, blocking_write, offset, size, in clEnqueueWriteBuffer() 794 ANGLE_CL_VALIDATE_ERROR(EnqueueWriteBuffer, command_queue, buffer, blocking_write, offset, size, in clEnqueueWriteBuffer() 797 return EnqueueWriteBuffer(command_queue, buffer, blocking_writ in clEnqueueWriteBuffer() 751 clEnqueueReadBuffer(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, size_t offset, size_t size, void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) clEnqueueReadBuffer() argument 776 clEnqueueWriteBuffer(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, size_t offset, size_t size, const void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) clEnqueueWriteBuffer() argument 971 clEnqueueMapBuffer(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map, cl_map_flags map_flags, size_t offset, size_t size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event, cl_int *errcode_ret) clEnqueueMapBuffer() argument 1354 clCreateSubBuffer(cl_mem buffer, cl_mem_flags flags, cl_buffer_create_type buffer_create_type, const void *buffer_create_info, cl_int *errcode_ret) clCreateSubBuffer() argument 1446 clEnqueueReadBufferRect(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, const size_t *buffer_origin, const size_t *host_origin, const size_t *region, size_t buffer_row_pitch, size_t buffer_slice_pitch, size_t host_row_pitch, size_t host_slice_pitch, void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) clEnqueueReadBufferRect() argument 1485 clEnqueueWriteBufferRect(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, const size_t *buffer_origin, const size_t *host_origin, const size_t *region, size_t buffer_row_pitch, size_t buffer_slice_pitch, size_t host_row_pitch, size_t host_slice_pitch, const void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) clEnqueueWriteBufferRect() argument 1753 clEnqueueFillBuffer(cl_command_queue command_queue, cl_mem buffer, const void *pattern, size_t pattern_size, size_t offset, size_t size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) clEnqueueFillBuffer() argument [all...] |
/third_party/node/deps/undici/ |
H A D | undici.js | 493 var { Blob: Blob2 } = require("buffer"); 708 function isBuffer(buffer) { 709 return buffer instanceof Uint8Array || Buffer.isBuffer(buffer); 2108 if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) { 2123 if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) { 2748 this.buffer = ""; 2761 self.buffer += data.toString("binary", start, end); 2778 this.buffer = ""; 2783 if (this.buffer) { [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fUniformApiTests.cpp | 1917 vector<float> buffer(valuesToAssign.size() * typeSize); in assignUniforms() 1918 for (int i = 0; i < (int)buffer.size(); i++) in assignUniforms() 1919 buffer[i] = valuesToAssign[i / typeSize].val.floatV[i % typeSize]; in assignUniforms() 1921 DE_STATIC_ASSERT(sizeof(GLfloat) == sizeof(buffer[0])); in assignUniforms() 1924 case 1: GLU_CHECK_CALL(glUniform1fv(location, (GLsizei)valuesToAssign.size(), &buffer[0])); break; in assignUniforms() 1925 case 2: GLU_CHECK_CALL(glUniform2fv(location, (GLsizei)valuesToAssign.size(), &buffer[0])); break; in assignUniforms() 1926 case 3: GLU_CHECK_CALL(glUniform3fv(location, (GLsizei)valuesToAssign.size(), &buffer[0])); break; in assignUniforms() 1927 case 4: GLU_CHECK_CALL(glUniform4fv(location, (GLsizei)valuesToAssign.size(), &buffer[0])); break; in assignUniforms() 1937 vector<float> buffer(valuesToAssign.size() * typeSize); in assignUniforms() 1938 for (int i = 0; i < (int)buffer in assignUniforms() [all...] |
/base/hiviewdfx/hilog_lite/frameworks/featured/ |
H A D | hiview_log.c | 88 #define SECUREC_ERROR_INVALID_RANGE(msg) printf("%s invalid dest buffer size\n", msg) 89 #define SECUREC_ERROR_BUFFER_OVERLAP(msg) printf("%s buffer overlap\n", msg) 213 int bufferIsWide; /* flag for buffer contains wide chars */ 402 static int SecDecodeTypeC(SecFormatAttr *attr, unsigned int cValue, SecFormatBuf *formatBuf, SecBuffer *buffer) in SecDecodeTypeC() argument 420 if (mbtowc(buffer->wStr, tempchar, sizeof(tempchar)) < 0) { in SecDecodeTypeC() 424 buffer->wStr[0] = wchar; in SecDecodeTypeC() 426 formatBuf->wStr = buffer->wStr; in SecDecodeTypeC() 434 textLen = wctomb(buffer->str, wchar); in SecDecodeTypeC() 443 buffer->str[0] = (char)temp; in SecDecodeTypeC() 446 formatBuf->str = buffer in SecDecodeTypeC() 616 SecBuffer buffer; HiLogSecOutputS() local [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/nn_tensor/ |
H A D | nn_tensor_test.cpp | 149 void* buffer = dataArry; in HWTEST_F() local 150 nnTensor->SetData(buffer); in HWTEST_F() 170 void* buffer = dataArry; in HWTEST_F() local 171 nnTensor->SetData(buffer); in HWTEST_F() 556 void* buffer = dataArry; in HWTEST_F() local 557 nnTensor->SetData(buffer); in HWTEST_F() 680 void* buffer = dataArry; in HWTEST_F() local 681 nnTensor->SetData(buffer); in HWTEST_F() 702 void* buffer = dataArry; in HWTEST_F() local 703 nnTensor->SetData(buffer); in HWTEST_F() 1148 void* buffer = dataArry; HWTEST_F() local 1183 void* buffer = dataArry; HWTEST_F() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/ |
H A D | image_source_heif_test.cpp | 132 uint8_t *buffer = static_cast<uint8_t *>(malloc(bufferSize));
in HWTEST_F() local 133 ASSERT_NE(buffer, nullptr);
in HWTEST_F() 134 ret = OHOS::ImageSourceUtil::ReadFileToBuffer(IMAGE_INPUT_HEIF_PATH, buffer, bufferSize);
in HWTEST_F() 138 std::unique_ptr<ImageSource> imageSource = ImageSource::CreateImageSource(buffer, bufferSize, opts, errorCode);
in HWTEST_F() 314 * @tc.steps: step1. create image source by buffer source stream and default format hit
in HWTEST_F() 320 uint8_t *buffer = static_cast<uint8_t *>(malloc(bufferSize));
in HWTEST_F() local 321 ASSERT_NE(buffer, nullptr);
in HWTEST_F() 322 ret = OHOS::ImageSourceUtil::ReadFileToBuffer(IMAGE_INPUT_HEIF_PATH, buffer, bufferSize);
in HWTEST_F() 326 std::unique_ptr<ImageSource> imageSource = ImageSource::CreateImageSource(buffer, bufferSize, opts, errorCode);
in HWTEST_F() 355 free(buffer);
in HWTEST_F() 631 uint8_t *buffer = static_cast<uint8_t *>(malloc(bufferSize)); HWTEST_F() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | plugin_texture_encode_test.cpp | 112 void *buffer = malloc(bufferSize);
in ConstructPixmap() local 113 if (buffer == nullptr) {
in ConstructPixmap() 116 uint8_t *ch = static_cast<uint8_t *>(buffer);
in ConstructPixmap() 121 pixelMap->SetPixelsAddr(buffer, nullptr, bufferSize, AllocatorType::HEAP_ALLOC, nullptr);
in ConstructPixmap() 426 uint8_t *buffer = static_cast<uint8_t *>(malloc(OUTPUT_SIZE_MAX));
in HWTEST_F() local 429 uint32_t ret = AstcClEncImage(nullptr, &imageIn, buffer);
in HWTEST_F() 432 ret = AstcClEncImage(astcClEncoder, nullptr, buffer);
in HWTEST_F() 439 ret = AstcClEncImage(astcClEncoder, &imageIn, buffer);
in HWTEST_F() 446 if (buffer != nullptr) {
in HWTEST_F() 447 free(buffer);
in HWTEST_F() 497 TryAstcEncBasedOnCl(TextureEncodeOptions ¶m, uint8_t *inData, uint8_t *buffer, const std::string &clBinPath) TryAstcEncBasedOnCl() argument [all...] |
/foundation/multimedia/player_framework/frameworks/js/common/ |
H A D | common_napi.cpp | 34 char *buffer = static_cast<char *>(malloc((bufLength + 1) * sizeof(char))); in GetStringArgument() local 35 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, strValue, "no memory"); in GetStringArgument() 36 status = napi_get_value_string_utf8(env, value, buffer, bufLength + 1, &bufLength); in GetStringArgument() 38 MEDIA_LOGD("argument = %{public}s", buffer); in GetStringArgument() 39 strValue = buffer; in GetStringArgument() 41 free(buffer); in GetStringArgument() 42 buffer = nullptr; in GetStringArgument() 567 napi_value buffer = nullptr; in CreateFormatBuffer() local 570 napi_status status = napi_create_object(env, &buffer); in CreateFormatBuffer() 577 CHECK_AND_RETURN_RET(SetPropertyInt32(env, buffer, ite in CreateFormatBuffer() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process.c | 261 * @buffer: Handle of user provided buffer updated with wave count 263 * Return: Number of bytes written to user buffer or an error value 265 static int kfd_get_cu_occupancy(struct attribute *attr, char *buffer) in kfd_get_cu_occupancy() argument 284 return snprintf(buffer, PAGE_SIZE, "%d\n", cu_cnt); in kfd_get_cu_occupancy() 295 return snprintf(buffer, PAGE_SIZE, "%d\n", cu_cnt); in kfd_get_cu_occupancy() 299 char *buffer) in kfd_procfs_show() 305 return snprintf(buffer, PAGE_SIZE, "%d\n", p->pasid); in kfd_procfs_show() 309 return snprintf(buffer, PAGE_SIZE, "%llu\n", READ_ONCE(pdd->vram_usage)); in kfd_procfs_show() 325 return snprintf(buffer, PAGE_SIZ in kfd_procfs_show() 298 kfd_procfs_show(struct kobject *kobj, struct attribute *attr, char *buffer) kfd_procfs_show() argument 376 kfd_procfs_queue_show(struct kobject *kobj, struct attribute *attr, char *buffer) kfd_procfs_queue_show() argument 394 kfd_procfs_stats_show(struct kobject *kobj, struct attribute *attr, char *buffer) kfd_procfs_stats_show() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/storage/ |
H A D | alauda.c | 916 unsigned char *buffer; in alauda_read_data() local 929 * a bounce buffer and move the data a piece at a time between the in alauda_read_data() 930 * bounce buffer and the actual transfer buffer. in alauda_read_data() 931 * We make this buffer big enough to hold temporary redundancy data, in alauda_read_data() 936 buffer = kmalloc(len, GFP_NOIO); in alauda_read_data() 937 if (!buffer) in alauda_read_data() 982 memset(buffer, 0, len); in alauda_read_data() 987 result = alauda_read_block(us, pba, page, pages, buffer); in alauda_read_data() 992 /* Store the data in the transfer buffer */ in alauda_read_data() 1011 unsigned char *buffer, *blockbuffer; alauda_write_data() local [all...] |
/kernel/linux/linux-5.10/security/keys/ |
H A D | keyctl.c | 636 * If there's a buffer, we place up to buflen bytes of data into it formatted 642 * of how much we may have copied into the buffer. 645 char __user *buffer, in keyctl_describe_key() 692 if (buffer && buflen >= ret) { in keyctl_describe_key() 693 if (copy_to_user(buffer, infobuf, infolen) != 0 || in keyctl_describe_key() 694 copy_to_user(buffer + infolen, key->description, in keyctl_describe_key() 803 static long __keyctl_read_key(struct key *key, char *buffer, size_t buflen) in __keyctl_read_key() argument 810 ret = key->type->read(key, buffer, buflen); in __keyctl_read_key() 821 * If successful, we place up to buflen bytes of data into the buffer, if one 823 * irrespective of how much we copied into the buffer 644 keyctl_describe_key(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_describe_key() argument 825 keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_read_key() argument 1561 keyctl_get_security(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_get_security() argument [all...] |