Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 132) sorted by relevance

123456

/kernel/
Drelay.c73 const size_t pa_size = n_pages * sizeof(struct page *); in relay_alloc_page_array()
123 static void *relay_alloc_buf(struct rchan_buf *buf, size_t *size) in relay_alloc_buf()
166 if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t *)) in relay_create_buf()
172 buf->padding = kmalloc_array(chan->n_subbufs, sizeof(size_t *), in relay_create_buf()
257 size_t ready = buf->subbufs_produced - buf->subbufs_consumed; in relay_buf_full()
277 size_t prev_padding) in subbuf_start_default_callback()
353 size_t i; in __relay_reset()
565 size_t subbuf_size, in relay_open()
566 size_t n_subbufs, in relay_open()
741 size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length) in relay_switch_subbuf()
[all …]
Dsysctl.c213 void __user *buffer, size_t *lenp, loff_t *ppos);
215 void __user *buffer, size_t *lenp, loff_t *ppos);
220 void __user *buffer, size_t *lenp, loff_t *ppos);
224 void __user *buffer, size_t *lenp, loff_t *ppos);
227 void __user *buffer, size_t *lenp, loff_t *ppos);
230 void __user *buffer, size_t *lenp, loff_t *ppos);
237 void __user *buffer, size_t *lenp, in sysrq_sysctl_handler()
2011 size_t *lenp, loff_t *ppos) in _proc_do_string()
2013 size_t len; in _proc_do_string()
2128 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dostring()
[all …]
Dkexec_elf.c63 static bool elf_is_ehdr_sane(const struct elfhdr *ehdr, size_t buf_len) in elf_is_ehdr_sane()
79 size_t phdr_size; in elf_is_ehdr_sane()
98 size_t shdr_size; in elf_is_ehdr_sane()
119 static int elf_read_ehdr(const char *buf, size_t len, struct elfhdr *ehdr) in elf_read_ehdr()
185 static bool elf_is_phdr_sane(const struct elf_phdr *phdr, size_t buf_len) in elf_is_phdr_sane()
202 static int elf_read_phdr(const char *buf, size_t len, in elf_read_phdr()
251 static int elf_read_phdrs(const char *buf, size_t len, in elf_read_phdrs()
254 size_t phdr_size, i; in elf_read_phdrs()
296 static int elf_read_from_buffer(const char *buf, size_t len, in elf_read_from_buffer()
327 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr, in kexec_build_elf_info()
[all …]
Dsysctl_binary.c25 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen);
907 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_dir()
914 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_string()
957 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_intvec()
970 size_t length = oldlen / sizeof(*vec); in bin_intvec()
1001 size_t length = newlen / sizeof(*vec); in bin_intvec()
1030 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_ulongvec()
1043 size_t length = oldlen / sizeof(*vec); in bin_ulongvec()
1074 size_t length = newlen / sizeof(*vec); in bin_ulongvec()
1103 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_uuid()
[all …]
Dksysfs.c47 const char *buf, size_t count) in uevent_helper_store()
68 const char *buf, size_t count) in profiling_store()
113 const char *buf, size_t count) in kexec_crash_size_store()
158 const char *buf, size_t count) in rcu_expedited_store()
175 const char *buf, size_t count) in rcu_normal_store()
194 char *buf, loff_t off, size_t count) in notes_read()
Diomem.c23 static bool arch_memremap_can_ram_remap(resource_size_t offset, size_t size, in arch_memremap_can_ram_remap()
30 static void *try_ram_remap(resource_size_t offset, size_t size, in try_ram_remap()
71 void *memremap(resource_size_t offset, size_t size, unsigned long flags) in memremap()
140 size_t size, unsigned long flags) in devm_memremap()
Dwatchdog.c681 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common()
708 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog()
718 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog()
730 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog()
740 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh()
763 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_cpumask()
Dkexec_core.c779 size_t ubytes, mbytes; in kimage_load_normal_segment()
800 size_t uchunk, mchunk; in kimage_load_normal_segment()
816 mchunk = min_t(size_t, mbytes, in kimage_load_normal_segment()
852 size_t ubytes, mbytes; in kimage_load_crash_segment()
868 size_t uchunk, mchunk; in kimage_load_crash_segment()
878 mchunk = min_t(size_t, mbytes, in kimage_load_crash_segment()
986 size_t crash_get_memory_size(void) in crash_get_memory_size()
988 size_t size = 0; in crash_get_memory_size()
1084 size_t size, align; in crash_notes_memory_init()
/kernel/dma/
Ddirect.c26 static void report_addr(struct device *dev, dma_addr_t dma_addr, size_t size) in report_addr()
79 static bool dma_coherent_ok(struct device *dev, phys_addr_t phys, size_t size) in dma_coherent_ok()
85 struct page *__dma_direct_alloc_pages(struct device *dev, size_t size, in __dma_direct_alloc_pages()
88 size_t alloc_size = PAGE_ALIGN(size); in __dma_direct_alloc_pages()
128 void *dma_direct_alloc_pages(struct device *dev, size_t size, in dma_direct_alloc_pages()
178 void __dma_direct_free_pages(struct device *dev, size_t size, struct page *page) in __dma_direct_free_pages()
183 void dma_direct_free_pages(struct device *dev, size_t size, void *cpu_addr, in dma_direct_free_pages()
204 void *dma_direct_alloc(struct device *dev, size_t size, in dma_direct_alloc()
213 void dma_direct_free(struct device *dev, size_t size, in dma_direct_free()
226 dma_addr_t addr, size_t size, enum dma_data_direction dir) in dma_direct_sync_single_for_device()
[all …]
Dremap.c24 size_t size, pgprot_t prot, const void *caller) in __dma_common_pages_remap()
44 void *dma_common_pages_remap(struct page **pages, size_t size, in dma_common_pages_remap()
62 void *dma_common_contiguous_remap(struct page *page, size_t size, in dma_common_contiguous_remap()
88 void dma_common_free_remap(void *cpu_addr, size_t size) in dma_common_free_remap()
105 static size_t atomic_pool_size __initdata = DEFAULT_DMA_COHERENT_POOL_SIZE;
176 bool dma_in_atomic_pool(void *start, size_t size) in dma_in_atomic_pool()
184 void *dma_alloc_from_pool(size_t size, struct page **ret_page, gfp_t flags) in dma_alloc_from_pool()
206 bool dma_free_from_pool(void *start, size_t size) in dma_free_from_pool()
214 void *arch_dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, in arch_dma_alloc()
251 void arch_dma_free(struct device *dev, size_t size, void *vaddr, in arch_dma_free()
Dmapping.c22 size_t size;
57 void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, in dmam_free_coherent()
81 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs()
112 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_common_get_sgtable()
151 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_get_sgtable_attrs()
188 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_common_mmap()
260 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_mmap_attrs()
295 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_attrs()
321 void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, in dma_free_attrs()
401 void dma_cache_sync(struct device *dev, void *vaddr, size_t size, in dma_cache_sync()
[all …]
Dswiotlb.c203 size_t alloc_size; in swiotlb_init_with_tbl()
248 size_t default_size = IO_TLB_DEFAULT_SIZE; in swiotlb_init()
277 swiotlb_late_init_with_default_size(size_t default_size) in swiotlb_late_init_with_default_size()
409 size_t size, enum dma_data_direction dir) in swiotlb_bounce()
422 sz = min_t(size_t, PAGE_SIZE - offset, size); in swiotlb_bounce()
448 size_t mapping_size, in swiotlb_tbl_map_single()
449 size_t alloc_size, in swiotlb_tbl_map_single()
581 size_t mapping_size, size_t alloc_size, in swiotlb_tbl_unmap_single()
628 size_t size, enum dma_data_direction dir, in swiotlb_tbl_sync_single()
663 size_t size, enum dma_data_direction dir, unsigned long attrs) in swiotlb_map()
[all …]
Dcontiguous.c192 struct page *dma_alloc_from_contiguous(struct device *dev, size_t count, in dma_alloc_from_contiguous()
231 struct page *dma_alloc_contiguous(struct device *dev, size_t size, gfp_t gfp) in dma_alloc_contiguous()
233 size_t count = size >> PAGE_SHIFT; in dma_alloc_contiguous()
244 size_t align = get_order(size); in dma_alloc_contiguous()
245 size_t cma_align = min_t(size_t, align, CONFIG_CMA_ALIGNMENT); in dma_alloc_contiguous()
264 void dma_free_contiguous(struct device *dev, struct page *page, size_t size) in dma_free_contiguous()
Dvirt.c10 static void *dma_virt_alloc(struct device *dev, size_t size, in dma_virt_alloc()
22 static void dma_virt_free(struct device *dev, size_t size, in dma_virt_free()
30 unsigned long offset, size_t size, in dma_virt_map_page()
Ddebug.c72 size_t offset;
728 size_t count, loff_t *ppos) in filter_read()
750 size_t count, loff_t *ppos) in filter_write()
754 size_t len; in filter_write()
763 len = min(count, (size_t)(NAME_MAX_LEN - 1)); in filter_write()
1091 struct page *page, size_t offset) in check_for_stack()
1252 void debug_dma_map_page(struct device *dev, struct page *page, size_t offset, in debug_dma_map_page()
1253 size_t size, int direction, dma_addr_t dma_addr) in debug_dma_map_page()
1327 size_t size, int direction) in debug_dma_unmap_page()
1433 void debug_dma_alloc_coherent(struct device *dev, size_t size, in debug_dma_alloc_coherent()
[all …]
Dcoherent.c41 dma_addr_t device_addr, size_t size, in dma_init_coherent_memory()
111 dma_addr_t device_addr, size_t size) in dma_declare_coherent_memory()
238 struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) in __dma_mmap_from_coherent()
275 void *vaddr, size_t size, int *ret) in dma_mmap_from_dev_coherent()
283 size_t size, int *ret) in dma_mmap_from_global_coherent()
/kernel/printk/
Dprintk.c121 size_t len; in __control_devkmsg()
176 void __user *buffer, size_t *lenp, loff_t *ppos) in devkmsg_sysctl_set_loglvl()
425 static size_t syslog_partial;
714 static ssize_t msg_print_ext_header(char *buf, size_t size, in msg_print_ext_header()
735 static ssize_t msg_print_ext_body(char *buf, size_t size, in msg_print_ext_body()
736 char *dict, size_t dict_len, in msg_print_ext_body()
737 char *text, size_t text_len) in msg_print_ext_body()
740 size_t i; in msg_print_ext_body()
812 size_t len = iov_iter_count(from); in devkmsg_write()
869 size_t count, loff_t *ppos) in devkmsg_read()
[all …]
/kernel/debug/kdb/
Dkdb_private.h90 extern int kdb_getarea_size(void *, unsigned long, size_t);
91 extern int kdb_putarea_size(unsigned long, void *, size_t);
101 unsigned long addr, size_t size);
102 extern int kdb_getword(unsigned long *, unsigned long, size_t);
103 extern int kdb_putword(unsigned long, unsigned long, size_t);
213 extern char *kdb_getstr(char *, size_t, const char *);
238 extern void *debug_kmalloc(size_t size, gfp_t flags);
/kernel/gcov/
Dgcc_4_7.c275 size_t fi_size; /* function info size */ in gcov_info_dup()
276 size_t cv_size; /* counter values size */ in gcov_info_dup()
378 size_t size;
393 static size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32()
417 static size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64()
438 static size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda()
445 size_t pos = 0; in convert_to_gcda()
570 size_t len; in gcov_iter_write()
Dclang.c300 size_t cv_size; /* counter values size */ in gcov_fn_info_dup()
391 size_t size;
406 static size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32()
430 static size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64()
451 static size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda()
454 size_t pos = 0; in convert_to_gcda()
569 size_t len; in gcov_iter_write()
/kernel/power/
Dmain.c107 const char *buf, size_t n) in pm_async_store()
147 static suspend_state_t decode_suspend_state(const char *buf, size_t n) in decode_suspend_state()
167 const char *buf, size_t n) in mem_sleep_store()
229 const char *buf, size_t n) in pm_test_store()
450 const char *buf, size_t n) in pm_print_times_store()
490 const char *buf, size_t n) in pm_debug_messages_store()
572 static suspend_state_t decode_state(const char *buf, size_t n) in decode_state()
600 const char *buf, size_t n) in state_store()
674 const char *buf, size_t n) in wakeup_count_store()
727 const char *buf, size_t n) in autosleep_store()
[all …]
/kernel/bpf/
Dlpm_trie.c34 size_t n_entries;
35 size_t max_prefixlen;
36 size_t data_size;
151 static inline int extract_bit(const u8 *data, size_t index) in extract_bit()
164 static size_t longest_prefix_match(const struct lpm_trie *trie, in longest_prefix_match()
237 size_t matchlen; in trie_lookup_elem()
280 size_t size = sizeof(struct lpm_trie_node) + trie->data_size; in lpm_trie_node_alloc()
309 size_t matchlen = 0; in trie_update_elem()
439 size_t matchlen = 0; in trie_delete_elem()
638 size_t matchlen; in trie_get_next_key()
Dhelpers.c364 static int __bpf_strtoull(const char *buf, size_t buf_len, u64 flags, in __bpf_strtoull()
369 size_t cur_len = buf_len; in __bpf_strtoull()
371 size_t val_len; in __bpf_strtoull()
415 static int __bpf_strtoll(const char *buf, size_t buf_len, u64 flags, in __bpf_strtoll()
437 BPF_CALL_4(bpf_strtol, const char *, buf, size_t, buf_len, u64, flags, in BPF_CALL_4() argument
462 BPF_CALL_4(bpf_strtoul, const char *, buf, size_t, buf_len, u64, flags, in BPF_CALL_4() argument
Dtnum.c172 int tnum_strn(char *str, size_t size, struct tnum a) in tnum_strn()
178 int tnum_sbin(char *str, size_t size, struct tnum a) in tnum_sbin()
180 size_t n; in tnum_sbin()
194 str[min(size - 1, (size_t)64)] = 0; in tnum_sbin()
/kernel/livepatch/
Dshadow.c105 size_t size, gfp_t gfp_flags, in __klp_shadow_get_or_alloc()
197 size_t size, gfp_t gfp_flags, in klp_shadow_alloc()
226 size_t size, gfp_t gfp_flags, in klp_shadow_get_or_alloc()

123456