Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 399) sorted by relevance

12345678910>>...16

/include/linux/
Dslab.h259 static __always_inline int kmalloc_index(size_t size) in kmalloc_index() argument
261 if (!size) in kmalloc_index()
264 if (size <= KMALLOC_MIN_SIZE) in kmalloc_index()
267 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in kmalloc_index()
269 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in kmalloc_index()
271 if (size <= 8) return 3; in kmalloc_index()
272 if (size <= 16) return 4; in kmalloc_index()
273 if (size <= 32) return 5; in kmalloc_index()
274 if (size <= 64) return 6; in kmalloc_index()
275 if (size <= 128) return 7; in kmalloc_index()
[all …]
Dbootmem.h54 unsigned long size);
55 extern void free_bootmem(unsigned long physaddr, unsigned long size);
56 extern void free_bootmem_late(unsigned long physaddr, unsigned long size);
70 unsigned long size,
74 unsigned long size,
77 extern void *__alloc_bootmem(unsigned long size,
80 extern void *__alloc_bootmem_nopanic(unsigned long size,
84 unsigned long size,
88 unsigned long size,
92 unsigned long size,
[all …]
Dcirc_buf.h15 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) argument
20 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) argument
25 #define CIRC_CNT_TO_END(head,tail,size) \ argument
26 ({int end = (size) - (tail); \
27 int n = ((head) + end) & ((size)-1); \
31 #define CIRC_SPACE_TO_END(head,tail,size) \ argument
32 ({int end = (size) - 1 - (head); \
33 int n = (end + (tail)) & ((size)-1); \
Dposix_acl_xattr.h45 posix_acl_xattr_count(size_t size) in posix_acl_xattr_count() argument
47 if (size < sizeof(posix_acl_xattr_header)) in posix_acl_xattr_count()
49 size -= sizeof(posix_acl_xattr_header); in posix_acl_xattr_count()
50 if (size % sizeof(posix_acl_xattr_entry)) in posix_acl_xattr_count()
52 return size / sizeof(posix_acl_xattr_entry); in posix_acl_xattr_count()
56 void posix_acl_fix_xattr_from_user(void *value, size_t size);
57 void posix_acl_fix_xattr_to_user(void *value, size_t size);
59 static inline void posix_acl_fix_xattr_from_user(void *value, size_t size) in posix_acl_fix_xattr_from_user() argument
62 static inline void posix_acl_fix_xattr_to_user(void *value, size_t size) in posix_acl_fix_xattr_to_user() argument
68 const void *value, size_t size);
[all …]
Dvmalloc.h32 unsigned long size; member
67 extern void *vmalloc(unsigned long size);
68 extern void *vzalloc(unsigned long size);
69 extern void *vmalloc_user(unsigned long size);
70 extern void *vmalloc_node(unsigned long size, int node);
71 extern void *vzalloc_node(unsigned long size, int node);
72 extern void *vmalloc_exec(unsigned long size);
73 extern void *vmalloc_32(unsigned long size);
74 extern void *vmalloc_32_user(unsigned long size);
75 extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot);
[all …]
Dnfs.h19 unsigned short size; member
29 return a->size != b->size || memcmp(a->data, b->data, a->size) != 0; in nfs_compare_fh()
34 target->size = source->size; in nfs_copy_fh()
35 memcpy(target->data, source->data, source->size); in nfs_copy_fh()
Diommu-helper.h6 static inline unsigned long iommu_device_max_index(unsigned long size, in iommu_device_max_index() argument
10 if (size + offset > dma_mask) in iommu_device_max_index()
13 return size; in iommu_device_max_index()
19 extern unsigned long iommu_area_alloc(unsigned long *map, unsigned long size,
29 unsigned long size = (addr & (io_page_size - 1)) + len; in iommu_num_pages() local
31 return DIV_ROUND_UP(size, io_page_size); in iommu_num_pages()
Dkmemleak.h27 extern void kmemleak_alloc(const void *ptr, size_t size, int min_count,
29 extern void kmemleak_alloc_percpu(const void __percpu *ptr, size_t size,
32 extern void kmemleak_free_part(const void *ptr, size_t size) __ref;
37 extern void kmemleak_scan_area(const void *ptr, size_t size, gfp_t gfp) __ref;
40 static inline void kmemleak_alloc_recursive(const void *ptr, size_t size, in kmemleak_alloc_recursive() argument
45 kmemleak_alloc(ptr, size, min_count, gfp); in kmemleak_alloc_recursive()
64 static inline void kmemleak_alloc(const void *ptr, size_t size, int min_count, in kmemleak_alloc() argument
68 static inline void kmemleak_alloc_recursive(const void *ptr, size_t size, in kmemleak_alloc_recursive() argument
73 static inline void kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, in kmemleak_alloc_percpu() argument
80 static inline void kmemleak_free_part(const void *ptr, size_t size) in kmemleak_free_part() argument
[all …]
Duid_stat.h22 int uid_stat_tcp_snd(uid_t uid, int size);
23 int uid_stat_tcp_rcv(uid_t uid, int size);
25 #define uid_stat_tcp_snd(uid, size) do {} while (0); argument
26 #define uid_stat_tcp_rcv(uid, size) do {} while (0); argument
Dxattr.h28 size_t size, int handler_flags);
30 size_t size, int flags, int handler_flags);
41 ssize_t vfs_listxattr(struct dentry *d, char *list, size_t size);
46 ssize_t generic_getxattr(struct dentry *dentry, const char *name, void *buffer, size_t size);
48 int generic_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int f…
51 char **xattr_value, size_t size, gfp_t flags);
53 const char *value, size_t size, gfp_t flags);
63 size_t size; member
89 struct simple_xattr *simple_xattr_alloc(const void *value, size_t size);
91 void *buffer, size_t size);
[all …]
Ddma-debug.h38 size_t offset, size_t size,
45 size_t size, int direction, bool map_single);
53 extern void debug_dma_alloc_coherent(struct device *dev, size_t size,
56 extern void debug_dma_free_coherent(struct device *dev, size_t size,
60 dma_addr_t dma_handle, size_t size,
65 size_t size, int direction);
70 size_t size,
76 size_t size, int direction);
106 size_t offset, size_t size, in debug_dma_map_page() argument
118 size_t size, int direction, in debug_dma_unmap_page() argument
[all …]
Dbitops.h38 #define for_each_set_bit(bit, addr, size) \ argument
39 for ((bit) = find_first_bit((addr), (size)); \
40 (bit) < (size); \
41 (bit) = find_next_bit((addr), (size), (bit) + 1))
44 #define for_each_set_bit_from(bit, addr, size) \ argument
45 for ((bit) = find_next_bit((addr), (size), (bit)); \
46 (bit) < (size); \
47 (bit) = find_next_bit((addr), (size), (bit) + 1))
49 #define for_each_clear_bit(bit, addr, size) \ argument
50 for ((bit) = find_first_zero_bit((addr), (size)); \
[all …]
Dio-mapping.h40 unsigned long size; member
52 io_mapping_create_wc(resource_size_t base, unsigned long size) in io_mapping_create_wc() argument
61 if (iomap_create_wc(base, size, &prot)) in io_mapping_create_wc()
65 iomap->size = size; in io_mapping_create_wc()
78 iomap_free(mapping->base, mapping->size); in io_mapping_free()
90 BUG_ON(offset >= mapping->size); in io_mapping_map_atomic_wc()
107 BUG_ON(offset >= mapping->size); in io_mapping_map_wc()
128 io_mapping_create_wc(resource_size_t base, unsigned long size) in io_mapping_create_wc() argument
130 return (struct io_mapping __force *) ioremap_wc(base, size); in io_mapping_create_wc()
/include/drm/
Ddrm_mem_util.h32 static __inline__ void *drm_calloc_large(size_t nmemb, size_t size) in drm_calloc_large() argument
34 if (size != 0 && nmemb > SIZE_MAX / size) in drm_calloc_large()
37 if (size * nmemb <= PAGE_SIZE) in drm_calloc_large()
38 return kcalloc(nmemb, size, GFP_KERNEL); in drm_calloc_large()
40 return __vmalloc(size * nmemb, in drm_calloc_large()
45 static __inline__ void *drm_malloc_ab(size_t nmemb, size_t size) in drm_malloc_ab() argument
47 if (size != 0 && nmemb > SIZE_MAX / size) in drm_malloc_ab()
50 if (size * nmemb <= PAGE_SIZE) in drm_malloc_ab()
51 return kmalloc(nmemb * size, GFP_KERNEL); in drm_malloc_ab()
53 return __vmalloc(size * nmemb, in drm_malloc_ab()
/include/asm-generic/bitops/
Dfind.h15 size, unsigned long offset);
29 long size, unsigned long offset);
43 unsigned long size);
54 unsigned long size);
57 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0) argument
58 #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) argument
Dle.h12 unsigned long size, unsigned long offset) in find_next_zero_bit_le() argument
14 return find_next_zero_bit(addr, size, offset); in find_next_zero_bit_le()
18 unsigned long size, unsigned long offset) in find_next_bit_le() argument
20 return find_next_bit(addr, size, offset); in find_next_bit_le()
24 unsigned long size) in find_first_zero_bit_le() argument
26 return find_first_zero_bit(addr, size); in find_first_zero_bit_le()
35 unsigned long size, unsigned long offset);
40 unsigned long size, unsigned long offset);
44 #define find_first_zero_bit_le(addr, size) \ argument
45 find_next_zero_bit_le((addr), (size), 0)
/include/trace/events/
Dintel-sst.h98 TP_PROTO(unsigned int size),
100 TP_ARGS(size),
103 __field( unsigned int, size )
107 __entry->size = size;
110 TP_printk("Mailbox bytes 0x%8.8x", (unsigned int)__entry->size)
115 TP_PROTO(unsigned int size),
117 TP_ARGS(size)
123 TP_PROTO(unsigned int size),
125 TP_ARGS(size)
131 TP_PROTO(unsigned int size),
[all …]
Dmmc.h30 TP_PROTO(unsigned int cmd, unsigned int addr, unsigned int size),
31 TP_ARGS(cmd, addr, size),
35 __field(unsigned int, size)
40 __entry->size = size;
43 __entry->cmd, __entry->addr, __entry->size)
47 TP_PROTO(unsigned int cmd, unsigned int addr, unsigned int size),
48 TP_ARGS(cmd, addr, size));
51 TP_PROTO(unsigned int cmd, unsigned int addr, unsigned int size),
52 TP_ARGS(cmd, addr, size));
64 __field(unsigned int, size)
[all …]
/include/uapi/asm-generic/
Dioctl.h65 #define _IOC(dir,type,nr,size) \ argument
69 ((size) << _IOC_SIZESHIFT))
77 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument
78 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
79 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
80 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument
81 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument
82 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument
/include/asm-generic/
Ddma-mapping-common.h11 size_t size, in dma_map_single_attrs() argument
18 kmemcheck_mark_initialized(ptr, size); in dma_map_single_attrs()
21 (unsigned long)ptr & ~PAGE_MASK, size, in dma_map_single_attrs()
24 (unsigned long)ptr & ~PAGE_MASK, size, in dma_map_single_attrs()
30 size_t size, in dma_unmap_single_attrs() argument
38 ops->unmap_page(dev, addr, size, dir, attrs); in dma_unmap_single_attrs()
39 debug_dma_unmap_page(dev, addr, size, dir, true); in dma_unmap_single_attrs()
72 size_t offset, size_t size, in dma_map_page() argument
78 kmemcheck_mark_initialized(page_address(page) + offset, size); in dma_map_page()
80 addr = ops->map_page(dev, page, offset, size, dir, NULL); in dma_map_page()
[all …]
Ddma-mapping-broken.h12 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
16 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
19 static inline void *dma_alloc_attrs(struct device *dev, size_t size, in dma_alloc_attrs() argument
24 return dma_alloc_coherent(dev, size, dma_handle, flag); in dma_alloc_attrs()
27 static inline void dma_free_attrs(struct device *dev, size_t size, in dma_free_attrs() argument
32 dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
39 dma_map_single(struct device *dev, void *ptr, size_t size,
43 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size,
56 size_t size, enum dma_data_direction direction);
59 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size,
[all …]
Dpci-dma-compat.h16 pci_alloc_consistent(struct pci_dev *hwdev, size_t size, in pci_alloc_consistent() argument
19 return dma_alloc_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, dma_handle, GFP_ATOMIC); in pci_alloc_consistent()
23 pci_zalloc_consistent(struct pci_dev *hwdev, size_t size, in pci_zalloc_consistent() argument
27 size, dma_handle, GFP_ATOMIC); in pci_zalloc_consistent()
31 pci_free_consistent(struct pci_dev *hwdev, size_t size, in pci_free_consistent() argument
34 dma_free_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, vaddr, dma_handle); in pci_free_consistent()
38 pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction) in pci_map_single() argument
40 …return dma_map_single(hwdev == NULL ? NULL : &hwdev->dev, ptr, size, (enum dma_data_direction)dire… in pci_map_single()
45 size_t size, int direction) in pci_unmap_single() argument
47 …dma_unmap_single(hwdev == NULL ? NULL : &hwdev->dev, dma_addr, size, (enum dma_data_direction)dire… in pci_unmap_single()
[all …]
Dgetorder.h13 int __get_order(unsigned long size) in __get_order() argument
17 size--; in __get_order()
18 size >>= PAGE_SHIFT; in __get_order()
20 order = fls(size); in __get_order()
22 order = fls64(size); in __get_order()
/include/acpi/
Dacpi_io.h7 acpi_size size) in acpi_os_ioremap() argument
9 return ioremap_cache(phys, size); in acpi_os_ioremap()
13 acpi_os_map_iomem(acpi_physical_address phys, acpi_size size);
14 void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size);
15 void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size);
/include/sound/
Dmemalloc.h77 size_t size, struct snd_dma_buffer *dmab,
87 int size; /* allocated byte size */ member
98 static inline unsigned int snd_sgbuf_aligned_pages(size_t size) in snd_sgbuf_aligned_pages() argument
100 return (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in snd_sgbuf_aligned_pages()
126 unsigned int ofs, unsigned int size);
141 #define snd_sgbuf_get_chunk_size(dmab, ofs, size) (size) argument
146 int snd_dma_alloc_pages(int type, struct device *dev, size_t size,
148 int snd_dma_alloc_pages_fallback(int type, struct device *dev, size_t size,
153 void *snd_malloc_pages(size_t size, gfp_t gfp_flags);
154 void snd_free_pages(void *ptr, size_t size);

12345678910>>...16