/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...] |
/kernel/linux/linux-5.10/drivers/media/usb/stkwebcam/ |
H A D | stk-webcam.c | 339 pr_err_ratelimited("isoc_handler without available buffer!\n"); in stk_isoc_handler() 344 fill = fb->buffer + fb->v4lbuf.bytesused; in stk_isoc_handler() 377 fill = fb->buffer; in stk_isoc_handler() 380 /* Always reuse the last buffer */ in stk_isoc_handler() 382 fill = fb->buffer; in stk_isoc_handler() 390 fill = fb->buffer; in stk_isoc_handler() 398 /* Our buffer is full !!! */ in stk_isoc_handler() 400 pr_err_ratelimited("Frame buffer overflow, lost sync\n"); in stk_isoc_handler() 409 /* New size of our buffer */ in stk_isoc_handler() 449 pr_err("Failed to allocate iso buffer in stk_prepare_iso() [all...] |
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | wmi.c | 210 * set_required_buffer_size - Sets the buffer size needed for performing IOCTL 212 * @length: Required buffer size 214 * Allocates memory needed for buffer, stores the buffer size in that memory 233 * @out: Empty buffer to return the method results 255 * @out: Empty buffer to return the method results 295 params[2].buffer.length = in->length; in wmidev_evaluate_method() 296 params[2].buffer.pointer = in->pointer; in wmidev_evaluate_method() 381 * @out: Empty buffer to return the contents of the data block to 383 * Return the contents of an ACPI-WMI data block to a buffer 834 wmi_char_read(struct file *filp, char __user *buffer, size_t length, loff_t *offset) wmi_char_read() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | hyperv.h | 76 /* Single-page buffer */ 83 /* Multiple-page buffer */ 92 * Multiple-page buffer array; the pfn array is variable size: 125 * is set by the host on the host->guest ring buffer, and by the 126 * guest on the guest->host ring buffer. 130 * the feature bit in the guest->host ring buffer, the guest is 133 * buffer when it is waiting for space to become available, and 135 * ring buffer and interrupt the host when it frees enough space 138 * ring buffer, the host is telling the guest that: 140 * buffer whe 164 u8 buffer[]; global() member 814 void *buffer; global() member [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_hid.c | 292 static ssize_t f_hidg_intout_read(struct file *file, char __user *buffer, in f_hidg_intout_read() argument 308 /* wait for at least one buffer to complete */ in f_hidg_intout_read() 335 count -= copy_to_user(buffer, req->buf + list->pos, count); in f_hidg_intout_read() 366 static ssize_t f_hidg_ssreport_read(struct file *file, char __user *buffer, in f_hidg_ssreport_read() argument 396 count -= copy_to_user(buffer, tmp_buf, count); in f_hidg_ssreport_read() 407 static ssize_t f_hidg_read(struct file *file, char __user *buffer, in f_hidg_read() argument 413 return f_hidg_intout_read(file, buffer, count, ptr); in f_hidg_read() 415 return f_hidg_ssreport_read(file, buffer, count, ptr); in f_hidg_read() 434 static ssize_t f_hidg_write(struct file *file, const char __user *buffer, in f_hidg_write() argument 476 status = copy_from_user(req->buf, buffer, coun in f_hidg_write() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/solomon/ |
H A D | ssd130x.c | 146 /* Intermediate buffer to convert pixels from XRGB8888 to HW format */ 147 u8 *buffer; member 456 u8 *buf = ssd130x_state->buffer; in ssd130x_update_rect() 605 u8 *buf = ssd130x_state->buffer; in ssd130x_fb_blit_rect() 653 ssd130x_state->buffer = kcalloc(pitch, ssd130x->height, GFP_KERNEL); in ssd130x_primary_plane_helper_atomic_check() 654 if (!ssd130x_state->buffer) in ssd130x_primary_plane_helper_atomic_check() 659 kfree(ssd130x_state->buffer); in ssd130x_primary_plane_helper_atomic_check() 661 ssd130x_state->buffer = NULL; in ssd130x_primary_plane_helper_atomic_check() 741 ssd130x_state->buffer = NULL; in ssd130x_primary_plane_duplicate_state() 757 kfree(ssd130x_state->buffer); in ssd130x_primary_plane_destroy_state() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_scrn.c | 92 unsigned long buffer_size; /**< Size of allocated buffer */ 93 struct vmw_bo *buffer; /**< Backing store buffer */ member 131 BUG_ON(!sou->buffer); in vmw_sou_fifo_create() 151 /* Ok to assume that buffer is pinned in vram */ in vmw_sou_fifo_create() 152 vmw_bo_get_guest_ptr(&sou->buffer->tbo, &cmd->obj.backingStore.ptr); in vmw_sou_fifo_create() 242 sou->buffer = vps->bo; in vmw_sou_crtc_mode_set_nofb() 257 sou->buffer = NULL; in vmw_sou_crtc_mode_set_nofb() 369 * vmw_sou_primary_plane_cleanup_fb - Frees sou backing buffer 396 * vmw_sou_primary_plane_prepare_fb - allocate backing buffer [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | stm32-dfsdm-adc.c | 12 #include <linux/iio/buffer.h> 82 u32 *buffer; member 275 * 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-6.6/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-6.6/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...] |
/third_party/cups-filters/filter/ |
H A D | rastertoescpx.c | 47 dirty, /* Is this buffer dirty? */ 48 row, /* Row in the buffer */ 50 unsigned char *buffer; /* Data buffer */ member 60 unsigned char *PixelBuffer, /* Pixel buffer */ 61 *CMYKBuffer, /* CMYK buffer */ 64 *CompBuffer; /* Compression buffer */ 65 short *InputBuffer; /* Color separation buffer */ 70 DotRowMax, /* Maximum row number in buffer */ 137 unsigned char *ptr; /* Pointer into dot buffer */ in StartPage() [all...] |
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
H A D | Shader.cpp | 171 cb.buffer = CastPipeResource(phBuffers[i]); in SetConstantBuffers() 173 cb.buffer_size = cb.buffer ? cb.buffer->width0 : 0; in SetConstantBuffers() 941 struct pipe_resource *buffer = CastPipeResource(phResource[i]); 945 if (buffer) { 946 unsigned buffer_size = buffer->width0; 949 so_target->buffer != buffer || 954 so_target = pipe->create_stream_output_target(pipe, buffer, 955 0,/*buffer offse [all...] |
/third_party/node/test/parallel/ |
H A D | test-buffer-alloc.js | 7 const SlowBuffer = require('buffer').SlowBuffer; 119 // Try to copy 0 bytes worth of data into an empty buffer 122 // Try to copy 0 bytes past the end of the target buffer 126 // Try to copy 0 bytes from past the end of the source buffer 144 // Offset points to the end of the buffer and does not throw. 229 const buffer = Buffer.allocUnsafe(32); 230 const size = buffer.write(testValue, 0, 'utf8'); 231 const slice = buffer.toString('utf8', 0, size); 671 const buffer = Buffer.allocUnsafe(data.length); 672 data.forEach((v, k) => buffer[ [all...] |
/third_party/node/src/ |
H A D | node_api.cc | 1025 v8::Local<v8::Object> buffer = maybe.ToLocalChecked(); in jsvm_create_buffer() local 1027 *result = v8impl::JsValueFromV8LocalValue(buffer); in jsvm_create_buffer() 1030 *data = node::Buffer::Data(buffer); in jsvm_create_buffer() 1067 // as it will be deleted when the buffer to which it is associated in OH_JSVM_CreateExternal_buffer() 1085 v8::Local<v8::Object> buffer = maybe.ToLocalChecked(); in jsvm_create_buffer_copy() local 1086 *result = v8impl::JsValueFromV8LocalValue(buffer); in jsvm_create_buffer_copy() 1089 *result_data = node::Buffer::Data(buffer); in jsvm_create_buffer_copy() 1113 v8::Local<v8::Value> buffer = v8impl::V8LocalValueFromJsValue(value); in jsvm_get_buffer_info() local 1116 *data = node::Buffer::Data(buffer); in jsvm_get_buffer_info() 1119 *length = node::Buffer::Length(buffer); in jsvm_get_buffer_info() [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_draw_hw_select.c | 689 cb.buffer = NULL; in st_draw_hw_select_prepare_common() 697 struct pipe_shader_buffer buffer; in st_draw_hw_select_prepare_common() local 698 memset(&buffer, 0, sizeof(buffer)); in st_draw_hw_select_prepare_common() 699 buffer.buffer = ctx->Select.Result->buffer; in st_draw_hw_select_prepare_common() 700 buffer.buffer_size = MAX_NAME_STACK_RESULT_NUM * 3 * sizeof(int); in st_draw_hw_select_prepare_common() 702 pipe->set_shader_buffers(pipe, PIPE_SHADER_GEOMETRY, 0, 1, &buffer, 0x1); in st_draw_hw_select_prepare_common() 787 * New mode consume same vertex buffer structur in st_draw_hw_select_prepare_mode() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/ |
H A D | vktRayQueryMiscTests.cpp | 114 << "layout (set=0, binding=1, std430) buffer InputBlock {\n" in initPrograms() 117 << "layout (set=0, binding=2, std430) buffer OutputBlock {\n" in initPrograms() 201 // Prepare input buffer. in iterate() 218 // Prepare output buffer. in iterate() 332 // Check output buffer. in iterate() 344 msg << "Unexpected value found at position " << i << " in the output buffer: expected " << expected << " but found " << value; in iterate() 510 const BufferWithMemory& buffer) const; 853 de::MovePtr<BufferWithMemory> buffer (new BufferWithMemory(vk, device, allocator, bufferCreateInfo, MemoryRequirement::Coherent | MemoryRequirement::HostVisible)); in makeAttribBuff() 855 Allocation& allocation = buffer->getAllocation(); in makeAttribBuff() 865 return buffer; in makeAttribBuff() [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
H A D | ProgramPrelude.cpp | 3019 // Returned Name is valid for as long as `buffer` is still alive. 3021 // Returns false if buffer is not large enough. 3025 static std::pair<Name, bool> MaskTemplateArgs(const Name &name, size_t bufferSize, char *buffer) in MaskTemplateArgs() argument 3040 buffer[i] = begin[i]; in MaskTemplateArgs() 3042 buffer[n + 0] = '<'; in MaskTemplateArgs() 3043 buffer[n + 1] = '>'; in MaskTemplateArgs() 3044 buffer[n + 2] = '\0'; in MaskTemplateArgs() 3045 return {Name(buffer, name.symbolType()), true}; in MaskTemplateArgs() 3830 char buffer[32]; in visitOperator() local 3831 auto mask = MaskTemplateArgs(name, sizeof(buffer), buffe in visitOperator() [all...] |
/third_party/skia/src/core/ |
H A D | SkRRect.cpp | 584 size_t SkRRect::writeToMemory(void* buffer) const { 586 memcpy(buffer, this, kSizeInMemory); 590 void SkRRectPriv::WriteToBuffer(const SkRRect& rr, SkWBuffer* buffer) { 592 buffer->write(&rr, SkRRect::kSizeInMemory); 595 size_t SkRRect::readFromMemory(const void* buffer, size_t length) { 603 memcpy((void*)&raw, buffer, kSizeInMemory); 608 bool SkRRectPriv::ReadFromBuffer(SkRBuffer* buffer, SkRRect* rr) { 609 if (buffer->available() < SkRRect::kSizeInMemory) { 613 return buffer->read(&storage, SkRRect::kSizeInMemory) &&
|
/third_party/skia/tests/ |
H A D | SerializationTest.cpp | 182 SkReadBuffer buffer(dataWritten, bytesWritten - 4); in TestObjectSerializationNoAlign() 184 SerializationUtils<T>::Read(buffer, &obj); in TestObjectSerializationNoAlign() 185 REPORTER_ASSERT(reporter, !buffer.isValid()); in TestObjectSerializationNoAlign() 195 // Note: This following test should always succeed, regardless of whether the buffer is valid, in TestObjectSerializationNoAlign() 196 // since if it is invalid, it will simply skip to the end, as if it had read the whole buffer. in TestObjectSerializationNoAlign() 219 SkReadBuffer buffer(dataWritten, bytesWritten - 4); in TestFlattenableSerialization() 221 SerializationUtils<T>::Read(buffer, &obj); in TestFlattenableSerialization() 222 REPORTER_ASSERT(reporter, !buffer.isValid()); in TestFlattenableSerialization() 238 REPORTER_ASSERT(reporter, !buffer.isValid()); in TestFlattenableSerialization() 257 SkReadBuffer buffer(dataWritte in TestArraySerialization() [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
H A D | RenderPipeline.cpp | 139 "buffer stride (%u).", in ValidateVertexAttribute() 149 "Attribute offset (%u) with format %s (size: %u) doesn't fit in the vertex buffer " in ValidateVertexAttribute() 174 const VertexBufferLayout* buffer, in ValidateVertexBufferLayout() 177 DAWN_TRY(ValidateVertexStepMode(buffer->stepMode)); in ValidateVertexBufferLayout() 179 buffer->arrayStride > kMaxVertexBufferArrayStride, in ValidateVertexBufferLayout() 180 "Vertex buffer arrayStride (%u) is larger than the maximum array stride (%u).", in ValidateVertexBufferLayout() 181 buffer->arrayStride, kMaxVertexBufferArrayStride); in ValidateVertexBufferLayout() 183 DAWN_INVALID_IF(buffer->arrayStride % 4 != 0, in ValidateVertexBufferLayout() 184 "Vertex buffer arrayStride (%u) is not a multiple of 4.", in ValidateVertexBufferLayout() 185 buffer in ValidateVertexBufferLayout() 172 ValidateVertexBufferLayout( DeviceBase* device, const VertexBufferLayout* buffer, const EntryPointMetadata& metadata, ityp::bitset<VertexAttributeLocation, kMaxVertexAttributes>* attributesSetMask) ValidateVertexBufferLayout() argument [all...] |