Home
last modified time | relevance | path

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

12345678

/arch/c6x/kernel/
Ddma.c18 enum dma_data_direction dir) in c6x_dma_sync() argument
22 BUG_ON(!valid_dma_direction(dir)); in c6x_dma_sync()
24 switch (dir) { in c6x_dma_sync()
40 enum dma_data_direction dir) in dma_map_single() argument
44 c6x_dma_sync(addr, size, dir); in dma_map_single()
48 dir, addr, true); in dma_map_single()
55 size_t size, enum dma_data_direction dir) in dma_unmap_single() argument
57 c6x_dma_sync(handle, size, dir); in dma_unmap_single()
59 debug_dma_unmap_page(dev, handle, size, dir, true); in dma_unmap_single()
65 int nents, enum dma_data_direction dir) in dma_map_sg() argument
[all …]
/arch/blackfin/include/asm/
Ddma-mapping.h43 __dma_sync(dma_addr_t addr, size_t size, enum dma_data_direction dir);
45 __dma_sync_inline(dma_addr_t addr, size_t size, enum dma_data_direction dir) in __dma_sync_inline() argument
47 switch (dir) { in __dma_sync_inline()
61 _dma_sync(dma_addr_t addr, size_t size, enum dma_data_direction dir) in _dma_sync() argument
63 if (__builtin_constant_p(dir)) in _dma_sync()
64 __dma_sync_inline(addr, size, dir); in _dma_sync()
66 __dma_sync(addr, size, dir); in _dma_sync()
71 enum dma_data_direction dir) in dma_map_single() argument
73 _dma_sync((dma_addr_t)ptr, size, dir); in dma_map_single()
80 enum dma_data_direction dir) in dma_map_page() argument
[all …]
/arch/arc/include/asm/
Ddma-mapping.h46 enum dma_data_direction dir) in __inline_dma_cache_sync() argument
48 switch (dir) { in __inline_dma_cache_sync()
59 pr_err("Invalid DMA dir [%d] for OP @ %lx\n", dir, paddr); in __inline_dma_cache_sync()
64 enum dma_data_direction dir);
66 #define _dma_cache_sync(addr, sz, dir) \ argument
68 if (__builtin_constant_p(dir)) \
69 __inline_dma_cache_sync(addr, sz, dir); \
71 __arc_dma_cache_sync(addr, sz, dir); \
77 enum dma_data_direction dir) in dma_map_single() argument
79 _dma_cache_sync((unsigned long)cpu_addr, size, dir); in dma_map_single()
[all …]
/arch/arm/include/asm/xen/
Dpage-coherent.h10 enum dma_data_direction dir, struct dma_attrs *attrs);
12 size_t size, enum dma_data_direction dir,
15 dma_addr_t handle, size_t size, enum dma_data_direction dir);
18 dma_addr_t handle, size_t size, enum dma_data_direction dir);
36 enum dma_data_direction dir, struct dma_attrs *attrs) in xen_dma_map_page() argument
55 __generic_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page()
57 __xen_dma_map_page(hwdev, page, dev_addr, offset, size, dir, attrs); in xen_dma_map_page()
61 size_t size, enum dma_data_direction dir, in xen_dma_unmap_page() argument
75 __generic_dma_ops(hwdev)->unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page()
77 __xen_dma_unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page()
[all …]
/arch/um/os-Linux/
Dumid.c30 char dir[512] = { '\0' }; in make_uml_dir() local
42 strlcpy(dir, home, sizeof(dir)); in make_uml_dir()
45 strlcat(dir, uml_dir, sizeof(dir)); in make_uml_dir()
46 len = strlen(dir); in make_uml_dir()
47 if (len > 0 && dir[len - 1] != '/') in make_uml_dir()
48 strlcat(dir, "/", sizeof(dir)); in make_uml_dir()
51 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
56 strcpy(uml_dir, dir); in make_uml_dir()
78 static int remove_files_and_dir(char *dir) in remove_files_and_dir() argument
86 directory = opendir(dir); in remove_files_and_dir()
[all …]
Dmem.c24 static int __init check_tmpfs(const char *dir) in check_tmpfs() argument
28 printf("Checking if %s is on tmpfs...", dir); in check_tmpfs()
29 if (statfs(dir, &st) < 0) { in check_tmpfs()
62 const char *dir; in choose_tempdir() local
66 dir = getenv(vars[i]); in choose_tempdir()
67 if ((dir != NULL) && (*dir != '\0')) { in choose_tempdir()
68 printf("%s\n", dir); in choose_tempdir()
69 if (check_tmpfs(dir) >= 0) in choose_tempdir()
78 dir = tmpfs_dirs[i]; in choose_tempdir()
79 if (check_tmpfs(dir) >= 0) in choose_tempdir()
[all …]
/arch/c6x/include/asm/
Ddma-mapping.h24 enum dma_data_direction dir) in dma_sync_single_range_for_device() argument
48 size_t size, enum dma_data_direction dir);
51 size_t size, enum dma_data_direction dir);
61 enum dma_data_direction dir) in dma_map_page() argument
65 handle = dma_map_single(dev, page_address(page) + offset, size, dir); in dma_map_page()
67 debug_dma_map_page(dev, page, offset, size, dir, handle, false); in dma_map_page()
73 size_t size, enum dma_data_direction dir) in dma_unmap_page() argument
75 dma_unmap_single(dev, handle, size, dir); in dma_unmap_page()
77 debug_dma_unmap_page(dev, handle, size, dir, false); in dma_unmap_page()
81 size_t size, enum dma_data_direction dir);
[all …]
/arch/xtensa/kernel/
Dpci-dma.c29 enum dma_data_direction dir) in dma_cache_sync() argument
31 switch (dir) { in dma_cache_sync()
75 enum dma_data_direction dir) in xtensa_sync_single_for_cpu() argument
77 switch (dir) { in xtensa_sync_single_for_cpu()
94 enum dma_data_direction dir) in xtensa_sync_single_for_device() argument
96 switch (dir) { in xtensa_sync_single_for_device()
114 enum dma_data_direction dir) in xtensa_sync_sg_for_cpu() argument
121 sg_dma_len(s), dir); in xtensa_sync_sg_for_cpu()
127 enum dma_data_direction dir) in xtensa_sync_sg_for_device() argument
134 sg_dma_len(s), dir); in xtensa_sync_sg_for_device()
[all …]
/arch/arm/xen/
Dmm.c48 size_t size, enum dma_data_direction dir, enum dma_cache_op op) in dma_cache_maint() argument
70 if (op == DMA_UNMAP && dir != DMA_TO_DEVICE) in dma_cache_maint()
73 if (dir == DMA_FROM_DEVICE) in dma_cache_maint()
88 size_t size, enum dma_data_direction dir) in __xen_dma_page_dev_to_cpu() argument
90 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, DMA_UNMAP); in __xen_dma_page_dev_to_cpu()
94 size_t size, enum dma_data_direction dir) in __xen_dma_page_cpu_to_dev() argument
96 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, DMA_MAP); in __xen_dma_page_cpu_to_dev()
101 enum dma_data_direction dir, struct dma_attrs *attrs) in __xen_dma_map_page() argument
108 __xen_dma_page_cpu_to_dev(hwdev, dev_addr, size, dir); in __xen_dma_map_page()
112 size_t size, enum dma_data_direction dir, in __xen_dma_unmap_page() argument
[all …]
/arch/mips/oprofile/
Dcommon.c43 struct dentry *dir; in op_mips_create_files() local
47 dir = oprofilefs_mkdir(root, buf); in op_mips_create_files()
49 oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); in op_mips_create_files()
50 oprofilefs_create_ulong(dir, "event", &ctr[i].event); in op_mips_create_files()
51 oprofilefs_create_ulong(dir, "count", &ctr[i].count); in op_mips_create_files()
52 oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); in op_mips_create_files()
53 oprofilefs_create_ulong(dir, "user", &ctr[i].user); in op_mips_create_files()
54 oprofilefs_create_ulong(dir, "exl", &ctr[i].exl); in op_mips_create_files()
56 oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); in op_mips_create_files()
/arch/arm/common/
Ddmabounce.c108 size_t size, enum dma_data_direction dir) in alloc_safe_buffer() argument
116 __func__, ptr, size, dir); in alloc_safe_buffer()
134 buf->direction = dir; in alloc_safe_buffer()
246 enum dma_data_direction dir) in map_single() argument
254 buf = alloc_safe_buffer(device_info, ptr, size, dir); in map_single()
265 if (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL) { in map_single()
275 size_t size, enum dma_data_direction dir) in unmap_single() argument
278 BUG_ON(buf->direction != dir); in unmap_single()
286 if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) { in unmap_single()
312 unsigned long offset, size_t size, enum dma_data_direction dir, in dmabounce_map_page() argument
[all …]
/arch/sh/kernel/
Ddma-nommu.c15 enum dma_data_direction dir, in nommu_map_page() argument
21 dma_cache_sync(dev, page_address(page) + offset, size, dir); in nommu_map_page()
27 int nents, enum dma_data_direction dir, in nommu_map_sg() argument
38 dma_cache_sync(dev, sg_virt(s), s->length, dir); in nommu_map_sg()
49 size_t size, enum dma_data_direction dir) in nommu_sync_single() argument
51 dma_cache_sync(dev, phys_to_virt(addr), size, dir); in nommu_sync_single()
55 int nelems, enum dma_data_direction dir) in nommu_sync_sg() argument
61 dma_cache_sync(dev, sg_virt(s), s->length, dir); in nommu_sync_sg()
/arch/arm/mach-ux500/
Dboard-mop500-audio.c19 .dir = DMA_DEV_TO_MEM,
25 .dir = DMA_MEM_TO_DEV,
37 .dir = DMA_DEV_TO_MEM,
43 .dir = DMA_MEM_TO_DEV,
55 .dir = DMA_DEV_TO_MEM,
61 .dir = DMA_MEM_TO_DEV,
/arch/s390/oprofile/
Dinit.c367 struct dentry *dir; in oprofile_create_hwsampling_files() local
369 dir = oprofilefs_mkdir(root, "timer"); in oprofile_create_hwsampling_files()
370 if (!dir) in oprofile_create_hwsampling_files()
373 oprofilefs_create_file(dir, "enabled", &timer_enabled_fops); in oprofile_create_hwsampling_files()
394 dir = oprofilefs_mkdir(root, "0"); in oprofile_create_hwsampling_files()
395 if (!dir) in oprofile_create_hwsampling_files()
398 oprofilefs_create_file(dir, "enabled", &hwsampler_fops); in oprofile_create_hwsampling_files()
399 oprofilefs_create_file(dir, "event", &zero_fops); in oprofile_create_hwsampling_files()
400 oprofilefs_create_file(dir, "count", &hw_interval_fops); in oprofile_create_hwsampling_files()
401 oprofilefs_create_file(dir, "unit_mask", &zero_fops); in oprofile_create_hwsampling_files()
[all …]
/arch/arm64/mm/
Ddma-mapping.c204 enum dma_data_direction dir, in __swiotlb_map_page() argument
209 dev_addr = swiotlb_map_page(dev, page, offset, size, dir, attrs); in __swiotlb_map_page()
211 __dma_map_area(phys_to_virt(dma_to_phys(dev, dev_addr)), size, dir); in __swiotlb_map_page()
218 size_t size, enum dma_data_direction dir, in __swiotlb_unmap_page() argument
222 __dma_unmap_area(phys_to_virt(dma_to_phys(dev, dev_addr)), size, dir); in __swiotlb_unmap_page()
223 swiotlb_unmap_page(dev, dev_addr, size, dir, attrs); in __swiotlb_unmap_page()
227 int nelems, enum dma_data_direction dir, in __swiotlb_map_sg_attrs() argument
233 ret = swiotlb_map_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_map_sg_attrs()
237 sg->length, dir); in __swiotlb_map_sg_attrs()
244 enum dma_data_direction dir, in __swiotlb_unmap_sg_attrs() argument
[all …]
/arch/powerpc/platforms/cell/spufs/
Dinode.c162 static void spufs_prune_dir(struct dentry *dir) in spufs_prune_dir() argument
166 mutex_lock(&d_inode(dir)->i_mutex); in spufs_prune_dir()
167 list_for_each_entry_safe(dentry, tmp, &dir->d_subdirs, d_child) { in spufs_prune_dir()
173 simple_unlink(d_inode(dir), dentry); in spufs_prune_dir()
182 shrink_dcache_parent(dir); in spufs_prune_dir()
183 mutex_unlock(&d_inode(dir)->i_mutex); in spufs_prune_dir()
187 static int spufs_rmdir(struct inode *parent, struct dentry *dir) in spufs_rmdir() argument
191 spufs_prune_dir(dir); in spufs_rmdir()
192 d_drop(dir); in spufs_rmdir()
193 res = simple_rmdir(parent, dir); in spufs_rmdir()
[all …]
/arch/m68k/kernel/
Ddma.c105 size_t size, enum dma_data_direction dir) in dma_sync_single_for_device() argument
107 switch (dir) { in dma_sync_single_for_device()
117 printk("dma_sync_single_for_device: unsupported dir %u\n", dir); in dma_sync_single_for_device()
124 int nents, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
131 dir); in dma_sync_sg_for_device()
137 enum dma_data_direction dir) in dma_map_single() argument
141 dma_sync_single_for_device(dev, handle, size, dir); in dma_map_single()
148 enum dma_data_direction dir) in dma_map_page() argument
152 dma_sync_single_for_device(dev, handle, size, dir); in dma_map_page()
158 enum dma_data_direction dir) in dma_map_sg() argument
[all …]
/arch/s390/hypfs/
Dhypfs_vm.c114 #define ATTRIBUTE(dir, name, member) \ argument
117 rc = hypfs_create_u64(dir, name, member); \
182 struct dentry *dir, *file; in hypfs_vm_create_files() local
192 dir = hypfs_mkdir(root, "hyp"); in hypfs_vm_create_files()
193 if (IS_ERR(dir)) { in hypfs_vm_create_files()
194 rc = PTR_ERR(dir); in hypfs_vm_create_files()
197 file = hypfs_create_str(dir, "type", "z/VM Hypervisor"); in hypfs_vm_create_files()
204 dir = hypfs_mkdir(root, "cpus"); in hypfs_vm_create_files()
205 if (IS_ERR(dir)) { in hypfs_vm_create_files()
206 rc = PTR_ERR(dir); in hypfs_vm_create_files()
[all …]
/arch/ia64/scripts/
Dtoolchain-flags9 dir=$(dirname $0)
16 $CC -nostdlib -static -Wl,-T$dir/check-segrel.lds $dir/check-segrel.S -o $out
30 $CC -c $dir/check-text-align.S -o $out
38 if ! $CC -c $dir/check-model.c -o $out 2>&1 | grep __model__ | grep -q attrib
46 $CC -c $dir/check-serialize.S -o $out 2>/dev/null
/arch/mips/mm/
Dsc-debugfs.c65 struct dentry *dir, *file; in sc_debugfs_init() local
70 dir = debugfs_create_dir("l2cache", mips_debugfs_dir); in sc_debugfs_init()
71 if (IS_ERR(dir)) in sc_debugfs_init()
72 return PTR_ERR(dir); in sc_debugfs_init()
74 file = debugfs_create_file("prefetch", S_IRUGO | S_IWUSR, dir, in sc_debugfs_init()
/arch/hexagon/kernel/
Ddma.c107 int nents, enum dma_data_direction dir, in hexagon_map_sg() argument
133 enum dma_data_direction dir) in dma_sync() argument
135 switch (dir) { in dma_sync()
174 enum dma_data_direction dir, in hexagon_map_page() argument
183 dma_sync(dma_addr_to_virt(bus), size, dir); in hexagon_map_page()
190 enum dma_data_direction dir) in hexagon_sync_single_for_cpu() argument
192 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_cpu()
197 enum dma_data_direction dir) in hexagon_sync_single_for_device() argument
199 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_device()
/arch/x86/include/asm/
Dpgtable_32.h49 #define pte_offset_map(dir, address) \ argument
50 ((pte_t *)kmap_atomic(pmd_page(*(dir))) + \
54 #define pte_offset_map(dir, address) \ argument
55 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index((address)))
/arch/mips/loongson64/common/
Ddma-swiotlb.c51 enum dma_data_direction dir, in loongson_dma_map_page() argument
55 dir, attrs); in loongson_dma_map_page()
61 int nents, enum dma_data_direction dir, in loongson_dma_map_sg() argument
64 int r = swiotlb_map_sg_attrs(dev, sg, nents, dir, NULL); in loongson_dma_map_sg()
72 enum dma_data_direction dir) in loongson_dma_sync_single_for_device() argument
74 swiotlb_sync_single_for_device(dev, dma_handle, size, dir); in loongson_dma_sync_single_for_device()
80 enum dma_data_direction dir) in loongson_dma_sync_sg_for_device() argument
82 swiotlb_sync_sg_for_device(dev, sg, nents, dir); in loongson_dma_sync_sg_for_device()
/arch/alpha/oprofile/
Dcommon.c114 struct dentry *dir; in op_axp_create_files() local
118 dir = oprofilefs_mkdir(root, buf); in op_axp_create_files()
120 oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); in op_axp_create_files()
121 oprofilefs_create_ulong(dir, "event", &ctr[i].event); in op_axp_create_files()
122 oprofilefs_create_ulong(dir, "count", &ctr[i].count); in op_axp_create_files()
124 oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); in op_axp_create_files()
125 oprofilefs_create_ulong(dir, "user", &ctr[i].user); in op_axp_create_files()
126 oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); in op_axp_create_files()
/arch/powerpc/oprofile/
Dcommon.c159 struct dentry *dir; in op_powerpc_create_files() local
163 dir = oprofilefs_mkdir(root, buf); in op_powerpc_create_files()
165 oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); in op_powerpc_create_files()
166 oprofilefs_create_ulong(dir, "event", &ctr[i].event); in op_powerpc_create_files()
167 oprofilefs_create_ulong(dir, "count", &ctr[i].count); in op_powerpc_create_files()
176 oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); in op_powerpc_create_files()
177 oprofilefs_create_ulong(dir, "user", &ctr[i].user); in op_powerpc_create_files()
179 oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); in op_powerpc_create_files()

12345678