/linux/crypto/ |
A D | testmgr.h | 4258 .ksize = 4, 5556 .ksize = 4, 5633 .ksize = 4, 5711 .ksize = 4, 5941 .ksize = 4, 6437 .ksize = 4, 6535 .ksize = 4, 6634 .ksize = 4, 6721 .ksize = 4, 6810 .ksize = 4, [all …]
|
A D | testmgr.c | 794 memcpy(keyptr, key, ksize); in prepare_keybuf() 810 err = setkey_f((tfm), keyptr, (ksize)); \ 1190 if (vec->ksize) { in test_shash_vec_cfg() 1378 if (vec->ksize) { in test_ahash_vec_cfg() 1605 vec->ksize = 0; in generate_random_hash_testvec() 1607 vec->ksize = maxkeysize; in generate_random_hash_testvec() 1613 vec->ksize); in generate_random_hash_testvec() 1624 vec->psize, vec->ksize); in generate_random_hash_testvec() 1893 if (template[nr_unkeyed].ksize) in alg_test_hash() 1897 if (!template[nr_unkeyed + nr_keyed].ksize) { in alg_test_hash() [all …]
|
/linux/lib/ |
A 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() 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 140 ksize = size; 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() 161 ksize = size / 2; in test_copy_struct_from_user() 164 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 165 ret |= test(clear_user(umem + ksize, usize - ksize), in test_copy_struct_from_user() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
A 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/arch/powerpc/platforms/powernv/ |
A 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()
|
/linux/drivers/dma-buf/ |
A D | dma-heap.c | 131 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local 149 ksize = max(max(in_size, out_size), drv_size); in dma_heap_ioctl() 152 if (ksize > sizeof(stack_kdata)) { in dma_heap_ioctl() 153 kdata = kmalloc(ksize, GFP_KERNEL); in dma_heap_ioctl() 164 if (ksize > in_size) in dma_heap_ioctl() 165 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
|
/linux/include/linux/ |
A D | uaccess.h | 335 copy_struct_from_user(void *dst, size_t ksize, const void __user *src, in copy_struct_from_user() argument 338 size_t size = min(ksize, usize); in copy_struct_from_user() 339 size_t rest = max(ksize, usize) - size; in copy_struct_from_user() 342 if (usize < ksize) { in copy_struct_from_user() 344 } else if (usize > ksize) { in copy_struct_from_user()
|
/linux/arch/alpha/boot/ |
A 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()
|
A D | Makefile | 46 $(obj)/main.o: $(obj)/ksize.h 47 $(obj)/bootp.o: $(obj)/ksize.h 50 $(obj)/ksize.h: $(obj)/vmlinux.nh FORCE
|
A D | bootpz.c | 49 size_t ksize, size_t kzsize);
|
/linux/security/landlock/ |
A D | syscalls.c | 47 const size_t ksize, const size_t ksize_min, in copy_min_struct_from_user() argument 56 BUILD_BUG_ON(ksize <= 0); in copy_min_struct_from_user() 57 BUILD_BUG_ON(ksize < ksize_min); in copy_min_struct_from_user() 64 return copy_struct_from_user(dst, ksize, src, usize); in copy_min_struct_from_user()
|
/linux/arch/microblaze/mm/ |
A D | init.c | 193 unsigned int kstart, ksize; in mmu_init() local 229 ksize = PAGE_ALIGN(((u32)_end - (u32)CONFIG_KERNEL_START)); in mmu_init() 230 memblock_reserve(kstart, ksize); in mmu_init()
|
/linux/drivers/s390/crypto/ |
A D | pkey_api.c | 572 switch (ksize) { in pkey_genseckey2() 626 switch (ksize) { in pkey_clr2seckey2() 645 rc = cca_clr2seckey(card, dom, ksize, in pkey_clr2seckey2() 679 if (ksize) in pkey_verifykey2() 709 if (ksize) { in pkey_verifykey2() 710 *ksize = PKEY_SIZE_UNKNOWN; in pkey_verifykey2() 712 *ksize = PKEY_SIZE_AES_128; in pkey_verifykey2() 714 *ksize = PKEY_SIZE_AES_192; in pkey_verifykey2() 716 *ksize = PKEY_SIZE_AES_256; in pkey_verifykey2() 746 if (ksize) in pkey_verifykey2() [all …]
|
/linux/drivers/nvmem/ |
A D | core.c | 106 unsigned int kend, ksize; in nvmem_access_with_keepouts() local 122 ksize = kend - offset; in nvmem_access_with_keepouts() 124 rc = __nvmem_reg_write(nvmem, offset, val, ksize); in nvmem_access_with_keepouts() 126 rc = __nvmem_reg_read(nvmem, offset, val, ksize); in nvmem_access_with_keepouts() 131 offset += ksize; in nvmem_access_with_keepouts() 132 val += ksize; in nvmem_access_with_keepouts() 140 ksize = kend - offset; in nvmem_access_with_keepouts() 142 memset(val, keepout->value, ksize); in nvmem_access_with_keepouts() 144 val += ksize; in nvmem_access_with_keepouts() 145 offset += ksize; in nvmem_access_with_keepouts() [all …]
|
/linux/net/sched/ |
A D | act_pedit.c | 152 int 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()
|
/linux/arch/x86/kernel/fpu/ |
A D | xstate.c | 1539 static int fpstate_realloc(u64 xfeatures, unsigned int ksize, in fpstate_realloc() argument 1547 fpsize = ksize + ALIGN(offsetof(struct fpstate, regs), 64); in fpstate_realloc() 1552 newfps->size = ksize; in fpstate_realloc() 1608 unsigned int ksize, usize; in __xstate_request_perm() local 1618 ksize = xstate_calculate_size(mask, compacted); in __xstate_request_perm() 1631 fpu->perm.__state_size = ksize; in __xstate_request_perm() 1679 unsigned int ksize, usize; in xfd_enable_feature() local 1697 ksize = fpu->perm.__state_size; in xfd_enable_feature() 1711 if (fpstate_realloc(xfd_event, ksize, usize)) in xfd_enable_feature()
|
/linux/drivers/gpu/drm/ |
A D | drm_ioctl.c | 816 unsigned int in_size, out_size, drv_size, ksize; in drm_ioctl() local 851 ksize = max(max(in_size, out_size), drv_size); in drm_ioctl() 867 if (ksize <= sizeof(stack_kdata)) { in drm_ioctl() 870 kdata = kmalloc(ksize, GFP_KERNEL); in drm_ioctl() 882 if (ksize > in_size) in drm_ioctl() 883 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl()
|
/linux/drivers/crypto/ |
A 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/tools/testing/selftests/net/mptcp/ |
A D | mptcp_connect.sh | 579 local ksize 589 ksize=$((SIZE / 1024)) 590 rem=$((SIZE - (ksize * 1024))) 592 dd if=/dev/urandom of="$name" bs=1024 count=$ksize 2> /dev/null
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
A 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/net/bluetooth/ |
A 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()
|
/linux/mm/ |
A D | mempool.c | 61 __check_element(pool, element, ksize(element)); in check_element() 84 __poison_element(element, ksize(element)); in poison_element()
|
A D | slab_common.c | 1257 ks = ksize(mem); in kfree_sensitive() 1278 size_t ksize(const void *objp) in ksize() function 1308 EXPORT_SYMBOL(ksize);
|
/linux/mm/kfence/ |
A D | kfence_test.c | 703 KUNIT_EXPECT_EQ(test, ksize(buf), size); /* Precise size match after KFENCE alloc. */ in test_krealloc() 710 KUNIT_EXPECT_GE(test, ksize(buf), size * 3); in test_krealloc() 717 KUNIT_EXPECT_GE(test, ksize(buf), size * 2); in test_krealloc()
|
/linux/security/tomoyo/ |
A D | memory.c | 50 const size_t s = ksize(ptr); in tomoyo_memory_ok()
|