/third_party/protobuf/src/google/protobuf/io/ |
H A D | io_win32.cc | 308 int stat(const char* path, struct _stat* buffer) { in stat() argument 315 return ::_wstat(wpath.c_str(), buffer); in stat() 317 return ::_stat(path, buffer); in stat() 349 int read(int fd, void* buffer, size_t size) { in read() argument 350 return ::_read(fd, buffer, size); in read() 355 int write(int fd, const void* buffer, size_t size) { in write() argument 356 return ::_write(fd, buffer, size); in write()
|
/third_party/python/Modules/clinic/ |
H A D | arraymodule.c.h | 218 "Return a tuple (address, length) giving the current memory address and the length in items of the buffer used to hold array\'s contents.\n" 221 "the buffer length in bytes."); 389 "frombytes($self, buffer, /)\n" 398 array_array_frombytes_impl(arrayobject *self, Py_buffer *buffer); 404 Py_buffer buffer = {NULL, NULL}; in array_array_frombytes() local 406 if (PyObject_GetBuffer(arg, &buffer, PyBUF_SIMPLE) != 0) { in array_array_frombytes() 409 if (!PyBuffer_IsContiguous(&buffer, 'C')) { in array_array_frombytes() 410 _PyArg_BadArgument("frombytes", "argument", "contiguous buffer", arg); in array_array_frombytes() 413 return_value = array_array_frombytes_impl(self, &buffer); in array_array_frombytes() 416 /* Cleanup for buffer */ in array_array_frombytes() [all...] |
/third_party/vk-gl-cts/modules/egl/ |
H A D | teglQueryConfigTests.cpp | 119 std::vector<EGLConfig> buffer (numConfigAll + 10); in checkGetConfigsBounds() 121 std::vector<deUint32> magicBuffer ((buffer.size() * sizeof(EGLConfig)) / sizeof(deUint32) + 1); in checkGetConfigsBounds() 128 for (size_t ndx = 0; ndx < buffer.size(); ndx++) buffer[ndx] = magicConfigs[ndx]; in checkGetConfigsBounds() 130 eglGetConfigs(m_display, &buffer[0], numConfigRequested, &numConfigReturned); in checkGetConfigsBounds() 139 for (size_t ndx = 0; ndx < buffer.size(); ndx++) in checkGetConfigsBounds() 141 if (buffer[ndx] == magicConfigs[ndx]) in checkGetConfigsBounds() 158 log << TestLog::Message << "Fail, buffer overflow detected." << TestLog::EndMessage; in checkGetConfigsBounds() 477 log << TestLog::Message << "Fail, luminance size must be zero for an RGB buffer." << TestLog::EndMessage; in executeTest() 483 log << TestLog::Message << "Fail, RGB component sizes must be positive for an RGB buffer in executeTest() [all...] |
/kernel/linux/linux-5.10/drivers/mmc/core/ |
H A D | mmc_test.c | 138 * @scratch: transfer buffer 139 * @buffer: transfer buffer 140 * @highmem: buffer for highmem tests 148 u8 *buffer; member 291 u8 *buffer, unsigned addr, unsigned blksz, int write) in mmc_test_buffer_transfer() 304 sg_init_one(&sg, buffer, blksz); in mmc_test_buffer_transfer() 636 memset(test->buffer, 0xDF, 512); in __mmc_test_prepare() 639 test->buffer[i] = i; in __mmc_test_prepare() 643 ret = mmc_test_buffer_transfer(test, test->buffer, in __mmc_test_prepare() 290 mmc_test_buffer_transfer(struct mmc_test_card *test, u8 *buffer, unsigned addr, unsigned blksz, int write) mmc_test_buffer_transfer() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
H A D | tlan.c | 219 tag->buffer[9].address = addr; in tlan_store_skb() 220 tag->buffer[8].address = upper_32_bits(addr); in tlan_store_skb() 228 addr = tag->buffer[9].address; in tlan_get_skb() 229 addr |= ((unsigned long) tag->buffer[8].address << 16) << 16; in tlan_get_skb() 1026 * buffer. If the adapter Tx channel is idle, it gives 1067 tail_list->buffer[0].address = dma_map_single(&priv->pci_dev->dev, in tlan_start_tx() 1073 tail_list->buffer[0].count = TLAN_LAST_BUFFER | (u32) txlen; in tlan_start_tx() 1074 tail_list->buffer[1].count = 0; in tlan_start_tx() 1075 tail_list->buffer[1].address = 0; in tlan_start_tx() 1082 "TRANSMIT: Starting TX on buffer in tlan_start_tx() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
H A D | tlan.c | 222 tag->buffer[9].address = addr; in tlan_store_skb() 223 tag->buffer[8].address = upper_32_bits(addr); in tlan_store_skb() 231 addr = tag->buffer[9].address; in tlan_get_skb() 232 addr |= ((unsigned long) tag->buffer[8].address << 16) << 16; in tlan_get_skb() 1028 * buffer. If the adapter Tx channel is idle, it gives 1069 tail_list->buffer[0].address = dma_map_single(&priv->pci_dev->dev, in tlan_start_tx() 1075 tail_list->buffer[0].count = TLAN_LAST_BUFFER | (u32) txlen; in tlan_start_tx() 1076 tail_list->buffer[1].count = 0; in tlan_start_tx() 1077 tail_list->buffer[1].address = 0; in tlan_start_tx() 1084 "TRANSMIT: Starting TX on buffer in tlan_start_tx() [all...] |
/kernel/linux/linux-6.6/drivers/media/dvb-core/ |
H A D | dvb_frontend.c | 1361 tvp->u.buffer.data[ncaps] = fe->ops.delsys[ncaps]; in dtv_property_process_get() 1364 tvp->u.buffer.len = ncaps; in dtv_property_process_get() 1543 if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32)) in dtv_property_process_get() 1544 tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32); in dtv_property_process_get() 1545 len = tvp->u.buffer.len; in dtv_property_process_get() 1549 if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32)) in dtv_property_process_get() 1550 tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32); in dtv_property_process_get() 1551 len = tvp->u.buffer.len; in dtv_property_process_get() 1555 if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32)) in dtv_property_process_get() 1556 tvp->u.buffer in dtv_property_process_get() 2134 } buffer; global() member [all...] |
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_negative.cpp | 570 const void *buffer, in SetXMP() 583 tempXMP->Parse (host, buffer, count); in SetXMP() 621 const void *buffer, in SetEmbeddedXMP() 625 if (SetXMP (host, buffer, count)) in SetEmbeddedXMP() 630 printer.Process (buffer, count); in SetEmbeddedXMP() 1483 dng_pixel_buffer buffer (image.Bounds (), 0, image.Planes (), 1489 if (buffer.fPixelType == ttByte) 1491 buffer.fPixelType = ttShort; 1492 buffer.fPixelSize = 2; 1499 if (!SafeUint32Mult (kBufferRows, buffer 569 SetXMP(dng_host &host, const void *buffer, uint32 count, bool xmpInSidecar, bool xmpIsNewer) SetXMP() argument 620 SetEmbeddedXMP(dng_host &host, const void *buffer, uint32 count) SetEmbeddedXMP() argument [all...] |
/test/xts/acts/communication/dsoftbus/rpc/entry/src/ohosTest/js/test/ |
H A D | RpcClientJsunit.test.js | 5766 let buffer = new ArrayBuffer(5);
5767 let int8View = new Int8Array(buffer);
5773 data.writeArrayBuffer(buffer, rpc.TypeCode.INT8_ARRAY);
5799 let buffer = new ArrayBuffer(12);
5800 let uInt8View = new Uint8Array(buffer);
5806 data.writeArrayBuffer(buffer, rpc.TypeCode.UINT8_ARRAY);
5832 let buffer = new ArrayBuffer(10);
5833 let int16View = new Int16Array(buffer);
5839 data.writeArrayBuffer(buffer, rpc.TypeCode.INT16_ARRAY);
5865 let buffer [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libsec/include/ |
H A D | securec.h | 55 /* The src buffer is not correct and destination buffer cant not be reset */ 60 /* Once the error is detected, the dest buffer must be reseted! */ 65 /* The destination buffer is not long enough and destination buffer can not be reset */ 70 /* Once the error is detected, the dest buffer must be reseted! */ 75 /* Once the buffer overlap is detected, the dest buffer must be reseted! */ 115 * Parameter: destMax - The maximum length of destination buffer 134 * Parameter: destMax - The maximum length of destination buffer [all...] |
/device/soc/rockchip/rk3568/hardware/codec/jpeg/src/ |
H A D | codec_jpeg_decoder.cpp | 59 int32_t CodecJpegDecoder::DeCode(BufferHandle *buffer, BufferHandle *outBuffer, const struct CodecJpegDecInfo &decInfo) in DeCode() argument 74 if (SendData(decInfo, buffer, outBuffer) != MPP_OK) { in DeCode() 88 MPP_RET CodecJpegDecoder::SendData(const struct CodecJpegDecInfo &decInfo, BufferHandle* buffer, BufferHandle *outHandle) in SendData() argument 107 info.fd = buffer->fd; in SendData() 108 info.size = buffer->size; in SendData() 131 CODEC_LOGE(" mpp buffer import/get error %{public}d", ret); in SendData() 308 mppApi_->HdiMppBufferGroupLimitConfig(memGroup_, 0, 24); // 24:buffer group limit in PrePare()
|
/kernel/linux/linux-5.10/crypto/ |
H A D | nhpoly1305.c | 165 memcpy(&state->buffer[state->buflen], src, bytes); in crypto_nhpoly1305_update_helper() 169 nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT, in crypto_nhpoly1305_update_helper() 184 memcpy(state->buffer, src, srclen); in crypto_nhpoly1305_update_helper() 204 memset(&state->buffer[state->buflen], 0, in crypto_nhpoly1305_final_helper() 206 nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT, in crypto_nhpoly1305_final_helper()
|
H A D | aead.c | 27 u8 *buffer, *alignbuffer; in setkey_unaligned() local 31 buffer = kmalloc(absize, GFP_ATOMIC); in setkey_unaligned() 32 if (!buffer) in setkey_unaligned() 35 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned() 38 kfree_sensitive(buffer); in setkey_unaligned()
|
/kernel/linux/linux-5.10/drivers/firmware/meson/ |
H A D | meson_sm.c | 129 * @buffer: Buffer to store the retrieved data 130 * @bsize: Size of the buffer 140 * data read and bsize bytes are copied in buffer. 142 int meson_sm_call_read(struct meson_sm_firmware *fw, void *buffer, in meson_sm_call_read() argument 169 if (buffer) in meson_sm_call_read() 170 memcpy(buffer, fw->sm_shmem_out_base, size); in meson_sm_call_read() 180 * @buffer: Buffer containing data to send 191 int meson_sm_call_write(struct meson_sm_firmware *fw, void *buffer, in meson_sm_call_write() argument 206 memcpy(fw->sm_shmem_in_base, buffer, size); in meson_sm_call_write()
|
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | nsutils.c | 32 * Manages allocation/freeing of a pathname buffer 40 struct acpi_buffer buffer; in acpi_ns_print_node_pathname() local 50 buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER; in acpi_ns_print_node_pathname() 52 status = acpi_ns_handle_to_pathname(node, &buffer, TRUE); in acpi_ns_print_node_pathname() 58 acpi_os_printf("%s", (char *)buffer.pointer); in acpi_ns_print_node_pathname() 59 ACPI_FREE(buffer.pointer); in acpi_ns_print_node_pathname()
|
H A D | rscalc.c | 148 * calculates the size buffer needed to hold the corresponding 435 * buffer needed to hold the corresponding internal resource 446 u8 *buffer; in acpi_rs_get_list_length() local 490 buffer = in acpi_rs_get_list_length() 499 ACPI_MOVE_16_TO_16(&temp16, buffer); in acpi_rs_get_list_length() 508 extra_struct_bytes = acpi_rs_count_set_bits(*buffer); in acpi_rs_get_list_length() 554 extra_struct_bytes = (buffer[1] - 1) * sizeof(u32); in acpi_rs_get_list_length() 659 * Update the required buffer size for the internal descriptor structs in acpi_rs_get_list_length() 702 * buffer_size_needed - u32 pointer of the size buffer 732 * Calculate the size of the return buffer in acpi_rs_get_pci_routing_table_length() [all...] |
/kernel/linux/common_modules/xpm/core/ |
H A D | xpm_report.c | 53 char *buffer = NULL; in xpm_set_filename() local 58 buffer = kzalloc(sizeof(info->filename), GFP_ATOMIC); in xpm_set_filename() 59 if (!buffer) { in xpm_set_filename() 60 xpm_log_error("alloc filename buffer failed"); in xpm_set_filename() 64 filename = file_path(file, buffer, sizeof(info->filename) - 1); in xpm_set_filename() 71 kfree(buffer); in xpm_set_filename()
|
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/executive/ |
H A D | octeon-model.c | 54 * Version of octeon_model_get_string() that takes buffer as argument, 59 char *buffer) in octeon_model_get_string_buffer() 490 sprintf(buffer, "CN%s%sp%s-%d-%s", family, core_model, pass, clock_mhz, suffix); in octeon_model_get_string_buffer() 491 return buffer; in octeon_model_get_string_buffer() 509 static char buffer[32]; in octeon_model_get_string() local 510 return octeon_model_get_string_buffer(chip_id, buffer); in octeon_model_get_string() 58 octeon_model_get_string_buffer(uint32_t chip_id, char *buffer) octeon_model_get_string_buffer() argument
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal-flash.c | 73 /* Validate buffer size */ 102 void *buf; /* Candidate image buffer */ 364 * Free image buffer 384 * Allocate image buffer. 386 static int alloc_image_buf(char *buffer, size_t count) in alloc_image_buf() argument 396 memcpy(&image_header, (void *)buffer, sizeof(image_header)); in alloc_image_buf() 436 char *buffer, loff_t pos, size_t count) in image_data_write() 453 rc = alloc_image_buf(buffer, count); in image_data_write() 468 memcpy(image_data.data + pos, (void *)buffer, count); in image_data_write() 523 /* Allocate validate image buffer */ in opal_flash_update_init() 434 image_data_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t count) image_data_write() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | mpc52xx_psc.h | 171 } buffer; member 172 #define mpc52xx_psc_buffer_8 buffer.buffer_8 173 #define mpc52xx_psc_buffer_16 buffer.buffer_16 174 #define mpc52xx_psc_buffer_32 buffer.buffer_32 320 } buffer; member
|
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/executive/ |
H A D | octeon-model.c | 54 * Version of octeon_model_get_string() that takes buffer as argument, 59 char *buffer) in octeon_model_get_string_buffer() 490 sprintf(buffer, "CN%s%sp%s-%d-%s", family, core_model, pass, clock_mhz, suffix); in octeon_model_get_string_buffer() 491 return buffer; in octeon_model_get_string_buffer() 509 static char buffer[32]; in octeon_model_get_string() local 510 return octeon_model_get_string_buffer(chip_id, buffer); in octeon_model_get_string() 58 octeon_model_get_string_buffer(uint32_t chip_id, char *buffer) octeon_model_get_string_buffer() argument
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | mpc52xx_psc.h | 171 } buffer; member 172 #define mpc52xx_psc_buffer_8 buffer.buffer_8 173 #define mpc52xx_psc_buffer_16 buffer.buffer_16 174 #define mpc52xx_psc_buffer_32 buffer.buffer_32 320 } buffer; member
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | opal-flash.c | 73 /* Validate buffer size */ 102 void *buf; /* Candidate image buffer */ 364 * Free image buffer 384 * Allocate image buffer. 386 static int alloc_image_buf(char *buffer, size_t count) in alloc_image_buf() argument 396 memcpy(&image_header, (void *)buffer, sizeof(image_header)); in alloc_image_buf() 436 char *buffer, loff_t pos, size_t count) in image_data_write() 453 rc = alloc_image_buf(buffer, count); in image_data_write() 468 memcpy(image_data.data + pos, (void *)buffer, count); in image_data_write() 527 /* Allocate validate image buffer */ in opal_flash_update_init() 434 image_data_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t count) image_data_write() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
H A D | sp2.c | 56 u8 buffer[35]; in sp2_write_i2c() local 62 .buf = &buffer[0], in sp2_write_i2c() 66 if ((len + 1) > sizeof(buffer)) { in sp2_write_i2c() 72 buffer[0] = reg; in sp2_write_i2c() 73 memcpy(&buffer[1], buf, len); in sp2_write_i2c()
|
/kernel/linux/linux-5.10/drivers/input/serio/ |
H A D | gscps2.c | 95 u8 act, append; /* position in buffer[] */ 99 } buffer[BUFFER_SIZE+1]; member 130 * gscps2_flush() - flush the receive buffer 236 while ( (ps2port->buffer[ps2port->append].str = in gscps2_interrupt() 238 ps2port->buffer[ps2port->append].data = in gscps2_interrupt() 261 status = ps2port->buffer[ps2port->act].str; in gscps2_interrupt() 262 data = ps2port->buffer[ps2port->act].data; in gscps2_interrupt()
|