| /third_party/node/src/ |
| H A D | node_serdes.cc | 71 Local<Value> buffer); 287 Local<Value> buffer) in DeserializerContext() 289 data_(reinterpret_cast<const uint8_t*>(Buffer::Data(buffer))), in DeserializerContext() 290 length_(Buffer::Length(buffer)), in DeserializerContext() 292 object()->Set(env->context(), env->buffer_string(), buffer).Check(); in DeserializerContext() 334 env, "buffer must be a TypedArray or a DataView"); in New() 285 DeserializerContext(Environment* env, Local<Object> wrap, Local<Value> buffer) DeserializerContext() argument
|
| /third_party/node/deps/icu-small/source/i18n/ |
| H A D | ucol.cpp | 64 uint8_t *buffer, int32_t capacity, in ucol_cloneBinary() 75 return rbc->cloneBinary(buffer, capacity, *status); in ucol_cloneBinary() 567 ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, char16_t *buffer, int32_t bufferLen) { in ucol_getRulesEx() argument 573 if(buffer != nullptr && bufferLen > 0) { in ucol_getRulesEx() 575 return rules.extract(buffer, bufferLen, errorCode); in ucol_getRulesEx() 63 ucol_cloneBinary(const UCollator *coll, uint8_t *buffer, int32_t capacity, UErrorCode *status) ucol_cloneBinary() argument
|
| /third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
| H A D | nvc0_context.c | 115 if (!nvc0->vtxbuf[i].buffer.resource && !nvc0->vtxbuf[i].is_user_buffer) in nvc0_memory_barrier() 117 if (nvc0->vtxbuf[i].buffer.resource->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nvc0_memory_barrier() 148 /* If we're going to texture from a buffer/image written by a shader, we in nvc0_memory_barrier() 213 pipe_resource_reference(&nvc0->buffers[s][i].buffer, NULL); in nvc0_context_unreference_resources() 323 if (nvc0->vtxbuf[i].buffer.resource == res) { in nvc0_invalidate_resource_storage() 371 if (nvc0->buffers[s][i].buffer == res) { in nvc0_invalidate_resource_storage()
|
| /third_party/ltp/testcases/kernel/security/tomoyo/ |
| H A D | tomoyo_new_file_test.c | 93 const char buffer[] = "32768 61000"; in stage_file_test() local 134 show_result(write_sysctl(TEST_SYSCTL_PATH, buffer), 1); in stage_file_test() 136 show_result(write_sysctl(TEST_SYSCTL_PATH, buffer), 0); in stage_file_test() 141 write_sysctl(TEST_SYSCTL_PATH, buffer), 1); in stage_file_test() 144 write_sysctl(TEST_SYSCTL_PATH, buffer), 0); in stage_file_test()
|
| /third_party/mesa3d/src/gallium/drivers/iris/ |
| H A D | iris_blit.c | 246 .buffer = res->bo, in iris_blorp_surf_for_resource() 260 .buffer = res->aux.bo, in iris_blorp_surf_for_resource() 269 .buffer = res->aux.clear_color_bo, in iris_blorp_surf_for_resource() 687 .buffer = src_res->bo, .offset = src_res->offset + src_box->x, in iris_copy_region() 693 .buffer = dst_res->bo, .offset = dst_res->offset + dstx, in iris_copy_region() 710 // XXX: what about one surface being a buffer and not the other? in iris_copy_region()
|
| /third_party/mesa3d/src/gallium/drivers/r600/ |
| H A D | r600_pipe.c | 76 r600_resource_reference(&rctx->scratch_buffers[sh].buffer, NULL); in r600_destroy_context() 108 if (rctx->gs_rings.gsvs_ring.buffer) in r600_destroy_context() 109 pipe_resource_reference(&rctx->gs_rings.gsvs_ring.buffer, NULL); in r600_destroy_context() 111 if (rctx->gs_rings.esgs_ring.buffer) in r600_destroy_context() 112 pipe_resource_reference(&rctx->gs_rings.esgs_ring.buffer, NULL); in r600_destroy_context() 404 /* shader buffer objects */ in r600_get_param() 765 #if 0 /* This is for testing whether aux_context and buffer clearing work correctly. */ in r600_screen_create()
|
| /third_party/python/Lib/ |
| H A D | socket.py | 145 errorTab[10055] = "No buffer space available." 194 errorTab[11018] = "Invalid QoS provider buffer." 333 buffer = io.BufferedRWPair(raw, raw, buffering) 335 buffer = io.BufferedReader(raw, buffering) 338 buffer = io.BufferedWriter(raw, buffering) 340 return buffer 342 text = io.TextIOWrapper(buffer, encoding, errors, newline) 693 """Read up to len(b) bytes into the writable buffer *b* and return
|
| H A D | tokenize.py | 396 buffer = _builtin_open(filename, 'rb') 398 encoding, lines = detect_encoding(buffer.readline) 399 buffer.seek(0) 400 text = TextIOWrapper(buffer, encoding, line_buffering=True) 404 buffer.close()
|
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/amber/ |
| H A D | vktAmberTestCase.cpp | 226 amber::BufferInfo* buffer) const override; 257 amber::BufferInfo* buffer) const in LoadBufferData() 271 return amber::Result("Failed to load buffer data " + file_name); in LoadBufferData() 277 buffer->values.push_back(value); in LoadBufferData() 280 buffer->width = 1; in LoadBufferData() 281 buffer->height = 1; in LoadBufferData()
|
| /third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/amber/ |
| H A D | vktAmberTestCase.cpp | 225 amber::BufferInfo* buffer) const override; 256 amber::BufferInfo* buffer) const in LoadBufferData() 270 return amber::Result("Failed to load buffer data " + file_name); in LoadBufferData() 276 buffer->values.push_back(value); in LoadBufferData() 279 buffer->width = 1; in LoadBufferData() 280 buffer->height = 1; in LoadBufferData()
|
| /third_party/vk-gl-cts/external/amber/src/src/ |
| H A D | command.h | 26 #include "src/buffer.h" 218 /// Command to draw from a vertex and index buffer. 305 /// Command to copy data from one buffer to another. 341 Probe(Type type, Buffer* buffer); 348 /// Command to probe an image buffer. 351 explicit ProbeCommand(Buffer* buffer); 415 /// Command to probe a data buffer. 428 explicit ProbeSSBOCommand(Buffer* buffer); 477 /// Command to set the size of a buffer, or update a buffers contents. 552 void SetBuffer(Buffer* buffer) { buffer argument [all...] |
| /third_party/skia/third_party/externals/libjpeg-turbo/ |
| H A D | rdgif.c | 47 #define ReadOK(file, buffer, len) \ 48 (JFREAD(file, buffer, len) == ((size_t)(len))) 199 sinfo->last_bit = 0; /* nothing in the buffer */ in InitLZWCode() 200 sinfo->cur_bit = 0; /* force buffer load on first call */ in InitLZWCode() 221 /* Time to reload the buffer */ in GetCode() 519 /* Create compressor input buffer. */ in start_input_gif() 520 source->pub.buffer = (*cinfo->mem->alloc_sarray) in start_input_gif() 558 ptr = source->pub.buffer[0]; in METHODDEF() 648 ptr = source->pub.buffer[0]; in METHODDEF()
|
| /third_party/skia/tests/ |
| H A D | TextBlobTest.cpp | 162 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCount); in TestBounds() local 164 font.textToGlyphs(txt, txtLen, SkTextEncoding::kUTF8, buffer.glyphs, glyphCount); in TestBounds() 166 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2); in TestBounds() 360 SkTextBlobBuilder::RunBuffer buffer = builder->allocRun(font, glyphCount, x, y); in add_run() local 362 (void)font.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, buffer.glyphs, glyphCount); in add_run()
|
| /third_party/skia/third_party/externals/harfbuzz/util/ |
| H A D | helper-cairo.hh | 612 hb_buffer_t *buffer, in helper_cairo_line_from_buffer() 620 l->num_glyphs = hb_buffer_get_length (buffer); in helper_cairo_line_from_buffer() 621 hb_glyph_info_t *hb_glyph = hb_buffer_get_glyph_infos (buffer, nullptr); in helper_cairo_line_from_buffer() 622 hb_glyph_position_t *hb_position = hb_buffer_get_glyph_positions (buffer, nullptr); in helper_cairo_line_from_buffer() 661 hb_bool_t backward = HB_DIRECTION_IS_BACKWARD (hb_buffer_get_direction (buffer)); in helper_cairo_line_from_buffer() 611 helper_cairo_line_from_buffer(helper_cairo_line_t *l, hb_buffer_t *buffer, const char *text, unsigned int text_len, int scale_bits, hb_bool_t utf8_clusters) helper_cairo_line_from_buffer() argument
|
| /third_party/python/Modules/ |
| H A D | _posixsubprocess.c | 335 char buffer[sizeof(struct linux_dirent64)]; in _close_open_fds_safe() local 338 (struct linux_dirent64 *)buffer, in _close_open_fds_safe() 339 sizeof(buffer))) > 0) { in _close_open_fds_safe() 343 __msan_unpoison(buffer, bytes); in _close_open_fds_safe() 347 entry = (struct linux_dirent64 *)(buffer + offset); in _close_open_fds_safe()
|
| /third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
| H A D | MinimumBufferSizeValidationTests.cpp | 225 e.buffer.type = b.type; in CreateBindGroupLayout() 226 e.buffer.minBindingSize = minimumSizes[i]; in CreateBindGroupLayout() 251 // Create a bind group with given binding sizes for each entry (backed by the same buffer) 256 wgpu::Buffer buffer = in CreateBindGroup() local 265 entry.buffer = buffer; in CreateBindGroup() 324 // Pipeline can be created if minimum buffer size in layout is specified as 0 388 // Fail if a binding is smaller than minimum buffer size 495 // The correctness of minimum buffer size for the defaulted layout for a pipeline 498 // Checks BGL |layout| has minimum buffer size [all...] |
| /third_party/skia/include/core/ |
| H A D | SkMatrix.h | 570 /** Copies nine scalar values contained by SkMatrix into buffer, in member value 574 @param buffer storage for nine scalar values 576 void get9(SkScalar buffer[9]) const { in get9() 577 memcpy(buffer, fMat, 9 * sizeof(SkScalar)); in get9() 580 /** Sets SkMatrix to nine scalar values in buffer, in member value ascending order: 586 | buffer[0] buffer[1] buffer[2] | 587 | buffer[3] buffer[ [all...] |
| /foundation/arkui/ace_engine_lite/frameworks/native_engine/jsi/test/unittest/common/ |
| H A D | jsi_interface_tdd_test.cpp | 624 JSIValue buffer = JSI::CreateArrayBuffer(initLength, ptr); in JSIInterfaceTest018() local 626 JSI::ReleaseValue(buffer); in JSIInterfaceTest018() 638 bool res1 = JSI::ValueIsArrayBuffer(buffer); in JSIInterfaceTest018() 649 uint8_t *ptr2 = JSI::GetArrayBufferInfo(buffer, length); in JSIInterfaceTest018() 660 JSI::ReleaseValueList(buffer, undef); in JSIInterfaceTest018() 675 JSIValue buffer = JSI::CreateArrayBuffer(initLength, ptr); in JSIInterfaceTest019() local 677 JSI::ReleaseValue(buffer); in JSIInterfaceTest019() 691 JSIValue typedArray = JSI::CreateTypedArray(TypedArrayType::JSI_UINT8_ARRAY, byteLength, buffer, initOffset); in JSIInterfaceTest019() 692 JSI::ReleaseValue(buffer); in JSIInterfaceTest019()
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| H A D | stm32-dfsdm-adc.c | 12 #include <linux/iio/buffer.h> 81 u32 *buffer; member 274 * Left shift is done by software on buffer in stm32_dfsdm_compute_osrs() 564 /* Continuous conversions triggered by SPI clk in buffer mode */ in stm32_dfsdm_filter_configure() 791 * DMA cyclic transfers are used, buffer is split into two periods. in stm32_dfsdm_set_watermark() 793 * - always one buffer (period) DMA is working on in stm32_dfsdm_set_watermark() 794 * - one buffer (period) driver pushed to ASoC side. in stm32_dfsdm_set_watermark() 811 /* Residue is size in bytes from end of buffer */ in stm32_dfsdm_adc_dma_residue() 828 s32 *buffer) in stm32_dfsdm_process_data() 833 s32 *ptr = buffer; in stm32_dfsdm_process_data() 827 stm32_dfsdm_process_data(struct stm32_dfsdm_adc *adc, s32 *buffer) stm32_dfsdm_process_data() argument 872 s32 *buffer = (s32 *)&adc->rx_buf[adc->bufi]; stm32_dfsdm_dma_buffer_done() local [all...] |
| /kernel/linux/linux-5.10/drivers/iio/light/ |
| H A D | gp2ap020a00f.c | 13 * Triggered buffer: 47 #include <linux/iio/buffer.h> 243 char *buffer; member 973 &priv->buffer[d_size], 2); in gp2ap020a00f_trigger_handler() 979 out_val = le16_to_cpup((__le16 *)&priv->buffer[d_size]); in gp2ap020a00f_trigger_handler() 982 put_unaligned_le32(out_val, &priv->buffer[d_size]); in gp2ap020a00f_trigger_handler() 989 iio_push_to_buffers_with_timestamp(indio_dev, priv->buffer, in gp2ap020a00f_trigger_handler() 1422 data->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in gp2ap020a00f_buffer_postenable() 1423 if (!data->buffer) in gp2ap020a00f_buffer_postenable() 1458 kfree(data->buffer); in gp2ap020a00f_buffer_predisable() [all...] |
| /kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
| H A D | f_hid.c | 288 static ssize_t f_hidg_intout_read(struct file *file, char __user *buffer, in f_hidg_intout_read() argument 304 /* wait for at least one buffer to complete */ in f_hidg_intout_read() 331 count -= copy_to_user(buffer, req->buf + list->pos, count); in f_hidg_intout_read() 362 static ssize_t f_hidg_ssreport_read(struct file *file, char __user *buffer, in f_hidg_ssreport_read() argument 392 count -= copy_to_user(buffer, tmp_buf, count); in f_hidg_ssreport_read() 403 static ssize_t f_hidg_read(struct file *file, char __user *buffer, in f_hidg_read() argument 409 return f_hidg_intout_read(file, buffer, count, ptr); in f_hidg_read() 411 return f_hidg_ssreport_read(file, buffer, count, ptr); in f_hidg_read() 430 static ssize_t f_hidg_write(struct file *file, const char __user *buffer, in f_hidg_write() argument 472 status = copy_from_user(req->buf, buffer, coun in f_hidg_write() [all...] |
| /kernel/linux/linux-5.10/drivers/usb/serial/ |
| H A D | garmin_gps.c | 58 /* size of a buffer able to hold a complete (no stuffing) packet 62 * should be increased accordingly, so the input buffer is always 66 /* size of a buffer able to hold a complete (incl. stuffing) packet */ 377 * count - number of bytes in the input buffer including space reserved for 450 * Copy it into our local buffer, until an etx is seen (or an error 620 dev_dbg(dev, "%s - %d bytes in buffer, %d bytes in pkt.\n", __func__, k, i); in gsp_send() 657 of buffer ... */ in gsp_send() 744 /* if buffer contains header, copy rest of data */ in nat_receive() 970 /* free up the transfer buffer, as usb_free_urb() does not do this */ in garmin_write_bulk_callback() 983 unsigned char *buffer; in garmin_write_bulk() local [all...] |
| /kernel/linux/linux-5.10/sound/firewire/ |
| H A D | amdtp-stream.c | 245 * preferrable to align period/buffer sizes to current SYT_INTERVAL. in amdtp_stream_add_pcm_hw_constraints() 369 * device's buffer). in calculate_data_blocks() 463 err = fw_iso_context_queue(s->context, params, &s->buffer.iso_buffer, in queue_packet() 464 s->buffer.packets[s->packet_index].offset); in queue_packet() 733 desc->ctx_payload = s->buffer.packets[packet_index].buffer; in generate_device_pkt_descs() 793 desc->ctx_payload = s->buffer.packets[index].buffer; in generate_pkt_descs() 840 // Calculate the number of packets in buffer and check XRUN. in out_stream_callback() 896 // Calculate the number of packets in buffer an in in_stream_callback() [all...] |
| /kernel/linux/linux-5.10/sound/pci/cs46xx/ |
| H A D | dsp_spos_scb_lib.c | 58 struct snd_info_buffer *buffer) in cs46xx_dsp_proc_scb_info_read() 67 snd_iprintf(buffer,"%04x %s:\n",scb->address,scb->scb_name); in cs46xx_dsp_proc_scb_info_read() 71 snd_iprintf(buffer,"\n"); in cs46xx_dsp_proc_scb_info_read() 74 snd_iprintf(buffer,"%08x ",readl(dst + (scb->address + j) * sizeof(u32))); in cs46xx_dsp_proc_scb_info_read() 77 snd_iprintf(buffer,"\n"); in cs46xx_dsp_proc_scb_info_read() 80 snd_iprintf(buffer,"parent [%s:%04x] ", in cs46xx_dsp_proc_scb_info_read() 83 } else snd_iprintf(buffer,"parent [none] "); in cs46xx_dsp_proc_scb_info_read() 85 snd_iprintf(buffer,"sub_list_ptr [%s:%04x]\nnext_scb_ptr [%s:%04x] task_entry [%s:%04x]\n", in cs46xx_dsp_proc_scb_info_read() 93 snd_iprintf(buffer,"index [%d] ref_count [%d]\n",scb->index,scb->ref_count); in cs46xx_dsp_proc_scb_info_read() 493 Play DMA Task xfers data from host buffer t in cs46xx_dsp_create_pcm_reader_scb() 57 cs46xx_dsp_proc_scb_info_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) cs46xx_dsp_proc_scb_info_read() argument [all...] |
| /kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_scrn.c | 93 unsigned long buffer_size; /**< Size of allocated buffer */ 94 struct vmw_buffer_object *buffer; /**< Backing store buffer */ member 132 BUG_ON(!sou->buffer); in vmw_sou_fifo_create() 152 /* Ok to assume that buffer is pinned in vram */ in vmw_sou_fifo_create() 153 vmw_bo_get_guest_ptr(&sou->buffer->base, &cmd->obj.backingStore.ptr); in vmw_sou_fifo_create() 243 sou->buffer = vps->bo; in vmw_sou_crtc_mode_set_nofb() 258 sou->buffer = NULL; in vmw_sou_crtc_mode_set_nofb() 371 * vmw_sou_primary_plane_cleanup_fb - Frees sou backing buffer 398 * vmw_sou_primary_plane_prepare_fb - allocate backing buffer [all...] |