Searched refs:size (Results 251 - 275 of 2507) sorted by relevance

<<11121314151617181920>>

/arch/mips/pci/
H A Dops-gt64xxx_pci0.c104 int where, int size, u32 * val)
112 if (size == 1)
114 else if (size == 2)
123 int where, int size, u32 val)
127 if (size == 4)
134 if (size == 1)
137 else if (size == 2)
103 gt64xxx_pci0_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) argument
122 gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument
H A Dops-loongson3.c51 int where, int size, u32 *val)
60 if (size == 1)
62 else if (size == 2)
71 int where, int size, u32 val)
76 if (size == 4)
84 if (size == 1)
87 else if (size == 2)
50 loongson3_pci_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument
70 loongson3_pci_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument
H A Dops-mace.c42 int reg, int size, u32 *val)
49 switch (size) {
67 if (bus->number == 0 && reg == 0x40 && size == 4 &&
71 DPRINTK("read%d: reg=%08x,val=%02x\n", size * 8, reg, *val);
78 int reg, int size, u32 val)
81 switch (size) {
93 DPRINTK("write%d: reg=%08x,val=%02x\n", size * 8, reg, val);
41 mace_pci_read_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 *val) argument
77 mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) argument
/arch/parisc/include/asm/
H A Dcmpxchg.h22 /* optimizer better get rid of switch since size is a constant */
24 __xchg(unsigned long x, __volatile__ void *ptr, int size) argument
26 switch (size) {
51 /* bug catcher for when unsupported size is used - won't link */
62 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) argument
64 switch (size) {
87 unsigned long new_, int size)
89 switch (size) {
95 return __cmpxchg_local_generic(ptr, old, new_, size);
85 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new_, int size) argument
/arch/sh/include/asm/
H A Dcacheflush.h34 extern void (*__flush_wback_region)(void *start, int size);
35 extern void (*__flush_purge_region)(void *start, int size);
36 extern void (*__flush_invalidate_region)(void *start, int size);
66 static inline void flush_kernel_vmap_range(void *addr, int size) argument
68 __flush_wback_region(addr, size);
70 static inline void invalidate_kernel_vmap_range(void *addr, int size) argument
72 __flush_invalidate_region(addr, size);
/arch/x86/kernel/
H A Dpci-nommu.c15 check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size) argument
17 if (hwdev && !dma_capable(hwdev, bus, size)) {
21 name, (long long)bus, size,
29 unsigned long offset, size_t size,
34 WARN_ON(size == 0);
35 if (!check_addr("map_single", dev, bus, size))
77 dma_addr_t addr, size_t size,
28 nommu_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, struct dma_attrs *attrs) argument
76 nommu_sync_single_for_device(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) argument
/arch/x86/mm/
H A Diomap_32.c24 static int is_io_mapping_possible(resource_size_t base, unsigned long size) argument
28 if (base + size > 0x100000000ULL)
34 int iomap_create_wc(resource_size_t base, unsigned long size, pgprot_t *prot) argument
39 if (!is_io_mapping_possible(base, size))
42 ret = io_reserve_memtype(base, base + size, &flag);
51 void iomap_free(resource_size_t base, unsigned long size) argument
53 io_free_memtype(base, base + size);
/arch/xtensa/include/asm/
H A Dcmpxchg.h56 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) argument
58 switch (size) {
76 unsigned long new, int size)
78 switch (size) {
82 return __cmpxchg_local_generic(ptr, old, new, size);
150 __xchg(unsigned long x, volatile void * ptr, int size) argument
152 switch (size) {
74 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) argument
/arch/powerpc/boot/dts/
H A Dobs600.dts19 #size-cells = <1>;
33 #size-cells = <0>;
41 i-cache-line-size = <32>;
42 d-cache-line-size = <32>;
43 i-cache-size = <16384>; /* 16 kB */
44 d-cache-size = <16384>; /* 16 kB */
61 #size-cells = <0>;
71 #size-cells = <0>;
83 #size-cells = <0>;
101 #size
[all...]
H A Deiger.dts15 #size-cells = <1>;
31 #size-cells = <0>;
39 i-cache-line-size = <32>;
40 d-cache-line-size = <32>;
41 i-cache-size = <32768>;
42 d-cache-size = <32768>;
59 #size-cells = <0>;
69 #size-cells = <0>;
81 #size-cells = <0>;
93 #size
[all...]
H A Dmpc5121.dtsi20 #size-cells = <1>;
30 #size-cells = <0>;
35 d-cache-line-size = <0x20>; /* 32 bytes */
36 i-cache-line-size = <0x20>; /* 32 bytes */
37 d-cache-size = <0x8000>; /* L1, 32K */
38 i-cache-size = <0x8000>; /* L1, 32K */
70 #size-cells = <1>;
78 #size-cells = <1>;
86 #size-cells = <0>;
98 #size
[all...]
/arch/avr32/include/asm/
H A Ddma-mapping.h11 extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
46 * @size: required memory size
54 extern void *dma_alloc_coherent(struct device *dev, size_t size,
60 * @size: size of memory originally requested in dma_alloc_coherent
70 extern void dma_free_coherent(struct device *dev, size_t size,
76 * @size: required memory size
84 extern void *dma_alloc_writecombine(struct device *dev, size_t size,
117 dma_map_single(struct device *dev, void *cpu_addr, size_t size, enum dma_data_direction direction) argument
139 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, enum dma_data_direction direction) argument
160 dma_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction direction) argument
183 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, enum dma_data_direction direction) argument
264 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) argument
275 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) argument
282 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, unsigned long offset, size_t size, enum dma_data_direction direction) argument
291 dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, unsigned long offset, size_t size, enum dma_data_direction direction) argument
[all...]
/arch/metag/include/asm/
H A Duaccess.h42 #define __user_bad(addr, size) (((addr) > 0 && (addr) < META_MEMORY_BASE) || \
46 static inline int __access_ok(unsigned long addr, unsigned long size) argument
48 return __kernel_ok || !__user_bad(addr, size);
51 #define access_ok(type, addr, size) __access_ok((unsigned long)(addr), \
52 (unsigned long)(size))
54 static inline int verify_area(int type, const void *addr, unsigned long size) argument
56 return access_ok(type, addr, size) ? 0 : -EFAULT;
79 * use the right size if we just have the right pointer type.
89 #define __put_user_nocheck(x, ptr, size) \
92 __put_user_size((x), (ptr), (size), __pu_er
[all...]
H A Dio.h136 size_t size, unsigned long flags);
142 * @size: size of the resource to map
150 #define ioremap(offset, size) \
151 __ioremap((offset), (size), 0)
153 #define ioremap_nocache(offset, size) \
154 __ioremap((offset), (size), 0)
156 #define ioremap_cached(offset, size) \
157 __ioremap((offset), (size), _PAGE_CACHEABLE)
159 #define ioremap_wc(offset, size) \
[all...]
/arch/powerpc/include/asm/
H A Ddma-mapping.h24 extern void *dma_direct_alloc_coherent(struct device *dev, size_t size,
27 extern void dma_direct_free_coherent(struct device *dev, size_t size,
33 size_t size, struct dma_attrs *attrs);
44 extern void *__dma_alloc_coherent(struct device *dev, size_t size,
46 extern void __dma_free_coherent(size_t size, void *vaddr);
47 extern void __dma_sync(void *vaddr, size_t size, int direction);
49 size_t size, int direction);
57 #define __dma_alloc_coherent(dev, gfp, size, handle) NULL
58 #define __dma_free_coherent(size, addr) ((void)0)
59 #define __dma_sync(addr, size, r
142 dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, struct dma_attrs *attrs) argument
160 dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle, struct dma_attrs *attrs) argument
188 dma_capable(struct device *dev, dma_addr_t addr, size_t size) argument
218 dma_cache_sync(struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction) argument
[all...]
/arch/powerpc/platforms/powernv/
H A Dopal-flash.c77 /* Validate buffer size */
80 /* XXX: Assume candidate image size is <= 1GB */
94 uint32_t size; member in struct:image_data_t
101 uint32_t size; member in struct:image_header_t
107 uint32_t buf_size; /* Image size */
134 __be32 size = cpu_to_be32(validate_flash_data.buf_size); local
137 ret = opal_validate_flash(__pa(buf), &size, &result);
140 validate_flash_data.buf_size = be32_to_cpu(size);
202 image_data.size < VALIDATE_BUF_SIZE) {
288 list = opal_vmalloc_to_sg_list(image_data.data, image_data.size);
395 int size; local
415 int size; local
[all...]
/arch/arm/include/asm/
H A Dcmpxchg.h27 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) argument
41 switch (size) {
97 __bad_xchg(ptr, size), ret = 0;
132 extern void __bad_cmpxchg(volatile void *ptr, int size);
139 unsigned long new, int size)
145 switch (size) {
185 __bad_cmpxchg(ptr, size);
193 unsigned long new, int size)
198 ret = __cmpxchg(ptr, old, new, size);
212 unsigned long new, int size)
138 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) argument
192 __cmpxchg_mb(volatile void *ptr, unsigned long old, unsigned long new, int size) argument
210 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) argument
[all...]
/arch/arm64/include/asm/
H A Ddma-mapping.h96 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) argument
101 return addr + size - 1 <= *dev->dma_mask;
104 static inline void dma_mark_clean(void *addr, size_t size) argument
111 static inline void *dma_alloc_attrs(struct device *dev, size_t size, argument
118 if (dma_alloc_from_coherent(dev, size, dma_handle, &vaddr))
121 vaddr = ops->alloc(dev, size, dma_handle, flags, attrs);
122 debug_dma_alloc_coherent(dev, size, *dma_handle, vaddr);
126 static inline void dma_free_attrs(struct device *dev, size_t size, argument
132 if (dma_release_from_coherent(dev, get_order(size), vaddr))
135 debug_dma_free_coherent(dev, size, vadd
142 dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *handle, gfp_t flags) argument
148 dma_free_noncoherent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t handle) argument
[all...]
/arch/frv/include/asm/
H A Ddma-mapping.h21 void *dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp);
22 void dma_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle);
24 extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size,
28 void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, argument
46 size_t size, enum dma_data_direction direction);
49 void dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, argument
57 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, argument
63 void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, argument
71 unsigned long offset, size_t size,
78 unsigned long offset, size_t size,
70 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, unsigned long offset, size_t size, enum dma_data_direction direction) argument
77 dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, unsigned long offset, size_t size, enum dma_data_direction direction) argument
129 dma_cache_sync(struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction) argument
136 dma_mmap_coherent(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size) argument
143 dma_get_sgtable(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size) argument
[all...]
/arch/microblaze/include/asm/
H A Ddma-mapping.h35 #define __dma_alloc_coherent(dev, gfp, size, handle) NULL
36 #define __dma_free_coherent(size, addr) ((void)0)
76 size_t size, enum dma_data_direction direction)
81 flush_dcache_range(paddr, paddr + size);
84 invalidate_dcache_range(paddr, paddr + size);
107 static inline void *dma_alloc_attrs(struct device *dev, size_t size, argument
116 memory = ops->alloc(dev, size, dma_handle, flag, attrs);
118 debug_dma_alloc_coherent(dev, size, *dma_handle, memory);
124 static inline void dma_free_attrs(struct device *dev, size_t size, argument
131 debug_dma_free_coherent(dev, size, cpu_add
75 __dma_sync(unsigned long paddr, size_t size, enum dma_data_direction direction) argument
135 dma_cache_sync(struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction) argument
139 __dma_sync(virt_to_phys(vaddr), size, (int)direction); local
[all...]
/arch/mn10300/include/asm/
H A Ddma-mapping.h25 extern void *dma_alloc_coherent(struct device *dev, size_t size,
28 extern void dma_free_coherent(struct device *dev, size_t size,
35 dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size, argument
44 void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, argument
79 unsigned long offset, size_t size,
87 void dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, argument
95 size_t size, enum dma_data_direction direction)
101 size_t size, enum dma_data_direction direction)
108 unsigned long offset, size_t size,
115 unsigned long offset, size_t size,
78 dma_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction direction) argument
94 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) argument
100 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) argument
107 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, unsigned long offset, size_t size, enum dma_data_direction direction) argument
114 dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, unsigned long offset, size_t size, enum dma_data_direction direction) argument
165 dma_cache_sync(void *vaddr, size_t size, enum dma_data_direction direction) argument
172 dma_mmap_coherent(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size) argument
179 dma_get_sgtable(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size) argument
[all...]
/arch/hexagon/include/asm/
H A Ddma-mapping.h51 extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
56 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) argument
60 return addr + size - 1 <= *dev->dma_mask;
75 static inline void *dma_alloc_attrs(struct device *dev, size_t size, argument
84 ret = ops->alloc(dev, size, dma_handle, flag, attrs);
86 debug_dma_alloc_coherent(dev, size, *dma_handle, ret);
93 static inline void dma_free_attrs(struct device *dev, size_t size, argument
101 dma_ops->free(dev, size, cpu_addr, dma_handle, attrs);
103 debug_dma_free_coherent(dev, size, cpu_addr, dma_handle);
/arch/ia64/include/asm/
H A Ddma-mapping.h28 static inline void *dma_alloc_attrs(struct device *dev, size_t size, argument
35 caddr = ops->alloc(dev, size, daddr, gfp, attrs);
36 debug_dma_alloc_coherent(dev, size, *daddr, caddr);
42 static inline void dma_free_attrs(struct device *dev, size_t size, argument
47 debug_dma_free_coherent(dev, size, caddr, daddr);
48 ops->free(dev, size, caddr, daddr, attrs);
80 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) argument
85 return addr + size - 1 <= *dev->dma_mask;
99 dma_cache_sync (struct device *dev, void *vaddr, size_t size, argument
/arch/m32r/include/asm/
H A Dcmpxchg.h17 __xchg(unsigned long x, volatile void *ptr, int size) argument
24 switch (size) {
71 __xchg_local(unsigned long x, volatile void *ptr, int size) argument
78 switch (size) {
178 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) argument
180 switch (size) {
200 unsigned long new, int size)
202 switch (size) {
206 return __cmpxchg_local_generic(ptr, old, new, size);
198 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) argument
/arch/m68k/include/asm/
H A Dcmpxchg.h12 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) argument
18 switch (size) {
35 tmp = __invalid_xchg_size(x, ptr, size);
43 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) argument
45 switch (size) {
71 x = __invalid_xchg_size(x, ptr, size);
96 unsigned long new, int size)
98 switch (size) {
115 old = __invalid_cmpxchg_size(p, old, new, size);
95 __cmpxchg(volatile void *p, unsigned long old, unsigned long new, int size) argument

Completed in 5795 milliseconds

<<11121314151617181920>>