| /drivers/ntb/hw/intel/ |
| A D | ntb_hw_gen3.c | 264 size_t buf_size; in ndev_ntb3_debugfs_read() local 271 buf_size = min(count, 0x800ul); in ndev_ntb3_debugfs_read() 273 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_ntb3_debugfs_read() 279 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 282 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 286 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 288 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 305 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 307 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 309 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() [all …]
|
| A D | ntb_hw_gen4.c | 225 size_t buf_size; in ndev_ntb4_debugfs_read() local 232 buf_size = min(count, 0x800ul); in ndev_ntb4_debugfs_read() 234 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_ntb4_debugfs_read() 240 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 243 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 247 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 249 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 266 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 268 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 270 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() [all …]
|
| A D | ntb_hw_gen1.c | 498 size_t buf_size; in ndev_ntb_debugfs_read() local 506 buf_size = min(count, 0x800ul); in ndev_ntb_debugfs_read() 508 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_ntb_debugfs_read() 514 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 517 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 528 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 532 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 534 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 551 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 553 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() [all …]
|
| /drivers/media/platform/ti/omap3isp/ |
| A D | ispstat.c | 101 buf->buf_size + AF_EXTRA_DATA : buf->buf_size; in isp_stat_buf_check_magic() 141 stat->buf_size + AF_EXTRA_DATA : stat->buf_size; in isp_stat_buf_insert_magic() 238 stat->active_buf->buf_size = stat->buf_size; in isp_stat_buf_queue() 308 if (buf->buf_size > data->buf_size) { in isp_stat_buf_get() 501 data->buf_size = buf->buf_size; in omap3isp_stat_request_statistics() 541 u32 buf_size = user_cfg->buf_size; in omap3isp_stat_config() local 557 if (buf_size != user_cfg->buf_size) in omap3isp_stat_config() 575 buf_size = user_cfg->buf_size * 2 + MAGIC_SIZE; in omap3isp_stat_config() 585 buf_size += recover_cfg->buf_size * in omap3isp_stat_config() 588 buf_size = PAGE_ALIGN(buf_size); in omap3isp_stat_config() [all …]
|
| A D | isph3a_aewb.c | 75 aewb->buf_size = conf->buf_size; in h3a_aewb_setup_regs() 115 u32 buf_size; in h3a_aewb_validate_params() local 163 buf_size = h3a_aewb_get_buf_size(user_cfg); in h3a_aewb_validate_params() 164 if (buf_size > user_cfg->buf_size) in h3a_aewb_validate_params() 165 user_cfg->buf_size = buf_size; in h3a_aewb_validate_params() 166 else if (user_cfg->buf_size > OMAP3ISP_AEWB_MAX_BUF_SIZE) in h3a_aewb_validate_params() 167 user_cfg->buf_size = OMAP3ISP_AEWB_MAX_BUF_SIZE; in h3a_aewb_validate_params() 237 cur_cfg->buf_size = h3a_aewb_get_buf_size(cur_cfg); in h3a_aewb_set_params() 330 aewb_recover_cfg->buf_size = h3a_aewb_get_buf_size(aewb_recover_cfg); in omap3isp_h3a_aewb_init()
|
| A D | isph3a_af.c | 125 af->buf_size = conf->buf_size; in h3a_af_setup_regs() 159 u32 buf_size; in h3a_af_validate_params() local 216 buf_size = h3a_af_get_buf_size(user_cfg); in h3a_af_validate_params() 217 if (buf_size > user_cfg->buf_size) in h3a_af_validate_params() 219 user_cfg->buf_size = buf_size; in h3a_af_validate_params() 220 else if (user_cfg->buf_size > OMAP3ISP_AF_MAX_BUF_SIZE) in h3a_af_validate_params() 221 user_cfg->buf_size = OMAP3ISP_AF_MAX_BUF_SIZE; in h3a_af_validate_params() 301 cur_cfg->buf_size = h3a_af_get_buf_size(cur_cfg); in h3a_af_set_params() 388 af_recover_cfg->buf_size = h3a_af_get_buf_size(af_recover_cfg); in omap3isp_h3a_af_init()
|
| A D | isphist.c | 137 hist->buf_size = conf->buf_size; in hist_setup_regs() 194 cfg.src_maxburst = hist->buf_size / 4; in hist_buf_dma() 204 hist->buf_size, DMA_DEV_TO_MEM, in hist_buf_dma() 255 for (i = hist->buf_size / 16; i > 0; i--) { in hist_buf_pio() 308 u32 buf_size; in hist_validate_params() local 350 buf_size = hist_get_buf_size(user_cfg); in hist_validate_params() 351 if (buf_size > user_cfg->buf_size) in hist_validate_params() 353 user_cfg->buf_size = buf_size; in hist_validate_params() 354 else if (user_cfg->buf_size > OMAP3ISP_HIST_MAX_BUF_SIZE) in hist_validate_params() 355 user_cfg->buf_size = OMAP3ISP_HIST_MAX_BUF_SIZE; in hist_validate_params() [all …]
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_eeprom.c | 93 u8 *eeprom_buf, u32 buf_size, bool read) in __amdgpu_eeprom_xfer() argument 110 for (r = 0; buf_size > 0; in __amdgpu_eeprom_xfer() 111 buf_size -= len, eeprom_addr += len, eeprom_buf += len) { in __amdgpu_eeprom_xfer() 137 buf_size); in __amdgpu_eeprom_xfer() 144 len = min(U16_MAX, buf_size); in __amdgpu_eeprom_xfer() 182 u8 *eeprom_buf, u32 buf_size, bool read) in amdgpu_eeprom_xfer() argument 198 eeprom_buf, buf_size, read); in amdgpu_eeprom_xfer() 202 eeprom_addr, buf_size, in amdgpu_eeprom_xfer() 212 for ( ; buf_size > 0; in amdgpu_eeprom_xfer() 213 buf_size -= ps, eeprom_addr += ps, eeprom_buf += ps) { in amdgpu_eeprom_xfer() [all …]
|
| /drivers/scsi/fnic/ |
| A D | fnic_trace.c | 217 int buf_size = debug->buf_size; in fnic_get_stats_data() local 222 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 227 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 473 int buf_size = info->buf_size; in fnic_get_debug_info() local 478 len += snprintf(info->debug_buffer + len, buf_size - len, in fnic_get_debug_info() 482 len += snprintf(info->debug_buffer + len, buf_size - len, in fnic_get_debug_info() 488 snprintf(info->debug_buffer + len, buf_size - len, in fnic_get_debug_info() 492 snprintf(info->debug_buffer + len, buf_size - len, in fnic_get_debug_info() 496 snprintf(info->debug_buffer + len, buf_size - len, in fnic_get_debug_info() 501 snprintf(info->debug_buffer + len, buf_size - len, in fnic_get_debug_info() [all …]
|
| /drivers/media/pci/cx18/ |
| A D | cx18-queue.c | 93 u32 buf_size = s->buf_size; in _cx18_mdl_update_bufs_for_cpu() local 98 if (bytesused >= buf_size) { in _cx18_mdl_update_bufs_for_cpu() 99 buf->bytesused = buf_size; in _cx18_mdl_update_bufs_for_cpu() 100 bytesused -= buf_size; in _cx18_mdl_update_bufs_for_cpu() 294 cx18_writel(cx, s->buf_size, in cx18_load_queues() 323 u32 buf_size = s->buf_size; in _cx18_mdl_sync_for_device() local 329 buf_size, dma); in _cx18_mdl_sync_for_device() 341 s->name, s->buffers, s->buf_size, in cx18_stream_alloc() 342 s->buffers * s->buf_size / 1024, in cx18_stream_alloc() 389 buf->buf, s->buf_size, in cx18_stream_alloc() [all …]
|
| /drivers/media/platform/verisilicon/ |
| A D | hantro_postproc.c | 201 unsigned int buf_size; in hantro_postproc_buffer_size() local 203 buf_size = ctx->ref_fmt.plane_fmt[0].sizeimage; in hantro_postproc_buffer_size() 205 buf_size += hantro_h264_mv_size(ctx->ref_fmt.width, in hantro_postproc_buffer_size() 208 buf_size += hantro_vp9_mv_size(ctx->ref_fmt.width, in hantro_postproc_buffer_size() 211 buf_size += hantro_hevc_mv_size(ctx->ref_fmt.width, in hantro_postproc_buffer_size() 218 buf_size += hantro_av1_mv_size(ctx->ref_fmt.width, in hantro_postproc_buffer_size() 221 return buf_size; in hantro_postproc_buffer_size() 228 unsigned int buf_size = hantro_postproc_buffer_size(ctx); in hantro_postproc_alloc() local 230 if (!buf_size) in hantro_postproc_alloc() 242 priv->size = buf_size; in hantro_postproc_alloc() [all …]
|
| /drivers/media/pci/ivtv/ |
| A D | ivtv-queue.c | 15 if (s->buf_size - buf->bytesused < copybytes) in ivtv_buf_copy_from_user() 16 copybytes = s->buf_size - buf->bytesused; in ivtv_buf_copy_from_user() 54 q->length += s->buf_size; in ivtv_enqueue() 69 q->length -= s->buf_size; in ivtv_dequeue() 83 from->length -= s->buf_size; in ivtv_queue_move_buf() 89 to->length += s->buf_size; in ivtv_queue_move_buf() 144 steal->length -= s->buf_size; in ivtv_queue_move() 148 from->length += s->buf_size; in ivtv_queue_move() 149 bytes_available += s->buf_size; in ivtv_queue_move() 192 s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024); in ivtv_stream_alloc() [all …]
|
| /drivers/staging/most/dim2/ |
| A D | hal.c | 476 if (buf_size > max_size) in dim_norm_ctrl_async_buffer_size() 479 return buf_size; in dim_norm_ctrl_async_buffer_size() 488 buf_size = max_size; in norm_isoc_buffer_size() 505 buf_size = max_size; in norm_sync_buffer_size() 507 n = buf_size / unit; in norm_sync_buffer_size() 648 if (buf_size <= 0) in channel_start() 652 buf_size != dim_norm_ctrl_async_buffer_size(buf_size)) in channel_start() 657 buf_size != norm_isoc_buffer_size(buf_size, ch->packet_length)) in channel_start() 662 buf_size != norm_sync_buffer_size(buf_size, ch->bytes_per_frame)) in channel_start() 672 dbrcnt_enq(buf_size); in channel_start() [all …]
|
| A D | dim2.c | 163 u16 buf_size; in try_start_dim_transfer() local 184 buf_size = mbo->buffer_length; in try_start_dim_transfer() 451 u16 const buf_size = ccfg->buffer_size; in configure_channel() local 477 if (new_size != buf_size) in configure_channel() 479 hdm_ch->name, buf_size, new_size); in configure_channel() 491 if (new_size != buf_size) in configure_channel() 493 hdm_ch->name, buf_size, new_size); in configure_channel() 506 if (new_size != buf_size) in configure_channel() 508 hdm_ch->name, buf_size, new_size); in configure_channel() 520 if (new_size != buf_size) in configure_channel() [all …]
|
| /drivers/infiniband/sw/rxe/ |
| A D | rxe_queue.c | 14 size_t buf_size, struct rxe_mmap_info **ip_p) in do_mmap_info() argument 20 ip = rxe_create_mmap_info(rxe, buf_size, udata, buf); in do_mmap_info() 52 memset(q->buf->data, 0, q->buf_size - sizeof(struct rxe_queue_buf)); in rxe_queue_reset() 59 size_t buf_size; in rxe_queue_init() local 87 buf_size = sizeof(struct rxe_queue_buf) + num_slots * elem_size; in rxe_queue_init() 89 q->buf = vmalloc_user(buf_size); in rxe_queue_init() 96 q->buf_size = buf_size; in rxe_queue_init() 163 new_q->buf_size, &new_q->ip); in rxe_queue_resize()
|
| /drivers/dma/ |
| A D | dmatest.c | 115 unsigned int buf_size; member 354 for ( ; i < buf_size; i++) in dmatest_init_srcs() 372 for ( ; i < buf_size; i++) in dmatest_init_dsts() 591 unsigned int buf_size; in dmatest_func() local 658 buf_size = params->buf_size; in dmatest_func() 659 if (1 << align > buf_size) { in dmatest_func() 714 len = buf_size; in dmatest_func() 741 buf_size, is_memset); in dmatest_func() 743 buf_size, is_memset); in dmatest_func() 758 um->len = buf_size; in dmatest_func() [all …]
|
| /drivers/ntb/hw/amd/ |
| A D | ntb_hw_amd.c | 844 size_t buf_size; in ndev_debugfs_read() local 851 buf_size = min(count, 0x800ul); in ndev_debugfs_read() 853 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_debugfs_read() 859 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 862 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 866 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 883 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 885 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 887 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 889 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() [all …]
|
| /drivers/hwtracing/coresight/ |
| A D | coresight-catu.c | 125 offset %= buf_size; in catu_get_table() 148 buf_size = tmc_sg_table_buf_size(catu_table); in catu_dump_table() 153 while (offset < buf_size) { in catu_dump_table() 154 table_end = offset + SZ_1M < buf_size ? in catu_dump_table() 155 offset + SZ_1M : buf_size; in catu_dump_table() 191 unsigned long offset, buf_size, table_end; in catu_populate_table() local 196 buf_size = tmc_sg_table_buf_size(catu_table); in catu_populate_table() 203 while (offset < buf_size) { in catu_populate_table() 210 table_end = (offset + SZ_1M) < buf_size ? in catu_populate_table() 211 (offset + SZ_1M) : buf_size; in catu_populate_table() [all …]
|
| A D | ultrasoc-smb.c | 41 sdb->data_size = sdb->buf_size; in smb_update_data_size() 47 sdb->buf_size); in smb_update_data_size() 60 sdb->buf_rdptr %= sdb->buf_size; in smb_update_read_ptr() 133 if (sdb->buf_rdptr + to_copy > sdb->buf_size) in smb_read() 134 to_copy = sdb->buf_size - sdb->buf_rdptr; in smb_read() 173 return sysfs_emit(buf, "0x%lx\n", drvdata->sdb.buf_size); in buf_size_show() 175 static DEVICE_ATTR_RO(buf_size); 350 if (sdb->buf_rdptr + to_copy > sdb->buf_size) in smb_sync_perf_buffer() 351 to_copy = sdb->buf_size - sdb->buf_rdptr; in smb_sync_perf_buffer() 434 sdb->buf_size = resource_size(res); in smb_init_data_buffer() [all …]
|
| /drivers/misc/vmw_vmci/ |
| A D | vmci_context.c | 686 *buf_size = 0; in vmci_ctx_get_chkpt_notifiers() 692 if (*buf_size < data_size) { in vmci_ctx_get_chkpt_notifiers() 693 *buf_size = data_size; in vmci_ctx_get_chkpt_notifiers() 704 *buf_size = data_size; in vmci_ctx_get_chkpt_notifiers() 718 if (*buf_size < data_size) { in vmci_ctx_get_chkpt_doorbells() 719 *buf_size = data_size; in vmci_ctx_get_chkpt_doorbells() 731 *buf_size = data_size; in vmci_ctx_get_chkpt_doorbells() 734 *buf_size = 0; in vmci_ctx_get_chkpt_doorbells() 746 u32 *buf_size, in vmci_ctx_get_chkpt_state() argument 769 *buf_size = 0; in vmci_ctx_get_chkpt_state() [all …]
|
| /drivers/net/wireless/ti/wlcore/ |
| A D | rx.c | 202 u32 buf_size; in wlcore_rx() local 220 buf_size = 0; in wlcore_rx() 227 if (buf_size + align_pkt_len > wl->aggr_buf_size) in wlcore_rx() 229 buf_size += align_pkt_len; in wlcore_rx() 234 if (buf_size == 0) { in wlcore_rx() 241 ret = wlcore_hw_prepare_read(wl, des, buf_size); in wlcore_rx() 246 buf_size, true); in wlcore_rx() 252 while (pkt_offset < buf_size) { in wlcore_rx()
|
| /drivers/net/wireless/ath/wcn36xx/ |
| A D | debug.c | 61 int buf_size; in write_file_bool_bmps() local 63 buf_size = min(count, (sizeof(buf)-1)); in write_file_bool_bmps() 64 if (copy_from_user(buf, user_buf, buf_size)) in write_file_bool_bmps() 105 int buf_size; in write_file_dump() local 112 buf_size = min(count, (sizeof(buf) - 1)); in write_file_dump() 113 if (copy_from_user(buf, user_buf, buf_size)) in write_file_dump()
|
| /drivers/char/tpm/ |
| A D | tpm2-space.c | 43 space->context_buf = kzalloc(buf_size, GFP_KERNEL); in tpm2_init_space() 47 space->session_buf = kzalloc(buf_size, GFP_KERNEL); in tpm2_init_space() 55 space->buf_size = buf_size; in tpm2_init_space() 126 unsigned int buf_size, unsigned int *offset) in tpm2_save_context() argument 155 if ((*offset + body_size) > buf_size) { in tpm2_save_context() 324 space->buf_size); in tpm2_prepare_space() 326 space->buf_size); in tpm2_prepare_space() 509 space->context_buf, space->buf_size, in tpm2_save_space() 526 space->session_buf, space->buf_size, in tpm2_save_space() 574 space->buf_size); in tpm2_commit_space() [all …]
|
| /drivers/ntb/test/ |
| A D | ntb_tool.c | 345 size_t buf_size; in tool_fn_read() local 352 buf_size = min(size, sizeof(buf)); in tool_fn_read() 645 size_t buf_size; in tool_mw_trans_read() local 648 buf_size = min_t(size_t, size, 512); in tool_mw_trans_read() 650 buf = kmalloc(buf_size, GFP_KERNEL); in tool_mw_trans_read() 873 size_t buf_size; in tool_peer_mw_trans_read() local 882 buf_size = min_t(size_t, size, 512); in tool_peer_mw_trans_read() 884 buf = kmalloc(buf_size, GFP_KERNEL); in tool_peer_mw_trans_read() 928 size_t buf_size, wsize; in tool_peer_mw_trans_write() local 933 buf_size = min(size, (sizeof(buf) - 1)); in tool_peer_mw_trans_write() [all …]
|
| /drivers/media/usb/pvrusb2/ |
| A D | pvrusb2-debugifc.h | 16 char *buf_ptr, unsigned int buf_size); 22 char *buf_ptr,unsigned int buf_size); 26 const char *buf_ptr,unsigned int buf_size);
|