/drivers/ntb/hw/intel/ |
D | ntb_hw_gen3.c | 261 size_t buf_size; in ndev_ntb3_debugfs_read() local 268 buf_size = min(count, 0x800ul); in ndev_ntb3_debugfs_read() 270 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_ntb3_debugfs_read() 276 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 279 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 283 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 285 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 289 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 292 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 294 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() [all …]
|
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() 253 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 256 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 258 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() [all …]
|
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() 522 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 524 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() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_eeprom.c | 93 u8 *eeprom_buf, u16 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() 138 (u32)buf_size); in __amdgpu_eeprom_xfer() 144 len = buf_size; in __amdgpu_eeprom_xfer() 182 u8 *eeprom_buf, u16 buf_size, bool read) in amdgpu_eeprom_xfer() argument 196 eeprom_buf, buf_size, read); in amdgpu_eeprom_xfer() 200 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 …]
|
D | amdgpu_ras_eeprom.c | 419 u32 buf_size; in __amdgpu_ras_eeprom_write() local 424 buf_size = num * RAS_TABLE_RECORD_SIZE; in __amdgpu_ras_eeprom_write() 428 buf, buf_size); in __amdgpu_ras_eeprom_write() 433 } else if (res < buf_size) { in __amdgpu_ras_eeprom_write() 564 u32 buf_size; in amdgpu_ras_eeprom_update_header() local 582 buf_size = control->ras_num_recs * RAS_TABLE_RECORD_SIZE; in amdgpu_ras_eeprom_update_header() 595 buf, buf_size); in amdgpu_ras_eeprom_update_header() 601 } else if (res < buf_size) { in amdgpu_ras_eeprom_update_header() 603 res, buf_size); in amdgpu_ras_eeprom_update_header() 611 for (pp = buf; pp < buf + buf_size; pp++) in amdgpu_ras_eeprom_update_header() [all …]
|
/drivers/media/platform/ti/omap3isp/ |
D | ispstat.c | 62 u32 buf_size, enum dma_data_direction dir, in __isp_stat_buf_sync_magic() argument 69 dma_sync(stat->isp->dev, buf->dma_addr + (buf_size & PAGE_MASK), in __isp_stat_buf_sync_magic() 70 buf_size & ~PAGE_MASK, MAGIC_SIZE, dir); in __isp_stat_buf_sync_magic() 75 u32 buf_size, in isp_stat_buf_sync_magic_for_device() argument 81 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_device() 87 u32 buf_size, in isp_stat_buf_sync_magic_for_cpu() argument 93 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_cpu() 100 const u32 buf_size = IS_H3A_AF(stat) ? in isp_stat_buf_check_magic() local 101 buf->buf_size + AF_EXTRA_DATA : buf->buf_size; in isp_stat_buf_check_magic() 106 isp_stat_buf_sync_magic_for_cpu(stat, buf, buf_size, DMA_FROM_DEVICE); in isp_stat_buf_check_magic() [all …]
|
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()
|
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()
|
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/media/pci/cx18/ |
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() 306 partial_buf_size = s->mdl_size % 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() [all …]
|
/drivers/media/pci/ivtv/ |
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/ |
D | hal.c | 473 u16 dim_norm_ctrl_async_buffer_size(u16 buf_size) in dim_norm_ctrl_async_buffer_size() argument 477 if (buf_size > max_size) in dim_norm_ctrl_async_buffer_size() 480 return buf_size; in dim_norm_ctrl_async_buffer_size() 483 static inline u16 norm_isoc_buffer_size(u16 buf_size, u16 packet_length) in norm_isoc_buffer_size() argument 488 if (buf_size > max_size) in norm_isoc_buffer_size() 489 buf_size = max_size; in norm_isoc_buffer_size() 491 n = buf_size / packet_length; in norm_isoc_buffer_size() 499 static inline u16 norm_sync_buffer_size(u16 buf_size, u16 bytes_per_frame) in norm_sync_buffer_size() argument 505 if (buf_size > max_size) in norm_sync_buffer_size() 506 buf_size = max_size; in norm_sync_buffer_size() [all …]
|
/drivers/infiniband/sw/rxe/ |
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() 164 new_q->buf_size, &new_q->ip); in rxe_queue_resize()
|
/drivers/scsi/fnic/ |
D | fnic_trace.c | 205 int buf_size = debug->buf_size; in fnic_get_stats_data() local 209 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 214 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 232 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 236 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 269 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 273 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 278 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 307 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 312 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() [all …]
|
/drivers/infiniband/hw/erdma/ |
D | erdma_cmdq.c | 92 u32 buf_size; in erdma_cmdq_sq_init() local 97 buf_size = sq->depth << SQEBB_SHIFT; in erdma_cmdq_sq_init() 100 dma_alloc_coherent(&dev->pdev->dev, WARPPED_BUFSIZE(buf_size), in erdma_cmdq_sq_init() 105 sq->db_record = (u64 *)(sq->qbuf + buf_size); in erdma_cmdq_sq_init() 115 sq->qbuf_dma_addr + buf_size); in erdma_cmdq_sq_init() 124 u32 buf_size; in erdma_cmdq_cq_init() local 127 buf_size = cq->depth << CQE_SHIFT; in erdma_cmdq_cq_init() 130 dma_alloc_coherent(&dev->pdev->dev, WARPPED_BUFSIZE(buf_size), in erdma_cmdq_cq_init() 137 cq->db_record = (u64 *)(cq->qbuf + buf_size); in erdma_cmdq_cq_init() 146 cq->qbuf_dma_addr + buf_size); in erdma_cmdq_cq_init() [all …]
|
D | erdma_eq.c | 86 u32 buf_size; in erdma_aeq_init() local 89 buf_size = eq->depth << EQE_SHIFT; in erdma_aeq_init() 92 dma_alloc_coherent(&dev->pdev->dev, WARPPED_BUFSIZE(buf_size), in erdma_aeq_init() 102 eq->db_record = (u64 *)(eq->qbuf + buf_size); in erdma_aeq_init() 110 eq->qbuf_dma_addr + buf_size); in erdma_aeq_init() 232 u32 buf_size = ERDMA_DEFAULT_EQ_DEPTH << EQE_SHIFT; in erdma_ceq_init_one() local 236 dma_alloc_coherent(&dev->pdev->dev, WARPPED_BUFSIZE(buf_size), in erdma_ceq_init_one() 249 eq->db_record = (u64 *)(eq->qbuf + buf_size); in erdma_ceq_init_one() 263 u32 buf_size = ERDMA_DEFAULT_EQ_DEPTH << EQE_SHIFT; in erdma_ceq_uninit_one() local 280 dma_free_coherent(&dev->pdev->dev, WARPPED_BUFSIZE(buf_size), eq->qbuf, in erdma_ceq_uninit_one()
|
/drivers/hwtracing/coresight/ |
D | coresight-catu.c | 118 unsigned long buf_size = tmc_sg_table_buf_size(catu_table); in catu_get_table() local 124 offset %= buf_size; in catu_get_table() 145 unsigned long table_end, buf_size, offset = 0; in catu_dump_table() local 147 buf_size = tmc_sg_table_buf_size(catu_table); in catu_dump_table() 152 while (offset < buf_size) { in catu_dump_table() 153 table_end = offset + SZ_1M < buf_size ? in catu_dump_table() 154 offset + SZ_1M : buf_size; in catu_dump_table() 190 unsigned long offset, buf_size, table_end; in catu_populate_table() local 195 buf_size = tmc_sg_table_buf_size(catu_table); in catu_populate_table() 202 while (offset < buf_size) { in catu_populate_table() [all …]
|
/drivers/dma/ |
D | dmatest.c | 109 unsigned int buf_size; member 337 unsigned int buf_size, bool is_memset) in dmatest_init_srcs() argument 347 for ( ; i < buf_size; i++) in dmatest_init_srcs() 354 unsigned int buf_size, bool is_memset) in dmatest_init_dsts() argument 365 for ( ; i < buf_size; i++) in dmatest_init_dsts() 523 unsigned int buf_size, u8 align) in dmatest_alloc_test_data() argument 536 d->raw[i] = kmalloc(buf_size + align, GFP_KERNEL); in dmatest_alloc_test_data() 584 unsigned int buf_size; in dmatest_func() local 651 buf_size = params->buf_size; in dmatest_func() 652 if (1 << align > buf_size) { in dmatest_func() [all …]
|
/drivers/ntb/hw/amd/ |
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() 870 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 873 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 875 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() 878 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
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/ |
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/ |
D | tpm2-space.c | 41 int tpm2_init_space(struct tpm_space *space, unsigned int buf_size) in tpm2_init_space() argument 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() 123 unsigned int buf_size, unsigned int *offset) in tpm2_save_context() argument 152 if ((*offset + body_size) > buf_size) { in tpm2_save_context() 318 space->buf_size); in tpm2_prepare_space() 320 space->buf_size); in tpm2_prepare_space() 503 space->context_buf, space->buf_size, in tpm2_save_space() 520 space->session_buf, space->buf_size, in tpm2_save_space() [all …]
|
/drivers/media/usb/pvrusb2/ |
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);
|
/drivers/firmware/ |
D | raspberrypi.c | 149 u32 tag, void *tag_data, size_t buf_size) in rpi_firmware_property() argument 159 void *data = kmalloc(sizeof(*header) + buf_size, GFP_KERNEL); in rpi_firmware_property() 166 header->buf_size = buf_size; in rpi_firmware_property() 168 memcpy(data + sizeof(*header), tag_data, buf_size); in rpi_firmware_property() 170 ret = rpi_firmware_property_list(fw, data, buf_size + sizeof(*header)); in rpi_firmware_property() 172 memcpy(tag_data, data + sizeof(*header), buf_size); in rpi_firmware_property()
|
/drivers/ntb/test/ |
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() 354 pos = scnprintf(buf, buf_size, "%#llx\n", fn_read(tc->ntb)); in tool_fn_read() 652 size_t buf_size; in tool_mw_trans_read() local 655 buf_size = min_t(size_t, size, 512); in tool_mw_trans_read() 657 buf = kmalloc(buf_size, GFP_KERNEL); in tool_mw_trans_read() 666 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read() 670 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read() 675 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read() 678 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read() [all …]
|