/kernel/dma/ |
D | mapping.c | 141 size_t offset, size_t size, enum dma_data_direction dir, in dma_map_page_attrs() argument 147 BUG_ON(!valid_dma_direction(dir)); in dma_map_page_attrs() 153 addr = dma_direct_map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 155 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 156 debug_dma_map_page(dev, page, offset, size, dir, addr); in dma_map_page_attrs() 163 enum dma_data_direction dir, unsigned long attrs) in dma_unmap_page_attrs() argument 167 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_page_attrs() 169 dma_direct_unmap_page(dev, addr, size, dir, attrs); in dma_unmap_page_attrs() 171 ops->unmap_page(dev, addr, size, dir, attrs); in dma_unmap_page_attrs() 172 debug_dma_unmap_page(dev, addr, size, dir); in dma_unmap_page_attrs() [all …]
|
D | direct.h | 21 enum dma_data_direction dir, unsigned long attrs); 27 int nents, enum dma_data_direction dir); 30 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument 39 int nents, enum dma_data_direction dir, unsigned long attrs); 41 struct scatterlist *sgl, int nents, enum dma_data_direction dir); 44 struct scatterlist *sgl, int nents, enum dma_data_direction dir, in dma_direct_unmap_sg() argument 49 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument 55 dma_addr_t addr, size_t size, enum dma_data_direction dir) in dma_direct_sync_single_for_device() argument 60 swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_DEVICE); in dma_direct_sync_single_for_device() 63 arch_sync_dma_for_device(paddr, size, dir); in dma_direct_sync_single_for_device() [all …]
|
D | swiotlb.c | 419 size_t size, enum dma_data_direction dir) in swiotlb_bounce() argument 436 if (dir == DMA_TO_DEVICE) in swiotlb_bounce() 448 } else if (dir == DMA_TO_DEVICE) { in swiotlb_bounce() 566 enum dma_data_direction dir, unsigned long attrs) in swiotlb_tbl_map_single() argument 619 enum dma_data_direction dir, unsigned long attrs) in swiotlb_tbl_unmap_single() argument 632 ((dir == DMA_FROM_DEVICE) || (dir == DMA_BIDIRECTIONAL))) in swiotlb_tbl_unmap_single() 669 size_t size, enum dma_data_direction dir, in swiotlb_tbl_sync_single() argument 683 if (likely(dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL)) in swiotlb_tbl_sync_single() 687 BUG_ON(dir != DMA_TO_DEVICE); in swiotlb_tbl_sync_single() 690 if (likely(dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL)) in swiotlb_tbl_sync_single() [all …]
|
D | direct.c | 280 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_direct_alloc_pages() argument 318 enum dma_data_direction dir) in dma_direct_free_pages() argument 336 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument 346 dir, SYNC_FOR_DEVICE); in dma_direct_sync_sg_for_device() 350 dir); in dma_direct_sync_sg_for_device() 359 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument 368 arch_sync_dma_for_cpu(paddr, sg->length, dir); in dma_direct_sync_sg_for_cpu() 371 swiotlb_tbl_sync_single(dev, paddr, sg->length, dir, in dma_direct_sync_sg_for_cpu() 374 if (dir == DMA_FROM_DEVICE) in dma_direct_sync_sg_for_cpu() 383 int nents, enum dma_data_direction dir, unsigned long attrs) in dma_direct_unmap_sg() argument [all …]
|
D | ops_helpers.c | 62 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_common_alloc_pages() argument 73 *dma_handle = ops->map_page(dev, page, 0, size, dir, in dma_common_alloc_pages() 85 dma_addr_t dma_handle, enum dma_data_direction dir) in dma_common_free_pages() argument 90 ops->unmap_page(dev, dma_handle, size, dir, in dma_common_free_pages()
|
D | dummy.c | 15 unsigned long offset, size_t size, enum dma_data_direction dir, in dma_dummy_map_page() argument 22 int nelems, enum dma_data_direction dir, in dma_dummy_map_sg() argument
|
D | virt.c | 31 enum dma_data_direction dir, in dma_virt_map_page() argument 38 int nents, enum dma_data_direction dir, in dma_virt_map_sg() argument
|
D | debug.h | 23 int nelems, int dir); 72 int nelems, int dir) in debug_dma_unmap_sg() argument
|
D | debug.c | 1361 int nelems, int dir) in debug_dma_unmap_sg() argument 1378 .direction = dir, in debug_dma_unmap_sg()
|
/kernel/irq/ |
D | proc.c | 324 if (!desc->dir || action->dir || !action->name || in register_handler_proc() 331 action->dir = proc_mkdir(name, desc->dir); in register_handler_proc() 354 if (desc->dir) in register_irq_proc() 360 desc->dir = proc_mkdir(name, root_irq_dir); in register_irq_proc() 361 if (!desc->dir) in register_irq_proc() 366 proc_create_data("smp_affinity", 0644, desc->dir, in register_irq_proc() 370 proc_create_single_data("affinity_hint", 0444, desc->dir, in register_irq_proc() 374 proc_create_data("smp_affinity_list", 0644, desc->dir, in register_irq_proc() 377 proc_create_single_data("node", 0444, desc->dir, irq_node_proc_show, in register_irq_proc() 380 proc_create_single_data("effective_affinity", 0444, desc->dir, in register_irq_proc() [all …]
|
/kernel/trace/ |
D | trace_events.c | 712 static void __get_system_dir(struct trace_subsystem_dir *dir) in __get_system_dir() argument 714 WARN_ON_ONCE(dir->ref_count == 0); in __get_system_dir() 715 dir->ref_count++; in __get_system_dir() 716 __get_system(dir->subsystem); in __get_system_dir() 719 static void __put_system_dir(struct trace_subsystem_dir *dir) in __put_system_dir() argument 721 WARN_ON_ONCE(dir->ref_count == 0); in __put_system_dir() 723 WARN_ON_ONCE(system_refcount(dir->subsystem) == 1 && dir->ref_count != 1); in __put_system_dir() 725 __put_system(dir->subsystem); in __put_system_dir() 726 if (!--dir->ref_count) in __put_system_dir() 727 kfree(dir); in __put_system_dir() [all …]
|
D | trace_events_filter.c | 1122 static void filter_free_subsystem_preds(struct trace_subsystem_dir *dir, in filter_free_subsystem_preds() argument 1128 if (file->system != dir) in filter_free_subsystem_preds() 1140 static void filter_free_subsystem_filters(struct trace_subsystem_dir *dir, in filter_free_subsystem_filters() argument 1146 if (file->system != dir) in filter_free_subsystem_filters() 1683 static int process_system_preds(struct trace_subsystem_dir *dir, in process_system_preds() argument 1698 if (file->system != dir) in process_system_preds() 1866 static int create_system_filter(struct trace_subsystem_dir *dir, in create_system_filter() argument 1875 err = process_system_preds(dir, tr, pe, filter_str); in create_system_filter() 1941 int apply_subsystem_event_filter(struct trace_subsystem_dir *dir, in apply_subsystem_event_filter() argument 1944 struct event_subsystem *system = dir->subsystem; in apply_subsystem_event_filter() [all …]
|
D | blktrace.c | 317 debugfs_remove(bt->dir); in blk_trace_free() 483 struct dentry *dir = NULL; in do_blk_trace_setup() local 531 dir = q->debugfs_dir; in do_blk_trace_setup() 533 bt->dir = dir = debugfs_create_dir(buts->name, blk_debugfs_root); in do_blk_trace_setup() 540 if (IS_ERR_OR_NULL(dir)) { in do_blk_trace_setup() 552 bt->dropped_file = debugfs_create_file("dropped", 0444, dir, bt, in do_blk_trace_setup() 555 bt->msg_file = debugfs_create_file("msg", 0222, dir, bt, &blk_msg_fops); in do_blk_trace_setup() 557 bt->rchan = relay_open("trace", dir, buts->buf_size, in do_blk_trace_setup()
|
D | trace.c | 5970 if (!tr->dir) in add_tracer_options() 8149 if (WARN_ON(!tr->dir)) in tracing_get_dentry() 8157 return tr->dir; in tracing_get_dentry() 8794 tr->dir = tracefs_create_dir(tr->name, trace_instance_dir); in trace_array_create_dir() 8795 if (!tr->dir) in trace_array_create_dir() 8798 ret = event_trace_add_tracer(tr->dir, tr); in trace_array_create_dir() 8800 tracefs_remove(tr->dir); in trace_array_create_dir() 8804 init_tracer_tracefs(tr, tr->dir); in trace_array_create_dir() 8960 tracefs_remove(tr->dir); in __remove_instance() 9085 if (file && file->dir) in init_tracer_tracefs() [all …]
|
/kernel/bpf/ |
D | inode.c | 102 const struct inode *dir, in bpf_get_inode() argument 125 inode_init_owner(inode, dir, mode); in bpf_get_inode() 146 struct inode *dir) in bpf_dentry_finalize() argument 151 dir->i_mtime = current_time(dir); in bpf_dentry_finalize() 152 dir->i_ctime = dir->i_mtime; in bpf_dentry_finalize() 155 static int bpf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in bpf_mkdir() argument 159 inode = bpf_get_inode(dir->i_sb, dir, mode | S_IFDIR); in bpf_mkdir() 167 inc_nlink(dir); in bpf_mkdir() 169 bpf_dentry_finalize(dentry, inode, dir); in bpf_mkdir() 334 struct inode *dir = dentry->d_parent->d_inode; in bpf_mkobj_ops() local [all …]
|
D | cgroup.c | 1551 static ssize_t sysctl_cpy_dir(const struct ctl_dir *dir, char **bufp, in sysctl_cpy_dir() argument 1556 if (dir->header.parent) { in sysctl_cpy_dir() 1557 tmp_ret = sysctl_cpy_dir(dir->header.parent, bufp, lenp); in sysctl_cpy_dir() 1562 ret = strscpy(*bufp, dir->header.ctl_table[0].procname, *lenp); in sysctl_cpy_dir()
|
/kernel/ |
D | fail_function.c | 157 struct dentry *dir; in fei_debugfs_add_attr() local 159 dir = debugfs_create_dir(attr->kp.symbol_name, fei_debugfs_dir); in fei_debugfs_add_attr() 161 debugfs_create_file("retval", 0600, dir, attr, &fei_retval_ops); in fei_debugfs_add_attr() 323 struct dentry *dir; in fei_debugfs_init() local 325 dir = fault_create_debugfs_attr("fail_function", NULL, in fei_debugfs_init() 327 if (IS_ERR(dir)) in fei_debugfs_init() 328 return PTR_ERR(dir); in fei_debugfs_init() 331 debugfs_create_symlink("injectable", dir, "../error_injection/list"); in fei_debugfs_init() 333 debugfs_create_file("inject", 0600, dir, NULL, &fei_ops); in fei_debugfs_init() 335 fei_debugfs_dir = dir; in fei_debugfs_init()
|
D | audit_fsnotify.c | 157 struct inode *inode, struct inode *dir, in audit_mark_handle_event() argument
|
D | kprobes.c | 2969 struct dentry *dir; in debugfs_kprobe_init() local 2971 dir = debugfs_create_dir("kprobes", NULL); in debugfs_kprobe_init() 2973 debugfs_create_file("list", 0400, dir, NULL, &kprobes_fops); in debugfs_kprobe_init() 2975 debugfs_create_file("enabled", 0600, dir, NULL, &fops_kp); in debugfs_kprobe_init() 2977 debugfs_create_file("blacklist", 0400, dir, NULL, in debugfs_kprobe_init()
|
D | module.c | 1669 struct kobject *dir; member 1688 if (notes_attrs->dir) { in free_notes_attrs() 1690 sysfs_remove_bin_file(notes_attrs->dir, in free_notes_attrs() 1692 kobject_put(notes_attrs->dir); in free_notes_attrs() 1739 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs() 1740 if (!notes_attrs->dir) in add_notes_attrs() 1744 if (sysfs_create_bin_file(notes_attrs->dir, in add_notes_attrs()
|
D | audit_watch.c | 468 struct inode *inode, struct inode *dir, in audit_watch_handle_event() argument
|
/kernel/gcov/ |
D | fs.c | 303 static char *link_target(const char *dir, const char *path, const char *ext) in link_target() argument 315 if (dir) in link_target() 316 target = kasprintf(GFP_KERNEL, "%s/%s.%s", dir, copy, ext); in link_target() 337 if (ext->dir == SRC_TREE) in get_link_target()
|
D | gcov.h | 83 } dir; member
|
/kernel/bpf/preload/iterators/ |
D | Makefile | 53 OUTPUT=$(abspath $(dir $@))/ $(abspath $@)
|
/kernel/futex/ |
D | core.c | 288 struct dentry *dir; in fail_futex_debugfs() local 290 dir = fault_create_debugfs_attr("fail_futex", NULL, in fail_futex_debugfs() 292 if (IS_ERR(dir)) in fail_futex_debugfs() 293 return PTR_ERR(dir); in fail_futex_debugfs() 295 debugfs_create_bool("ignore-private", mode, dir, in fail_futex_debugfs()
|