/linux/fs/pstore/ |
A D | ram_core.c | 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() 215 prz->buffer_size -= ecc_total; in persistent_ram_init_ecc() 323 s += c - prz->buffer_size; in persistent_ram_write() 324 c = prz->buffer_size; in persistent_ram_write() 352 s += c - prz->buffer_size; in persistent_ram_write_user() 353 c = prz->buffer_size; in persistent_ram_write_user() 517 if (buffer_size(prz) == 0) { in persistent_ram_post_init() [all …]
|
A D | zone.c | 84 size_t buffer_size; member 180 if (off > zone->buffer_size) in psz_zone_read_buffer() 192 if (off > zone->buffer_size) in psz_zone_read_oldbuf() 208 if (off > zone->buffer_size) in psz_zone_write() 414 zone->buffer_size); in psz_kmsg_recover_meta() 422 zone->buffer_size); in psz_kmsg_recover_meta() 445 zone->buffer_size, in psz_kmsg_recover_meta() 839 if (unlikely(cnt > zone->buffer_size)) { in psz_record_write() 840 buf += cnt - zone->buffer_size; in psz_record_write() 841 cnt = zone->buffer_size; in psz_record_write() [all …]
|
/linux/sound/core/ |
A D | pcm_trace.h | 22 __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
|
A D | rawmidi.c | 156 runtime->buffer_size = PAGE_SIZE; in snd_rawmidi_runtime_create() 161 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create() 686 if (params->buffer_size < 32 || params->buffer_size > 1024L * 1024L) in resize_runtime_buffer() 692 if (params->buffer_size != runtime->buffer_size) { in resize_runtime_buffer() 704 runtime->buffer_size = params->buffer_size; in resize_runtime_buffer() 1355 runtime->hw_ptr %= runtime->buffer_size; in __snd_rawmidi_transmit_ack() 1632 unsigned long buffer_size, avail, xruns; in snd_rawmidi_proc_info_read() local 1654 buffer_size = runtime->buffer_size; in snd_rawmidi_proc_info_read() 1662 buffer_size, avail); in snd_rawmidi_proc_info_read() 1681 buffer_size = runtime->buffer_size; in snd_rawmidi_proc_info_read() [all …]
|
/linux/fs/9p/ |
A D | xattr.c | 18 void *buffer, size_t buffer_size) in v9fs_fid_xattr_get() argument 23 struct kvec kvec = {.iov_base = buffer, .iov_len = buffer_size}; in v9fs_fid_xattr_get() 27 iov_iter_kvec(&to, READ, &kvec, 1, buffer_size); in v9fs_fid_xattr_get() 36 if (attr_size > buffer_size) { in v9fs_fid_xattr_get() 37 if (!buffer_size) /* request to get the attr_size */ in v9fs_fid_xattr_get() 63 void *buffer, size_t buffer_size) in v9fs_xattr_get() argument 69 name, buffer_size); in v9fs_xattr_get() 73 ret = v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get() 137 ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in v9fs_listxattr() argument 139 return v9fs_xattr_get(dentry, NULL, buffer, buffer_size); in v9fs_listxattr()
|
A D | xattr.h | 18 void *buffer, size_t buffer_size); 20 void *buffer, size_t buffer_size); 26 size_t buffer_size);
|
/linux/drivers/android/ |
A D | binder_alloc.c | 74 size_t buffer_size; in binder_insert_free_buffer() local 92 if (new_buffer_size < buffer_size) in binder_insert_free_buffer() 394 size_t buffer_size; in binder_alloc_new_buf_locked() local 440 if (size < buffer_size) { in binder_alloc_new_buf_locked() 443 } else if (size > buffer_size) in binder_alloc_new_buf_locked() 507 if (buffer_size != size) { in binder_alloc_new_buf_locked() 655 size_t size, buffer_size; in binder_free_buf_locked() local 668 BUG_ON(size > buffer_size); in binder_free_buf_locked() 758 if (alloc->buffer_size) { in binder_alloc_mmap_handler() 801 alloc->buffer_size = 0; in binder_alloc_mmap_handler() [all …]
|
/linux/drivers/platform/x86/dell/dell-wmi-sysman/ |
A D | biosattr-interface.c | 52 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()
|
A D | passwordattr-interface.c | 44 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/arch/powerpc/boot/ |
A D | decompress.c | 50 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/tools/lib/traceevent/ |
A D | trace-seq.c | 47 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()
|
/linux/sound/pci/aw2/ |
A D | aw2-saa7146.c | 145 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()
|
A D | aw2-saa7146.h | 43 unsigned long buffer_size); 48 unsigned long buffer_size); 77 buffer_size); 84 buffer_size);
|
/linux/arch/mips/kernel/ |
A D | rtlx.c | 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() 305 fl = min(count, (size_t) rt->buffer_size - rt->rt_write); in rtlx_write() [all …]
|
/linux/drivers/misc/ibmasm/ |
A D | command.c | 20 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/drivers/net/ethernet/cavium/liquidio/ |
A D | octeon_console.c | 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() 791 if (rd_idx + bytes_to_read >= console->buffer_size) in octeon_console_read() 792 bytes_to_read = console->buffer_size - rd_idx; in octeon_console_read() [all …]
|
/linux/sound/pci/ |
A D | sis7019.c | 76 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() 525 leo = runtime->buffer_size - 1; in sis_pcm_playback_prepare() 535 voice->buffer_size = runtime->buffer_size; in sis_pcm_playback_prepare() 705 u16 buffer_size, period_size; in sis_prepare_timing_voice() local 714 period_size = buffer_size; in sis_prepare_timing_voice() 761 timing->buffer_size = buffer_size; in sis_prepare_timing_voice() 775 control = timing->buffer_size - 1; in sis_prepare_timing_voice() 777 sso_eso = timing->buffer_size - 1; in sis_prepare_timing_voice() [all …]
|
/linux/security/integrity/ima/ |
A D | ima_kexec.c | 18 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/fs/erofs/ |
A D | xattr.c | 327 int buffer_size, index; member 352 int err = it->buffer_size < value_sz ? -ERANGE : 0; in xattr_checkbuffer() 354 it->buffer_size = value_sz; in xattr_checkbuffer() 391 return ret ? ret : it->buffer_size; in inline_getxattr() 427 return ret ? ret : it->buffer_size; in shared_getxattr() 442 void *buffer, size_t buffer_size) in erofs_getxattr() argument 462 it.buffer_size = buffer_size; in erofs_getxattr() 533 int buffer_size, buffer_ofs; member 559 + entry->e_name_len + 1 > it->buffer_size) in xattr_entrylist() 651 char *buffer, size_t buffer_size) in erofs_listxattr() argument [all …]
|
/linux/sound/soc/sof/ |
A D | trace.c | 236 loff_t pos, size_t buffer_size) in sof_trace_avail() argument 246 return buffer_size - pos; in sof_trace_avail() 256 loff_t pos, size_t buffer_size) in sof_wait_trace_avail() argument 259 size_t ret = sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail() 285 return sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail() 295 size_t avail, buffer_size = dfse->size; in sof_dfsentry_trace_read() local 309 lpos = do_div(lpos_64, buffer_size); in sof_dfsentry_trace_read() 311 if (count > buffer_size - lpos) /* min() not used to avoid sparse warnings */ in sof_dfsentry_trace_read() 312 count = buffer_size - lpos; in sof_dfsentry_trace_read() 315 avail = sof_wait_trace_avail(sdev, lpos, buffer_size); in sof_dfsentry_trace_read()
|
A D | sof-probes.c | 62 size_t buffer_size) in sof_ipc_probe_init() argument 76 msg->dma[0].dma_buffer_size = buffer_size; in sof_ipc_probe_init() 289 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probe_compr_set_params() 342 if (count > rtd->buffer_size) in sof_probe_compr_copy() 343 count = rtd->buffer_size; in sof_probe_compr_copy() 345 div_u64_rem(rtd->total_bytes_transferred, rtd->buffer_size, &offset); in sof_probe_compr_copy() 347 n = rtd->buffer_size - offset; in sof_probe_compr_copy()
|
/linux/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_hwdb.c | 24 .buffer_size = 0, 55 .buffer_size = 0, 86 .buffer_size = 0, 117 .buffer_size = 0,
|
/linux/drivers/media/usb/cx231xx/ |
A D | cx231xx-vbi.c | 76 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() 443 u8 sav_eav, u8 *p_buffer, u32 buffer_size) in cx231xx_get_vbi_line() argument [all …]
|
/linux/drivers/media/pci/ttpci/ |
A D | budget-core.c | 67 memset(budget->grabbing, 0x00, budget->buffer_size); in start_ts_capture() 124 if (budget->buffer_size > budget->buffer_height * budget->buffer_width) { in start_ts_capture() 131 saa7146_write(dev, PROT_ADDR3, budget->buffer_size); in start_ts_capture() 189 if (newdma >= budget->buffer_size) in vpeirq() 201 count = budget->buffer_size - olddma; in vpeirq() 460 budget->buffer_size = 2 * budget->buffer_height * budget->buffer_width; in ttpci_budget_init() 463 budget->buffer_size = budget->buffer_height * budget->buffer_width; in ttpci_budget_init() 465 budget->buffer_warning_threshold = budget->buffer_size * 80/100; in ttpci_budget_init() 471 budget->buffer_size > budget->buffer_width * budget->buffer_height ? "odd/even" : "single", in ttpci_budget_init() 473 printk("%s: dma buffer size %u\n", budget->dev->name, budget->buffer_size); in ttpci_budget_init() [all …]
|
/linux/sound/soc/ti/ |
A D | omap-mcbsp.c | 693 if (mcbsp->pdata->buffer_size) { in omap_mcbsp_init() 721 if (mcbsp->pdata->buffer_size) in omap_mcbsp_init() 739 if (mcbsp->pdata->buffer_size == 0) in omap_mcbsp_set_threshold() 772 size = mcbsp->pdata->buffer_size; in omap_mcbsp_hwrule_min_buffersize() 803 if (mcbsp->pdata->buffer_size) { in omap_mcbsp_dai_startup() 905 if (mcbsp->pdata->buffer_size == 0) in omap_mcbsp_dai_delay() 933 unsigned int buffer_size = mcbsp->pdata->buffer_size; in omap_mcbsp_dai_hw_params() local 948 if (buffer_size) { in omap_mcbsp_dai_hw_params() 1380 int buffer_size; in asoc_mcbsp_probe() local 1390 pdata->buffer_size = buffer_size; in asoc_mcbsp_probe() [all …]
|