/linux-4.19.296/include/linux/ |
D | slab.h | 142 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size, 146 unsigned int size, unsigned int align, 314 static __always_inline unsigned int kmalloc_index(size_t size) in kmalloc_index() argument 316 if (!size) in kmalloc_index() 319 if (size <= KMALLOC_MIN_SIZE) in kmalloc_index() 322 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in kmalloc_index() 324 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in kmalloc_index() 326 if (size <= 8) return 3; in kmalloc_index() 327 if (size <= 16) return 4; in kmalloc_index() 328 if (size <= 32) return 5; in kmalloc_index() [all …]
|
D | bootmem.h | 71 unsigned long size); 72 extern void free_bootmem(unsigned long physaddr, unsigned long size); 73 extern void free_bootmem_late(unsigned long physaddr, unsigned long size); 87 unsigned long size, 91 unsigned long size, 94 extern void *__alloc_bootmem(unsigned long size, 97 extern void *__alloc_bootmem_nopanic(unsigned long size, 101 unsigned long size, 105 unsigned long size, 109 unsigned long size, [all …]
|
D | vmalloc.h | 37 unsigned long size; member 72 extern void *vmalloc(unsigned long size); 73 extern void *vzalloc(unsigned long size); 74 extern void *vmalloc_user(unsigned long size); 75 extern void *vmalloc_node(unsigned long size, int node); 76 extern void *vzalloc_node(unsigned long size, int node); 77 extern void *vmalloc_exec(unsigned long size); 78 extern void *vmalloc_32(unsigned long size); 79 extern void *vmalloc_32_user(unsigned long size); 80 extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot); [all …]
|
D | string.h | 204 int vbin_printf(u32 *bin_buf, size_t size, const char *fmt, va_list args); 205 int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf); 206 int bprintf(u32 *bin_buf, size_t size, const char *fmt, ...) __printf(3, 4); 248 extern void *__underlying_memchr(const void *p, int c, __kernel_size_t size) __RENAME(memchr); 249 extern int __underlying_memcmp(const void *p, const void *q, __kernel_size_t size) __RENAME(memcmp); 250 extern void *__underlying_memcpy(void *p, const void *q, __kernel_size_t size) __RENAME(memcpy); 251 extern void *__underlying_memmove(void *p, const void *q, __kernel_size_t size) __RENAME(memmove); 252 extern void *__underlying_memset(void *p, int c, __kernel_size_t size) __RENAME(memset); 257 extern char *__underlying_strncpy(char *p, const char *q, __kernel_size_t size) __RENAME(strncpy); 271 __FORTIFY_INLINE char *strncpy(char *p, const char *q, __kernel_size_t size) in strncpy() argument [all …]
|
D | dma-mapping.h | 80 void* (*alloc)(struct device *dev, size_t size, 83 void (*free)(struct device *dev, size_t size, 94 unsigned long offset, size_t size, 98 size_t size, enum dma_data_direction dir, 112 size_t size, enum dma_data_direction dir, 115 size_t size, enum dma_data_direction dir, 118 dma_addr_t dma_handle, size_t size, 121 dma_addr_t dma_handle, size_t size, 129 void (*cache_sync)(struct device *dev, void *vaddr, size_t size, 163 int dma_alloc_from_dev_coherent(struct device *dev, ssize_t size, [all …]
|
D | pci-dma-compat.h | 17 pci_alloc_consistent(struct pci_dev *hwdev, size_t size, in pci_alloc_consistent() argument 20 return dma_alloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC); in pci_alloc_consistent() 24 pci_zalloc_consistent(struct pci_dev *hwdev, size_t size, in pci_zalloc_consistent() argument 27 return dma_zalloc_coherent(&hwdev->dev, 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->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->dev, ptr, size, (enum dma_data_direction)direction); in pci_map_single() 45 size_t size, int direction) in pci_unmap_single() argument 47 dma_unmap_single(&hwdev->dev, dma_addr, size, (enum dma_data_direction)direction); in pci_unmap_single() [all …]
|
D | posix_acl_xattr.h | 25 posix_acl_xattr_count(size_t size) in posix_acl_xattr_count() argument 27 if (size < sizeof(struct posix_acl_xattr_header)) in posix_acl_xattr_count() 29 size -= sizeof(struct posix_acl_xattr_header); in posix_acl_xattr_count() 30 if (size % sizeof(struct posix_acl_xattr_entry)) in posix_acl_xattr_count() 32 return size / sizeof(struct posix_acl_xattr_entry); in posix_acl_xattr_count() 36 void posix_acl_fix_xattr_from_user(void *value, size_t size); 37 void posix_acl_fix_xattr_to_user(void *value, size_t size); 39 static inline void posix_acl_fix_xattr_from_user(void *value, size_t size) in posix_acl_fix_xattr_from_user() argument 42 static inline void posix_acl_fix_xattr_to_user(void *value, size_t size) in posix_acl_fix_xattr_to_user() argument 48 const void *value, size_t size); [all …]
|
D | io-mapping.h | 36 unsigned long size; member 54 unsigned long size) in io_mapping_init_wc() argument 58 if (iomap_create_wc(base, size, &prot)) in io_mapping_init_wc() 62 iomap->size = size; in io_mapping_init_wc() 70 iomap_free(mapping->base, mapping->size); in io_mapping_fini() 81 BUG_ON(offset >= mapping->size); in io_mapping_map_atomic_wc() 96 unsigned long size) in io_mapping_map_wc() argument 100 BUG_ON(offset >= mapping->size); in io_mapping_map_wc() 103 return ioremap_wc(phys_addr, size); in io_mapping_map_wc() 121 unsigned long size) in io_mapping_init_wc() argument [all …]
|
D | kmemleak.h | 30 extern void kmemleak_alloc(const void *ptr, size_t size, int min_count, 32 extern void kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, 34 extern void kmemleak_vmalloc(const struct vm_struct *area, size_t size, 37 extern void kmemleak_free_part(const void *ptr, size_t size) __ref; 42 extern void kmemleak_scan_area(const void *ptr, size_t size, gfp_t gfp) __ref; 44 extern void kmemleak_alloc_phys(phys_addr_t phys, size_t size, int min_count, 46 extern void kmemleak_free_part_phys(phys_addr_t phys, size_t size) __ref; 50 static inline void kmemleak_alloc_recursive(const void *ptr, size_t size, in kmemleak_alloc_recursive() argument 55 kmemleak_alloc(ptr, size, min_count, gfp); in kmemleak_alloc_recursive() 74 static inline void kmemleak_alloc(const void *ptr, size_t size, int min_count, in kmemleak_alloc() argument [all …]
|
/linux-4.19.296/drivers/misc/mic/scif/ |
D | scif_rb.c | 25 #define scif_rb_ring_cnt(head, tail, size) CIRC_CNT(head, tail, size) argument 26 #define scif_rb_ring_space(head, tail, size) CIRC_SPACE(head, tail, size) argument 37 void *rb_base, u8 size) in scif_rb_init() argument 40 rb->size = (1 << size); in scif_rb_init() 49 void *msg, u32 size) in memcpy_torb() argument 53 if (header + size >= rb->rb_base + rb->size) { in memcpy_torb() 55 size1 = (u32)(rb->rb_base + rb->size - header); in memcpy_torb() 56 size2 = size - size1; in memcpy_torb() 61 memcpy_toio((void __iomem __force *)header, msg, size); in memcpy_torb() 67 void *msg, u32 size) in memcpy_fromrb() argument [all …]
|
/linux-4.19.296/lib/ |
D | sort.c | 20 static void u32_swap(void *a, void *b, int size) in u32_swap() argument 27 static void u64_swap(void *a, void *b, int size) in u64_swap() argument 34 static void generic_swap(void *a, void *b, int size) in generic_swap() argument 42 } while (--size > 0); in generic_swap() 62 void sort(void *base, size_t num, size_t size, in sort() argument 64 void (*swap_func)(void *, void *, int size)) in sort() argument 67 int i = (num/2 - 1) * size, n = num * size, c, r; in sort() 70 if (size == 4 && alignment_ok(base, 4)) in sort() 72 else if (size == 8 && alignment_ok(base, 8)) in sort() 79 for ( ; i >= 0; i -= size) { in sort() [all …]
|
D | test_kasan.c | 33 size_t size = 123; in kmalloc_oob_right() local 36 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 42 ptr[size] = 'x'; in kmalloc_oob_right() 49 size_t size = 15; in kmalloc_oob_left() local 52 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left() 65 size_t size = 4096; in kmalloc_node_oob_right() local 68 ptr = kmalloc_node(size, GFP_KERNEL, 0); in kmalloc_node_oob_right() 74 ptr[size] = 0; in kmalloc_node_oob_right() 82 size_t size = KMALLOC_MAX_CACHE_SIZE + 10; in kmalloc_pagealloc_oob_right() local 88 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_oob_right() [all …]
|
D | test_user_copy.c | 92 #define test_legit(size, check) \ in test_user_copy_init() argument 94 val_##size = check; \ in test_user_copy_init() 95 ret |= test(put_user(val_##size, (size __user *)usermem), \ in test_user_copy_init() 96 "legitimate put_user (" #size ") failed"); \ in test_user_copy_init() 97 val_##size = 0; \ in test_user_copy_init() 98 ret |= test(get_user(val_##size, (size __user *)usermem), \ in test_user_copy_init() 99 "legitimate get_user (" #size ") failed"); \ in test_user_copy_init() 100 ret |= test(val_##size != check, \ in test_user_copy_init() 101 "legitimate get_user (" #size ") failed to do copy"); \ in test_user_copy_init() 102 if (val_##size != check) { \ in test_user_copy_init() [all …]
|
D | find_bit.c | 71 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument 74 return _find_next_bit(addr, NULL, size, offset, 0UL); in find_next_bit() 80 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, in find_next_zero_bit() argument 83 return _find_next_bit(addr, NULL, size, offset, ~0UL); in find_next_zero_bit() 90 const unsigned long *addr2, unsigned long size, in find_next_and_bit() argument 93 return _find_next_bit(addr1, addr2, size, offset, 0UL); in find_next_and_bit() 102 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) in find_first_bit() argument 106 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit() 108 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit() 111 return size; in find_first_bit() [all …]
|
/linux-4.19.296/lib/mpi/ |
D | mpih-mul.c | 34 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ argument 36 if ((size) < KARATSUBA_THRESHOLD) \ 37 mul_n_basecase(prodp, up, vp, size); \ 39 mul_n(prodp, up, vp, size, tspace); \ 42 #define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \ argument 44 if ((size) < KARATSUBA_THRESHOLD) \ 45 mpih_sqr_n_basecase(prodp, up, size); \ 47 mpih_sqr_n(prodp, up, size, tspace); \ 68 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mul_n_basecase() argument 79 MPN_COPY(prodp, up, size); in mul_n_basecase() [all …]
|
/linux-4.19.296/fs/hfs/ |
D | trans.c | 39 int srclen, dstlen, size; in hfs_mac2asc() local 52 size = nls_disk->char2uni(src, srclen, &ch); in hfs_mac2asc() 53 if (size <= 0) { in hfs_mac2asc() 55 size = 1; in hfs_mac2asc() 57 src += size; in hfs_mac2asc() 58 srclen -= size; in hfs_mac2asc() 65 size = nls_io->uni2char(ch, dst, dstlen); in hfs_mac2asc() 66 if (size < 0) { in hfs_mac2asc() 67 if (size == -ENAMETOOLONG) in hfs_mac2asc() 70 size = 1; in hfs_mac2asc() [all …]
|
/linux-4.19.296/drivers/uwb/ |
D | est.c | 68 .size = sizeof(struct uwb_rc_evt_ie_rcv), 72 .size = sizeof(struct uwb_rc_evt_beacon), 76 .size = sizeof(struct uwb_rc_evt_beacon_size), 79 .size = sizeof(struct uwb_rc_evt_bpoie_change), 84 .size = sizeof(struct uwb_rc_evt_bp_slot_change), 87 .size = sizeof(struct uwb_rc_evt_bp_switch_ie_rcv), 91 .size = sizeof(struct uwb_rc_evt_dev_addr_conflict), 94 .size = sizeof(struct uwb_rc_evt_drp_avail) 97 .size = sizeof(struct uwb_rc_evt_drp), 101 .size = sizeof(struct uwb_rc_evt_bp_switch_status), [all …]
|
/linux-4.19.296/fs/fuse/ |
D | xattr.c | 15 size_t size, int flags) in fuse_setxattr() argument 26 inarg.size = size; in fuse_setxattr() 31 args.in.args[0].size = sizeof(inarg); in fuse_setxattr() 33 args.in.args[1].size = strlen(name) + 1; in fuse_setxattr() 35 args.in.args[2].size = size; in fuse_setxattr() 50 size_t size) in fuse_getxattr() argument 62 inarg.size = size; in fuse_getxattr() 66 args.in.args[0].size = sizeof(inarg); in fuse_getxattr() 68 args.in.args[1].size = strlen(name) + 1; in fuse_getxattr() 72 if (size) { in fuse_getxattr() [all …]
|
/linux-4.19.296/fs/xfs/libxfs/ |
D | xfs_bit.c | 20 xfs_bitmap_empty(uint *map, uint size) in xfs_bitmap_empty() argument 24 for (i = 0; i < size; i++) { in xfs_bitmap_empty() 37 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument 43 size <<= BIT_TO_WORD_SHIFT; in xfs_contig_bits() 45 ASSERT(start_bit < size); in xfs_contig_bits() 46 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits() 55 size -= NBWORD; in xfs_contig_bits() 57 while (size) { in xfs_contig_bits() 61 size -= NBWORD; in xfs_contig_bits() 76 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument [all …]
|
/linux-4.19.296/fs/ |
D | xattr.c | 138 const void *value, size_t size, int flags) in __vfs_setxattr() argument 147 if (size == 0) in __vfs_setxattr() 149 return handler->set(handler, dentry, inode, name, value, size, flags); in __vfs_setxattr() 170 const void *value, size_t size, int flags) in __vfs_setxattr_noperm() argument 180 error = __vfs_setxattr(dentry, inode, name, value, size, flags); in __vfs_setxattr_noperm() 184 size, flags); in __vfs_setxattr_noperm() 197 size, flags); in __vfs_setxattr_noperm() 220 const void *value, size_t size, int flags, in __vfs_setxattr_locked() argument 230 error = security_inode_setxattr(dentry, name, value, size, flags); in __vfs_setxattr_locked() 238 error = __vfs_setxattr_noperm(dentry, name, value, size, flags); in __vfs_setxattr_locked() [all …]
|
/linux-4.19.296/drivers/s390/char/ |
D | raw3270.h | 103 size_t size; /* size of output buffer. */ member 112 struct raw3270_request *raw3270_request_alloc(size_t size); 113 struct raw3270_request *raw3270_request_alloc_bootmem(size_t size); 212 unsigned long size; member 221 unsigned long size; in alloc_string() local 223 size = (len + 7L) & -8L; in alloc_string() 225 if (cs->size < size) in alloc_string() 227 if (cs->size > size + sizeof(struct string)) { in alloc_string() 228 char *endaddr = (char *) (cs + 1) + cs->size; in alloc_string() 229 tmp = (struct string *) (endaddr - size) - 1; in alloc_string() [all …]
|
/linux-4.19.296/include/trace/events/ |
D | fsi.h | 13 uint32_t addr, size_t size), 14 TP_ARGS(master, link, id, addr, size), 20 __field(size_t, size) 27 __entry->size = size; 34 __entry->size 40 uint32_t addr, size_t size, const void *data), 41 TP_ARGS(master, link, id, addr, size, data), 47 __field(size_t, size) 55 __entry->size = size; 57 memcpy(&__entry->data, data, size); [all …]
|
/linux-4.19.296/include/xen/arm/ |
D | page-coherent.h | 17 dma_addr_t dev_addr, unsigned long offset, size_t size, 20 size_t size, enum dma_data_direction dir, 23 dma_addr_t handle, size_t size, enum dma_data_direction dir); 26 dma_addr_t handle, size_t size, enum dma_data_direction dir); 28 static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size, in xen_alloc_coherent_pages() argument 31 return xen_get_dma_ops(hwdev)->alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages() 34 static inline void xen_free_coherent_pages(struct device *hwdev, size_t size, in xen_free_coherent_pages() argument 37 xen_get_dma_ops(hwdev)->free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages() 41 dma_addr_t dev_addr, unsigned long offset, size_t size, in xen_dma_map_page() argument 61 xen_get_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page() [all …]
|
/linux-4.19.296/fs/jffs2/ |
D | nodelist.c | 59 uint32_t jffs2_truncate_fragtree(struct jffs2_sb_info *c, struct rb_root *list, uint32_t size) in jffs2_truncate_fragtree() argument 61 struct jffs2_node_frag *frag = jffs2_lookup_node_frag(list, size); in jffs2_truncate_fragtree() 63 dbg_fragtree("truncating fragtree to 0x%08x bytes\n", size); in jffs2_truncate_fragtree() 66 if (frag && frag->ofs != size) { in jffs2_truncate_fragtree() 67 if (frag->ofs+frag->size > size) { in jffs2_truncate_fragtree() 68 frag->size = size - frag->ofs; in jffs2_truncate_fragtree() 72 while (frag && frag->ofs >= size) { in jffs2_truncate_fragtree() 80 if (size == 0) in jffs2_truncate_fragtree() 88 if (frag->ofs + frag->size < size) in jffs2_truncate_fragtree() 89 return frag->ofs + frag->size; in jffs2_truncate_fragtree() [all …]
|
/linux-4.19.296/drivers/char/tpm/eventlog/ |
D | tpm2.c | 48 size_t size; in calc_tpm2_event_size() local 83 size = marker - marker_start; in calc_tpm2_event_size() 88 return size; in calc_tpm2_event_size() 99 size_t size; in tpm2_bios_measurements_start() local 103 size = sizeof(struct tcg_pcr_event) - sizeof(event_header->event) in tpm2_bios_measurements_start() 107 if (addr + size < limit) { in tpm2_bios_measurements_start() 116 addr += size; in tpm2_bios_measurements_start() 118 size = calc_tpm2_event_size(event, event_header); in tpm2_bios_measurements_start() 119 if ((addr + size >= limit) || (size == 0)) in tpm2_bios_measurements_start() 125 size = calc_tpm2_event_size(event, event_header); in tpm2_bios_measurements_start() [all …]
|