| /linux/tools/testing/selftests/bpf/progs/ |
| H 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/drivers/dma-buf/ |
| H A D | dma-heap.c | 124 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local 145 ksize = max3(in_size, out_size, drv_size); in dma_heap_ioctl() 148 if (ksize > sizeof(stack_kdata)) { in dma_heap_ioctl() 149 kdata = kmalloc(ksize, GFP_KERNEL); in dma_heap_ioctl() 160 if (ksize > in_size) in dma_heap_ioctl() 161 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A 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/arch/alpha/boot/ |
| H A 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()
|
| H 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
|
| H A D | bootpz.c | 49 size_t ksize, size_t kzsize);
|
| /linux/security/landlock/ |
| H A D | syscalls.c | 62 * @ksize: Actual size of the data pointed to by @dst. 70 copy_min_struct_from_user(void *const dst, const size_t ksize, in copy_min_struct_from_user() 80 BUILD_BUG_ON(ksize <= 0); in copy_min_struct_from_user() 81 BUILD_BUG_ON(ksize < ksize_min); in copy_min_struct_from_user() 88 return copy_struct_from_user(dst, ksize, src, usize); 64 copy_min_struct_from_user(void * const dst,const size_t ksize,const size_t ksize_min,const void __user * const src,const size_t usize) copy_min_struct_from_user() argument
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_ioctl.c | 845 unsigned int in_size, out_size, drv_size, ksize; in drm_ioctl() local 880 ksize = max(max(in_size, out_size), drv_size); in drm_ioctl() 896 if (ksize <= sizeof(stack_kdata)) { in drm_ioctl() 899 kdata = kmalloc(ksize, GFP_KERNEL); in drm_ioctl() 911 if (ksize > in_size) in drm_ioctl() 912 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl()
|
| /linux/drivers/crypto/ |
| H 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/net/sched/ |
| H A D | act_pedit.c | 173 int i, ksize; in tcf_pedit_init() local 222 ksize = parm->nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_init() 223 if (nla_len(pattr) < sizeof(*parm) + ksize) { in tcf_pedit_init() 251 nparms->tcfp_keys = kmemdup(parm->keys, ksize, GFP_KERNEL); in tcf_pedit_init()
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_connect.sh | 565 local ksize 575 ksize=$((SIZE / 1024)) 576 rem=$((SIZE - (ksize * 1024))) 578 mptcp_lib_make_file $name 1024 $ksize
|
| /linux/security/tomoyo/ |
| H A D | memory.c | 50 const size_t s = ksize(ptr); in tomoyo_memory_ok()
|
| H A D | gc.c | 23 tomoyo_memory_used[TOMOYO_MEMORY_POLICY] -= ksize(ptr); in tomoyo_memory_free()
|
| /linux/mm/kfence/ |
| H A D | kfence_test.c | 722 KUNIT_EXPECT_EQ(test, ksize(buf), size); /* Precise size match after KFENCE alloc. */ in test_krealloc() 729 KUNIT_EXPECT_GE(test, ksize(buf), size * 3); in test_krealloc() 736 KUNIT_EXPECT_GE(test, ksize(buf), size * 2); in test_krealloc()
|
| /linux/include/linux/ |
| H A D | slab.h | 602 size_t ksize(const void *objp);
|
| /linux/net/netfilter/ |
| H A D | nft_set_rbtree.c | 1200 .ksize = nft_rbtree_ksize,
|
| H A D | nf_tables_api.c | 5434 if (ops->ksize) in nft_set_kernel_size() 5435 return ops->ksize(desc->size); in nft_set_kernel_size()
|
| /linux/arch/sparc/kernel/ |
| H A D | head_64.S | 310 stx %l3, [%sp + 2047 + 128 + 0x30] ! arg4: roundup(ksize, 4MB)
|
| /linux/include/net/netfilter/ |
| H A D | nf_tables.h | 495 u32 (*ksize)(u32 size); member
|
| /linux/mm/ |
| H A D | nommu.c | 83 return ksize(objp); in kobjsize()
|
| H A D | slab_common.c | 1265 ks = ksize(mem); in kfree_sensitive()
|
| H A D | slub.c | 6695 * ksize -- Report full size of underlying allocation 6706 size_t ksize(const void *objp) in ksize() 6710 * The KASAN report printed from ksize() is more useful, then when in ksize() 6718 * ksize() writing to and potentially corrupting the memory region. in ksize() 6728 EXPORT_SYMBOL(ksize); 7120 memcpy(n, kasan_reset_tag(p), min(size, ksize(p))); in kvrealloc_node_align_noprof() 6705 size_t ksize(const void *objp) ksize() function
|
| /linux/net/openvswitch/ |
| H A D | flow_netlink.c | 2437 if (req_size <= (ksize(*sfa) - next_offset)) in reserve_sfa_size() 2440 new_acts_size = max(next_offset + req_size, ksize(*sfa) * 2); in reserve_sfa_size()
|
| /linux/sound/soc/codecs/ |
| H A D | cs-amp-lib-test.c | 245 KUNIT_ASSERT_GE_MSG(test, ksize(buf), priv->cal_blob->size, "Buffer to small"); in cs_amp_lib_test_get_efi_variable() 330 KUNIT_ASSERT_GE_MSG(test, ksize(buf), priv->cal_blob->size, "Buffer to small"); in cs_amp_lib_test_get_hp_cal_efi_variable()
|
| /linux/net/core/ |
| H A D | skbuff.c | 420 *size = ksize(data); in __slab_build_skb() 422 * "ksize(data)" is requested: it is the existing upper in __slab_build_skb()
|