Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/Linux-v6.6/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.c84 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()
365 if (rcnt != zone->buffer_size + sizeof(*buf)) in psz_kmsg_recover_data()
[all …]
/Linux-v6.6/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-v6.6/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.c174 runtime->buffer_size = PAGE_SIZE; in snd_rawmidi_runtime_create()
179 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
180 runtime->buffer = kvzalloc(runtime->buffer_size, GFP_KERNEL); in snd_rawmidi_runtime_create()
235 runtime->avail = is_input ? 0 : runtime->buffer_size; in __reset_runtime_ptrs()
276 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
282 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
285 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
735 if (params->buffer_size < 32 || params->buffer_size > 1024L * 1024L) in resize_runtime_buffer()
737 if (framing == SNDRV_RAWMIDI_MODE_FRAMING_TSTAMP && (params->buffer_size & 0x1f) != 0) in resize_runtime_buffer()
739 if (params->avail_min < 1 || params->avail_min > params->buffer_size) in resize_runtime_buffer()
[all …]
/Linux-v6.6/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
142 return v9fs_xattr_get(dentry, NULL, buffer, buffer_size); in v9fs_listxattr()
Dxattr.h16 void *buffer, size_t buffer_size);
18 void *buffer, size_t buffer_size);
24 size_t buffer_size);
/Linux-v6.6/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-v6.6/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()
357 if (num_buffers > 50 || total_alloc_size > alloc->buffer_size / 4) { in debug_low_async_space_locked()
379 size_t buffer_size; in binder_alloc_new_buf_locked() local
424 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
426 if (size < buffer_size) { in binder_alloc_new_buf_locked()
429 } else if (size > buffer_size) in binder_alloc_new_buf_locked()
447 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
[all …]
/Linux-v6.6/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-v6.6/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.c303 static int hp_populate_integer_elements_from_buffer(u8 *buffer_ptr, u32 *buffer_size, in hp_populate_integer_elements_from_buffer() argument
307 int dst_size = *buffer_size / sizeof(u16); in hp_populate_integer_elements_from_buffer()
333 hp_get_string_from_buffer(&buffer_ptr, buffer_size, dst, dst_size); in hp_populate_integer_elements_from_buffer()
340 ret = hp_get_common_data_from_buffer(&buffer_ptr, buffer_size, &integer_data->common); in hp_populate_integer_elements_from_buffer()
345 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_integer_elements_from_buffer()
351 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_integer_elements_from_buffer()
357 ret = hp_get_integer_from_buffer(&buffer_ptr, buffer_size, in hp_populate_integer_elements_from_buffer()
373 int hp_populate_integer_buffer_data(u8 *buffer_ptr, u32 *buffer_size, int instance_id, in hp_populate_integer_buffer_data() argument
382 ret = hp_populate_integer_elements_from_buffer(buffer_ptr, buffer_size, in hp_populate_integer_buffer_data()
/Linux-v6.6/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()
274 unsigned int buffer_size) in hda_cldma_init() argument
279 ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV_SG, bus->dev, buffer_size, &cl->dmab_data); in hda_cldma_init()
[all …]
/Linux-v6.6/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-v6.6/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.h43 unsigned long buffer_size);
48 unsigned long buffer_size);
77 buffer_size);
84 buffer_size);
/Linux-v6.6/arch/mips/kernel/
Drtlx.c41 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()
305 fl = min(count, (size_t) rt->buffer_size - rt->rt_write); in rtlx_write()
[all …]
/Linux-v6.6/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-v6.6/Documentation/translations/zh_CN/core-api/
Dcircular-buffers.rst82 CIRC_SPACE(head_index, tail_index, buffer_size);
89 CIRC_SPACE_TO_END(head_index, tail_index, buffer_size);
97 CIRC_CNT(head_index, tail_index, buffer_size);
104 CIRC_CNT_TO_END(head_index, tail_index, buffer_size);
108 这里的每一个宏名义上都会返回一个介于0和buffer_size-1之间的值,但是:
/Linux-v6.6/security/integrity/ima/
Dima_kexec.c18 static int ima_dump_measurement_list(unsigned long *buffer_size, void **buffer, in ima_dump_measurement_list() argument
56 khdr.buffer_size = file.count; in ima_dump_measurement_list()
60 khdr.buffer_size = cpu_to_le64(khdr.buffer_size); in ima_dump_measurement_list()
68 *buffer_size = file.count; in ima_dump_measurement_list()
/Linux-v6.6/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-v6.6/drivers/net/ethernet/cavium/liquidio/
Docteon_console.c676 console->buffer_size = octeon_read_device_mem32(oct, coreaddr); in octeon_add_console()
728 console->buffer_size = 0; in octeon_remove_consoles()
736 static inline int octeon_console_free_bytes(u32 buffer_size, in octeon_console_free_bytes() argument
740 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_free_bytes()
743 return ((buffer_size - 1) - (wr_idx - rd_idx)) % buffer_size; in octeon_console_free_bytes()
746 static inline int octeon_console_avail_bytes(u32 buffer_size, in octeon_console_avail_bytes() argument
750 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_avail_bytes()
753 return buffer_size - 1 - in octeon_console_avail_bytes()
754 octeon_console_free_bytes(buffer_size, wr_idx, rd_idx); in octeon_console_avail_bytes()
780 bytes_to_read = octeon_console_avail_bytes(console->buffer_size, in octeon_console_read()
[all …]
/Linux-v6.6/tools/testing/selftests/alsa/conf.d/
DLenovo_ThinkPad_P1_Gen2.conf48 buffer_size 4096
56 buffer_size 192000
64 buffer_size 192000
/Linux-v6.6/sound/pci/
Dsis7019.c76 u16 buffer_size; member
196 if (voice->sso >= voice->buffer_size) in sis_update_sso()
197 voice->sso -= voice->buffer_size; in sis_update_sso()
268 if (voice->vperiod < voice->buffer_size) { in sis_update_voice()
440 unsigned int period_size, buffer_size; in sis_alloc_timing_voice() local
449 buffer_size = params_buffer_size(hw_params); in sis_alloc_timing_voice()
450 needed = (period_size != buffer_size && in sis_alloc_timing_voice()
451 period_size != (buffer_size / 2)); in sis_alloc_timing_voice()
525 leo = runtime->buffer_size - 1; in sis_pcm_playback_prepare()
529 if (runtime->period_size == (runtime->buffer_size / 2)) { in sis_pcm_playback_prepare()
[all …]

12345678910>>...17