Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 178) 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.h63 enum dma_data_direction dir) in __inline_dma_cache_sync() argument
65 switch (dir) { in __inline_dma_cache_sync()
76 pr_err("Invalid DMA dir [%d] for OP @ %lx\n", dir, paddr); in __inline_dma_cache_sync()
81 enum dma_data_direction dir);
83 #define _dma_cache_sync(addr, sz, dir) \ argument
85 if (__builtin_constant_p(dir)) \
86 __inline_dma_cache_sync(addr, sz, dir); \
88 __arc_dma_cache_sync(addr, sz, dir); \
94 enum dma_data_direction dir) in dma_map_single() argument
96 _dma_cache_sync((unsigned long)cpu_addr, size, dir); in dma_map_single()
[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/arm/xen/
Dmm32.c76 size_t size, enum dma_data_direction dir, in dma_cache_maint() argument
96 op(vaddr, len, dir); in dma_cache_maint()
107 op(vaddr + offset, len, dir); in dma_cache_maint()
112 op(vaddr + offset, len, dir); in dma_cache_maint()
118 op(vaddr, len, dir); in dma_cache_maint()
129 size_t size, enum dma_data_direction dir) in __xen_dma_page_dev_to_cpu() argument
134 if (dir != DMA_TO_DEVICE) in __xen_dma_page_dev_to_cpu()
137 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_unmap_area); in __xen_dma_page_dev_to_cpu()
141 size_t size, enum dma_data_direction dir) in __xen_dma_page_cpu_to_dev() argument
144 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_map_area); in __xen_dma_page_cpu_to_dev()
[all …]
/arch/c6x/include/asm/
Ddma-mapping.h40 size_t size, enum dma_data_direction dir);
43 size_t size, enum dma_data_direction dir);
53 enum dma_data_direction dir) in dma_map_page() argument
57 handle = dma_map_single(dev, page_address(page) + offset, size, dir); in dma_map_page()
59 debug_dma_map_page(dev, page, offset, size, dir, handle, false); in dma_map_page()
65 size_t size, enum dma_data_direction dir) in dma_unmap_page() argument
67 dma_unmap_single(dev, handle, size, dir); in dma_unmap_page()
69 debug_dma_unmap_page(dev, handle, size, dir, false); in dma_unmap_page()
73 size_t size, enum dma_data_direction dir);
77 enum dma_data_direction dir);
[all …]
/arch/mips/oprofile/
Dcommon.c42 struct dentry *dir; in op_mips_create_files() local
46 dir = oprofilefs_mkdir(root, buf); in op_mips_create_files()
48 oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); in op_mips_create_files()
49 oprofilefs_create_ulong(dir, "event", &ctr[i].event); in op_mips_create_files()
50 oprofilefs_create_ulong(dir, "count", &ctr[i].count); in op_mips_create_files()
51 oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); in op_mips_create_files()
52 oprofilefs_create_ulong(dir, "user", &ctr[i].user); in op_mips_create_files()
53 oprofilefs_create_ulong(dir, "exl", &ctr[i].exl); in op_mips_create_files()
55 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
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/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/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.c368 struct dentry *dir; in oprofile_create_hwsampling_files() local
370 dir = oprofilefs_mkdir(root, "timer"); in oprofile_create_hwsampling_files()
371 if (!dir) in oprofile_create_hwsampling_files()
374 oprofilefs_create_file(dir, "enabled", &timer_enabled_fops); in oprofile_create_hwsampling_files()
395 dir = oprofilefs_mkdir(root, "0"); in oprofile_create_hwsampling_files()
396 if (!dir) in oprofile_create_hwsampling_files()
399 oprofilefs_create_file(dir, "enabled", &hwsampler_fops); in oprofile_create_hwsampling_files()
400 oprofilefs_create_file(dir, "event", &zero_fops); in oprofile_create_hwsampling_files()
401 oprofilefs_create_file(dir, "count", &hw_interval_fops); in oprofile_create_hwsampling_files()
402 oprofilefs_create_file(dir, "unit_mask", &zero_fops); in oprofile_create_hwsampling_files()
[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 enum dma_data_direction dir) in dma_sync_sg_for_device() argument
129 dma_sync_single_for_device(dev, sg->dma_address, sg->length, dir); in dma_sync_sg_for_device()
134 enum dma_data_direction dir) in dma_map_single() argument
138 dma_sync_single_for_device(dev, handle, size, dir); in dma_map_single()
145 enum dma_data_direction dir) in dma_map_page() argument
149 dma_sync_single_for_device(dev, handle, size, dir); in dma_map_page()
155 enum dma_data_direction dir) in dma_map_sg() 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(&dir->d_inode->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(dir->d_inode, dentry); in spufs_prune_dir()
182 shrink_dcache_parent(dir); in spufs_prune_dir()
183 mutex_unlock(&dir->d_inode->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/arm64/mm/
Ddma-mapping.c200 enum dma_data_direction dir, in __swiotlb_map_page() argument
205 dev_addr = swiotlb_map_page(dev, page, offset, size, dir, attrs); in __swiotlb_map_page()
206 __dma_map_area(phys_to_virt(dma_to_phys(dev, dev_addr)), size, dir); in __swiotlb_map_page()
213 size_t size, enum dma_data_direction dir, in __swiotlb_unmap_page() argument
216 __dma_unmap_area(phys_to_virt(dma_to_phys(dev, dev_addr)), size, dir); in __swiotlb_unmap_page()
217 swiotlb_unmap_page(dev, dev_addr, size, dir, attrs); in __swiotlb_unmap_page()
221 int nelems, enum dma_data_direction dir, in __swiotlb_map_sg_attrs() argument
227 ret = swiotlb_map_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_map_sg_attrs()
230 sg->length, dir); in __swiotlb_map_sg_attrs()
237 enum dma_data_direction dir, in __swiotlb_unmap_sg_attrs() argument
[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/s390/hypfs/
Dhypfs_vm.c110 #define ATTRIBUTE(dir, name, member) \ argument
113 rc = hypfs_create_u64(dir, name, member); \
178 struct dentry *dir, *file; in hypfs_vm_create_files() local
188 dir = hypfs_mkdir(root, "hyp"); in hypfs_vm_create_files()
189 if (IS_ERR(dir)) { in hypfs_vm_create_files()
190 rc = PTR_ERR(dir); in hypfs_vm_create_files()
193 file = hypfs_create_str(dir, "type", "z/VM Hypervisor"); in hypfs_vm_create_files()
200 dir = hypfs_mkdir(root, "cpus"); in hypfs_vm_create_files()
201 if (IS_ERR(dir)) { in hypfs_vm_create_files()
202 rc = PTR_ERR(dir); in hypfs_vm_create_files()
[all …]
/arch/ia64/kvm/
Dmmio.c123 u16 s, int ma, int dir) in mmio_access() argument
135 if (!dir) in mmio_access()
144 p->u.ioreq.dir = dir; in mmio_access()
145 if (dir == IOREQ_WRITE) in mmio_access()
151 if (dir == IOREQ_READ) in mmio_access()
172 int slot, dir = 0; in emulate_io_inst() local
201 dir = IOREQ_WRITE; in emulate_io_inst()
205 dir = IOREQ_READ; in emulate_io_inst()
210 dir = IOREQ_READ; in emulate_io_inst()
222 dir = IOREQ_WRITE; in emulate_io_inst()
[all …]
/arch/mips/loongson/common/
Ddma-swiotlb.c59 enum dma_data_direction dir, in loongson_dma_map_page() argument
63 dir, attrs); in loongson_dma_map_page()
69 int nents, enum dma_data_direction dir, in loongson_dma_map_sg() argument
72 int r = swiotlb_map_sg_attrs(dev, sg, nents, dir, NULL); in loongson_dma_map_sg()
80 enum dma_data_direction dir) in loongson_dma_sync_single_for_device() argument
82 swiotlb_sync_single_for_device(dev, dma_handle, size, dir); in loongson_dma_sync_single_for_device()
88 enum dma_data_direction dir) in loongson_dma_sync_sg_for_device() argument
90 swiotlb_sync_sg_for_device(dev, sg, nents, dir); in loongson_dma_sync_sg_for_device()
/arch/arm/include/asm/xen/
Dpage-coherent.h23 unsigned long offset, size_t size, enum dma_data_direction dir, in xen_dma_map_page() argument
26 __generic_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page()
30 size_t size, enum dma_data_direction dir,
34 dma_addr_t handle, size_t size, enum dma_data_direction dir);
37 dma_addr_t handle, size_t size, enum dma_data_direction dir);
/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/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/hexagon/kernel/
Ddma.c118 int nents, enum dma_data_direction dir, in hexagon_map_sg() argument
144 enum dma_data_direction dir) in dma_sync() argument
146 switch (dir) { in dma_sync()
185 enum dma_data_direction dir, in hexagon_map_page() argument
194 dma_sync(dma_addr_to_virt(bus), size, dir); in hexagon_map_page()
201 enum dma_data_direction dir) in hexagon_sync_single_for_cpu() argument
203 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_cpu()
208 enum dma_data_direction dir) in hexagon_sync_single_for_device() argument
210 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_device()
/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.c139 enum dma_data_direction dir, in or1k_map_page() argument
145 switch (dir) { in or1k_map_page()
172 size_t size, enum dma_data_direction dir, in or1k_unmap_page() argument
180 int nents, enum dma_data_direction dir, in or1k_map_sg() argument
188 s->length, dir, NULL); in or1k_map_sg()
196 int nents, enum dma_data_direction dir, in or1k_unmap_sg() argument
203 or1k_unmap_page(dev, sg_dma_address(s), sg_dma_len(s), dir, NULL); in or1k_unmap_sg()
210 enum dma_data_direction dir) in or1k_sync_single_for_cpu() argument
223 enum dma_data_direction dir) in or1k_sync_single_for_device() argument

12345678