Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 25 of 480) sorted by relevance

12345678910>>...20

/Linux-v5.15/drivers/ntb/hw/intel/
Dntb_hw_gen3.c261 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 …]
Dntb_hw_gen4.c210 size_t buf_size; in ndev_ntb4_debugfs_read() local
217 buf_size = min(count, 0x800ul); in ndev_ntb4_debugfs_read()
219 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_ntb4_debugfs_read()
225 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
228 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
232 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
234 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
238 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
241 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()
[all …]
Dntb_hw_gen1.c498 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 …]
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_eeprom.c91 u8 *eeprom_buf, u16 buf_size, bool read) in __amdgpu_eeprom_xfer() argument
108 for (r = 0; buf_size > 0; in __amdgpu_eeprom_xfer()
109 buf_size -= len, eeprom_addr += len, eeprom_buf += len) { in __amdgpu_eeprom_xfer()
136 (u32)buf_size); in __amdgpu_eeprom_xfer()
142 len = buf_size; in __amdgpu_eeprom_xfer()
180 u8 *eeprom_buf, u16 buf_size, bool read) in amdgpu_eeprom_xfer() argument
194 eeprom_buf, buf_size, read); in amdgpu_eeprom_xfer()
198 eeprom_addr, buf_size, in amdgpu_eeprom_xfer()
210 for ( ; buf_size > 0; in amdgpu_eeprom_xfer()
211 buf_size -= ps, eeprom_addr += ps, eeprom_buf += ps) { in amdgpu_eeprom_xfer()
[all …]
/Linux-v5.15/tools/perf/util/
Dsymbol-minimal.c95 size_t buf_size; in filename__read_build_id() local
128 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id()
129 buf = malloc(buf_size); in filename__read_build_id()
134 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
150 buf_size = phdr->p_filesz; in filename__read_build_id()
152 tmp = realloc(buf, buf_size); in filename__read_build_id()
158 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
161 ret = read_build_id(buf, buf_size, bid, need_swap); in filename__read_build_id()
179 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id()
180 buf = malloc(buf_size); in filename__read_build_id()
[all …]
/Linux-v5.15/drivers/media/platform/omap3isp/
Dispstat.c62 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 …]
Disph3a_aewb.c75 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()
Disph3a_af.c125 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()
Disphist.c137 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 …]
/Linux-v5.15/fs/
Dkernel_read_file.c36 size_t buf_size, size_t *file_size, in kernel_read_file() argument
66 if (!file_size && offset == 0 && i_size > buf_size) { in kernel_read_file()
71 whole_file = (offset == 0 && i_size <= buf_size); in kernel_read_file()
88 while (copied < buf_size) { in kernel_read_file()
90 size_t wanted = min_t(size_t, buf_size - copied, in kernel_read_file()
128 size_t buf_size, size_t *file_size, in kernel_read_file_from_path() argument
141 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path()
148 void **buf, size_t buf_size, in kernel_read_file_from_path_initns() argument
168 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path_initns()
175 size_t buf_size, size_t *file_size, in kernel_read_file_from_fd() argument
[all …]
/Linux-v5.15/net/mac80211/
Dagg-rx.c51 for (i = 0; i < tid_rx->buf_size; i++) in ieee80211_free_tid_rx()
216 u16 buf_size, u16 timeout, in ieee80211_send_addba_resp() argument
256 capab |= u16_encode_bits(buf_size, IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK); in ieee80211_send_addba_resp()
271 u16 buf_size, bool tx, bool auto_seq, in ___ieee80211_start_rx_ba_session() argument
322 (buf_size > max_buf_size)) { in ___ieee80211_start_rx_ba_session()
326 sta->sta.addr, tid, ba_policy, buf_size); in ___ieee80211_start_rx_ba_session()
330 if (buf_size == 0) in ___ieee80211_start_rx_ba_session()
331 buf_size = max_buf_size; in ___ieee80211_start_rx_ba_session()
334 if (buf_size > sta->sta.max_rx_aggregation_subframes) in ___ieee80211_start_rx_ba_session()
335 buf_size = sta->sta.max_rx_aggregation_subframes; in ___ieee80211_start_rx_ba_session()
[all …]
/Linux-v5.15/drivers/infiniband/sw/rxe/
Drxe_queue.c14 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()
145 new_q->buf_size, &new_q->ip); in rxe_queue_resize()
/Linux-v5.15/net/wireless/
Ddebugfs.c41 char *buf, int buf_size, int offset) in ht_print_chan() argument
43 if (WARN_ON(offset > buf_size)) in ht_print_chan()
48 buf_size - offset, in ht_print_chan()
53 buf_size - offset, in ht_print_chan()
68 unsigned int offset = 0, buf_size = PAGE_SIZE, i, r; in ht40allow_map_read() local
72 buf = kzalloc(buf_size, GFP_KERNEL); in ht40allow_map_read()
82 buf, buf_size, offset); in ht40allow_map_read()
/Linux-v5.15/drivers/media/pci/ivtv/
Divtv-queue.c15 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 …]
/Linux-v5.15/drivers/media/pci/cx18/
Dcx18-queue.c93 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 …]
/Linux-v5.15/drivers/staging/most/dim2/
Dhal.c473 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 …]
/Linux-v5.15/drivers/scsi/fnic/
Dfnic_trace.c219 int buf_size = debug->buf_size; in fnic_get_stats_data() local
223 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
228 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
246 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
250 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
283 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
287 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
292 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
321 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
326 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
[all …]
/Linux-v5.15/tools/testing/selftests/resctrl/
Dfill_buf.c145 fill_cache(unsigned long long buf_size, int malloc_and_init, int memflush, in fill_cache() argument
153 start_ptr = malloc_and_init_memory(buf_size); in fill_cache()
155 start_ptr = malloc(buf_size); in fill_cache()
161 end_ptr = start_ptr + buf_size; in fill_cache()
168 for (i = 0; i < buf_size; i++) in fill_cache()
176 mem_flush(start_ptr, buf_size); in fill_cache()
/Linux-v5.15/arch/x86/kernel/cpu/microcode/
Damd.c89 static bool verify_container(const u8 *buf, size_t buf_size, bool early) in verify_container() argument
93 if (buf_size <= CONTAINER_HDR_SZ) { in verify_container()
116 static bool verify_equivalence_table(const u8 *buf, size_t buf_size, bool early) in verify_equivalence_table() argument
121 if (!verify_container(buf, buf_size, early)) in verify_equivalence_table()
133 buf_size -= CONTAINER_HDR_SZ; in verify_equivalence_table()
137 buf_size < equiv_tbl_len) { in verify_equivalence_table()
156 __verify_patch_section(const u8 *buf, size_t buf_size, u32 *sh_psize, bool early) in __verify_patch_section() argument
161 if (buf_size < SECTION_HDR_SIZE) { in __verify_patch_section()
198 static unsigned int __verify_patch_size(u8 family, u32 sh_psize, size_t buf_size) in __verify_patch_size() argument
203 return min_t(u32, sh_psize, buf_size); in __verify_patch_size()
[all …]
/Linux-v5.15/drivers/net/wireless/ath/wcn36xx/
Ddebug.c60 int buf_size; in write_file_bool_bmps() local
62 buf_size = min(count, (sizeof(buf)-1)); in write_file_bool_bmps()
63 if (copy_from_user(buf, user_buf, buf_size)) in write_file_bool_bmps()
104 int buf_size; in write_file_dump() local
111 buf_size = min(count, (sizeof(buf) - 1)); in write_file_dump()
112 if (copy_from_user(buf, user_buf, buf_size)) in write_file_dump()
/Linux-v5.15/drivers/media/usb/pvrusb2/
Dpvrusb2-debugifc.h16 char *buf_ptr, unsigned int buf_size);
22 char *buf_ptr,unsigned int buf_size);
26 const char *buf_ptr,unsigned int buf_size);
/Linux-v5.15/include/linux/
Dkernel_read_file.h39 void **buf, size_t buf_size,
43 void **buf, size_t buf_size,
47 void **buf, size_t buf_size,
51 void **buf, size_t buf_size,
/Linux-v5.15/drivers/hwtracing/coresight/
Dcoresight-catu.c118 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 …]
/Linux-v5.15/arch/s390/kernel/
Ddebug.c76 int nr_areas, int buf_size, umode_t mode);
222 int nr_areas, int buf_size, int level, in debug_info_alloc() argument
251 rc->buf_size = buf_size; in debug_info_alloc()
252 rc->entry_size = sizeof(debug_entry_t) + buf_size; in debug_info_alloc()
307 int nr_areas, int buf_size, umode_t mode) in debug_info_create() argument
311 rc = debug_info_alloc(name, pages_per_area, nr_areas, buf_size, in debug_info_create()
335 in->nr_areas, in->buf_size, in->level, mode); in debug_info_copy()
647 int nr_areas, int buf_size, umode_t mode, in debug_register_mode() argument
659 rc = debug_info_create(name, pages_per_area, nr_areas, buf_size, mode); in debug_register_mode()
688 int nr_areas, int buf_size) in debug_register() argument
[all …]
/Linux-v5.15/drivers/char/tpm/
Dtpm2-space.c41 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()
500 space->context_buf, space->buf_size, in tpm2_save_space()
517 space->session_buf, space->buf_size, in tpm2_save_space()
[all …]

12345678910>>...20