Home
last modified time | relevance | path

Searched refs:buffer (Results 1551 - 1575 of 11084) sorted by relevance

1...<<61626364656667686970>>...444

/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A D_flushlbf.c24 * @tc.desc : Verify that flushing the line buffer was successful.
29 char buffer[1024] = {0}; in flushlbf_0100() local
41 int32_t rsize = fread(buffer, 1, 10, fd); in flushlbf_0100()
47 fread(buffer, 1, 20, fp); in flushlbf_0100()
48 EXPECT_STREQ("flushlbf_0100", buffer, array); in flushlbf_0100()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/unistd_gtest/
H A Dunistd_Exit_test.cpp33 char buffer[BUF_SIZE]; in HWTEST_F() local
34 read(pipefd[0], buffer, sizeof(buffer)); in HWTEST_F()
36 EXPECT_STREQ("before exit", buffer); in HWTEST_F()
/third_party/musl/libc-test/src/functionalext/time/
H A Dstrftime_l.c46 char buffer[gBufferSize]; in strftime_l_0100() local
48 strftime_l(buffer, sizeof(buffer) - 1, "%c", timeptr, m_locale); in strftime_l_0100()
49 EXPECT_STREQ("strftime_l_0100", buffer, test_asctime_data[i].result); in strftime_l_0100()
/third_party/skia/third_party/externals/swiftshader/src/Main/
H A DFrameBufferOzone.cpp21 buffer = sw::Surface::create(width, height, 1, format, nullptr, in FrameBufferOzone()
28 delete buffer; in ~FrameBufferOzone()
33 framebuffer = buffer->lockInternal(0, 0, 0, sw::LOCK_READWRITE, sw::PUBLIC); in lock()
40 buffer->unlockInternal(); in unlock()
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/
H A DBuffer.cpp26 buffer = device.createBuffer(bufferInfo); in Buffer()
28 auto memRequirements = device.getBufferMemoryRequirements(buffer); in Buffer()
35 device.bindBufferMemory(buffer, bufferMemory, 0); in Buffer()
41 device.destroyBuffer(buffer); in ~Buffer()
/third_party/skia/src/utils/
H A DSkJSONWriter.cpp35 char buffer[kBufferSize]; in appendf() local
39 int length = _vsnprintf_s(buffer, kBufferSize, _TRUNCATE, fmt, argp); in appendf()
41 int length = vsnprintf(buffer, kBufferSize, fmt, argp); in appendf()
45 this->write(buffer, length); in appendf()
/kernel/linux/linux-5.10/sound/pci/rme9652/
H A Drme9652.c78 /* bits 6-15 encode h/w buffer pointer position */
98 /* Bit 6..15 : h/w buffer pointer */
242 need to use in order to find the relevant channel buffer. RME
245 and the value is the DMA channel (i.e. channel buffer number)
1547 snd_rme9652_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) in snd_rme9652_proc_read() argument
1558 snd_iprintf(buffer, "%s (Card #%d)\n", rme9652->card_name, rme9652->card->number + 1); in snd_rme9652_proc_read()
1559 snd_iprintf(buffer, "Buffers: capture %p playback %p\n", in snd_rme9652_proc_read()
1561 snd_iprintf(buffer, "IRQ: %d Registers bus: 0x%lx VM: 0x%lx\n", in snd_rme9652_proc_read()
1563 snd_iprintf(buffer, "Control register: %x\n", rme9652->control_register); in snd_rme9652_proc_read()
1565 snd_iprintf(buffer, "\ in snd_rme9652_proc_read()
[all...]
/kernel/linux/linux-6.6/sound/core/
H A Drawmidi.c135 /* buffer refcount management: call with substream->lock held */
180 runtime->buffer = kvzalloc(runtime->buffer_size, GFP_KERNEL); in snd_rawmidi_runtime_create()
181 if (!runtime->buffer) { in snd_rawmidi_runtime_create()
208 kvfree(runtime->buffer); in snd_rawmidi_runtime_free()
265 if (!substream->opened || !runtime || !runtime->buffer) { in snd_rawmidi_drain_output()
753 oldbuf = runtime->buffer; in resize_runtime_buffer()
754 runtime->buffer = newbuf; in resize_runtime_buffer()
1102 const unsigned char *buffer, int src_count, const struct timespec64 *tstamp) in receive_with_tstamp_framing()
1128 memcpy(frame.data, buffer, frame.length); in receive_with_tstamp_framing()
1129 buffer in receive_with_tstamp_framing()
1101 receive_with_tstamp_framing(struct snd_rawmidi_substream *substream, const unsigned char *buffer, int src_count, const struct timespec64 *tstamp) receive_with_tstamp_framing() argument
1168 snd_rawmidi_receive(struct snd_rawmidi_substream *substream, const unsigned char *buffer, int count) snd_rawmidi_receive() argument
1390 __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream, unsigned char *buffer, int count) __snd_rawmidi_transmit_peek() argument
1449 snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream, unsigned char *buffer, int count) snd_rawmidi_transmit_peek() argument
1531 snd_rawmidi_transmit(struct snd_rawmidi_substream *substream, unsigned char *buffer, int count) snd_rawmidi_transmit() argument
1758 snd_rawmidi_proc_info_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_rawmidi_proc_info_read() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/rme9652/
H A Drme9652.c76 /* bits 6-15 encode h/w buffer pointer position */
96 /* Bit 6..15 : h/w buffer pointer */
243 need to use in order to find the relevant channel buffer. RME
246 and the value is the DMA channel (i.e. channel buffer number)
1537 snd_rme9652_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) in snd_rme9652_proc_read() argument
1548 snd_iprintf(buffer, "%s (Card #%d)\n", rme9652->card_name, rme9652->card->number + 1); in snd_rme9652_proc_read()
1549 snd_iprintf(buffer, "Buffers: capture %p playback %p\n", in snd_rme9652_proc_read()
1551 snd_iprintf(buffer, "IRQ: %d Registers bus: 0x%lx VM: 0x%lx\n", in snd_rme9652_proc_read()
1553 snd_iprintf(buffer, "Control register: %x\n", rme9652->control_register); in snd_rme9652_proc_read()
1555 snd_iprintf(buffer, "\ in snd_rme9652_proc_read()
[all...]
/kernel/linux/linux-5.10/drivers/usb/storage/
H A Dsddr55.c196 unsigned char *buffer; in sddr55_read_data() local
206 // a bounce buffer and move the data a piece at a time between the in sddr55_read_data()
207 // bounce buffer and the actual transfer buffer. in sddr55_read_data()
211 buffer = kmalloc(len, GFP_NOIO); in sddr55_read_data()
212 if (buffer == NULL) in sddr55_read_data()
236 memset (buffer, 0, len); in sddr55_read_data()
265 DMA_FROM_DEVICE, buffer, len); in sddr55_read_data()
289 // Store the data in the transfer buffer in sddr55_read_data()
290 usb_stor_access_xfer_buf(buffer, le in sddr55_read_data()
315 unsigned char *buffer; sddr55_write_data() local
643 unsigned char *buffer; sddr55_read_map() local
[all...]
/kernel/linux/linux-6.6/drivers/platform/surface/
H A Dsurface_acpi_notify.c202 if (obj->buffer.length != 1 || obj->buffer.pointer[0] != 0) { in san_acpi_notify_event()
262 * The Surface ACPI expects a buffer and not a package. It specifically in san_evt_bat_dptf()
267 payload.buffer.length = event->length; in san_evt_bat_dptf()
268 payload.buffer.pointer = (u8 *)&event->data[0]; in san_evt_bat_dptf()
563 static acpi_status san_rqst(struct san_data *d, struct gsb_buffer *buffer) in san_rqst() argument
571 gsb_rqst = san_validate_rqsx(d->dev, "RQST", buffer); in san_rqst()
590 return san_rqst_fixup_suspended(d, &rqst, buffer); in san_rqst()
597 gsb_rqsx_response_success(buffer, rsp.pointer, rsp.length); in san_rqst()
600 gsb_rqsx_response_error(buffer, statu in san_rqst()
606 san_rqsg(struct san_data *d, struct gsb_buffer *buffer) san_rqsg() argument
639 struct gsb_buffer *buffer = (struct gsb_buffer *)value64; san_opreg_handler() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/storage/
H A Dsddr55.c196 unsigned char *buffer; in sddr55_read_data() local
206 // a bounce buffer and move the data a piece at a time between the in sddr55_read_data()
207 // bounce buffer and the actual transfer buffer. in sddr55_read_data()
211 buffer = kmalloc(len, GFP_NOIO); in sddr55_read_data()
212 if (buffer == NULL) in sddr55_read_data()
236 memset (buffer, 0, len); in sddr55_read_data()
265 DMA_FROM_DEVICE, buffer, len); in sddr55_read_data()
289 // Store the data in the transfer buffer in sddr55_read_data()
290 usb_stor_access_xfer_buf(buffer, le in sddr55_read_data()
315 unsigned char *buffer; sddr55_write_data() local
643 unsigned char *buffer; sddr55_read_map() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dflac_parser.c60 uint8_t *buffer; member
68 int offset; /**< byte offset from start of FLACParseContext->buffer */
87 CRC-8 verified header within buffer */
88 FLACHeaderMarker *best_header; /**< highest scoring header within buffer */
94 FifoBuffer fifo_buf; /**< buffer to store all data until headers
97 uint8_t *wrap_buf; /**< general fifo read buffer when wrapped */
98 int wrap_buf_allocated_size; /**< actual allocated size of the buffer */
140 return (f->wptr - f->buffer) + (f->end - f->rptr); in flac_fifo_size()
146 return f->end - f->buffer - flac_fifo_size(f); in flac_fifo_space()
152 * If possible the pointer points within the fifo buffer
[all...]
/third_party/backends/backend/
H A Dtest-picture.c47 init_picture_buffer (Test_Device * test_device, SANE_Byte ** buffer, in init_picture_buffer() argument
62 DBG (2, "(child) init_picture_buffer test_device=%p, buffer=%p, " in init_picture_buffer()
63 "buffer_size=%p\n",(void*)test_device,(void*)buffer,(void*)buffer_size); in init_picture_buffer()
77 DBG (1, "(child) init_picture_buffer: couldn't malloc buffer\n"); in init_picture_buffer()
81 if (buffer) in init_picture_buffer()
82 *buffer = b; in init_picture_buffer()
126 DBG (1, "(child) init_picture_buffer: couldn't malloc buffer\n"); in init_picture_buffer()
129 if (buffer) in init_picture_buffer()
130 *buffer = b; in init_picture_buffer()
226 DBG (1, "(child) init_picture_buffer: couldn't malloc buffer\ in init_picture_buffer()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dsd.c108 static void sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer);
141 char buffer[64]; in cache_type_store() local
175 if (scsi_mode_sense(sdp, 0x08, 8, 0, buffer, sizeof(buffer), SD_TIMEOUT, in cache_type_store()
178 len = min_t(size_t, sizeof(buffer), data.length - data.header_length - in cache_type_store()
180 buffer_data = buffer + data.header_length + in cache_type_store()
189 * received mode parameter buffer before doing MODE SELECT. in cache_type_store()
699 static int sd_sec_submit(void *data, u16 spsp, u8 secp, void *buffer, in sd_sec_submit() argument
716 buffer, len, SD_TIMEOUT, sdkp->max_retries, in sd_sec_submit()
1874 "READ RESERVATION failed due to short return buffer o in sd_pr_read_reservation()
2369 sd_read_protection_type(struct scsi_disk *sdkp, unsigned char *buffer) sd_read_protection_type() argument
2446 read_capacity_16(struct scsi_disk *sdkp, struct scsi_device *sdp, unsigned char *buffer) read_capacity_16() argument
2540 read_capacity_10(struct scsi_disk *sdkp, struct scsi_device *sdp, unsigned char *buffer) read_capacity_10() argument
2620 sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer) sd_read_capacity() argument
2746 sd_do_mode_sense(struct scsi_disk *sdkp, int dbd, int modepage, unsigned char *buffer, int len, struct scsi_mode_data *data, struct scsi_sense_hdr *sshdr) sd_do_mode_sense() argument
2766 sd_read_write_protect_flag(struct scsi_disk *sdkp, unsigned char *buffer) sd_read_write_protect_flag() argument
2825 sd_read_cache_type(struct scsi_disk *sdkp, unsigned char *buffer) sd_read_cache_type() argument
3002 sd_read_app_tag_own(struct scsi_disk *sdkp, unsigned char *buffer) sd_read_app_tag_own() argument
3194 sd_read_write_same(struct scsi_disk *sdkp, unsigned char *buffer) sd_read_write_same() argument
3227 sd_read_security(struct scsi_disk *sdkp, unsigned char *buffer) sd_read_security() argument
3253 unsigned char *buffer = NULL; sd_read_cpr() local
3410 char *buffer, cmd[10] = { }; sd_read_block_zero() local
3436 unsigned char *buffer; sd_revalidate_disk() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/
H A Ddebug.c22 ssize_t (*cb_write)(struct file *filp, const char __user *buffer,
59 const char __user *buffer, in rtw_debugfs_common_write()
64 return debugfs_priv->cb_write(filp, buffer, count, loff); in rtw_debugfs_common_write()
68 const char __user *buffer, in rtw_debugfs_single_write()
74 return debugfs_priv->cb_write(filp, buffer, count, loff); in rtw_debugfs_single_write()
174 const char __user *buffer, size_t count, in rtw_debugfs_copy_from_user()
186 if (copy_from_user(tmp, buffer, tmp_len)) in rtw_debugfs_copy_from_user()
195 const char __user *buffer, in rtw_debugfs_set_read_reg()
206 ret = rtw_debugfs_copy_from_user(tmp, sizeof(tmp), buffer, count, 2); in rtw_debugfs_set_read_reg()
285 const char __user *buffer, in rtw_debugfs_set_rsvd_page()
58 rtw_debugfs_common_write(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_common_write() argument
67 rtw_debugfs_single_write(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_single_write() argument
173 rtw_debugfs_copy_from_user(char tmp[], int size, const char __user *buffer, size_t count, int num) rtw_debugfs_copy_from_user() argument
194 rtw_debugfs_set_read_reg(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_read_reg() argument
284 rtw_debugfs_set_rsvd_page(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_rsvd_page() argument
313 rtw_debugfs_set_single_input(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_single_input() argument
341 rtw_debugfs_set_write_reg(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_write_reg() argument
387 rtw_debugfs_set_h2c(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_h2c() argument
417 rtw_debugfs_set_rf_write(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_rf_write() argument
449 rtw_debugfs_set_rf_read(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_rf_read() argument
479 rtw_debugfs_set_fix_rate(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_fix_rate() argument
874 rtw_debugfs_set_coex_enable(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_coex_enable() argument
915 rtw_debugfs_set_edcca_enable(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_edcca_enable() argument
947 rtw_debugfs_set_fw_crash(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_fw_crash() argument
992 rtw_debugfs_set_force_lowest_basic_rate(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_force_lowest_basic_rate() argument
1025 rtw_debugfs_set_dm_cap(struct file *filp, const char __user *buffer, size_t count, loff_t *loff) rtw_debugfs_set_dm_cap() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DCommandEncoder.cpp62 "%s sample count (%u) is not 1 when copying to or from a buffer.", in ValidateTextureSampleCountInBufferCopyCommands()
72 // For depth-stencil texture, buffer offset must be a multiple of 4. in ValidateLinearTextureCopyOffset()
95 "buffer copy.", in ValidateTextureDepthStencilToBufferCopyRestrictions()
393 "The destination buffer %s offset (%u) is not a multiple of 256.", in ValidateQuerySetResolve()
397 // The destination buffer must have enough storage, from destination offset, to contain in ValidateQuerySetResolve()
425 // Timestamp availability storage buffer in EncodeTimestampsToNanosecondsConversion()
436 // Timestamp params uniform buffer in EncodeTimestampsToNanosecondsConversion()
661 "Source and destination are the same buffer (%s).", source); in APICopyBufferToBuffer()
701 DAWN_TRY_CONTEXT(ValidateCanUseAs(source->buffer, wgpu::BufferUsage::CopySrc), in APICopyBufferToTexture()
702 "validating source %s usage.", source->buffer); in APICopyBufferToTexture()
882 APIClearBuffer(BufferBase* buffer, uint64_t offset, uint64_t size) APIClearBuffer() argument
1033 APIWriteBuffer(BufferBase* buffer, uint64_t bufferOffset, const uint8_t* data, uint64_t size) APIWriteBuffer() argument
[all...]
/kernel/linux/linux-5.10/drivers/crypto/vmx/
H A Dghash.c41 u8 buffer[GHASH_DIGEST_SIZE]; member
83 dctx->buffer, GHASH_DIGEST_SIZE); in __ghash_block()
88 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); in __ghash_block()
125 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
130 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
146 memcpy(dctx->buffer, src, srclen); in p8_ghash_update()
160 dctx->buffer[i] = 0; in p8_ghash_final()
/kernel/linux/linux-5.10/drivers/char/tpm/
H A Dtpm_i2c_atmel.c35 * fair number of read responses in the buffer so a 2nd retry can be
37 u8 buffer[sizeof(struct tpm_header) + 25]; member
71 struct tpm_header *hdr = (struct tpm_header *)priv->buffer; in i2c_atmel_recv()
90 memcpy(buf, priv->buffer, expected_len); in i2c_atmel_recv()
114 * transfer here and buffer it locally. This way the common code can in i2c_atmel_read_status()
117 memset(priv->buffer, 0, sizeof(priv->buffer)); in i2c_atmel_read_status()
122 rc = i2c_master_recv(client, priv->buffer, sizeof(priv->buffer)); in i2c_atmel_read_status()
/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpio-74x164.c32 u8 buffer[]; member
37 return spi_write(to_spi_device(chip->gpio_chip.parent), chip->buffer, in __gen_74x164_write_config()
49 ret = (chip->buffer[bank] >> pin) & 0x1; in gen_74x164_get_value()
64 chip->buffer[bank] |= (1 << pin); in gen_74x164_set_value()
66 chip->buffer[bank] &= ~(1 << pin); in gen_74x164_set_value()
86 chip->buffer[bank] &= ~bankmask; in gen_74x164_set_multiple()
87 chip->buffer[bank] |= bitmask; in gen_74x164_set_multiple()
/kernel/linux/linux-6.6/arch/arm64/crypto/
H A Dpolyval-ce-glue.c40 u8 buffer[POLYVAL_BLOCK_SIZE]; member
112 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - dctx->bytes; in polyval_arm64_update()
121 internal_polyval_mul(dctx->buffer, in polyval_arm64_update()
128 internal_polyval_update(tctx, src, nblocks, dctx->buffer); in polyval_arm64_update()
135 pos = dctx->buffer; in polyval_arm64_update()
149 internal_polyval_mul(dctx->buffer, in polyval_arm64_final()
153 memcpy(dst, dctx->buffer, POLYVAL_BLOCK_SIZE); in polyval_arm64_final()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_acpi.c107 if (info->type != ACPI_TYPE_BUFFER || info->buffer.length < 4) { in intel_dsm_platform_mux_info()
115 intel_dsm_port_name(info->buffer.pointer[0])); in intel_dsm_platform_mux_info()
117 intel_dsm_mux_type(info->buffer.pointer[1])); in intel_dsm_platform_mux_info()
119 intel_dsm_mux_type(info->buffer.pointer[2])); in intel_dsm_platform_mux_info()
121 intel_dsm_mux_type(info->buffer.pointer[3])); in intel_dsm_platform_mux_info()
150 struct acpi_buffer buffer = {sizeof(acpi_method_name), acpi_method_name}; in intel_dsm_detect() local
160 acpi_get_name(dhandle, ACPI_FULL_PATHNAME, &buffer); in intel_dsm_detect()
/kernel/linux/linux-5.10/drivers/iio/adc/
H A Dti-adc128s052.c32 u8 buffer[2] ____cacheline_aligned;
41 adc->buffer[0] = channel << 3; in adc128_adc_conversion()
42 adc->buffer[1] = 0; in adc128_adc_conversion()
44 ret = spi_write(adc->spi, &adc->buffer, 2); in adc128_adc_conversion()
50 ret = spi_read(adc->spi, &adc->buffer, 2); in adc128_adc_conversion()
57 return ((adc->buffer[0] << 8 | adc->buffer[1]) & 0xFFF); in adc128_adc_conversion()
/kernel/linux/linux-5.10/drivers/tty/vt/
H A Dconmakehash.c80 char buffer[65536]; in main() local
114 while ( fgets(buffer, sizeof(buffer), ctbl) != NULL ) in main()
116 if ( (p = strchr(buffer, '\n')) != NULL ) in main()
121 p = buffer; in main()
142 fprintf(stderr, "Bad input line: %s\n", buffer); in main()
155 fprintf(stderr, "Bad input line: %s\n", buffer); in main()
/kernel/linux/linux-6.6/drivers/tty/vt/
H A Dconmakehash.c80 char buffer[65536]; in main() local
114 while ( fgets(buffer, sizeof(buffer), ctbl) != NULL ) in main()
116 if ( (p = strchr(buffer, '\n')) != NULL ) in main()
121 p = buffer; in main()
142 fprintf(stderr, "Bad input line: %s\n", buffer); in main()
155 fprintf(stderr, "Bad input line: %s\n", buffer); in main()

Completed in 24 milliseconds

1...<<61626364656667686970>>...444