Home
last modified time | relevance | path

Searched refs:max_sz (Results 1 - 15 of 15) sorted by relevance

/kernel/linux/linux-6.6/tools/perf/tests/
H A Dsymbols.c44 static void get_test_dso_filename(char *filename, size_t max_sz) in get_test_dso_filename() argument
47 strlcpy(filename, dso_to_test, max_sz); in get_test_dso_filename()
49 perf_exe(filename, max_sz); in get_test_dso_filename()
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/
H A Dintel-pt.c583 size_t *min_sz, size_t *max_sz) in intel_pt_min_max_sample_sz()
594 if (max_sz && sz > *max_sz) in intel_pt_min_max_sample_sz()
595 *max_sz = sz; in intel_pt_min_max_sample_sz()
726 size_t min_sz = 0, max_sz = 0; in intel_pt_recording_options() local
728 intel_pt_min_max_sample_sz(evlist, &min_sz, &max_sz); in intel_pt_recording_options()
733 size_t sz = round_up(max_sz, page_size) / page_size; in intel_pt_recording_options()
737 if (max_sz > opts->auxtrace_mmap_pages * (size_t)page_size) { in intel_pt_recording_options()
739 max_sz, in intel_pt_recording_options()
744 min_sz, max_sz); in intel_pt_recording_options()
582 intel_pt_min_max_sample_sz(struct evlist *evlist, size_t *min_sz, size_t *max_sz) intel_pt_min_max_sample_sz() argument
[all...]
/kernel/linux/linux-5.10/fs/proc/
H A Dvmcore.c716 u64 offset, max_sz, sz, real_sz = 0; in update_note_header_size_elf64() local
719 max_sz = phdr_ptr->p_memsz; in update_note_header_size_elf64()
721 notes_section = kmalloc(max_sz, GFP_KERNEL); in update_note_header_size_elf64()
724 rc = elfcorehdr_read_notes(notes_section, max_sz, &offset); in update_note_header_size_elf64()
734 if ((real_sz + sz) > max_sz) { in update_note_header_size_elf64()
907 u64 offset, max_sz, sz, real_sz = 0; in update_note_header_size_elf32() local
910 max_sz = phdr_ptr->p_memsz; in update_note_header_size_elf32()
912 notes_section = kmalloc(max_sz, GFP_KERNEL); in update_note_header_size_elf32()
915 rc = elfcorehdr_read_notes(notes_section, max_sz, &offset); in update_note_header_size_elf32()
925 if ((real_sz + sz) > max_sz) { in update_note_header_size_elf32()
[all...]
/kernel/linux/linux-6.6/fs/proc/
H A Dvmcore.c732 u64 offset, max_sz, sz, real_sz = 0; in update_note_header_size_elf64() local
735 max_sz = phdr_ptr->p_memsz; in update_note_header_size_elf64()
737 notes_section = kmalloc(max_sz, GFP_KERNEL); in update_note_header_size_elf64()
740 rc = elfcorehdr_read_notes(notes_section, max_sz, &offset); in update_note_header_size_elf64()
750 if ((real_sz + sz) > max_sz) { in update_note_header_size_elf64()
923 u64 offset, max_sz, sz, real_sz = 0; in update_note_header_size_elf32() local
926 max_sz = phdr_ptr->p_memsz; in update_note_header_size_elf32()
928 notes_section = kmalloc(max_sz, GFP_KERNEL); in update_note_header_size_elf32()
931 rc = elfcorehdr_read_notes(notes_section, max_sz, &offset); in update_note_header_size_elf32()
941 if ((real_sz + sz) > max_sz) { in update_note_header_size_elf32()
[all...]
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/
H A Dintel-pt.c570 size_t *min_sz, size_t *max_sz) in intel_pt_min_max_sample_sz()
581 if (max_sz && sz > *max_sz) in intel_pt_min_max_sample_sz()
582 *max_sz = sz; in intel_pt_min_max_sample_sz()
715 size_t min_sz = 0, max_sz = 0; in intel_pt_recording_options() local
717 intel_pt_min_max_sample_sz(evlist, &min_sz, &max_sz); in intel_pt_recording_options()
722 size_t sz = round_up(max_sz, page_size) / page_size; in intel_pt_recording_options()
726 if (max_sz > opts->auxtrace_mmap_pages * (size_t)page_size) { in intel_pt_recording_options()
728 max_sz, in intel_pt_recording_options()
733 min_sz, max_sz); in intel_pt_recording_options()
569 intel_pt_min_max_sample_sz(struct evlist *evlist, size_t *min_sz, size_t *max_sz) intel_pt_min_max_sample_sz() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dgenelf_debug.c41 size_t max_sz; member
58 size_t be_sz = be->max_sz; in buffer_ext_add()
77 be->max_sz = be_sz; in buffer_ext_add()
87 be->max_sz = 0; in buffer_ext_init()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dgenelf_debug.c42 size_t max_sz; member
59 size_t be_sz = be->max_sz; in buffer_ext_add()
78 be->max_sz = be_sz; in buffer_ext_add()
88 be->max_sz = 0; in buffer_ext_init()
/kernel/linux/linux-5.10/drivers/mmc/core/
H A Dmmc_test.c65 * @max_sz: test area size (in bytes)
77 unsigned long max_sz; member
330 * Allocate a lot of memory, preferably max_sz but at least min_sz. In case
336 unsigned long max_sz, in mmc_test_alloc_mem()
340 unsigned long max_page_cnt = DIV_ROUND_UP(max_sz, PAGE_SIZE); in mmc_test_alloc_mem()
1536 return mmc_erase(test->card, t->dev_addr, t->max_sz >> 9, in mmc_test_area_erase()
1573 t->max_sz = sz; in mmc_test_area_init()
1574 while (t->max_sz < 4 * 1024 * 1024) in mmc_test_area_init()
1575 t->max_sz += sz; in mmc_test_area_init()
1576 while (t->max_sz > TEST_AREA_MAX_SIZ in mmc_test_area_init()
335 mmc_test_alloc_mem(unsigned long min_sz, unsigned long max_sz, unsigned int max_segs, unsigned int max_seg_sz) mmc_test_alloc_mem() argument
[all...]
/kernel/linux/linux-6.6/drivers/mmc/core/
H A Dmmc_test.c64 * @max_sz: test area size (in bytes)
76 unsigned long max_sz; member
329 * Allocate a lot of memory, preferably max_sz but at least min_sz. In case
335 unsigned long max_sz, in mmc_test_alloc_mem()
339 unsigned long max_page_cnt = DIV_ROUND_UP(max_sz, PAGE_SIZE); in mmc_test_alloc_mem()
1516 return mmc_erase(test->card, t->dev_addr, t->max_sz >> 9, in mmc_test_area_erase()
1553 t->max_sz = sz; in mmc_test_area_init()
1554 while (t->max_sz < 4 * 1024 * 1024) in mmc_test_area_init()
1555 t->max_sz += sz; in mmc_test_area_init()
1556 while (t->max_sz > TEST_AREA_MAX_SIZ in mmc_test_area_init()
334 mmc_test_alloc_mem(unsigned long min_sz, unsigned long max_sz, unsigned int max_segs, unsigned int max_seg_sz) mmc_test_alloc_mem() argument
[all...]
/kernel/linux/linux-5.10/drivers/lightnvm/
H A Dpblk-rb.c52 unsigned int max_sz = max(thr_sz, nr_entries); in pblk_rb_calculate_size() local
59 max_io = (1 << max((int)(get_count_order(max_sz)), in pblk_rb_calculate_size()
/kernel/linux/linux-6.6/drivers/block/
H A Dublk_drv.c1360 unsigned max_sz = UBLK_MAX_QUEUE_DEPTH * sizeof(struct ublksrv_io_desc); in ublk_ch_mmap() local
1377 end = UBLKSRV_CMD_BUF_OFFSET + ub->dev_info.nr_hw_queues * max_sz; in ublk_ch_mmap()
1381 q_id = (phys_off - UBLKSRV_CMD_BUF_OFFSET) / max_sz; in ublk_ch_mmap()
/kernel/linux/linux-6.6/fs/ntfs3/
H A Dntfs.h836 __le64 max_sz; // 0x98: Maximum attribute data size. member
H A Dsuper.c1460 u64 sz = le64_to_cpu(t->max_sz); in ntfs_fill_super()
/kernel/linux/linux-5.10/drivers/net/
H A Dvirtio_net.c2481 unsigned long int max_sz = PAGE_SIZE - sizeof(struct padded_vnet_hdr); in virtnet_xdp_set() local
2502 if (dev->mtu > max_sz) { in virtnet_xdp_set()
2504 netdev_warn(dev, "XDP requires MTU less than %lu\n", max_sz); in virtnet_xdp_set()
/kernel/linux/linux-6.6/drivers/net/
H A Dvirtio_net.c3736 unsigned int max_sz = PAGE_SIZE - room - ETH_HLEN; in virtnet_xdp_set() local
3759 if (prog && !prog->aux->xdp_has_frags && dev->mtu > max_sz) { in virtnet_xdp_set()
3761 netdev_warn(dev, "single-buffer XDP requires MTU less than %u\n", max_sz); in virtnet_xdp_set()

Completed in 33 milliseconds