Home
last modified time | relevance | path

Searched full:buffer_size (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/linux-6.12.1/tools/testing/selftests/arm64/mte/
Dcheck_tags_inclusion.c18 #define BUFFER_SIZE (5 * MT_GRANULE_SIZE) macro
24 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE); in verify_mte_pointer_validity()
26 memset(ptr, '1', BUFFER_SIZE); in verify_mte_pointer_validity()
30 ptr, ptr + BUFFER_SIZE, mode); in verify_mte_pointer_validity()
36 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE + 1); in verify_mte_pointer_validity()
38 ptr[BUFFER_SIZE] = '2'; in verify_mte_pointer_validity()
54 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_single_included_tags()
55 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_single_included_tags()
65 ptr = mte_insert_tags(ptr, BUFFER_SIZE); in check_single_included_tags()
77 mte_free_memory_tag_range(ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); in check_single_included_tags()
[all …]
/linux-6.12.1/fs/pstore/
Dram_core.c42 static inline size_t buffer_size(struct persistent_ram_zone *prz) in buffer_size() function
64 while (unlikely(new >= prz->buffer_size)) in buffer_start_add()
65 new -= prz->buffer_size; in buffer_start_add()
85 if (old == prz->buffer_size) in buffer_size_add()
89 if (new > prz->buffer_size) in buffer_size_add()
90 new = prz->buffer_size; in buffer_size_add()
126 uint8_t *buffer_end = buffer->data + prz->buffer_size; in persistent_ram_update_ecc()
170 while (block < buffer->data + buffer_size(prz)) { in persistent_ram_ecc_old()
173 if (block + size > buffer->data + prz->buffer_size) in persistent_ram_ecc_old()
174 size = buffer->data + prz->buffer_size - block; in persistent_ram_ecc_old()
[all …]
Dzone.c71 * @buffer_size: bytes in @buffer->data
84 size_t buffer_size; member
180 if (off > zone->buffer_size) in psz_zone_read_buffer()
182 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_buffer()
192 if (off > zone->buffer_size) in psz_zone_read_oldbuf()
194 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_oldbuf()
208 if (off > zone->buffer_size) in psz_zone_write()
211 wlen = min_t(size_t, len, zone->buffer_size - off); in psz_zone_write()
243 wlen = zone->buffer_size + sizeof(*zone->buffer); in psz_zone_write()
363 rcnt = info->read((char *)buf, zone->buffer_size + sizeof(*buf), in psz_kmsg_recover_data()
[all …]
/linux-6.12.1/tools/testing/selftests/alsa/
Dpcm-test.conf8 buffer_size 32000
17 buffer_size 32000
26 buffer_size 192000
35 buffer_size 4096
44 buffer_size 192000
53 buffer_size 576000
62 buffer_size 192000
/linux-6.12.1/sound/core/
Dpcm_trace.h22 __field( snd_pcm_uframes_t, buffer_size )
34 __entry->buffer_size = (substream)->runtime->buffer_size;
47 (unsigned long)__entry->buffer_size)
59 __field( snd_pcm_uframes_t, buffer_size )
69 __entry->buffer_size = (substream)->runtime->buffer_size;
80 (unsigned long)__entry->buffer_size)
118 __field( snd_pcm_uframes_t, buffer_size )
129 __entry->buffer_size = (substream)->runtime->buffer_size;
140 __entry->buffer_size
Drawmidi.c169 runtime->buffer_size = PAGE_SIZE; in snd_rawmidi_runtime_create()
174 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
175 runtime->buffer = kvzalloc(runtime->buffer_size, GFP_KERNEL); in snd_rawmidi_runtime_create()
230 runtime->avail = is_input ? 0 : runtime->buffer_size; in __reset_runtime_ptrs()
264 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
270 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
272 "rawmidi drain error (avail = %li, buffer_size = %li)\n", in snd_rawmidi_drain_output()
273 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
715 if (params->buffer_size < 32 || params->buffer_size > 1024L * 1024L) in resize_runtime_buffer()
717 if (framing == SNDRV_RAWMIDI_MODE_FRAMING_TSTAMP && (params->buffer_size & 0x1f) != 0) in resize_runtime_buffer()
[all …]
/linux-6.12.1/drivers/android/
Dbinder_alloc.c64 return alloc->buffer + alloc->buffer_size - buffer->user_data; in binder_alloc_buffer_size()
74 size_t buffer_size; in binder_insert_free_buffer() local
90 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_insert_free_buffer()
92 if (new_buffer_size < buffer_size) in binder_insert_free_buffer()
355 size_t buffer_size; in debug_no_space_locked() local
360 buffer_size = binder_alloc_buffer_size(alloc, buffer); in debug_no_space_locked()
362 total_alloc_size += buffer_size; in debug_no_space_locked()
363 if (buffer_size > largest_alloc_size) in debug_no_space_locked()
364 largest_alloc_size = buffer_size; in debug_no_space_locked()
369 buffer_size = binder_alloc_buffer_size(alloc, buffer); in debug_no_space_locked()
[all …]
/linux-6.12.1/fs/9p/
Dxattr.c19 void *buffer, size_t buffer_size) in v9fs_fid_xattr_get() argument
24 struct kvec kvec = {.iov_base = buffer, .iov_len = buffer_size}; in v9fs_fid_xattr_get()
28 iov_iter_kvec(&to, ITER_DEST, &kvec, 1, buffer_size); in v9fs_fid_xattr_get()
37 if (attr_size > buffer_size) { in v9fs_fid_xattr_get()
38 if (buffer_size) in v9fs_fid_xattr_get()
66 void *buffer, size_t buffer_size) in v9fs_xattr_get() argument
72 name, buffer_size); in v9fs_xattr_get()
76 ret = v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get()
140 ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in v9fs_listxattr() argument
143 return v9fs_xattr_get(dentry, "", buffer, buffer_size); in v9fs_listxattr()
/linux-6.12.1/drivers/platform/x86/dell/dell-wmi-sysman/
Dbiosattr-interface.c52 size_t security_area_size, buffer_size; in set_attribute() local
67 buffer_size = security_area_size + a_name_size + a_value_size; in set_attribute()
68 buffer = kzalloc(buffer_size, GFP_KERNEL); in set_attribute()
87 print_hex_dump_bytes("set attribute data: ", DUMP_PREFIX_NONE, buffer, buffer_size); in set_attribute()
89 buffer, buffer_size, in set_attribute()
110 size_t security_area_size, buffer_size; in set_bios_defaults() local
123 buffer_size = security_area_size + integer_area_size; in set_bios_defaults()
124 buffer = kzalloc(buffer_size, GFP_KERNEL); in set_bios_defaults()
136 ret = call_biosattributes_interface(wmi_priv.bios_attr_wdev, buffer, buffer_size, in set_bios_defaults()
Dpasswordattr-interface.c44 size_t security_area_size, buffer_size; in set_new_password() local
70 buffer_size = security_area_size + password_type_size + current_password_size + new_size; in set_new_password()
71 buffer = kzalloc(buffer_size, GFP_KERNEL); in set_new_password()
96 print_hex_dump_bytes("set new password data: ", DUMP_PREFIX_NONE, buffer, buffer_size); in set_new_password()
97 ret = call_password_interface(wmi_priv.password_attr_wdev, buffer, buffer_size); in set_new_password()
/linux-6.12.1/sound/soc/intel/avs/
Dcldma.c36 unsigned int buffer_size; member
64 if (cl->remaining > cl->buffer_size) in hda_cldma_fill()
65 size = cl->buffer_size; in hda_cldma_fill()
70 if (offset + size > cl->buffer_size) { in hda_cldma_fill()
73 ss = cl->buffer_size - offset; in hda_cldma_fill()
209 int remaining = cl->buffer_size; in cldma_setup_bdle()
238 cldma_setup_bdle(cl, cl->buffer_size / 2); in hda_cldma_setup()
243 snd_hdac_stream_writel(cl, SD_CBL, cl->buffer_size); in hda_cldma_setup()
263 unsigned int buffer_size) in hda_cldma_init() argument
267 ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV_SG, bus->dev, buffer_size, &cl->dmab_data); in hda_cldma_init()
[all …]
/linux-6.12.1/tools/testing/selftests/iommu/
Diommufd.c44 BUFFER_SIZE = PAGE_SIZE * 16; in setup_sizes()
45 rc = posix_memalign(&buffer, HUGEPAGE_SIZE, BUFFER_SIZE); in setup_sizes()
49 vrc = mmap(buffer, BUFFER_SIZE, PROT_READ | PROT_WRITE, in setup_sizes()
860 .num_iovas = BUFFER_SIZE / sizeof(*ranges), in TEST_F()
878 memset(ranges, 0, BUFFER_SIZE); in TEST_F()
890 ranges_cmd.num_iovas = BUFFER_SIZE / sizeof(*ranges); in TEST_F()
905 memset(ranges, 0, BUFFER_SIZE); in TEST_F()
964 .length = BUFFER_SIZE, in TEST_F()
971 .length = BUFFER_SIZE, in TEST_F()
980 for (npages = 1; npages < BUFFER_SIZE / PAGE_SIZE; npages++) { in TEST_F()
[all …]
/linux-6.12.1/drivers/platform/x86/hp/hp-bioscfg/
Dbioscfg.c39 int hp_get_integer_from_buffer(u8 **buffer, u32 *buffer_size, u32 *integer) in hp_get_integer_from_buffer() argument
44 if (*buffer_size < sizeof(int)) in hp_get_integer_from_buffer()
49 *buffer_size -= sizeof(int); in hp_get_integer_from_buffer()
54 int hp_get_string_from_buffer(u8 **buffer, u32 *buffer_size, char *dst, u32 dst_size) in hp_get_string_from_buffer() argument
63 if (*buffer_size < sizeof(u16)) in hp_get_string_from_buffer()
73 if (*buffer_size < src_size) in hp_get_string_from_buffer()
121 *buffer_size -= size * sizeof(u16); in hp_get_string_from_buffer()
126 int hp_get_common_data_from_buffer(u8 **buffer_ptr, u32 *buffer_size, in hp_get_common_data_from_buffer() argument
133 ret = hp_get_string_from_buffer(buffer_ptr, buffer_size, common_data->path, in hp_get_common_data_from_buffer()
139 ret = hp_get_integer_from_buffer(buffer_ptr, buffer_size, in hp_get_common_data_from_buffer()
[all …]
Dint-attributes.c300 static int hp_populate_integer_elements_from_buffer(u8 *buffer_ptr, u32 *buffer_size, in hp_populate_integer_elements_from_buffer() argument
304 int dst_size = *buffer_size / sizeof(u16); in hp_populate_integer_elements_from_buffer()
330 hp_get_string_from_buffer(&buffer_ptr, buffer_size, dst, dst_size); in hp_populate_integer_elements_from_buffer()
337 ret = hp_get_common_data_from_buffer(&buffer_ptr, buffer_size, &integer_data->common); in hp_populate_integer_elements_from_buffer()
342 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_integer_elements_from_buffer()
348 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_integer_elements_from_buffer()
354 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_integer_elements_from_buffer()
366 * @buffer_size: Buffer size
370 int hp_populate_integer_buffer_data(u8 *buffer_ptr, u32 *buffer_size, int instance_id, in hp_populate_integer_buffer_data() argument
379 ret = hp_populate_integer_elements_from_buffer(buffer_ptr, buffer_size, in hp_populate_integer_buffer_data()
Dpasswdobj-attributes.c408 static int hp_populate_password_elements_from_buffer(u8 *buffer_ptr, u32 *buffer_size, in hp_populate_password_elements_from_buffer() argument
432 ret = hp_get_string_from_buffer(&buffer_ptr, buffer_size, password_data->current_password, in hp_populate_password_elements_from_buffer()
438 ret = hp_get_common_data_from_buffer(&buffer_ptr, buffer_size, in hp_populate_password_elements_from_buffer()
444 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_password_elements_from_buffer()
450 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_password_elements_from_buffer()
456 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_password_elements_from_buffer()
469 ret = hp_get_string_from_buffer(&buffer_ptr, buffer_size, in hp_populate_password_elements_from_buffer()
477 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, &isreadonly); in hp_populate_password_elements_from_buffer()
492 * @buffer_size: Buffer size
496 int hp_populate_password_buffer_data(u8 *buffer_ptr, u32 *buffer_size, int instance_id, in hp_populate_password_buffer_data() argument
[all …]
Dstring-attributes.c290 static int hp_populate_string_elements_from_buffer(u8 *buffer_ptr, u32 *buffer_size, in hp_populate_string_elements_from_buffer() argument
312 ret = hp_get_string_from_buffer(&buffer_ptr, buffer_size, string_data->current_value, in hp_populate_string_elements_from_buffer()
318 ret = hp_get_common_data_from_buffer(&buffer_ptr, buffer_size, &string_data->common); in hp_populate_string_elements_from_buffer()
323 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_string_elements_from_buffer()
329 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_string_elements_from_buffer()
342 * @buffer_size: Buffer size
346 int hp_populate_string_buffer_data(u8 *buffer_ptr, u32 *buffer_size, in hp_populate_string_buffer_data() argument
355 ret = hp_populate_string_elements_from_buffer(buffer_ptr, buffer_size, in hp_populate_string_buffer_data()
/linux-6.12.1/arch/mips/kernel/
Drtlx.c40 pr_info(" rt_state %d lx_state %d buffer_size %d\n", in dump_rtlx()
41 chan->rt_state, chan->lx_state, chan->buffer_size); in dump_rtlx()
217 return (chan->lx_write + chan->buffer_size - chan->lx_read) in rtlx_read_poll()
218 % chan->buffer_size; in rtlx_read_poll()
239 chan->buffer_size); in rtlx_write_poll()
259 (size_t)(lx_write + lx->buffer_size - lx->lx_read) in rtlx_read()
260 % lx->buffer_size); in rtlx_read()
263 fl = min(count, (size_t)lx->buffer_size - lx->lx_read); in rtlx_read()
277 lx->lx_read = (lx->lx_read + count) % lx->buffer_size; in rtlx_read()
302 rt->buffer_size)); in rtlx_write()
[all …]
/linux-6.12.1/arch/powerpc/boot/
Ddecompress.c50 static long flush(void *v, unsigned long buffer_size) in flush() argument
52 unsigned long end = decompressed_bytes + buffer_size; in flush()
53 unsigned long size = buffer_size; in flush()
67 decompressed_bytes += buffer_size; in flush()
68 return buffer_size; in flush()
86 return buffer_size; in flush()
/linux-6.12.1/sound/soc/sof/
Dcompress.c16 u64 host_pos, u64 buffer_size) in sof_set_transferred_bytes() argument
21 div64_u64_rem(sstream->copied_total, buffer_size, &prev_pos); in sof_set_transferred_bytes()
24 copied = (buffer_size - prev_pos) + host_pos; in sof_set_transferred_bytes()
72 crtd->buffer_size); in snd_sof_compr_fragment_elapsed()
204 ret = snd_compr_malloc_pages(cstream, crtd->buffer_size); in sof_compr_set_params()
312 div_u64_rem(rtd->total_bytes_available, rtd->buffer_size, &offset); in sof_compr_copy_playback()
314 n = rtd->buffer_size - offset; in sof_compr_copy_playback()
333 div_u64_rem(rtd->total_bytes_transferred, rtd->buffer_size, &offset); in sof_compr_copy_capture()
335 n = rtd->buffer_size - offset; in sof_compr_copy_capture()
353 if (count > rtd->buffer_size) in sof_compr_copy()
[all …]
/linux-6.12.1/drivers/accel/ivpu/
Divpu_jsm_msg.c442 u64 sampling_rate, u64 buffer_addr, u64 buffer_size) in ivpu_jsm_metric_streamer_start() argument
451 req.payload.metric_streamer_start.buffer_size = buffer_size; in ivpu_jsm_metric_streamer_start()
480 u64 buffer_addr, u64 buffer_size, u64 *bytes_written) in ivpu_jsm_metric_streamer_update() argument
488 req.payload.metric_streamer_update.buffer_size = buffer_size; in ivpu_jsm_metric_streamer_update()
497 if (buffer_size && resp.payload.metric_streamer_done.bytes_written > buffer_size) { in ivpu_jsm_metric_streamer_update()
498 ivpu_warn_ratelimited(vdev, "MS buffer overflow: bytes_written %#llx > buffer_size %#llx\n", in ivpu_jsm_metric_streamer_update()
499 resp.payload.metric_streamer_done.bytes_written, buffer_size); in ivpu_jsm_metric_streamer_update()
509 u64 buffer_size, u32 *sample_size, u64 *info_size) in ivpu_jsm_metric_streamer_info() argument
517 req.payload.metric_streamer_start.buffer_size = buffer_size; in ivpu_jsm_metric_streamer_info()
/linux-6.12.1/drivers/misc/ibmasm/
Dcommand.c20 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size) in ibmasm_new_command() argument
24 if (buffer_size > IBMASM_CMD_MAX_BUFFER_SIZE) in ibmasm_new_command()
32 cmd->buffer = kzalloc(buffer_size, GFP_KERNEL); in ibmasm_new_command()
37 cmd->buffer_size = buffer_size; in ibmasm_new_command()
168 memcpy_fromio(cmd->buffer, response, min(size, cmd->buffer_size)); in ibmasm_receive_command_response()
/linux-6.12.1/drivers/gpu/drm/etnaviv/
Detnaviv_hwdb.c25 .buffer_size = 0,
56 .buffer_size = 0,
88 .buffer_size = 0,
120 .buffer_size = 0,
151 .buffer_size = 0,
183 .buffer_size = 0,
215 .buffer_size = 0,
247 .buffer_size = 0,
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
Dconversion.c82 uint32_t buffer_size) in convert_float_matrix() argument
90 for (i = 0; i < buffer_size; ++i) { in convert_float_matrix()
125 * @buffer_size: size of the array of register values
132 uint32_t buffer_size) in convert_hw_matrix() argument
134 for (int i = 0; i < buffer_size; ++i) in convert_hw_matrix()
/linux-6.12.1/sound/pci/aw2/
Daw2-saa7146.c145 unsigned long buffer_size) in snd_aw2_saa7146_pcm_init_playback() argument
181 WRITEREG(dma_addr + buffer_size, ProtA2_out); in snd_aw2_saa7146_pcm_init_playback()
192 WRITEREG(dma_addr + buffer_size, ProtA1_out); in snd_aw2_saa7146_pcm_init_playback()
202 unsigned long buffer_size) in snd_aw2_saa7146_pcm_init_capture() argument
238 WRITEREG(dma_addr + buffer_size, ProtA1_in); in snd_aw2_saa7146_pcm_init_capture()
375 unsigned int buffer_size) in snd_aw2_saa7146_get_hw_ptr_playback() argument
384 if (ptr == buffer_size) in snd_aw2_saa7146_get_hw_ptr_playback()
391 if (ptr == buffer_size) in snd_aw2_saa7146_get_hw_ptr_playback()
400 unsigned int buffer_size) in snd_aw2_saa7146_get_hw_ptr_capture() argument
408 if (ptr == buffer_size) in snd_aw2_saa7146_get_hw_ptr_capture()
Daw2-saa7146.h44 unsigned long buffer_size);
49 unsigned long buffer_size);
78 buffer_size);
85 buffer_size);

12345678910>>...20