Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 190) 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 unsigned long offset, size_t size, enum dma_data_direction dir, in c6x_dma_map_page() argument
46 c6x_dma_sync(handle, size, dir); in c6x_dma_map_page()
52 size_t size, enum dma_data_direction dir, unsigned long attrs) in c6x_dma_unmap_page() argument
55 c6x_dma_sync(handle, size, dir); in c6x_dma_unmap_page()
59 int nents, enum dma_data_direction dir, unsigned long attrs) in c6x_dma_map_sg() argument
67 c6x_dma_sync(sg->dma_address, sg->length, dir); in c6x_dma_map_sg()
74 int nents, enum dma_data_direction dir, unsigned long attrs) in c6x_dma_unmap_sg() argument
[all …]
/arch/arm/mm/
Ddma-mapping-nommu.c101 enum dma_data_direction dir) in __dma_page_cpu_to_dev() argument
103 dmac_map_area(__va(paddr), size, dir); in __dma_page_cpu_to_dev()
105 if (dir == DMA_FROM_DEVICE) in __dma_page_cpu_to_dev()
112 enum dma_data_direction dir) in __dma_page_dev_to_cpu() argument
114 if (dir != DMA_TO_DEVICE) { in __dma_page_dev_to_cpu()
116 dmac_unmap_area(__va(paddr), size, dir); in __dma_page_dev_to_cpu()
122 enum dma_data_direction dir, in arm_nommu_dma_map_page() argument
127 __dma_page_cpu_to_dev(handle, size, dir); in arm_nommu_dma_map_page()
133 size_t size, enum dma_data_direction dir, in arm_nommu_dma_unmap_page() argument
136 __dma_page_dev_to_cpu(handle, size, dir); in arm_nommu_dma_unmap_page()
[all …]
/arch/um/os-Linux/
Dumid.c30 char dir[512] = { '\0' }; in make_uml_dir() local
43 strlcpy(dir, home, sizeof(dir)); in make_uml_dir()
46 strlcat(dir, uml_dir, sizeof(dir)); in make_uml_dir()
47 len = strlen(dir); in make_uml_dir()
48 if (len > 0 && dir[len - 1] != '/') in make_uml_dir()
49 strlcat(dir, "/", sizeof(dir)); in make_uml_dir()
52 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
58 strcpy(uml_dir, dir); in make_uml_dir()
81 static int remove_files_and_dir(char *dir) in remove_files_and_dir() argument
89 directory = opendir(dir); in remove_files_and_dir()
[all …]
Dmem.c24 static int __init check_tmpfs(const char *dir) in check_tmpfs() argument
28 os_info("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 os_info("%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/blackfin/include/asm/
Ddma-mapping.h13 __dma_sync(dma_addr_t addr, size_t size, enum dma_data_direction dir);
15 __dma_sync_inline(dma_addr_t addr, size_t size, enum dma_data_direction dir) in __dma_sync_inline() argument
17 switch (dir) { in __dma_sync_inline()
31 _dma_sync(dma_addr_t addr, size_t size, enum dma_data_direction dir) in _dma_sync() argument
33 if (__builtin_constant_p(dir)) in _dma_sync()
34 __dma_sync_inline(addr, size, dir); in _dma_sync()
36 __dma_sync(addr, size, dir); in _dma_sync()
/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, unsigned long 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/xtensa/kernel/
Dpci-dma.c30 enum dma_data_direction dir) in dma_cache_sync() argument
32 switch (dir) { in dma_cache_sync()
76 enum dma_data_direction dir) in xtensa_sync_single_for_cpu() argument
78 switch (dir) { in xtensa_sync_single_for_cpu()
95 enum dma_data_direction dir) in xtensa_sync_single_for_device() argument
97 switch (dir) { in xtensa_sync_single_for_device()
115 enum dma_data_direction dir) in xtensa_sync_sg_for_cpu() argument
122 sg_dma_len(s), dir); in xtensa_sync_sg_for_cpu()
128 enum dma_data_direction dir) in xtensa_sync_sg_for_device() argument
135 sg_dma_len(s), dir); in xtensa_sync_sg_for_device()
[all …]
/arch/arc/mm/
Ddma.c139 enum dma_data_direction dir) in _dma_cache_sync() argument
141 switch (dir) { in _dma_cache_sync()
152 pr_err("Invalid DMA dir [%d] for OP @ %pa[p]\n", dir, &paddr); in _dma_cache_sync()
170 unsigned long offset, size_t size, enum dma_data_direction dir, in arc_dma_map_page() argument
176 _dma_cache_sync(paddr, size, dir); in arc_dma_map_page()
190 size_t size, enum dma_data_direction dir, in arc_dma_unmap_page() argument
196 _dma_cache_sync(paddr, size, dir); in arc_dma_unmap_page()
200 int nents, enum dma_data_direction dir, unsigned long attrs) in arc_dma_map_sg() argument
207 s->length, dir); in arc_dma_map_sg()
213 int nents, enum dma_data_direction dir, in arc_dma_unmap_sg() argument
[all …]
/arch/arm/common/
Ddmabounce.c109 size_t size, enum dma_data_direction dir) in alloc_safe_buffer() argument
117 __func__, ptr, size, dir); in alloc_safe_buffer()
135 buf->direction = dir; in alloc_safe_buffer()
247 enum dma_data_direction dir, in map_single() argument
256 buf = alloc_safe_buffer(device_info, ptr, size, dir); in map_single()
267 if ((dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL) && in map_single()
278 size_t size, enum dma_data_direction dir, in unmap_single() argument
282 BUG_ON(buf->direction != dir); in unmap_single()
290 if ((dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) && in unmap_single()
317 unsigned long offset, size_t size, enum dma_data_direction dir, in dmabounce_map_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/sh/kernel/
Ddma-nommu.c15 enum dma_data_direction dir, in nommu_map_page() argument
23 dma_cache_sync(dev, page_address(page) + offset, size, dir); in nommu_map_page()
29 int nents, enum dma_data_direction dir, in nommu_map_sg() argument
41 dma_cache_sync(dev, sg_virt(s), s->length, dir); in nommu_map_sg()
52 size_t size, enum dma_data_direction dir) in nommu_sync_single() argument
54 dma_cache_sync(dev, phys_to_virt(addr), size, dir); in nommu_sync_single()
58 int nelems, enum dma_data_direction dir) in nommu_sync_sg() argument
64 dma_cache_sync(dev, sg_virt(s), s->length, dir); in nommu_sync_sg()
/arch/x86/mm/
Ddebug_pagetables.c75 static struct dentry *dir, *pe_knl, *pe_curknl; variable
79 dir = debugfs_create_dir("page_tables", NULL); in pt_dump_debug_init()
80 if (!dir) in pt_dump_debug_init()
83 pe_knl = debugfs_create_file("kernel", 0400, dir, NULL, in pt_dump_debug_init()
89 dir, NULL, &ptdump_curknl_fops); in pt_dump_debug_init()
95 dir, NULL, &ptdump_curusr_fops); in pt_dump_debug_init()
101 debugfs_remove_recursive(dir); in pt_dump_debug_init()
107 debugfs_remove_recursive(dir); in pt_dump_debug_exit()
/arch/arm64/mm/
Ddma-mapping.c199 enum dma_data_direction dir, in __swiotlb_map_page() argument
204 dev_addr = swiotlb_map_page(dev, page, offset, size, dir, attrs); in __swiotlb_map_page()
207 __dma_map_area(phys_to_virt(dma_to_phys(dev, dev_addr)), size, dir); in __swiotlb_map_page()
214 size_t size, enum dma_data_direction dir, in __swiotlb_unmap_page() argument
219 __dma_unmap_area(phys_to_virt(dma_to_phys(dev, dev_addr)), size, dir); in __swiotlb_unmap_page()
220 swiotlb_unmap_page(dev, dev_addr, size, dir, attrs); in __swiotlb_unmap_page()
224 int nelems, enum dma_data_direction dir, in __swiotlb_map_sg_attrs() argument
230 ret = swiotlb_map_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_map_sg_attrs()
235 sg->length, dir); in __swiotlb_map_sg_attrs()
242 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 inode_lock(d_inode(dir)); 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 inode_unlock(d_inode(dir)); 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/s390/hypfs/
Dhypfs_vm.c113 #define ATTRIBUTE(dir, name, member) \ argument
116 rc = hypfs_create_u64(dir, name, member); \
181 struct dentry *dir, *file; in hypfs_vm_create_files() local
191 dir = hypfs_mkdir(root, "hyp"); in hypfs_vm_create_files()
192 if (IS_ERR(dir)) { in hypfs_vm_create_files()
193 rc = PTR_ERR(dir); in hypfs_vm_create_files()
196 file = hypfs_create_str(dir, "type", "z/VM Hypervisor"); in hypfs_vm_create_files()
203 dir = hypfs_mkdir(root, "cpus"); in hypfs_vm_create_files()
204 if (IS_ERR(dir)) { in hypfs_vm_create_files()
205 rc = PTR_ERR(dir); in hypfs_vm_create_files()
[all …]
/arch/ia64/scripts/
Dtoolchain-flags10 dir=$(dirname $0)
17 $CC -nostdlib -static -Wl,-T$dir/check-segrel.lds $dir/check-segrel.S -o $out
31 $CC -c $dir/check-text-align.S -o $out
39 if ! $CC -c $dir/check-model.c -o $out 2>&1 | grep __model__ | grep -q attrib
47 $CC -c $dir/check-serialize.S -o $out 2>/dev/null
/arch/mips/loongson64/common/
Ddma-swiotlb.c44 enum dma_data_direction dir, in loongson_dma_map_page() argument
48 dir, attrs); in loongson_dma_map_page()
54 int nents, enum dma_data_direction dir, in loongson_dma_map_sg() argument
57 int r = swiotlb_map_sg_attrs(dev, sg, nents, dir, attrs); in loongson_dma_map_sg()
65 enum dma_data_direction dir) in loongson_dma_sync_single_for_device() argument
67 swiotlb_sync_single_for_device(dev, dma_handle, size, dir); in loongson_dma_sync_single_for_device()
73 enum dma_data_direction dir) in loongson_dma_sync_sg_for_device() argument
75 swiotlb_sync_sg_for_device(dev, sg, nents, dir); in loongson_dma_sync_sg_for_device()
/arch/hexagon/kernel/
Ddma.c98 int nents, enum dma_data_direction dir, in hexagon_map_sg() argument
127 enum dma_data_direction dir) in dma_sync() argument
129 switch (dir) { in dma_sync()
168 enum dma_data_direction dir, in hexagon_map_page() argument
178 dma_sync(dma_addr_to_virt(bus), size, dir); in hexagon_map_page()
185 enum dma_data_direction dir) in hexagon_sync_single_for_cpu() argument
187 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_cpu()
192 enum dma_data_direction dir) in hexagon_sync_single_for_device() argument
194 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_device()
/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/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/m68k/kernel/
Ddma.c102 dma_addr_t handle, size_t size, enum dma_data_direction dir) in m68k_dma_sync_single_for_device() argument
104 switch (dir) { in m68k_dma_sync_single_for_device()
114 dir); in m68k_dma_sync_single_for_device()
120 struct scatterlist *sglist, int nents, enum dma_data_direction dir) in m68k_dma_sync_sg_for_device() argument
127 dir); in m68k_dma_sync_sg_for_device()
132 unsigned long offset, size_t size, enum dma_data_direction dir, in m68k_dma_map_page() argument
138 dma_sync_single_for_device(dev, handle, size, dir); in m68k_dma_map_page()
144 int nents, enum dma_data_direction dir, unsigned long attrs) in m68k_dma_map_sg() argument
156 dir); in m68k_dma_map_sg()
/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()
/arch/openrisc/kernel/
Ddma.c138 enum dma_data_direction dir, in or1k_map_page() argument
147 switch (dir) { in or1k_map_page()
174 size_t size, enum dma_data_direction dir, in or1k_unmap_page() argument
182 int nents, enum dma_data_direction dir, in or1k_map_sg() argument
190 s->length, dir, 0); in or1k_map_sg()
198 int nents, enum dma_data_direction dir, in or1k_unmap_sg() argument
205 or1k_unmap_page(dev, sg_dma_address(s), sg_dma_len(s), dir, 0); in or1k_unmap_sg()
212 enum dma_data_direction dir) in or1k_sync_single_for_cpu() argument
225 enum dma_data_direction dir) in or1k_sync_single_for_device() argument
/arch/x86/include/asm/
Dpgtable_32.h51 #define pte_offset_map(dir, address) \ argument
52 ((pte_t *)kmap_atomic(pmd_page(*(dir))) + \
56 #define pte_offset_map(dir, address) \ argument
57 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index((address)))
/arch/x86/include/asm/xen/
Dpage-coherent.h26 enum dma_data_direction dir, unsigned long attrs) { } in xen_dma_map_page() argument
29 size_t size, enum dma_data_direction dir, in xen_dma_unmap_page() argument
33 dma_addr_t handle, size_t size, enum dma_data_direction dir) { } in xen_dma_sync_single_for_cpu() argument
36 dma_addr_t handle, size_t size, enum dma_data_direction dir) { } in xen_dma_sync_single_for_device() argument

12345678