Home
last modified time | relevance | path

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

12345678910>>...16

/kernel/linux/linux-5.10/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
184 if (off > zone->buffer_size) in psz_zone_read_buffer()
186 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_buffer()
196 if (off > zone->buffer_size) in psz_zone_read_oldbuf()
198 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_oldbuf()
212 if (off > zone->buffer_size) in psz_zone_write()
215 wlen = min_t(size_t, len, zone->buffer_size - off); in psz_zone_write()
247 wlen = zone->buffer_size + sizeof(*zone->buffer); in psz_zone_write()
369 rcnt = info->read((char *)buf, zone->buffer_size + sizeof(*buf), in psz_kmsg_recover_data()
371 if (rcnt != zone->buffer_size + sizeof(*buf)) in psz_kmsg_recover_data()
[all …]
/kernel/linux/linux-5.10/fs/9p/
Dxattr.c26 void *buffer, size_t buffer_size) in v9fs_fid_xattr_get() argument
31 struct kvec kvec = {.iov_base = buffer, .iov_len = buffer_size}; in v9fs_fid_xattr_get()
35 iov_iter_kvec(&to, READ, &kvec, 1, buffer_size); in v9fs_fid_xattr_get()
44 if (attr_size > buffer_size) { in v9fs_fid_xattr_get()
45 if (!buffer_size) /* request to get the attr_size */ in v9fs_fid_xattr_get()
71 void *buffer, size_t buffer_size) in v9fs_xattr_get() argument
76 name, buffer_size); in v9fs_xattr_get()
81 return v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get()
135 ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in v9fs_listxattr() argument
137 return v9fs_xattr_get(dentry, NULL, buffer, buffer_size); in v9fs_listxattr()
/kernel/linux/linux-5.10/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.c156 runtime->buffer_size = PAGE_SIZE; in snd_rawmidi_runtime_create()
161 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
162 runtime->buffer = kvzalloc(runtime->buffer_size, GFP_KERNEL); in snd_rawmidi_runtime_create()
203 runtime->avail = is_input ? 0 : runtime->buffer_size; in __reset_runtime_ptrs()
233 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
237 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
240 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
684 if (params->buffer_size < 32 || params->buffer_size > 1024L * 1024L) in resize_runtime_buffer()
686 if (params->avail_min < 1 || params->avail_min > params->buffer_size) in resize_runtime_buffer()
688 if (params->buffer_size != runtime->buffer_size) { in resize_runtime_buffer()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/boot/
Ddecompress.c51 static long flush(void *v, unsigned long buffer_size) in flush() argument
53 unsigned long end = decompressed_bytes + buffer_size; in flush()
54 unsigned long size = buffer_size; in flush()
68 decompressed_bytes += buffer_size; in flush()
69 return buffer_size; in flush()
87 return buffer_size; in flush()
/kernel/linux/linux-5.10/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()
371 if (num_buffers > 50 || total_alloc_size > alloc->buffer_size / 4) { in debug_low_async_space_locked()
388 size_t buffer_size; in binder_alloc_new_buf_locked() local
432 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
434 if (size < buffer_size) { in binder_alloc_new_buf_locked()
437 } else if (size > buffer_size) in binder_alloc_new_buf_locked()
455 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
[all …]
/kernel/linux/linux-5.10/drivers/oprofile/
Devent_buffer.c32 static unsigned long buffer_size; variable
55 if (buffer_pos == buffer_size) { in add_event_entry()
61 if (++buffer_pos == buffer_size - buffer_watershed) { in add_event_entry()
86 buffer_size = oprofile_buffer_size; in alloc_event_buffer()
90 if (buffer_watershed >= buffer_size) in alloc_event_buffer()
94 event_buffer = vmalloc(array_size(buffer_size, sizeof(unsigned long))); in alloc_event_buffer()
164 size_t const max = buffer_size * sizeof(unsigned long); in event_buffer_read()
/kernel/linux/linux-5.10/tools/lib/traceevent/
Dtrace-seq.c47 s->buffer_size = TRACE_SEQ_BUF_SIZE; in trace_seq_init()
48 s->buffer = malloc(s->buffer_size); in trace_seq_init()
87 buf = realloc(s->buffer, s->buffer_size + TRACE_SEQ_BUF_SIZE); in expand_buffer()
94 s->buffer_size += TRACE_SEQ_BUF_SIZE; in expand_buffer()
122 len = (s->buffer_size - 1) - s->len; in trace_seq_printf()
163 len = (s->buffer_size - 1) - s->len; in trace_seq_vprintf()
196 while (len > ((s->buffer_size - 1) - s->len)) in trace_seq_puts()
211 while (s->len >= (s->buffer_size - 1)) in trace_seq_putc()
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/sound/soc/sof/
Dtrace.c17 loff_t pos, size_t buffer_size) in sof_trace_avail() argument
27 return buffer_size - pos; in sof_trace_avail()
37 loff_t pos, size_t buffer_size) in sof_wait_trace_avail() argument
40 size_t ret = sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail()
66 return sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail()
76 size_t avail, buffer_size = dfse->size; in sof_dfsentry_trace_read() local
90 lpos = do_div(lpos_64, buffer_size); in sof_dfsentry_trace_read()
92 if (count > buffer_size - lpos) /* min() not used to avoid sparse warnings */ in sof_dfsentry_trace_read()
93 count = buffer_size - lpos; in sof_dfsentry_trace_read()
96 avail = sof_wait_trace_avail(sdev, lpos, buffer_size); in sof_dfsentry_trace_read()
Dcompress.c81 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probe_compr_set_params()
129 if (count > rtd->buffer_size) in sof_probe_compr_copy()
130 count = rtd->buffer_size; in sof_probe_compr_copy()
132 div_u64_rem(rtd->total_bytes_transferred, rtd->buffer_size, &offset); in sof_probe_compr_copy()
134 n = rtd->buffer_size - offset; in sof_probe_compr_copy()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_kexec.c17 static int ima_dump_measurement_list(unsigned long *buffer_size, void **buffer, in ima_dump_measurement_list() argument
55 khdr.buffer_size = file.count; in ima_dump_measurement_list()
59 khdr.buffer_size = cpu_to_le64(khdr.buffer_size); in ima_dump_measurement_list()
67 *buffer_size = file.count; in ima_dump_measurement_list()
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dqos_headroom.sh273 __mlnx_qos -i $swp --buffer_size=$size,0,0,0,0,0,0,0 &> /dev/null
278 __mlnx_qos -i $swp --buffer_size=$size,0,0,0,0,0,0,0 > /dev/null
286 __mlnx_qos -i $swp --buffer_size=0,0,0,0,0,0,0,0 > /dev/null
292 __mlnx_qos -i $swp --buffer_size=$size,0,0,0,0,0,0,0 > /dev/null
295 __mlnx_qos -i $swp --buffer_size=0,0,0,0,0,0,0,0 > /dev/null
300 __mlnx_qos -i $swp --buffer_size=$size,0,0,0,0,0,0,0 > /dev/null
305 __mlnx_qos -i $swp --buffer_size=$size,0,0,0,0,0,0,0 &> /dev/null
366 __mlnx_qos -i $swp --buffer_size=$size,0,0,0,0,0,0,0 > /dev/null
369 __mlnx_qos -i $swp --buffer_size=0,0,0,0,0,0,0,0 > /dev/null
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Docteon_console.c677 console->buffer_size = octeon_read_device_mem32(oct, coreaddr); in octeon_add_console()
729 console->buffer_size = 0; in octeon_remove_consoles()
737 static inline int octeon_console_free_bytes(u32 buffer_size, in octeon_console_free_bytes() argument
741 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_free_bytes()
744 return ((buffer_size - 1) - (wr_idx - rd_idx)) % buffer_size; in octeon_console_free_bytes()
747 static inline int octeon_console_avail_bytes(u32 buffer_size, in octeon_console_avail_bytes() argument
751 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_avail_bytes()
754 return buffer_size - 1 - in octeon_console_avail_bytes()
755 octeon_console_free_bytes(buffer_size, wr_idx, rd_idx); in octeon_console_avail_bytes()
781 bytes_to_read = octeon_console_avail_bytes(console->buffer_size, in octeon_console_read()
[all …]
/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/
Dnet_resolv_test_006.cpp35 const int buffer_size = 20; variable
47 char str1[buffer_size], str2[buffer_size]; in EtherNtoaTest()
Dnet_resolv_test_007.cpp34 const int buffer_size = 20; variable
47 char str1[buffer_size], str2[buffer_size]; in EtherNtoarTest()
/kernel/linux/linux-5.10/sound/pci/
Dsis7019.c77 u16 buffer_size; member
197 if (voice->sso >= voice->buffer_size) in sis_update_sso()
198 voice->sso -= voice->buffer_size; in sis_update_sso()
269 if (voice->vperiod < voice->buffer_size) { in sis_update_voice()
441 unsigned int period_size, buffer_size; in sis_alloc_timing_voice() local
450 buffer_size = params_buffer_size(hw_params); in sis_alloc_timing_voice()
451 needed = (period_size != buffer_size && in sis_alloc_timing_voice()
452 period_size != (buffer_size / 2)); in sis_alloc_timing_voice()
526 leo = runtime->buffer_size - 1; in sis_pcm_playback_prepare()
530 if (runtime->period_size == (runtime->buffer_size / 2)) { in sis_pcm_playback_prepare()
[all …]
/kernel/linux/build/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/
Denhancedswap05.sh50 buffer_size=$(cat $zswapd_s | grep 'buffer_size' | awk -F ':' '{print$2}')
53 echo 0 $(( $buffer_size + 50 )) $(( $buffer_size + 100 )) 0 > $avail_buffers
Denhancedswap04.sh48 buffer_size=$(cat $zswapd_s | grep 'buffer_size' | awk -F ':' '{print$2}')
57 echo 0 $(( $buffer_size + 50 )) $(( $buffer_size + 100 )) 0 > $avail_buffers
/kernel/linux/linux-5.10/fs/erofs/
Dxattr.c328 int buffer_size, index; member
353 int err = it->buffer_size < value_sz ? -ERANGE : 0; in xattr_checkbuffer()
355 it->buffer_size = value_sz; in xattr_checkbuffer()
392 return ret ? ret : it->buffer_size; in inline_getxattr()
428 return ret ? ret : it->buffer_size; in shared_getxattr()
443 void *buffer, size_t buffer_size) in erofs_getxattr() argument
463 it.buffer_size = buffer_size; in erofs_getxattr()
534 int buffer_size, buffer_ofs; member
560 + entry->e_name_len + 1 > it->buffer_size) in xattr_entrylist()
652 char *buffer, size_t buffer_size) in erofs_listxattr() argument
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c76 u32 bytes_parsed = 0, buffer_size = 0; in cx231xx_isoc_vbi_copy() local
93 buffer_size = urb->actual_length; in cx231xx_isoc_vbi_copy()
95 if (buffer_size > 0) { in cx231xx_isoc_vbi_copy()
118 buffer_size - bytes_parsed); /* buffer size */ in cx231xx_isoc_vbi_copy()
124 while (bytes_parsed < buffer_size) { in cx231xx_isoc_vbi_copy()
129 buffer_size - bytes_parsed, /* buffer size */ in cx231xx_isoc_vbi_copy()
135 if (sav_eav && (bytes_parsed < buffer_size)) { in cx231xx_isoc_vbi_copy()
139 buffer_size-bytes_parsed);/*buf size*/ in cx231xx_isoc_vbi_copy()
145 memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4); in cx231xx_isoc_vbi_copy()
444 u8 sav_eav, u8 *p_buffer, u32 buffer_size) in cx231xx_get_vbi_line() argument
[all …]

12345678910>>...16