| /kernel/linux/linux-6.6/fs/ubifs/ |
| H A D | xattr.c | 226 * before the host inode in the write-buffer. in change_xattr() 396 ssize_t ubifs_listxattr(struct dentry *dentry, char *buffer, size_t size) in ubifs_listxattr() argument 406 dbg_gen("ino %lu ('%pd'), buffer size %zd", host->i_ino, in ubifs_listxattr() 411 if (!buffer) { in ubifs_listxattr() 413 * We should return the minimum buffer size which will fit a in ubifs_listxattr() 437 memcpy(buffer + written, fname_name(&nm), fname_len(&nm) + 1); in ubifs_listxattr() 692 const char *name, void *buffer, size_t size) in xattr_get() 698 return ubifs_xattr_get(inode, name, buffer, size); in xattr_get() 690 xattr_get(const struct xattr_handler *handler, struct dentry *dentry, struct inode *inode, const char *name, void *buffer, size_t size) xattr_get() argument
|
| /kernel/linux/linux-6.6/drivers/xen/xenbus/ |
| H A D | xenbus_xs.c | 390 char *buffer; in join() local 393 buffer = kasprintf(GFP_NOIO | __GFP_HIGH, "%s", dir); in join() 395 buffer = kasprintf(GFP_NOIO | __GFP_HIGH, "%s/%s", dir, name); in join() 396 return (!buffer) ? ERR_PTR(-ENOMEM) : buffer; in join()
|
| /kernel/linux/linux-6.6/drivers/spi/ |
| H A D | spi-rockchip-sfc.c | 179 void *buffer; member 456 memcpy(sfc->buffer, op->data.buf.out, len); in rockchip_sfc_xfer_data_dma() 465 memcpy(op->data.buf.in, sfc->buffer, len); in rockchip_sfc_xfer_data_dma() 604 sfc->buffer = dmam_alloc_coherent(dev, SFC_MAX_IOSIZE_VER3, in rockchip_sfc_probe() 607 if (!sfc->buffer) in rockchip_sfc_probe()
|
| /kernel/linux/linux-6.6/drivers/usb/misc/ |
| H A D | adutux.c | 343 static ssize_t adu_read(struct file *file, __user char *buffer, size_t count, in adu_read() argument 383 /* drain secondary buffer */ in adu_read() 385 if (copy_to_user(buffer, dev->read_buffer_secondary+dev->secondary_head, amount)) { in adu_read() 393 /* we check the primary buffer */ in adu_read() 405 /* we have a free buffer so use it */ in adu_read() 476 /* if the primary buffer is empty then use it */ in adu_read() 503 static ssize_t adu_write(struct file *file, const __user char *buffer, in adu_write() argument 579 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write) != 0) { in adu_write() 604 buffer += bytes_to_write; in adu_write() 687 /* debug code prime the buffer */ in adu_probe() [all...] |
| /kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
| H A D | debugfs.c | 498 const size_t bufsize = 1024 * 16; /* 16 kiB buffer */ in b43_debugfs_read() 522 if (!dfile->buffer) { in b43_debugfs_read() 536 dfile->buffer = buf; in b43_debugfs_read() 540 dfile->buffer, in b43_debugfs_read() 543 free_pages((unsigned long)dfile->buffer, buforder); in b43_debugfs_read() 544 dfile->buffer = NULL; in b43_debugfs_read()
|
| /kernel/linux/linux-6.6/drivers/nfc/pn533/ |
| H A D | usb.c | 385 char *buffer; in pn533_acr122_poweron_rdr() local 391 buffer = kmemdup(cmd, sizeof(cmd), GFP_KERNEL); in pn533_acr122_poweron_rdr() 392 if (!buffer) in pn533_acr122_poweron_rdr() 404 rc = usb_bulk_msg(phy->udev, phy->out_urb->pipe, buffer, sizeof(cmd), in pn533_acr122_poweron_rdr() 406 kfree(buffer); in pn533_acr122_poweron_rdr()
|
| /kernel/linux/linux-6.6/crypto/ |
| H A D | shash.c | 47 u8 *buffer, *alignbuffer; in shash_setkey_unaligned() local 51 buffer = kmalloc(absize, GFP_ATOMIC); in shash_setkey_unaligned() 52 if (!buffer) in shash_setkey_unaligned() 55 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in shash_setkey_unaligned() 58 kfree_sensitive(buffer); in shash_setkey_unaligned()
|
| H A D | ahash.c | 135 u8 *buffer, *alignbuffer; in ahash_setkey_unaligned() local 139 buffer = kmalloc(absize, GFP_KERNEL); in ahash_setkey_unaligned() 140 if (!buffer) in ahash_setkey_unaligned() 143 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in ahash_setkey_unaligned() 146 kfree_sensitive(buffer); in ahash_setkey_unaligned()
|
| /kernel/linux/linux-6.6/drivers/hid/ |
| H A D | hid-prodikeys.c | 217 unsigned char buffer[3]; in pcmidi_send_note() local 219 buffer[0] = status; in pcmidi_send_note() 220 buffer[1] = note; in pcmidi_send_note() 221 buffer[2] = velocity; in pcmidi_send_note() 230 snd_rawmidi_receive(pm->in_substream, buffer, 3); in pcmidi_send_note()
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
| H A D | sun4i_hdmi_enc.c | 51 u8 buffer[17]; in sun4i_hdmi_setup_avi_infoframes() local 61 ret = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer)); in sun4i_hdmi_setup_avi_infoframes() 67 for (i = 0; i < sizeof(buffer); i++) in sun4i_hdmi_setup_avi_infoframes() 68 writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i)); in sun4i_hdmi_setup_avi_infoframes()
|
| /kernel/linux/linux-6.6/sound/soc/sof/ |
| H A D | ipc3-dtrace.c | 269 * host DMA buffer has been wrapped. We should output the trace data in sof_dtrace_avail() 270 * at the end of host DMA buffer at first. in sof_dtrace_avail() 316 static ssize_t dfsentry_dtrace_read(struct file *file, char __user *buffer, in dfsentry_dtrace_read() argument 336 /* check for buffer wrap and count overflow */ in dfsentry_dtrace_read() 357 * data buffer might be allocated from non consistent memory. in dfsentry_dtrace_read() 363 rem = copy_to_user(buffer, ((u8 *)(dfse->buf) + lpos), count); in dfsentry_dtrace_read() 451 params.buffer.phy_addr = priv->dmatp.addr; in ipc3_dtrace_enable() 452 params.buffer.size = priv->dmatb.bytes; in ipc3_dtrace_enable() 453 params.buffer.pages = priv->dma_trace_pages; in ipc3_dtrace_enable() 514 /* allocate trace page table buffer */ in ipc3_dtrace_init() [all...] |
| /test/testfwk/arkxtest/uitest/core/ |
| H A D | ui_driver.cpp | 170 char *buffer = nullptr; in DumpUiHierarchy() local 172 uiController_->GetHidumperInfo(to_string(winCache.window_.id_), &buffer, len); in DumpUiHierarchy() local 173 if (buffer == nullptr) { in DumpUiHierarchy() 176 elementTrees.insert(make_pair(winCache.window_.id_, string_view(buffer, len))); in DumpUiHierarchy() 177 buffers.push_back(buffer); in DumpUiHierarchy()
|
| /third_party/curl/tests/server/ |
| H A D | util.c | 90 char buffer[2048 + 1]; in logmsg() local 118 mvsnprintf(buffer, sizeof(buffer), msg, ap); in logmsg() 123 fprintf(logfp, "%s %s\n", timebuf, buffer); in logmsg() 131 fprintf(stderr, "Msg not logged: %s %s\n", timebuf, buffer); in logmsg()
|
| /third_party/ffmpeg/libavcodec/ |
| H A D | vaapi_vc1.c | 252 static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) in vaapi_vc1_start_frame() argument 466 static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) in vaapi_vc1_decode_slice() argument 475 /* Current bit buffer is beyond any marker for VC-1, so skip it */ in vaapi_vc1_decode_slice() 476 if (avctx->codec_id == AV_CODEC_ID_VC1 && IS_MARKER(AV_RB32(buffer))) { in vaapi_vc1_decode_slice() 477 buffer += 4; in vaapi_vc1_decode_slice() 496 buffer, size); in vaapi_vc1_decode_slice()
|
| /third_party/icu/icu4c/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, UChar *buffer, int32_t bufferLen) { in ucol_getRulesEx() argument 573 if(buffer != NULL && 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/libcoap/examples/ |
| H A D | oscore-interop-server.c | 374 char buffer[120]; in usage() local 386 coap_string_tls_version(buffer, sizeof(buffer))); in usage() 387 fprintf(stderr, "%s\n", coap_string_tls_support(buffer, sizeof(buffer))); in usage()
|
| H A D | coap-rd.c | 554 char buffer[120]; in usage() local 566 coap_string_tls_version(buffer, sizeof(buffer))); in usage() 567 fprintf(stderr, "%s\n", coap_string_tls_support(buffer, sizeof(buffer))); in usage()
|
| /third_party/json/include/nlohmann/detail/conversions/ |
| H A D | to_chars.hpp | 584 Generates V = buffer * 10^decimal_exponent, such that M- <= V <= M+. 587 inline void grisu2_digit_gen(char* buffer, int& length, int& decimal_exponent, in grisu2_digit_gen() argument 594 // number V = buffer * 10^decimal_exponent in the range [M-, M+]. The diyfp's in grisu2_digit_gen() 654 // M+ = buffer * 10^n + (p1 + p2 * 2^e) (buffer = 0 for n = k) in grisu2_digit_gen() 660 // M+ = buffer * 10^n + (d * 10^(n-1) + r) + p2 * 2^e in grisu2_digit_gen() 661 // = (buffer * 10 + d) * 10^(n-1) + (r + p2 * 2^e) in grisu2_digit_gen() 664 buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 1 in grisu2_digit_gen() [all...] |
| /third_party/mesa3d/src/broadcom/vulkan/ |
| H A D | v3dv_uniforms.c | 117 fprintf(stderr, "failed to map push constants buffer\n"); in check_push_constants_ubo() 127 /* We ran out of space so we'll have to allocate a new buffer but we in check_push_constants_ubo() 129 * buffer life and make sure it is eventually freed. We use the in check_push_constants_ubo() 130 * private object machinery in the command buffer for this. in check_push_constants_ubo() 307 * instead of an external buffer. in write_ubo_ssbo_uniforms() 316 * of an external buffer. in write_ubo_ssbo_uniforms() 330 assert(descriptor->buffer); in write_ubo_ssbo_uniforms() 331 assert(descriptor->buffer->mem); in write_ubo_ssbo_uniforms() 332 assert(descriptor->buffer->mem->bo); in write_ubo_ssbo_uniforms() 334 bo = descriptor->buffer in write_ubo_ssbo_uniforms() [all...] |
| /third_party/mesa3d/src/compiler/isaspec/ |
| H A D | decode.c | 167 char *buffer; in print() local 172 ret = vasprintf(&buffer, fmt, args); in print() 176 const size_t len = strlen(buffer); in print() 179 const char c = buffer[i]; in print() 189 free(buffer); in print()
|
| /third_party/mesa3d/src/gallium/frontends/clover/api/ |
| H A D | memory.cpp | 198 if (bool(desc->buffer) != (desc->image_type == CL_MEM_OBJECT_IMAGE1D_BUFFER)) in clCreateImageWithProperties() 205 const cl_mem_flags flags = validate_flags(desc->buffer, d_flags, false); in clCreateImageWithProperties() 243 row_pitch, host_ptr, desc->buffer); in clCreateImageWithProperties() 449 buf.as_scalar<cl_mem>() = desc(img->buffer()); in clGetMemObjectInfo() 524 buf.as_scalar<cl_mem>() = img.buffer(); in clGetImageInfo()
|
| /third_party/mesa3d/src/gallium/frontends/xa/ |
| H A D | xa_renderer.c | 96 util_draw_user_vertex_buffer(r->cso, r->buffer, PIPE_PRIM_QUADS, in renderer_draw() 146 float *vertex = r->buffer + r->buffer_size; in add_vertex_none() 159 float *vertex = r->buffer + r->buffer_size; in add_vertex_1tex() 178 float *vertex = r->buffer + r->buffer_size; in add_vertex_2tex() 315 /* Set up framebuffer, viewport and vertex shader constant buffer 353 /* Constant buffer set up to match viewport dimensions: in renderer_bind_destination() 533 util_draw_user_vertex_buffer(r->cso, r->buffer, PIPE_PRIM_QUADS, in renderer_draw_yuv()
|
| /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()
|