Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 30) sorted by relevance

12

/kernel/dma/
Dmapping.c144 size_t offset, size_t size, enum dma_data_direction dir, in dma_map_page_attrs() argument
150 BUG_ON(!valid_dma_direction(dir)); in dma_map_page_attrs()
157 addr = dma_direct_map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs()
159 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs()
160 kmsan_handle_dma(page, offset, size, dir); in dma_map_page_attrs()
161 debug_dma_map_page(dev, page, offset, size, dir, addr, attrs); in dma_map_page_attrs()
168 enum dma_data_direction dir, unsigned long attrs) in dma_unmap_page_attrs() argument
172 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_page_attrs()
175 dma_direct_unmap_page(dev, addr, size, dir, attrs); in dma_unmap_page_attrs()
177 ops->unmap_page(dev, addr, size, dir, attrs); in dma_unmap_page_attrs()
[all …]
Ddirect.h22 enum dma_data_direction dir, unsigned long attrs);
28 int nents, enum dma_data_direction dir);
31 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument
40 int nents, enum dma_data_direction dir, unsigned long attrs);
42 struct scatterlist *sgl, int nents, enum dma_data_direction dir);
45 struct scatterlist *sgl, int nents, enum dma_data_direction dir, in dma_direct_unmap_sg() argument
50 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument
56 dma_addr_t addr, size_t size, enum dma_data_direction dir) in dma_direct_sync_single_for_device() argument
61 swiotlb_sync_single_for_device(dev, paddr, size, dir); in dma_direct_sync_single_for_device()
64 arch_sync_dma_for_device(paddr, size, dir); in dma_direct_sync_single_for_device()
[all …]
Ddirect.c373 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_direct_alloc_pages() argument
398 enum dma_data_direction dir) in dma_direct_free_pages() argument
415 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument
425 dir); in dma_direct_sync_sg_for_device()
429 dir); in dma_direct_sync_sg_for_device()
438 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument
447 arch_sync_dma_for_cpu(paddr, sg->length, dir); in dma_direct_sync_sg_for_cpu()
451 dir); in dma_direct_sync_sg_for_cpu()
453 if (dir == DMA_FROM_DEVICE) in dma_direct_sync_sg_for_cpu()
466 int nents, enum dma_data_direction dir, unsigned long attrs) in dma_direct_unmap_sg() argument
[all …]
Dswiotlb.c552 enum dma_data_direction dir) in swiotlb_bounce() argument
603 if (dir == DMA_TO_DEVICE) in swiotlb_bounce()
614 } else if (dir == DMA_TO_DEVICE) { in swiotlb_bounce()
768 unsigned int alloc_align_mask, enum dma_data_direction dir, in swiotlb_tbl_map_single() argument
872 size_t mapping_size, enum dma_data_direction dir, in swiotlb_tbl_unmap_single() argument
879 (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL)) in swiotlb_tbl_unmap_single()
886 size_t size, enum dma_data_direction dir) in swiotlb_sync_single_for_device() argument
888 if (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL) in swiotlb_sync_single_for_device()
891 BUG_ON(dir != DMA_FROM_DEVICE); in swiotlb_sync_single_for_device()
895 size_t size, enum dma_data_direction dir) in swiotlb_sync_single_for_cpu() argument
[all …]
Dmap_benchmark.c26 enum dma_data_direction dir; member
58 if (map->dir != DMA_FROM_DEVICE) in map_benchmark_thread()
62 dma_addr = dma_map_single(map->dev, buf, size, map->dir); in map_benchmark_thread()
76 dma_unmap_single(map->dev, dma_addr, size, map->dir); in map_benchmark_thread()
223 map->dir = DMA_BIDIRECTIONAL; in map_benchmark_ioctl()
226 map->dir = DMA_FROM_DEVICE; in map_benchmark_ioctl()
229 map->dir = DMA_TO_DEVICE; in map_benchmark_ioctl()
Dops_helpers.c64 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_common_alloc_pages() argument
75 *dma_handle = ops->map_page(dev, page, 0, size, dir, in dma_common_alloc_pages()
87 dma_addr_t dma_handle, enum dma_data_direction dir) in dma_common_free_pages() argument
92 ops->unmap_page(dev, dma_handle, size, dir, in dma_common_free_pages()
Ddummy.c15 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
Ddebug.h25 int nelems, int dir);
78 int nelems, int dir) in debug_dma_unmap_sg() argument
/kernel/irq/
Dproc.c324 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/bpf/
Dinode.c102 const struct inode *dir, in bpf_get_inode() argument
125 inode_init_owner(&init_user_ns, 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 user_namespace *mnt_userns, struct inode *dir, in bpf_mkdir() argument
160 inode = bpf_get_inode(dir->i_sb, dir, mode | S_IFDIR); in bpf_mkdir()
168 inc_nlink(dir); in bpf_mkdir()
170 bpf_dentry_finalize(dentry, inode, dir); in bpf_mkdir()
335 struct inode *dir = dentry->d_parent->d_inode; in bpf_mkobj_ops() local
[all …]
Dcgroup.c2001 static ssize_t sysctl_cpy_dir(const struct ctl_dir *dir, char **bufp, in sysctl_cpy_dir() argument
2006 if (dir->header.parent) { in sysctl_cpy_dir()
2007 tmp_ret = sysctl_cpy_dir(dir->header.parent, bufp, lenp); in sysctl_cpy_dir()
2012 ret = strscpy(*bufp, dir->header.ctl_table[0].procname, *lenp); in sysctl_cpy_dir()
/kernel/trace/
Dtrace_events.c954 static void __get_system_dir(struct trace_subsystem_dir *dir) in __get_system_dir() argument
956 WARN_ON_ONCE(dir->ref_count == 0); in __get_system_dir()
957 dir->ref_count++; in __get_system_dir()
958 __get_system(dir->subsystem); in __get_system_dir()
961 static void __put_system_dir(struct trace_subsystem_dir *dir) in __put_system_dir() argument
963 WARN_ON_ONCE(dir->ref_count == 0); in __put_system_dir()
965 WARN_ON_ONCE(system_refcount(dir->subsystem) == 1 && dir->ref_count != 1); in __put_system_dir()
967 __put_system(dir->subsystem); in __put_system_dir()
968 if (!--dir->ref_count) in __put_system_dir()
969 kfree(dir); in __put_system_dir()
[all …]
Dtrace_events_filter.c1193 static void filter_free_subsystem_preds(struct trace_subsystem_dir *dir, in filter_free_subsystem_preds() argument
1199 if (file->system != dir) in filter_free_subsystem_preds()
1211 static void filter_free_subsystem_filters(struct trace_subsystem_dir *dir, in filter_free_subsystem_filters() argument
1217 if (file->system != dir) in filter_free_subsystem_filters()
1787 static int process_system_preds(struct trace_subsystem_dir *dir, in process_system_preds() argument
1802 if (file->system != dir) in process_system_preds()
1971 static int create_system_filter(struct trace_subsystem_dir *dir, in create_system_filter() argument
1979 err = process_system_preds(dir, dir->tr, pe, filter_str); in create_system_filter()
1985 append_filter_err(dir->tr, pe, *filterp); in create_system_filter()
2045 int apply_subsystem_event_filter(struct trace_subsystem_dir *dir, in apply_subsystem_event_filter() argument
[all …]
Dblktrace.c322 if (!bt->dir) { in blk_trace_free()
326 debugfs_remove(bt->dir); in blk_trace_free()
519 struct dentry *dir = NULL; in do_blk_trace_setup() local
567 dir = q->debugfs_dir; in do_blk_trace_setup()
569 bt->dir = dir = debugfs_create_dir(buts->name, blk_debugfs_root); in do_blk_trace_setup()
576 if (IS_ERR_OR_NULL(dir)) { in do_blk_trace_setup()
588 debugfs_create_file("dropped", 0444, dir, bt, &blk_dropped_fops); in do_blk_trace_setup()
589 debugfs_create_file("msg", 0222, dir, bt, &blk_msg_fops); in do_blk_trace_setup()
591 bt->rchan = relay_open("trace", dir, buts->buf_size, in do_blk_trace_setup()
Dtrace.c6406 if (!tr->dir) in add_tracer_options()
8733 if (WARN_ON(!tr->dir)) in tracing_get_dentry()
8741 return tr->dir; in tracing_get_dentry()
9377 tr->dir = tracefs_create_dir(tr->name, trace_instance_dir); in trace_array_create_dir()
9378 if (!tr->dir) in trace_array_create_dir()
9381 ret = event_trace_add_tracer(tr->dir, tr); in trace_array_create_dir()
9383 tracefs_remove(tr->dir); in trace_array_create_dir()
9387 init_tracer_tracefs(tr, tr->dir); in trace_array_create_dir()
9543 tracefs_remove(tr->dir); in __remove_instance()
9669 if (file && file->dir) in init_tracer_tracefs()
[all …]
/kernel/
Dfail_function.c157 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()
317 struct dentry *dir; in fei_debugfs_init() local
319 dir = fault_create_debugfs_attr("fail_function", NULL, in fei_debugfs_init()
321 if (IS_ERR(dir)) in fei_debugfs_init()
322 return PTR_ERR(dir); in fei_debugfs_init()
325 debugfs_create_symlink("injectable", dir, "../error_injection/list"); in fei_debugfs_init()
327 debugfs_create_file("inject", 0600, dir, NULL, &fei_ops); in fei_debugfs_init()
329 fei_debugfs_dir = dir; in fei_debugfs_init()
Daudit_fsnotify.c157 struct inode *inode, struct inode *dir, in audit_mark_handle_event() argument
Dkprobes.c3027 struct dentry *dir; in debugfs_kprobe_init() local
3029 dir = debugfs_create_dir("kprobes", NULL); in debugfs_kprobe_init()
3031 debugfs_create_file("list", 0400, dir, NULL, &kprobes_fops); in debugfs_kprobe_init()
3033 debugfs_create_file("enabled", 0600, dir, NULL, &fops_kp); in debugfs_kprobe_init()
3035 debugfs_create_file("blacklist", 0400, dir, NULL, in debugfs_kprobe_init()
Daudit_watch.c469 struct inode *inode, struct inode *dir, in audit_watch_handle_event() argument
/kernel/module/
Dsysfs.c144 struct kobject *dir; member
163 if (notes_attrs->dir) { in free_notes_attrs()
165 sysfs_remove_bin_file(notes_attrs->dir, in free_notes_attrs()
167 kobject_put(notes_attrs->dir); in free_notes_attrs()
214 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs()
215 if (!notes_attrs->dir) in add_notes_attrs()
219 if (sysfs_create_bin_file(notes_attrs->dir, in add_notes_attrs()
Dtracking.c123 struct dentry *dir; in unloaded_tainted_modules_init() local
125 dir = debugfs_create_dir("modules", NULL); in unloaded_tainted_modules_init()
126 debugfs_create_file("unloaded_tainted", 0444, dir, NULL, in unloaded_tainted_modules_init()
/kernel/futex/
Dcore.c91 struct dentry *dir; in fail_futex_debugfs() local
93 dir = fault_create_debugfs_attr("fail_futex", NULL, in fail_futex_debugfs()
95 if (IS_ERR(dir)) in fail_futex_debugfs()
96 return PTR_ERR(dir); in fail_futex_debugfs()
98 debugfs_create_bool("ignore-private", mode, dir, in fail_futex_debugfs()
/kernel/gcov/
Dfs.c413 static char *link_target(const char *dir, const char *path, const char *ext) in link_target() argument
425 if (dir) in link_target()
426 target = kasprintf(GFP_KERNEL, "%s/%s.%s", dir, copy, ext); in link_target()
447 if (ext->dir == SRC_TREE) in get_link_target()
Dgcov.h77 } dir; member
/kernel/bpf/preload/iterators/
DMakefile61 OUTPUT=$(abspath $(dir $@))/ prefix= \

12