/kernel/dma/ |
D | debug.h | 13 size_t offset, size_t size, 18 size_t size, int direction); 27 extern void debug_dma_alloc_coherent(struct device *dev, size_t size, 31 extern void debug_dma_free_coherent(struct device *dev, size_t size, 35 size_t size, int direction, 40 size_t size, int direction); 43 dma_addr_t dma_handle, size_t size, 48 size_t size, int direction); 59 size_t offset, size_t size, in debug_dma_map_page() 66 size_t size, int direction) in debug_dma_unmap_page() [all …]
|
D | mapping.c | 26 size_t size; 61 void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, in dmam_free_coherent() 85 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs() 144 size_t offset, size_t size, enum dma_data_direction dir, in dma_map_page_attrs() 167 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, in dma_unmap_page_attrs() 296 size_t size, enum dma_data_direction dir, unsigned long attrs) in dma_map_resource() 316 void dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, in dma_unmap_resource() 328 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, in dma_sync_single_for_cpu() 343 size_t size, enum dma_data_direction dir) in dma_sync_single_for_device() 396 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_get_sgtable_attrs() [all …]
|
D | pool.c | 24 static size_t atomic_pool_size; 46 static void dma_atomic_pool_size_add(gfp_t gfp, size_t size) in dma_atomic_pool_size_add() 79 static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size, in atomic_pool_expand() 162 static __init struct gen_pool *__dma_atomic_pool_init(size_t pool_size, in __dma_atomic_pool_init() 198 atomic_pool_size = max_t(size_t, pages << PAGE_SHIFT, SZ_128K); in dma_atomic_pool_init() 240 static struct page *__dma_alloc_from_pool(struct device *dev, size_t size, in __dma_alloc_from_pool() argument 242 bool (*phys_addr_ok)(struct device *, phys_addr_t, size_t)) in __dma_alloc_from_pool() 265 struct page *dma_alloc_from_pool(struct device *dev, size_t size, in dma_alloc_from_pool() argument 267 bool (*phys_addr_ok)(struct device *, phys_addr_t, size_t)) in dma_alloc_from_pool() 283 bool dma_free_from_pool(struct device *dev, void *start, size_t size) in dma_free_from_pool()
|
D | direct.h | 14 void *cpu_addr, dma_addr_t dma_addr, size_t size, 18 void *cpu_addr, dma_addr_t dma_addr, size_t size, 23 size_t dma_direct_max_mapping_size(struct device *dev); 56 dma_addr_t addr, size_t size, enum dma_data_direction dir) in dma_direct_sync_single_for_device() 68 dma_addr_t addr, size_t size, enum dma_data_direction dir) in dma_direct_sync_single_for_cpu() 85 struct page *page, unsigned long offset, size_t size, in dma_direct_map_page() 115 size_t size, enum dma_data_direction dir, unsigned long attrs) in dma_direct_unmap_page()
|
D | direct.c | 70 static bool dma_coherent_ok(struct device *dev, phys_addr_t phys, size_t size) in dma_coherent_ok() 80 static int dma_set_decrypted(struct device *dev, void *vaddr, size_t size) in dma_set_decrypted() 87 static int dma_set_encrypted(struct device *dev, void *vaddr, size_t size) in dma_set_encrypted() 100 size_t size) in __dma_direct_free_pages() 107 static struct page *dma_direct_alloc_swiotlb(struct device *dev, size_t size) in dma_direct_alloc_swiotlb() 119 static struct page *__dma_direct_alloc_pages(struct device *dev, size_t size, in __dma_direct_alloc_pages() 174 static void *dma_direct_alloc_from_pool(struct device *dev, size_t size, in dma_direct_alloc_from_pool() 193 static void *dma_direct_alloc_no_mapping(struct device *dev, size_t size, in dma_direct_alloc_no_mapping() 211 void *dma_direct_alloc(struct device *dev, size_t size, in dma_direct_alloc() 326 void dma_direct_free(struct device *dev, size_t size, in dma_direct_free() [all …]
|
D | swiotlb.c | 67 size_t alloc_size; 331 size_t bytes = PAGE_ALIGN(nslabs << IO_TLB_SHIFT); in swiotlb_memblock_alloc() 369 size_t alloc_size; in swiotlb_init_remap() 427 int swiotlb_init_late(size_t size, gfp_t gfp_mask, in swiotlb_init_late() 509 size_t tbl_size, slots_size; in swiotlb_exit() 551 static void swiotlb_bounce(struct device *dev, phys_addr_t tlb_addr, size_t size, in swiotlb_bounce() 557 size_t alloc_size = mem->slots[index].alloc_size; in swiotlb_bounce() 599 sz = min_t(size_t, PAGE_SIZE - offset, size); in swiotlb_bounce() 648 phys_addr_t orig_addr, size_t alloc_size, in swiotlb_do_find_slots() 738 size_t alloc_size, unsigned int alloc_align_mask) in swiotlb_find_slots() [all …]
|
D | ops_helpers.c | 19 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_common_get_sgtable() 36 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_common_mmap() 63 struct page *dma_common_alloc_pages(struct device *dev, size_t size, in dma_common_alloc_pages() 86 void dma_common_free_pages(struct device *dev, size_t size, struct page *page, in dma_common_free_pages()
|
D | coherent.c | 39 dma_addr_t device_addr, size_t size, bool use_dma_pfn_offset) in dma_init_coherent_memory() 118 dma_addr_t device_addr, size_t size) in dma_declare_coherent_memory() 235 struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) in __dma_mmap_from_coherent() 272 void *vaddr, size_t size, int *ret) in dma_mmap_from_dev_coherent() 302 size_t size, int *ret) in dma_mmap_from_global_coherent() 311 int dma_init_global_coherent(phys_addr_t phys_addr, size_t size) in dma_init_global_coherent()
|
D | remap.c | 22 void *dma_common_pages_remap(struct page **pages, size_t size, in dma_common_pages_remap() 38 void *dma_common_contiguous_remap(struct page *page, size_t size, in dma_common_contiguous_remap() 60 void dma_common_free_remap(void *cpu_addr, size_t size) in dma_common_free_remap()
|
/kernel/ |
D | relay.c | 108 static void *relay_alloc_buf(struct rchan_buf *buf, size_t *size) in relay_alloc_buf() 151 if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t)) in relay_create_buf() 157 buf->padding = kmalloc_array(chan->n_subbufs, sizeof(size_t), in relay_create_buf() 243 size_t ready = buf->subbufs_produced - buf->subbufs_consumed; in relay_buf_full() 253 void *prev_subbuf, size_t prev_padding) in relay_subbuf_start() 285 size_t i; in __relay_reset() 476 size_t subbuf_size, in relay_open() 477 size_t n_subbufs, in relay_open() 659 size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length) in relay_switch_subbuf() 662 size_t old_subbuf, new_subbuf; in relay_switch_subbuf() [all …]
|
D | sysctl.c | 148 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() 150 size_t len; in _proc_do_string() 261 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() 270 static void proc_skip_spaces(char **buf, size_t *size) in proc_skip_spaces() 280 static void proc_skip_char(char **buf, size_t *size, const char v) in proc_skip_char() 342 static int proc_get_long(char **buf, size_t *size, in proc_get_long() 401 static void proc_put_long(void **buf, size_t *size, unsigned long val, bool neg) in proc_put_long() 416 static void proc_put_char(void **buf, size_t *size, char c) in proc_put_char() 489 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() 495 size_t left; in __do_proc_dointvec() [all …]
|
D | sysctl-test.c | 38 size_t len; in sysctl_test_api_dointvec_null_tbl_data() 84 size_t len; in sysctl_test_api_dointvec_table_maxlen_unset() 130 size_t len = 0; in sysctl_test_api_dointvec_table_len_is_zero() 165 size_t len = 1234; in sysctl_test_api_dointvec_table_read_but_position_set() 194 size_t len = 4; in sysctl_test_dointvec_read_happy_single_positive() 225 size_t len = 5; in sysctl_test_dointvec_read_happy_single_negative() 255 size_t len = sizeof(input) - 1; in sysctl_test_dointvec_write_happy_single_positive() 285 size_t len = sizeof(input) - 1; in sysctl_test_dointvec_write_happy_single_negative() 316 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_less_int_min() 328 (size_t)snprintf(buffer, max_len, "-%lu", in sysctl_test_api_dointvec_write_single_less_int_min() [all …]
|
D | kexec_elf.c | 63 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 …]
|
D | ksysfs.c | 46 const char *buf, size_t count) in uevent_helper_store() 67 const char *buf, size_t count) in profiling_store() 117 const char *buf, size_t count) in kexec_crash_size_store() 162 const char *buf, size_t count) in rcu_expedited_store() 179 const char *buf, size_t count) in rcu_normal_store() 198 char *buf, loff_t off, size_t count) in notes_read()
|
D | iomem.c | 23 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()
|
/kernel/kcsan/ |
D | core.c | 115 size_t size, in find_watchpoint() 123 size_t wp_size; in find_watchpoint() 148 insert_watchpoint(unsigned long addr, size_t size, bool is_write) in insert_watchpoint() 210 check_access(const volatile void *ptr, size_t size, int type, unsigned long ip); 231 is_atomic(struct kcsan_ctx *ctx, const volatile void *ptr, size_t size, int type) in is_atomic() 268 should_watch(struct kcsan_ctx *ctx, const volatile void *ptr, size_t size, int type) in should_watch() 338 static __always_inline u64 read_instrumented_memory(const volatile void *ptr, size_t size) in read_instrumented_memory() 401 find_reorder_access(struct kcsan_ctx *ctx, const volatile void *ptr, size_t size, in find_reorder_access() 418 set_reorder_access(struct kcsan_ctx *ctx, const volatile void *ptr, size_t size, in set_reorder_access() 456 size_t size, in kcsan_found_watchpoint() [all …]
|
D | encoding.h | 52 static inline bool check_encodable(unsigned long addr, size_t size) in check_encodable() 62 encode_watchpoint(unsigned long addr, size_t size, bool is_write) in encode_watchpoint() 71 size_t *size, in decode_watchpoint() 93 static __always_inline bool matching_access(unsigned long addr1, size_t size1, in matching_access() 94 unsigned long addr2, size_t size2) in matching_access()
|
D | kcsan.h | 123 void kcsan_report_set_info(const volatile void *ptr, size_t size, int access_type, 131 void kcsan_report_known_origin(const volatile void *ptr, size_t size, int access_type, 139 void kcsan_report_unknown_origin(const volatile void *ptr, size_t size, int access_type,
|
/kernel/module/ |
D | decompress.c | 63 static size_t module_gzip_header_len(const u8 *buf, size_t size) in module_gzip_header_len() 66 size_t len = 10; in module_gzip_header_len() 86 const void *buf, size_t size) in module_gzip_decompress() 89 size_t new_size = 0; in module_gzip_decompress() 90 size_t gzip_hdr_len; in module_gzip_decompress() 150 const void *buf, size_t size) in module_xz_decompress() 156 size_t new_size = 0; in module_xz_decompress() 206 int module_decompress(struct load_info *info, const void *buf, size_t size) in module_decompress()
|
/kernel/debug/kdb/ |
D | kdb_private.h | 90 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); 167 extern void kdb_register_table(kdbtab_t *kp, size_t len); 199 extern char *kdb_getstr(char *, size_t, const char *);
|
/kernel/gcov/ |
D | gcov.h | 51 size_t convert_to_gcda(char *buffer, struct gcov_info *info); 63 size_t store_gcov_u32(void *buffer, size_t off, u32 v); 64 size_t store_gcov_u64(void *buffer, size_t off, u64 v);
|
D | base.c | 63 size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32() 87 size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64()
|
/kernel/printk/ |
D | printk.c | 129 size_t len; in __control_devkmsg() 186 void *buffer, size_t *lenp, loff_t *ppos) in devkmsg_sysctl_set_loglvl() 368 static size_t syslog_partial; 555 static ssize_t info_print_ext_header(char *buf, size_t size, in info_print_ext_header() 576 static ssize_t msg_add_ext_text(char *buf, size_t size, in msg_add_ext_text() 577 const char *text, size_t text_len, in msg_add_ext_text() 581 size_t i; in msg_add_ext_text() 597 static ssize_t msg_add_dict_text(char *buf, size_t size, in msg_add_dict_text() 600 size_t val_len = strlen(val); in msg_add_dict_text() 613 static ssize_t msg_print_ext_body(char *buf, size_t size, in msg_print_ext_body() [all …]
|
/kernel/power/ |
D | main.c | 110 const char *buf, size_t n) in pm_async_store() 153 static suspend_state_t decode_suspend_state(const char *buf, size_t n) in decode_suspend_state() 173 const char *buf, size_t n) in mem_sleep_store() 216 const char *buf, size_t n) in sync_on_suspend_store() 267 const char *buf, size_t n) in pm_test_store() 489 const char *buf, size_t n) in pm_print_times_store() 532 const char *buf, size_t n) in pm_debug_messages_store() 592 static suspend_state_t decode_state(const char *buf, size_t n) in decode_state() 620 const char *buf, size_t n) in state_store() 694 const char *buf, size_t n) in wakeup_count_store() [all …]
|
/kernel/bpf/ |
D | lpm_trie.c | 35 size_t n_entries; 36 size_t max_prefixlen; 37 size_t data_size; 152 static inline int extract_bit(const u8 *data, size_t index) in extract_bit() 165 static size_t longest_prefix_match(const struct lpm_trie *trie, in longest_prefix_match() 242 size_t matchlen; in trie_lookup_elem() 286 size_t size = sizeof(struct lpm_trie_node) + trie->data_size; in lpm_trie_node_alloc() 315 size_t matchlen = 0; in trie_update_elem() 445 size_t matchlen = 0; in trie_delete_elem() 626 size_t matchlen; in trie_get_next_key()
|