/kernel/linux/linux-5.10/crypto/ |
D | testmgr.h | 42 unsigned short ksize; member 4183 .ksize = 32, 4202 .ksize = 32, 4354 .ksize = 32, 4368 .ksize = 37, 4382 .ksize = 32, 4391 .ksize = 4, 5696 .ksize = 16, 5705 .ksize = 16, 5713 .ksize = 16, [all …]
|
D | testmgr.c | 776 static int prepare_keybuf(const u8 *key, unsigned int ksize, in prepare_keybuf() argument 787 keybuf = kmalloc(key_offset + ksize, GFP_KERNEL); in prepare_keybuf() 791 memcpy(keyptr, key, ksize); in prepare_keybuf() 799 #define do_setkey(setkey_f, tfm, key, ksize, cfg, alignmask) \ argument 804 err = prepare_keybuf((key), (ksize), (cfg), (alignmask), \ 807 err = setkey_f((tfm), keyptr, (ksize)); \ 1192 if (vec->ksize) { in test_shash_vec_cfg() 1193 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg() 1380 if (vec->ksize) { in test_ahash_vec_cfg() 1381 err = do_setkey(crypto_ahash_setkey, tfm, vec->key, vec->ksize, in test_ahash_vec_cfg() [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | test_user_copy.c | 110 size_t ksize, usize; in test_copy_struct_from_user() local 128 ksize = size; in test_copy_struct_from_user() 131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 134 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user() 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 140 ksize = size; in test_copy_struct_from_user() 144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user() 147 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user() 149 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 153 ksize = size / 2; in test_copy_struct_from_user() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_get_stack_rawtp.c | 62 long usize, ksize; in bpf_prog1() local 91 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1() 92 if (ksize < 0) in bpf_prog1() 95 total_size = usize + ksize; in bpf_prog1()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | opal-secvar.c | 57 static int opal_get_variable(const char *key, uint64_t ksize, in opal_get_variable() argument 67 rc = opal_secvar_get(key, ksize, data, dsize); in opal_get_variable() 91 static int opal_set_variable(const char *key, uint64_t ksize, u8 *data, in opal_set_variable() argument 99 rc = opal_secvar_enqueue_update(key, ksize, data, dsize); in opal_set_variable()
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | dma-heap.c | 117 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local 136 ksize = max(max(in_size, out_size), drv_size); in dma_heap_ioctl() 139 if (ksize > sizeof(stack_kdata)) { in dma_heap_ioctl() 140 kdata = kmalloc(ksize, GFP_KERNEL); in dma_heap_ioctl() 151 if (ksize > in_size) in dma_heap_ioctl() 152 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
|
D | dma-resv.c | 70 list->shared_max = (ksize(list) - offsetof(typeof(*list), shared)) / in dma_resv_list_alloc()
|
/kernel/linux/linux-5.10/include/linux/ |
D | uaccess.h | 345 copy_struct_from_user(void *dst, size_t ksize, const void __user *src, in copy_struct_from_user() argument 348 size_t size = min(ksize, usize); in copy_struct_from_user() 349 size_t rest = max(ksize, usize) - size; in copy_struct_from_user() 352 if (WARN_ON_ONCE(ksize > __builtin_object_size(dst, 1))) in copy_struct_from_user() 356 if (usize < ksize) { in copy_struct_from_user() 358 } else if (usize > ksize) { in copy_struct_from_user()
|
D | slab.h | 188 size_t ksize(const void *);
|
/kernel/linux/linux-5.10/arch/alpha/boot/ |
D | misc.c | 154 size_t ksize, in decompress_kernel() argument 162 free_mem_ptr = (ulg)output_start + ksize; in decompress_kernel() 163 free_mem_end_ptr = (ulg)output_start + ksize + 0x200000; in decompress_kernel()
|
D | Makefile | 46 $(obj)/main.o: $(obj)/ksize.h 47 $(obj)/bootp.o: $(obj)/ksize.h 50 $(obj)/ksize.h: $(obj)/vmlinux.nh FORCE
|
D | bootpz.c | 49 size_t ksize, size_t kzsize);
|
/kernel/linux/linux-5.10/arch/microblaze/mm/ |
D | init.c | 246 unsigned int kstart, ksize; in mmu_init() local 282 ksize = PAGE_ALIGN(((u32)_end - (u32)CONFIG_KERNEL_START)); in mmu_init() 283 memblock_reserve(kstart, ksize); in mmu_init()
|
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
D | pkey_api.c | 542 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_genseckey2() argument 565 switch (ksize) { in pkey_genseckey2() 579 rc = ep11_genaeskey(card, dom, ksize, kflags, in pkey_genseckey2() 582 rc = cca_genseckey(card, dom, ksize, keybuf); in pkey_genseckey2() 585 rc = cca_gencipherkey(card, dom, ksize, kflags, in pkey_genseckey2() 595 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_clr2seckey2() argument 619 switch (ksize) { in pkey_clr2seckey2() 633 rc = ep11_clr2keyblob(card, dom, ksize, kflags, in pkey_clr2seckey2() 636 rc = cca_clr2seckey(card, dom, ksize, in pkey_clr2seckey2() 640 rc = cca_clr2cipherkey(card, dom, ksize, kflags, in pkey_clr2seckey2() [all …]
|
/kernel/linux/linux-5.10/net/sched/ |
D | act_pedit.c | 152 int i, ksize; in tcf_pedit_init() local 178 ksize = parm->nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_init() 179 if (nla_len(pattr) < sizeof(*parm) + ksize) { in tcf_pedit_init() 220 keys = kmalloc(ksize, GFP_ATOMIC); in tcf_pedit_init() 230 memcpy(p->tcfp_keys, parm->keys, ksize); in tcf_pedit_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_ioctl.c | 828 unsigned int in_size, out_size, drv_size, ksize; in drm_ioctl() local 863 ksize = max(max(in_size, out_size), drv_size); in drm_ioctl() 879 if (ksize <= sizeof(stack_kdata)) { in drm_ioctl() 882 kdata = kmalloc(ksize, GFP_KERNEL); in drm_ioctl() 894 if (ksize > in_size) in drm_ioctl() 895 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl()
|
D | drm_managed.c | 132 WARN_ON(dev + 1 > (struct drm_device *) (container + ksize(container))); in drmm_add_final_kfree()
|
/kernel/linux/linux-5.10/drivers/crypto/ |
D | padlock-aes.c | 50 ksize:2; member 136 ctx->cword.encrypt.ksize = (key_len - 16) / 8; in aes_set_key() 137 ctx->cword.decrypt.ksize = ctx->cword.encrypt.ksize; in aes_set_key()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.sh | 515 local ksize 525 ksize=$((SIZE / 1024)) 526 rem=$((SIZE - (ksize * 1024))) 528 dd if=/dev/urandom of="$name" bs=1024 count=$ksize 2> /dev/null
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_hw.c | 161 int ksize; in chtls_init_kmap() local 168 ksize = sizeof(*cdev->kmap.addr) * bsize; in chtls_init_kmap() 169 cdev->kmap.addr = kvzalloc(ksize, GFP_KERNEL); in chtls_init_kmap()
|
/kernel/linux/linux-5.10/mm/ |
D | slab_common.c | 1072 ks = ksize(p); in __do_krealloc() 1132 ks = ksize(mem); in kfree_sensitive() 1153 size_t ksize(const void *objp) in ksize() function 1181 EXPORT_SYMBOL(ksize);
|
D | mempool.c | 62 __check_element(pool, element, ksize(element)); in check_element() 85 __poison_element(element, ksize(element)); in poison_element()
|
/kernel/linux/linux-5.10/net/bluetooth/ |
D | amp.c | 128 static int hmac_sha256(u8 *key, u8 ksize, char *plaintext, u8 psize, u8 *output) in hmac_sha256() argument 134 if (!ksize) in hmac_sha256() 143 ret = crypto_shash_setkey(tfm, key, ksize); in hmac_sha256()
|
/kernel/linux/linux-5.10/security/tomoyo/ |
D | memory.c | 50 const size_t s = ksize(ptr); in tomoyo_memory_ok()
|
D | gc.c | 23 tomoyo_memory_used[TOMOYO_MEMORY_POLICY] -= ksize(ptr); in tomoyo_memory_free()
|