| /third_party/protobuf/js/experimental/runtime/kernel/conformance/ |
| H A D | conformance_testee_runner_node.js | 7 * Reads a buffer of N bytes. 21 * Writes all data in buffer. 22 * @param {!Buffer} buffer Buffer which contains data. 24 function writeBuffer(buffer) { 28 fs.writeSync(fd, buffer, 0, buffer.length); 45 const request = ConformanceRequest.deserialize(array.buffer);
|
| /third_party/skia/experimental/graphite/src/ |
| H A D | CopyTask.cpp | 18 sk_sp<Buffer> buffer, in Make() 23 std::move(buffer), in Make() 30 sk_sp<Buffer> buffer, in CopyTextureToBufferTask() 35 , fBuffer(std::move(buffer)) in CopyTextureToBufferTask() 16 Make(sk_sp<Texture> texture, SkIRect srcRect, sk_sp<Buffer> buffer, size_t bufferOffset, size_t bufferRowBytes) Make() argument 28 CopyTextureToBufferTask(sk_sp<Texture> texture, SkIRect srcRect, sk_sp<Buffer> buffer, size_t bufferOffset, size_t bufferRowBytes) CopyTextureToBufferTask() argument
|
| /third_party/rust/crates/os_str_bytes/src/ |
| H A D | pattern.rs | 11 buffer: [u8; 4], 17 &self.buffer[..self.length] in __get() 49 buffer: [0; 4], in __encode() 52 encoded.length = self.encode_utf8(&mut encoded.buffer).len(); in __encode()
|
| /third_party/node/lib/ |
| H A D | fs.js | 67 const { Buffer } = require('buffer'); 350 // the result and reuse the buffer instead of allocating a new one. 353 context.buffer = Buffer.allocUnsafeSlow(size); 427 let buffer; 432 buffer = Buffer.allocUnsafe(size); 437 return buffer; 440 function tryReadSync(fd, isUserFd, buffer, pos, len) { 444 bytesRead = fs.readSync(fd, buffer, pos, len); 469 let buffer; // Single buffer wit [all...] |
| /kernel/linux/linux-5.10/drivers/bcma/ |
| H A D | host_soc.c | 50 static void bcma_host_soc_block_read(struct bcma_device *core, void *buffer, in bcma_host_soc_block_read() argument 57 u8 *buf = buffer; in bcma_host_soc_block_read() 67 __le16 *buf = buffer; in bcma_host_soc_block_read() 78 __le32 *buf = buffer; in bcma_host_soc_block_read() 94 const void *buffer, in bcma_host_soc_block_write() 101 const u8 *buf = buffer; in bcma_host_soc_block_write() 111 const __le16 *buf = buffer; in bcma_host_soc_block_write() 122 const __le32 *buf = buffer; in bcma_host_soc_block_write() 93 bcma_host_soc_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_write() argument
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| H A D | hid-elo.c | 31 unsigned char buffer[ELO_SMARTSET_PACKET_SIZE]; member 139 unsigned char *buffer = priv->buffer; in elo_work() local 150 *buffer = ELO_DIAG; in elo_work() 151 ret = elo_smartset_send_get(dev, ELO_SEND_SMARTSET_COMMAND, buffer); in elo_work() 159 ret = elo_smartset_send_get(dev, ELO_GET_SMARTSET_RESPONSE, buffer); in elo_work() 167 if (*buffer != 'A') { in elo_work() 169 buffer); in elo_work()
|
| /kernel/linux/linux-5.10/drivers/input/touchscreen/ |
| H A D | mcs5000_ts.c | 109 u8 buffer[READ_BLOCK_SIZE]; in mcs5000_ts_interrupt() local 115 READ_BLOCK_SIZE, buffer); in mcs5000_ts_interrupt() 121 switch (buffer[READ_INPUT_INFO]) { in mcs5000_ts_interrupt() 128 x = (buffer[READ_X_POS_UPPER] << 8) | buffer[READ_X_POS_LOWER]; in mcs5000_ts_interrupt() 129 y = (buffer[READ_Y_POS_UPPER] << 8) | buffer[READ_Y_POS_LOWER]; in mcs5000_ts_interrupt() 151 buffer[READ_INPUT_INFO]); in mcs5000_ts_interrupt()
|
| /kernel/linux/linux-5.10/fs/xfs/ |
| H A D | xfs_sysctl.c | 16 void *buffer, in xfs_stats_clear_proc_handler() 22 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler() 36 void *buffer, in xfs_panic_mask_proc_handler() 42 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler() 57 void *buffer, in xfs_deprecate_irix_sgid_inherit_proc_handler() 66 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_deprecate_irix_sgid_inherit_proc_handler() 73 void *buffer, in xfs_deprecate_irix_symlink_mode_proc_handler() 82 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_deprecate_irix_symlink_mode_proc_handler() 13 xfs_stats_clear_proc_handler( struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) xfs_stats_clear_proc_handler() argument 33 xfs_panic_mask_proc_handler( struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) xfs_panic_mask_proc_handler() argument 54 xfs_deprecate_irix_sgid_inherit_proc_handler( struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) xfs_deprecate_irix_sgid_inherit_proc_handler() argument 70 xfs_deprecate_irix_symlink_mode_proc_handler( struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) xfs_deprecate_irix_symlink_mode_proc_handler() argument
|
| /kernel/linux/linux-5.10/drivers/ssb/ |
| H A D | host_soc.c | 41 static void ssb_host_soc_block_read(struct ssb_device *dev, void *buffer, in ssb_host_soc_block_read() argument 52 u8 *buf = buffer; in ssb_host_soc_block_read() 62 __le16 *buf = buffer; in ssb_host_soc_block_read() 73 __le32 *buf = buffer; in ssb_host_soc_block_read() 114 static void ssb_host_soc_block_write(struct ssb_device *dev, const void *buffer, in ssb_host_soc_block_write() argument 125 const u8 *buf = buffer; in ssb_host_soc_block_write() 135 const __le16 *buf = buffer; in ssb_host_soc_block_write() 146 const __le32 *buf = buffer; in ssb_host_soc_block_write()
|
| /kernel/linux/linux-6.6/include/linux/ |
| H A D | sysctl.h | 64 typedef int proc_handler(struct ctl_table *ctl, int write, void *buffer, 68 int proc_dobool(struct ctl_table *table, int write, void *buffer, 73 int proc_douintvec_minmax(struct ctl_table *table, int write, void *buffer, 75 int proc_dou8vec_minmax(struct ctl_table *table, int write, void *buffer, 79 void *buffer, size_t *lenp, loff_t *ppos); 88 int proc_do_static_key(struct ctl_table *table, int write, void *buffer, 247 void *buffer, size_t *lenp, loff_t *ppos, 298 int sysctl_max_threads(struct ctl_table *table, int write, void *buffer,
|
| /kernel/linux/linux-6.6/drivers/ssb/ |
| H A D | host_soc.c | 41 static void ssb_host_soc_block_read(struct ssb_device *dev, void *buffer, in ssb_host_soc_block_read() argument 52 u8 *buf = buffer; in ssb_host_soc_block_read() 62 __le16 *buf = buffer; in ssb_host_soc_block_read() 73 __le32 *buf = buffer; in ssb_host_soc_block_read() 114 static void ssb_host_soc_block_write(struct ssb_device *dev, const void *buffer, in ssb_host_soc_block_write() argument 125 const u8 *buf = buffer; in ssb_host_soc_block_write() 135 const __le16 *buf = buffer; in ssb_host_soc_block_write() 146 const __le32 *buf = buffer; in ssb_host_soc_block_write()
|
| /kernel/linux/linux-6.6/drivers/bcma/ |
| H A D | host_soc.c | 50 static void bcma_host_soc_block_read(struct bcma_device *core, void *buffer, in bcma_host_soc_block_read() argument 57 u8 *buf = buffer; in bcma_host_soc_block_read() 67 __le16 *buf = buffer; in bcma_host_soc_block_read() 78 __le32 *buf = buffer; in bcma_host_soc_block_read() 94 const void *buffer, in bcma_host_soc_block_write() 101 const u8 *buf = buffer; in bcma_host_soc_block_write() 111 const __le16 *buf = buffer; in bcma_host_soc_block_write() 122 const __le32 *buf = buffer; in bcma_host_soc_block_write() 93 bcma_host_soc_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_write() argument
|
| /kernel/linux/linux-6.6/drivers/hid/ |
| H A D | hid-elo.c | 31 unsigned char buffer[ELO_SMARTSET_PACKET_SIZE]; member 139 unsigned char *buffer = priv->buffer; in elo_work() local 150 *buffer = ELO_DIAG; in elo_work() 151 ret = elo_smartset_send_get(dev, ELO_SEND_SMARTSET_COMMAND, buffer); in elo_work() 159 ret = elo_smartset_send_get(dev, ELO_GET_SMARTSET_RESPONSE, buffer); in elo_work() 167 if (*buffer != 'A') { in elo_work() 169 buffer); in elo_work()
|
| /kernel/linux/linux-6.6/drivers/input/touchscreen/ |
| H A D | mcs5000_ts.c | 109 u8 buffer[READ_BLOCK_SIZE]; in mcs5000_ts_interrupt() local 115 READ_BLOCK_SIZE, buffer); in mcs5000_ts_interrupt() 121 switch (buffer[READ_INPUT_INFO]) { in mcs5000_ts_interrupt() 128 x = (buffer[READ_X_POS_UPPER] << 8) | buffer[READ_X_POS_LOWER]; in mcs5000_ts_interrupt() 129 y = (buffer[READ_Y_POS_UPPER] << 8) | buffer[READ_Y_POS_LOWER]; in mcs5000_ts_interrupt() 151 buffer[READ_INPUT_INFO]); in mcs5000_ts_interrupt()
|
| /third_party/backends/backend/escl/ |
| H A D | escl_mupdf.c | 51 unsigned char buffer[4096]; member 60 n = fread(state->buffer, 1, sizeof(state->buffer), state->file); in next_file_escl() 61 if (n < sizeof(state->buffer) && ferror(state->file)) in next_file_escl() 63 stm->rp = state->buffer; in next_file_escl() 64 stm->wp = state->buffer + n; in next_file_escl() 98 stm->rp = state->buffer; in seek_file_escl() 99 stm->wp = state->buffer; in seek_file_escl()
|
| /third_party/icu/icu4c/source/i18n/ |
| H A D | number_utils.cpp | 140 char buffer[DoubleToStringConverter::kBase10MaximalLength + 6]; in setTo() local 148 buffer, in setTo() 149 sizeof(buffer), in setTo() 156 _setTo(buffer, length, status); in setTo() 267 MaybeStackArray<char, 30> buffer(minCapacity, status); in toString() 271 uprv_decNumberToString(fData, buffer.getAlias()); in toString() 272 output.Append(buffer.getAlias(), static_cast<int32_t>(uprv_strlen(buffer.getAlias()))); in toString()
|
| /third_party/libuv/test/ |
| H A D | runner-win.c | 241 char * buffer, in process_read_last_line() 255 buffer[0] = '\0'; in process_read_last_line() 263 if (!ReadFile(p->stdio_out, buffer, buffer_len - 1, &read, &overlapped)) in process_read_last_line() 268 if (buffer[start] == '\n' || buffer[start] == '\r') in process_read_last_line() 273 memmove(buffer, buffer + start, read - start); in process_read_last_line() 275 buffer[read - start] = '\0'; in process_read_last_line() 240 process_read_last_line(process_info_t *p, char * buffer, size_t buffer_len) process_read_last_line() argument
|
| /third_party/json/tests/thirdparty/Fuzzer/ |
| H A D | FuzzerSHA1.cpp | 55 uint32_t buffer[BLOCK_LENGTH/4]; member 110 t = s->buffer[(i+13)&15] ^ s->buffer[(i+8)&15] ^ s->buffer[(i+2)&15] ^ s->buffer[i&15]; in sha1_hashBlock() 111 s->buffer[i&15] = sha1_rol32(t,1); in sha1_hashBlock() 122 t+=sha1_rol32(a,5) + e + s->buffer[i&15]; in sha1_hashBlock() 137 uint8_t * const b = (uint8_t*) s->buffer; in sha1_addUncounted()
|
| /third_party/ntfs-3g/ntfsprogs/ |
| H A D | ntfscat.c | 338 char *buffer; in cat() local 344 buffer = malloc(bufsize); in cat() 345 if (!buffer) in cat() 352 free(buffer); in cat() 367 bytes_read = ntfs_attr_mst_pread(attr, offset, 1, block_size, buffer); in cat() 371 bytes_read = ntfs_attr_pread(attr, offset, bufsize, buffer); in cat() 381 written = fwrite(buffer, 1, bytes_read, stdout); in cat() 390 free(buffer); in cat()
|
| /third_party/node/deps/icu-small/source/i18n/ |
| H A D | number_utils.cpp | 140 char buffer[DoubleToStringConverter::kBase10MaximalLength + 6]; in setTo() local 148 buffer, in setTo() 149 sizeof(buffer), in setTo() 156 _setTo(buffer, length, status); in setTo() 267 MaybeStackArray<char, 30> buffer(minCapacity, status); in toString() 271 uprv_decNumberToString(fData, buffer.getAlias()); in toString() 272 output.Append(buffer.getAlias(), static_cast<int32_t>(uprv_strlen(buffer.getAlias()))); in toString()
|
| /third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
| H A D | vktApiBufferAndImageAllocationUtil.cpp | 45 Move<VkBuffer>& buffer, in createTestBuffer() 64 buffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer() 65 memory = allocator.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), requirement); in createTestBuffer() 66 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, memory->getMemory(), 0)); in createTestBuffer() 73 Move<VkBuffer>& buffer, in createTestBuffer() 99 buffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer() 100 memory = allocateDedicated(vkInstance, vk, vkPhysicalDevice, vkDevice, buffer.get(), requirement); in createTestBuffer() 101 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, memory->getMemory(), memory->getOffset())); in createTestBuffer() 41 createTestBuffer(VkDeviceSize size, VkBufferUsageFlags usage, Context& context, Allocator& allocator, Move<VkBuffer>& buffer, const MemoryRequirement& requirement, de::MovePtr<Allocation>& memory) const createTestBuffer() argument 69 createTestBuffer(VkDeviceSize size, VkBufferUsageFlags usage, Context& context, Allocator& allocator, Move<VkBuffer>& buffer, const MemoryRequirement& requirement, de::MovePtr<Allocation>& memory) const createTestBuffer() argument
|
| /third_party/skia/src/effects/imagefilters/ |
| H A D | SkTileImageFilter.cpp | 38 void flatten(SkWriteBuffer& buffer) const override; 78 sk_sp<SkFlattenable> SkTileImageFilter::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 81 buffer.readRect(&src); in CreateProc() 82 buffer.readRect(&dst); in CreateProc() 86 void SkTileImageFilter::flatten(SkWriteBuffer& buffer) const { in flatten() 87 this->INHERITED::flatten(buffer); in flatten() 88 buffer.writeRect(fSrcRect); in flatten() 89 buffer.writeRect(fDstRect); in flatten()
|
| /third_party/skia/third_party/externals/spirv-cross/tests-other/ |
| H A D | c_api_test.c | 26 static int read_file(const char *path, SpvId **buffer, size_t *word_count) in read_file() argument 38 *buffer = malloc(len); in read_file() 39 if (fread(*buffer, 1, len, file) != (size_t)len) in read_file() 42 free(*buffer); in read_file() 118 SpvId *buffer = NULL; in main() local 130 if (read_file(argv[1], &buffer, &word_count) < 0) in main() 155 SPVC_CHECKED_CALL(spvc_context_parse_spirv(context, buffer, word_count, &ir)); in main() 187 free(buffer); in main()
|
| /third_party/skia/third_party/externals/icu/source/i18n/ |
| H A D | number_utils.cpp | 140 char buffer[DoubleToStringConverter::kBase10MaximalLength + 6]; in setTo() local 148 buffer, in setTo() 149 sizeof(buffer), in setTo() 156 _setTo(buffer, length, status); in setTo() 261 MaybeStackArray<char, 30> buffer(minCapacity, status); in toString() 265 uprv_decNumberToString(fData, buffer.getAlias()); in toString() 266 output.Append(buffer.getAlias(), static_cast<int32_t>(uprv_strlen(buffer.getAlias()))); in toString()
|
| /third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
| H A D | SamplerCore.cpp | 457 Pointer<Byte> buffer; in sampleQuad2D() local 458 selectMipmap(texture, mipmap, buffer, lod, secondLOD); in sampleQuad2D() 467 c = sampleTexel(uuuu, vvvv, wwww, layerIndex, offset, sample, mipmap, buffer, function); in sampleQuad2D() 476 Vector4s c00 = sampleTexel(uuuu0, vvvv0, wwww, layerIndex, offset, sample, mipmap, buffer, function); in sampleQuad2D() 477 Vector4s c10 = sampleTexel(uuuu1, vvvv0, wwww, layerIndex, offset, sample, mipmap, buffer, function); in sampleQuad2D() 478 Vector4s c01 = sampleTexel(uuuu0, vvvv1, wwww, layerIndex, offset, sample, mipmap, buffer, function); in sampleQuad2D() 479 Vector4s c11 = sampleTexel(uuuu1, vvvv1, wwww, layerIndex, offset, sample, mipmap, buffer, function); in sampleQuad2D() 659 Pointer<Byte> buffer; in sample3D() local 660 selectMipmap(texture, mipmap, buffer, lod, secondLOD); in sample3D() 668 c_ = sampleTexel(uuuu, vvvv, wwww, 0, offset, sample, mipmap, buffer, functio in sample3D() 903 Pointer<Byte> buffer; sampleFloat2D() local 996 Pointer<Byte> buffer; sampleFloat3D() local 1420 sampleTexel(UInt index[4], Pointer<Byte> buffer) sampleTexel() argument 1725 sampleTexel(Short4 &uuuu, Short4 &vvvv, Short4 &wwww, const Short4 &layerIndex, Vector4i &offset, const Int4 &sample, Pointer<Byte> &mipmap, Pointer<Byte> buffer, SamplerFunction function) sampleTexel() argument 1874 sampleTexel(Int4 &uuuu, Int4 &vvvv, Int4 &wwww, Float4 &dRef, const Int4 &sample, Pointer<Byte> &mipmap, Pointer<Byte> buffer, SamplerFunction function) sampleTexel() argument 2138 selectMipmap(const Pointer<Byte> &texture, Pointer<Byte> &mipmap, Pointer<Byte> &buffer, const Float &lod, bool secondLOD) selectMipmap() argument [all...] |