Home
last modified time | relevance | path

Searched refs:ksize (Results 1 – 25 of 28) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_get_stack_rawtp.c62 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 Ddma-heap.c124 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 Dopal-secvar.c57 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 Dmisc.c152 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 DMakefile52 $(obj)/main.o: $(obj)/ksize.h
53 $(obj)/bootp.o: $(obj)/ksize.h
56 $(obj)/ksize.h: $(obj)/vmlinux.nh FORCE
H A Dbootpz.c49 size_t ksize, size_t kzsize);
/linux/security/landlock/
H A Dsyscalls.c65 * @ksize: Actual size of the data pointed to by @dst.
73 copy_min_struct_from_user(void *const dst, const size_t ksize, in copy_min_struct_from_user()
83 BUILD_BUG_ON(ksize <= 0); in copy_min_struct_from_user()
84 BUILD_BUG_ON(ksize < ksize_min); in copy_min_struct_from_user()
91 return copy_struct_from_user(dst, ksize, src, usize);
70 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 Ddrm_ioctl.c845 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/arch/x86/kernel/fpu/
H A Dxstate.c1620 static int fpstate_realloc(u64 xfeatures, unsigned int ksize, in fpstate_realloc() argument
1628 fpsize = ksize + ALIGN(offsetof(struct fpstate, regs), 64); in fpstate_realloc()
1633 newfps->size = ksize; in fpstate_realloc()
1718 unsigned int ksize, usize; in __xstate_request_perm() local
1733 ksize = xstate_calculate_size(mask, compacted); in __xstate_request_perm()
1751 perm->__state_size = ksize; in __xstate_request_perm()
1805 unsigned int ksize, usize; in __xfd_enable_feature() local
1825 ksize = perm->__state_size; in __xfd_enable_feature()
1840 if (fpstate_realloc(xfd_event, ksize, usize, guest_fpu)) in __xfd_enable_feature()
/linux/drivers/crypto/
H A Dpadlock-aes.c50 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 Dact_pedit.c173 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 Dmptcp_connect.sh565 local ksize
575 ksize=$((SIZE / 1024))
576 rem=$((SIZE - (ksize * 1024)))
578 mptcp_lib_make_file $name 1024 $ksize
/linux/mm/kfence/
H A Dkfence_test.c722 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/security/tomoyo/
H A Dmemory.c50 const size_t s = ksize(ptr); in tomoyo_memory_ok()
H A Dgc.c23 tomoyo_memory_used[TOMOYO_MEMORY_POLICY] -= ksize(ptr); in tomoyo_memory_free()
/linux/include/linux/
H A Dslab.h602 size_t ksize(const void *objp);
/linux/net/netfilter/
H A Dnft_set_rbtree.c1202 .ksize = nft_rbtree_ksize,
H A Dnf_tables_api.c5465 if (ops->ksize) in nf_tables_newset()
5466 return ops->ksize(desc->size); in nf_tables_newset()
/linux/arch/sparc/kernel/
H A Dhead_64.S310 stx %l3, [%sp + 2047 + 128 + 0x30] ! arg4: roundup(ksize, 4MB)
/linux/include/net/netfilter/
H A Dnf_tables.h495 u32 (*ksize)(u32 size); member
/linux/mm/
H A Dnommu.c70 * If the object we have should not have ksize performed on it, in kobjsize()
83 return ksize(objp); in kobjsize()
100 * The ksize() function is only guaranteed to work for pointers in kobjsize()
H A Dslab_common.c1274 ks = ksize(mem);
H A Dslub.c6823 * ksize -- Report full size of underlying allocation in kfree_nolock()
6834 size_t ksize(const void *objp) in kfree_nolock()
6838 * The KASAN report printed from ksize() is more useful, then when in kfree_nolock()
6846 * ksize() writing to and potentially corrupting the memory region. in kfree_nolock()
6856 EXPORT_SYMBOL(ksize); in kfree_nolock()
7256 memcpy(n, kasan_reset_tag(p), min(size, ksize(p))); in kmem_cache_free_bulk()
6706 size_t ksize(const void *objp) ksize() function
/linux/net/openvswitch/
H A Dflow_netlink.c2435 if (req_size <= (ksize(*sfa) - next_offset)) in reserve_sfa_size()
2438 new_acts_size = max(next_offset + req_size, ksize(*sfa) * 2); in reserve_sfa_size()
/linux/sound/soc/codecs/
H A Dcs-amp-lib-test.c245 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()

12