Home
last modified time | relevance | path

Searched refs:ksize (Results 1 – 25 of 26) 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/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 DMakefile46 $(obj)/main.o: $(obj)/ksize.h
47 $(obj)/bootp.o: $(obj)/ksize.h
50 $(obj)/ksize.h: $(obj)/vmlinux.nh FORCE
H A Dbootpz.c49 size_t ksize, size_t kzsize);
/linux/security/landlock/
H A Dsyscalls.c62 * @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 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/drivers/nvmem/
H A Dcore.c85 unsigned int kend, ksize; in nvmem_access_with_keepouts() local
101 ksize = kend - offset; in nvmem_access_with_keepouts()
103 rc = __nvmem_reg_write(nvmem, offset, val, ksize); in nvmem_access_with_keepouts()
105 rc = __nvmem_reg_read(nvmem, offset, val, ksize); in nvmem_access_with_keepouts()
110 offset += ksize; in nvmem_access_with_keepouts()
111 val += ksize; in nvmem_access_with_keepouts()
119 ksize = kend - offset; in nvmem_access_with_keepouts()
121 memset(val, keepout->value, ksize); in nvmem_access_with_keepouts()
123 val += ksize; in nvmem_access_with_keepouts()
124 offset += ksize; in nvmem_access_with_keepouts()
[all …]
/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/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/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/include/linux/
H A Dslab.h602 size_t ksize(const void *objp);
/linux/net/netfilter/
H A Dnft_set_rbtree.c1198 .ksize = nft_rbtree_ksize,
H A Dnf_tables_api.c5425 if (ops->ksize) in nft_set_kernel_size()
5426 return ops->ksize(desc->size); in nft_set_kernel_size()
/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 Dslab_common.c1265 ks = ksize(mem); in kfree_sensitive()
H A Dslub.c6696 size_t ksize(const void *objp) in ksize() function
6718 EXPORT_SYMBOL(ksize);
7110 memcpy(n, kasan_reset_tag(p), min(size, ksize(p))); in kvrealloc_node_align_noprof()
/linux/net/openvswitch/
H A Dflow_netlink.c2437 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 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()
/linux/net/core/
H A Dskbuff.c420 *size = ksize(data); in __slab_build_skb()
/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c1186 } else if (size > ksize(q_vector)) { in igb_alloc_q_vector()

12