/linux-6.6.21/crypto/ |
D | testmgr.h | 43 unsigned short ksize; member 5595 .ksize = 32, 5614 .ksize = 32, 5766 .ksize = 32, 5780 .ksize = 37, 5794 .ksize = 32, 5803 .ksize = 4, 6982 .ksize = 16, 6991 .ksize = 16, 6999 .ksize = 16, [all …]
|
D | testmgr.c | 824 static int prepare_keybuf(const u8 *key, unsigned int ksize, in prepare_keybuf() argument 835 keybuf = kmalloc(key_offset + ksize, GFP_KERNEL); in prepare_keybuf() 839 memcpy(keyptr, key, ksize); in prepare_keybuf() 847 #define do_setkey(setkey_f, tfm, key, ksize, cfg, alignmask) \ argument 852 err = prepare_keybuf((key), (ksize), (cfg), (alignmask), \ 855 err = setkey_f((tfm), keyptr, (ksize)); \ 1288 if (vec->ksize) { in test_shash_vec_cfg() 1289 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg() 1476 if (vec->ksize) { in test_ahash_vec_cfg() 1477 err = do_setkey(crypto_ahash_setkey, tfm, vec->key, vec->ksize, in test_ahash_vec_cfg() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/dma-buf/ |
D | dma-heap.c | 132 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local 151 ksize = max(max(in_size, out_size), drv_size); in dma_heap_ioctl() 154 if (ksize > sizeof(stack_kdata)) { in dma_heap_ioctl() 155 kdata = kmalloc(ksize, GFP_KERNEL); in dma_heap_ioctl() 166 if (ksize > in_size) in dma_heap_ioctl() 167 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
|
/linux-6.6.21/arch/powerpc/platforms/powernv/ |
D | opal-secvar.c | 57 static int opal_get_variable(const char *key, u64 ksize, u8 *data, u64 *dsize) in opal_get_variable() argument 66 rc = opal_secvar_get(key, ksize, data, dsize); in opal_get_variable() 89 static int opal_set_variable(const char *key, u64 ksize, u8 *data, u64 dsize) in opal_set_variable() argument 96 rc = opal_secvar_enqueue_update(key, ksize, data, dsize); in opal_set_variable()
|
/linux-6.6.21/include/linux/ |
D | uaccess.h | 348 copy_struct_from_user(void *dst, size_t ksize, const void __user *src, in copy_struct_from_user() argument 351 size_t size = min(ksize, usize); in copy_struct_from_user() 352 size_t rest = max(ksize, usize) - size; in copy_struct_from_user() 355 if (WARN_ON_ONCE(ksize > __builtin_object_size(dst, 1))) in copy_struct_from_user() 359 if (usize < ksize) { in copy_struct_from_user() 361 } else if (usize > ksize) { in copy_struct_from_user()
|
/linux-6.6.21/arch/alpha/boot/ |
D | misc.c | 152 size_t ksize, in decompress_kernel() argument 160 free_mem_ptr = (ulg)output_start + ksize; in decompress_kernel() 161 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);
|
/linux-6.6.21/security/landlock/ |
D | syscalls.c | 47 copy_min_struct_from_user(void *const dst, const size_t ksize, in copy_min_struct_from_user() argument 57 BUILD_BUG_ON(ksize <= 0); in copy_min_struct_from_user() 58 BUILD_BUG_ON(ksize < ksize_min); in copy_min_struct_from_user() 65 return copy_struct_from_user(dst, ksize, src, usize); in copy_min_struct_from_user()
|
/linux-6.6.21/arch/microblaze/mm/ |
D | init.c | 194 unsigned int kstart, ksize; in mmu_init() local 230 ksize = PAGE_ALIGN(((u32)_end - (u32)CONFIG_KERNEL_START)); in mmu_init() 231 memblock_reserve(kstart, ksize); in mmu_init()
|
/linux-6.6.21/drivers/s390/crypto/ |
D | pkey_api.c | 700 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_genseckey2() argument 728 switch (ksize) { in pkey_genseckey2() 743 rc = ep11_genaeskey(card, dom, ksize, kflags, in pkey_genseckey2() 746 rc = cca_genseckey(card, dom, ksize, keybuf); in pkey_genseckey2() 750 rc = cca_gencipherkey(card, dom, ksize, kflags, in pkey_genseckey2() 761 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_clr2seckey2() argument 790 switch (ksize) { in pkey_clr2seckey2() 807 rc = ep11_clr2keyblob(card, dom, ksize, kflags, in pkey_clr2seckey2() 811 rc = cca_clr2seckey(card, dom, ksize, in pkey_clr2seckey2() 816 rc = cca_clr2cipherkey(card, dom, ksize, kflags, in pkey_clr2seckey2() [all …]
|
/linux-6.6.21/arch/x86/kernel/fpu/ |
D | xstate.c | 1498 static int fpstate_realloc(u64 xfeatures, unsigned int ksize, in fpstate_realloc() argument 1506 fpsize = ksize + ALIGN(offsetof(struct fpstate, regs), 64); in fpstate_realloc() 1511 newfps->size = ksize; in fpstate_realloc() 1596 unsigned int ksize, usize; in __xstate_request_perm() local 1609 ksize = xstate_calculate_size(mask, compacted); in __xstate_request_perm() 1625 perm->__state_size = ksize; in __xstate_request_perm() 1679 unsigned int ksize, usize; in __xfd_enable_feature() local 1699 ksize = perm->__state_size; in __xfd_enable_feature() 1714 if (fpstate_realloc(xfd_event, ksize, usize, guest_fpu)) in __xfd_enable_feature()
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_ioctl.c | 826 unsigned int in_size, out_size, drv_size, ksize; in drm_ioctl() local 861 ksize = max(max(in_size, out_size), drv_size); in drm_ioctl() 877 if (ksize <= sizeof(stack_kdata)) { in drm_ioctl() 880 kdata = kmalloc(ksize, GFP_KERNEL); in drm_ioctl() 892 if (ksize > in_size) in drm_ioctl() 893 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl()
|
D | drm_managed.c | 133 WARN_ON(dev + 1 > (struct drm_device *) (container + ksize(container))); in drmm_add_final_kfree()
|
/linux-6.6.21/drivers/nvmem/ |
D | core.c | 113 unsigned int kend, ksize; in nvmem_access_with_keepouts() local 129 ksize = kend - offset; in nvmem_access_with_keepouts() 131 rc = __nvmem_reg_write(nvmem, offset, val, ksize); in nvmem_access_with_keepouts() 133 rc = __nvmem_reg_read(nvmem, offset, val, ksize); in nvmem_access_with_keepouts() 138 offset += ksize; in nvmem_access_with_keepouts() 139 val += ksize; in nvmem_access_with_keepouts() 147 ksize = kend - offset; in nvmem_access_with_keepouts() 149 memset(val, keepout->value, ksize); in nvmem_access_with_keepouts() 151 val += ksize; in nvmem_access_with_keepouts() 152 offset += ksize; in nvmem_access_with_keepouts() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/net/sched/ |
D | act_pedit.c | 170 int i, ksize; in tcf_pedit_init() local 219 ksize = parm->nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_init() 220 if (nla_len(pattr) < sizeof(*parm) + ksize) { in tcf_pedit_init() 249 nparms->tcfp_keys = kmemdup(parm->keys, ksize, GFP_KERNEL); in tcf_pedit_init()
|
/linux-6.6.21/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()
|
/linux-6.6.21/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.sh | 582 local ksize 592 ksize=$((SIZE / 1024)) 593 rem=$((SIZE - (ksize * 1024))) 595 dd if=/dev/urandom of="$name" bs=1024 count=$ksize 2> /dev/null
|
/linux-6.6.21/net/bluetooth/ |
D | amp.c | 127 static int hmac_sha256(u8 *key, u8 ksize, char *plaintext, u8 psize, u8 *output) in hmac_sha256() argument 133 if (!ksize) in hmac_sha256() 142 ret = crypto_shash_setkey(tfm, key, ksize); in hmac_sha256()
|
/linux-6.6.21/mm/kfence/ |
D | kfence_test.c | 705 KUNIT_EXPECT_EQ(test, ksize(buf), size); /* Precise size match after KFENCE alloc. */ in test_krealloc() 712 KUNIT_EXPECT_GE(test, ksize(buf), size * 3); in test_krealloc() 719 KUNIT_EXPECT_GE(test, ksize(buf), size * 2); in test_krealloc()
|
/linux-6.6.21/security/tomoyo/ |
D | memory.c | 50 const size_t s = ksize(ptr); in tomoyo_memory_ok()
|
/linux-6.6.21/mm/ |
D | slab_common.c | 1404 ks = ksize(p); in __do_krealloc() 1471 ks = ksize(mem); in kfree_sensitive() 1480 size_t ksize(const void *objp) in ksize() function 1502 EXPORT_SYMBOL(ksize);
|