Symbol: ksize
arch/alpha/boot/bootpz.c
49
size_t ksize, size_t kzsize);
arch/alpha/boot/misc.c
152
size_t ksize,
arch/alpha/boot/misc.c
160
free_mem_ptr = (ulg)output_start + ksize;
arch/alpha/boot/misc.c
161
free_mem_end_ptr = (ulg)output_start + ksize + 0x200000;
arch/microblaze/mm/init.c
167
unsigned int kstart, ksize;
arch/microblaze/mm/init.c
198
ksize = PAGE_ALIGN(((u32)_end - (u32)CONFIG_KERNEL_START));
arch/microblaze/mm/init.c
199
memblock_reserve(kstart, ksize);
arch/powerpc/platforms/powernv/opal-secvar.c
57
static int opal_get_variable(const char *key, u64 ksize, u8 *data, u64 *dsize)
arch/powerpc/platforms/powernv/opal-secvar.c
66
rc = opal_secvar_get(key, ksize, data, dsize);
arch/powerpc/platforms/powernv/opal-secvar.c
89
static int opal_set_variable(const char *key, u64 ksize, u8 *data, u64 dsize)
arch/powerpc/platforms/powernv/opal-secvar.c
96
rc = opal_secvar_enqueue_update(key, ksize, data, dsize);
arch/x86/kernel/fpu/xstate.c
1580
static int fpstate_realloc(u64 xfeatures, unsigned int ksize,
arch/x86/kernel/fpu/xstate.c
1588
fpsize = ksize + ALIGN(offsetof(struct fpstate, regs), 64);
arch/x86/kernel/fpu/xstate.c
1593
newfps->size = ksize;
arch/x86/kernel/fpu/xstate.c
1678
unsigned int ksize, usize;
arch/x86/kernel/fpu/xstate.c
1693
ksize = xstate_calculate_size(mask, compacted);
arch/x86/kernel/fpu/xstate.c
1711
perm->__state_size = ksize;
arch/x86/kernel/fpu/xstate.c
1765
unsigned int ksize, usize;
arch/x86/kernel/fpu/xstate.c
1785
ksize = perm->__state_size;
arch/x86/kernel/fpu/xstate.c
1800
if (fpstate_realloc(xfd_event, ksize, usize, guest_fpu))
crypto/testmgr.c
1304
if (vec->ksize) {
crypto/testmgr.c
1305
err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize,
crypto/testmgr.c
1491
if (vec->ksize) {
crypto/testmgr.c
1492
err = do_setkey(crypto_ahash_setkey, tfm, vec->key, vec->ksize,
crypto/testmgr.c
1719
vec->ksize = 0;
crypto/testmgr.c
1721
vec->ksize = maxkeysize;
crypto/testmgr.c
1723
vec->ksize = prandom_u32_inclusive(rng, 1, maxkeysize);
crypto/testmgr.c
1724
generate_random_bytes(rng, (u8 *)vec->key, vec->ksize);
crypto/testmgr.c
1727
crypto_ahash_reqtfm(req), vec->key, vec->ksize);
crypto/testmgr.c
1739
vec->psize, vec->ksize);
crypto/testmgr.c
2004
if (template[nr_unkeyed].ksize)
crypto/testmgr.c
2008
if (!template[nr_unkeyed + nr_keyed].ksize) {
crypto/testmgr.c
2014
template[nr_unkeyed + nr_keyed].ksize);
crypto/testmgr.c
827
static int prepare_keybuf(const u8 *key, unsigned int ksize,
crypto/testmgr.c
838
keybuf = kmalloc(key_offset + ksize, GFP_KERNEL);
crypto/testmgr.c
842
memcpy(keyptr, key, ksize);
crypto/testmgr.c
853
#define do_setkey(setkey_f, tfm, key, ksize, cfg, alignmask) \
crypto/testmgr.c
858
err = prepare_keybuf((key), (ksize), (cfg), (alignmask), \
crypto/testmgr.c
863
err = setkey_f((tfm), keyptr, (ksize)); \
crypto/testmgr.h
13194
.ksize = 16,
crypto/testmgr.h
13206
.ksize = 16,
crypto/testmgr.h
13221
.ksize = 16,
crypto/testmgr.h
13234
.ksize = 16,
crypto/testmgr.h
13246
.ksize = 16,
crypto/testmgr.h
13261
.ksize = 16,
crypto/testmgr.h
13273
.ksize = 16,
crypto/testmgr.h
13281
.ksize = 16,
crypto/testmgr.h
13290
.ksize = 16,
crypto/testmgr.h
13300
.ksize = 16,
crypto/testmgr.h
13311
.ksize = 16,
crypto/testmgr.h
13323
.ksize = 16,
crypto/testmgr.h
24408
.ksize = 16,
crypto/testmgr.h
24417
.ksize = 16,
crypto/testmgr.h
24429
.ksize = 16,
crypto/testmgr.h
24444
.ksize = 16,
crypto/testmgr.h
33762
.ksize = 4,
crypto/testmgr.h
33768
.ksize = 4,
crypto/testmgr.h
33779
.ksize = 4,
crypto/testmgr.h
33790
.ksize = 4,
crypto/testmgr.h
33801
.ksize = 4,
crypto/testmgr.h
33812
.ksize = 4,
crypto/testmgr.h
33823
.ksize = 4,
crypto/testmgr.h
33834
.ksize = 4,
crypto/testmgr.h
33845
.ksize = 4,
crypto/testmgr.h
33856
.ksize = 4,
crypto/testmgr.h
33867
.ksize = 4,
crypto/testmgr.h
33878
.ksize = 4,
crypto/testmgr.h
33889
.ksize = 4,
crypto/testmgr.h
33924
.ksize = 4,
crypto/testmgr.h
34201
.ksize = 4,
crypto/testmgr.h
34207
.ksize = 4,
crypto/testmgr.h
34218
.ksize = 4,
crypto/testmgr.h
34229
.ksize = 4,
crypto/testmgr.h
34240
.ksize = 4,
crypto/testmgr.h
34251
.ksize = 4,
crypto/testmgr.h
34262
.ksize = 4,
crypto/testmgr.h
34273
.ksize = 4,
crypto/testmgr.h
34284
.ksize = 4,
crypto/testmgr.h
34295
.ksize = 4,
crypto/testmgr.h
34306
.ksize = 4,
crypto/testmgr.h
34317
.ksize = 4,
crypto/testmgr.h
34328
.ksize = 4,
crypto/testmgr.h
34363
.ksize = 4,
crypto/testmgr.h
34676
.ksize = 8,
crypto/testmgr.h
34684
.ksize = 8,
crypto/testmgr.h
34692
.ksize = 8,
crypto/testmgr.h
34726
.ksize = 8,
crypto/testmgr.h
35466
.ksize = 32,
crypto/testmgr.h
35474
.ksize = 64,
crypto/testmgr.h
35482
.ksize = 1,
crypto/testmgr.h
35490
.ksize = 32,
crypto/testmgr.h
35498
.ksize = 64,
crypto/testmgr.h
35522
.ksize = 1,
crypto/testmgr.h
35529
.ksize = 64,
crypto/testmgr.h
35538
.ksize = 32,
crypto/testmgr.h
35547
.ksize = 1,
crypto/testmgr.h
35556
.ksize = 64,
crypto/testmgr.h
35585
.ksize = 32,
crypto/testmgr.h
35594
.ksize = 1,
crypto/testmgr.h
35605
.ksize = 64,
crypto/testmgr.h
35616
.ksize = 32,
crypto/testmgr.h
35627
.ksize = 1,
crypto/testmgr.h
35651
.ksize = 64,
crypto/testmgr.h
35662
.ksize = 1,
crypto/testmgr.h
35675
.ksize = 32,
crypto/testmgr.h
35688
.ksize = 64,
crypto/testmgr.h
35701
.ksize = 1,
crypto/testmgr.h
35714
.ksize = 32,
crypto/testmgr.h
44
unsigned short ksize;
crypto/testmgr.h
4871
.ksize = 32,
crypto/testmgr.h
4890
.ksize = 32,
crypto/testmgr.h
4983
.ksize = 32,
crypto/testmgr.h
4997
.ksize = 37,
crypto/testmgr.h
5011
.ksize = 32,
crypto/testmgr.h
5020
.ksize = 4,
crypto/testmgr.h
6202
.ksize = 16,
crypto/testmgr.h
6209
.ksize = 4,
crypto/testmgr.h
6216
.ksize = 16,
crypto/testmgr.h
6228
.ksize = 25,
crypto/testmgr.h
6238
.ksize = 16,
crypto/testmgr.h
6251
.ksize = 80,
crypto/testmgr.h
6264
.ksize = 80,
crypto/testmgr.h
6279
.ksize = 20,
crypto/testmgr.h
6286
.ksize = 4,
crypto/testmgr.h
6293
.ksize = 20,
crypto/testmgr.h
6305
.ksize = 25,
crypto/testmgr.h
6315
.ksize = 20,
crypto/testmgr.h
6328
.ksize = 80,
crypto/testmgr.h
6341
.ksize = 80,
crypto/testmgr.h
6356
.ksize = 20,
crypto/testmgr.h
6364
.ksize = 4,
crypto/testmgr.h
6372
.ksize = 20,
crypto/testmgr.h
6384
.ksize = 25,
crypto/testmgr.h
6394
.ksize = 20,
crypto/testmgr.h
6407
.ksize = 80,
crypto/testmgr.h
6420
.ksize = 80,
crypto/testmgr.h
6438
.ksize = 20,
crypto/testmgr.h
6448
.ksize = 4,
crypto/testmgr.h
6478
.ksize = 131,
crypto/testmgr.h
6510
.ksize = 131,
crypto/testmgr.h
6551
.ksize = 32,
crypto/testmgr.h
6563
.ksize = 32,
crypto/testmgr.h
6575
.ksize = 32,
crypto/testmgr.h
6587
.ksize = 32,
crypto/testmgr.h
6596
.ksize = 4,
crypto/testmgr.h
6608
.ksize = 32,
crypto/testmgr.h
6624
.ksize = 37,
crypto/testmgr.h
6638
.ksize = 32,
crypto/testmgr.h
6653
.ksize = 80,
crypto/testmgr.h
6668
.ksize = 80,
crypto/testmgr.h
6687
.ksize = 16,
crypto/testmgr.h
6696
.ksize = 16,
crypto/testmgr.h
6708
.ksize = 16,
crypto/testmgr.h
6723
.ksize = 16,
crypto/testmgr.h
6733
.ksize = 32,
crypto/testmgr.h
6750
.ksize = 32,
crypto/testmgr.h
6763
.ksize = 16,
crypto/testmgr.h
6775
.ksize = 16,
crypto/testmgr.h
6790
.ksize = 16,
crypto/testmgr.h
6808
.ksize = 32,
crypto/testmgr.h
6825
.ksize = 24,
crypto/testmgr.h
6833
.ksize = 24,
crypto/testmgr.h
6843
.ksize = 24,
crypto/testmgr.h
6854
.ksize = 24,
crypto/testmgr.h
6866
.ksize = 16,
crypto/testmgr.h
6874
.ksize = 16,
crypto/testmgr.h
6883
.ksize = 16,
crypto/testmgr.h
6893
.ksize = 16,
crypto/testmgr.h
6904
.ksize = 16,
crypto/testmgr.h
6916
.ksize = 16,
crypto/testmgr.h
6929
.ksize = 20,
crypto/testmgr.h
6940
.ksize = 4,
crypto/testmgr.h
6968
.ksize = 131,
crypto/testmgr.h
6996
.ksize = 131,
crypto/testmgr.h
7026
.ksize = 20,
crypto/testmgr.h
7039
.ksize = 4,
crypto/testmgr.h
7069
.ksize = 131,
crypto/testmgr.h
7101
.ksize = 131,
crypto/testmgr.h
7130
.ksize = 20,
crypto/testmgr.h
7139
.ksize = 4,
crypto/testmgr.h
7165
.ksize = 131,
crypto/testmgr.h
7193
.ksize = 131,
crypto/testmgr.h
7218
.ksize = 20,
crypto/testmgr.h
7227
.ksize = 4,
crypto/testmgr.h
7253
.ksize = 131,
crypto/testmgr.h
7281
.ksize = 131,
crypto/testmgr.h
7306
.ksize = 20,
crypto/testmgr.h
7317
.ksize = 4,
crypto/testmgr.h
7345
.ksize = 131,
crypto/testmgr.h
7375
.ksize = 131,
crypto/testmgr.h
7402
.ksize = 20,
crypto/testmgr.h
7415
.ksize = 4,
crypto/testmgr.h
7445
.ksize = 131,
crypto/testmgr.h
7477
.ksize = 131,
drivers/base/devres.c
1005
total_old_size = ksize(container_of(ptr, struct devres, data));
drivers/crypto/padlock-aes.c
136
ctx->cword.encrypt.ksize = (key_len - 16) / 8;
drivers/crypto/padlock-aes.c
137
ctx->cword.decrypt.ksize = ctx->cword.encrypt.ksize;
drivers/crypto/padlock-aes.c
50
ksize:2;
drivers/dma-buf/dma-heap.c
138
unsigned int in_size, out_size, drv_size, ksize;
drivers/dma-buf/dma-heap.c
157
ksize = max(max(in_size, out_size), drv_size);
drivers/dma-buf/dma-heap.c
160
if (ksize > sizeof(stack_kdata)) {
drivers/dma-buf/dma-heap.c
161
kdata = kmalloc(ksize, GFP_KERNEL);
drivers/dma-buf/dma-heap.c
172
if (ksize > in_size)
drivers/dma-buf/dma-heap.c
173
memset(kdata + in_size, 0, ksize - in_size);
drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c
191
KUNIT_EXPECT_GE(test, ksize(ctl->cache), ctl->len);
drivers/gpu/drm/drm_ioctl.c
845
unsigned int in_size, out_size, drv_size, ksize;
drivers/gpu/drm/drm_ioctl.c
880
ksize = max(max(in_size, out_size), drv_size);
drivers/gpu/drm/drm_ioctl.c
896
if (ksize <= sizeof(stack_kdata)) {
drivers/gpu/drm/drm_ioctl.c
899
kdata = kmalloc(ksize, GFP_KERNEL);
drivers/gpu/drm/drm_ioctl.c
911
if (ksize > in_size)
drivers/gpu/drm/drm_ioctl.c
912
memset(kdata + in_size, 0, ksize - in_size);
drivers/gpu/drm/drm_managed.c
134
WARN_ON(dev + 1 > (struct drm_device *) (container + ksize(container)));
drivers/md/dm-vdo/memory-alloc.c
244
add_kmalloc_block(ksize(p));
drivers/md/dm-vdo/memory-alloc.c
310
add_kmalloc_block(ksize(p));
drivers/md/dm-vdo/memory-alloc.c
322
remove_kmalloc_block(ksize(ptr));
drivers/net/ethernet/intel/igb/igb_main.c
1186
} else if (size > ksize(q_vector)) {
drivers/nvmem/core.c
101
ksize = kend - offset;
drivers/nvmem/core.c
103
rc = __nvmem_reg_write(nvmem, offset, val, ksize);
drivers/nvmem/core.c
105
rc = __nvmem_reg_read(nvmem, offset, val, ksize);
drivers/nvmem/core.c
110
offset += ksize;
drivers/nvmem/core.c
111
val += ksize;
drivers/nvmem/core.c
119
ksize = kend - offset;
drivers/nvmem/core.c
121
memset(val, keepout->value, ksize);
drivers/nvmem/core.c
123
val += ksize;
drivers/nvmem/core.c
124
offset += ksize;
drivers/nvmem/core.c
133
ksize = end - offset;
drivers/nvmem/core.c
135
return __nvmem_reg_write(nvmem, offset, val, ksize);
drivers/nvmem/core.c
137
return __nvmem_reg_read(nvmem, offset, val, ksize);
drivers/nvmem/core.c
85
unsigned int kend, ksize;
include/linux/slab.h
599
size_t ksize(const void *objp);
include/linux/sockptr.h
112
size_t ksize, bool *ignored_trailing)
include/linux/sockptr.h
115
return copy_struct_to_user(dst.user, usize, src, ksize, ignored_trailing);
include/linux/sockptr.h
117
return copy_struct_to_bounce_buffer(dst.kernel, usize, src, ksize, ignored_trailing);
include/linux/sockptr.h
77
static inline int copy_safe_from_sockptr(void *dst, size_t ksize,
include/linux/sockptr.h
80
if (optlen < ksize)
include/linux/sockptr.h
82
if (copy_from_sockptr(dst, optval, ksize))
include/linux/sockptr.h
87
static inline int copy_struct_from_sockptr(void *dst, size_t ksize,
include/linux/sockptr.h
91
return copy_struct_from_user(dst, ksize, src.user, usize);
include/linux/sockptr.h
93
return copy_struct_from_bounce_buffer(dst, ksize, src.kernel, usize);
include/linux/uaccess.h
393
copy_struct_from_user(void *dst, size_t ksize, const void __user *src,
include/linux/uaccess.h
396
size_t size = min(ksize, usize);
include/linux/uaccess.h
397
size_t rest = max(ksize, usize) - size;
include/linux/uaccess.h
400
if (WARN_ON_ONCE(ksize > __builtin_object_size(dst, 1)))
include/linux/uaccess.h
404
if (usize < ksize) {
include/linux/uaccess.h
406
} else if (usize > ksize) {
include/linux/uaccess.h
491
size_t ksize, bool *ignored_trailing)
include/linux/uaccess.h
493
size_t size = min(ksize, usize);
include/linux/uaccess.h
494
size_t rest = max(ksize, usize) - size;
include/linux/uaccess.h
497
if (WARN_ON_ONCE(ksize > __builtin_object_size(src, 1)))
include/linux/uaccess.h
501
if (usize > ksize) {
include/linux/uaccess.h
506
*ignored_trailing = usize < ksize &&
include/net/netfilter/nf_tables.h
495
u32 (*ksize)(u32 size);
kernel/bpf/verifier.c
1271
alloc_bytes = max(ksize(orig), kmalloc_size_roundup(bytes));
lib/kunit/string-stream-test.c
483
actual_bytes_used = ksize(stream);
lib/kunit/string-stream-test.c
488
actual_bytes_used += ksize(frag_container);
lib/kunit/string-stream-test.c
493
actual_bytes_used += ksize(frag_container->fragment);
lib/tests/usercopy_kunit.c
113
size_t ksize, usize;
lib/tests/usercopy_kunit.c
127
ksize = size;
lib/tests/usercopy_kunit.c
130
memcpy(expected, umem_src, ksize);
lib/tests/usercopy_kunit.c
133
KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0,
lib/tests/usercopy_kunit.c
135
KUNIT_EXPECT_MEMEQ_MSG(test, kmem, expected, ksize,
lib/tests/usercopy_kunit.c
139
ksize = size;
lib/tests/usercopy_kunit.c
143
memset(expected + usize, 0x0, ksize - usize);
lib/tests/usercopy_kunit.c
146
KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0,
lib/tests/usercopy_kunit.c
148
KUNIT_EXPECT_MEMEQ_MSG(test, kmem, expected, ksize,
lib/tests/usercopy_kunit.c
152
ksize = size / 2;
lib/tests/usercopy_kunit.c
156
KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), -E2BIG,
lib/tests/usercopy_kunit.c
160
ksize = size / 2;
lib/tests/usercopy_kunit.c
163
memcpy(expected, umem_src, ksize);
lib/tests/usercopy_kunit.c
164
KUNIT_EXPECT_EQ_MSG(test, clear_user(umem + ksize, usize - ksize), 0,
lib/tests/usercopy_kunit.c
168
KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0,
lib/tests/usercopy_kunit.c
170
KUNIT_EXPECT_MEMEQ_MSG(test, kmem, expected, ksize,
mm/kasan/kasan_test_c.c
904
real_size = ksize(ptr);
mm/kasan/kasan_test_c.c
936
KUNIT_EXPECT_KASAN_FAIL(test, ksize(ptr));
mm/kfence/kfence_test.c
722
KUNIT_EXPECT_EQ(test, ksize(buf), size); /* Precise size match after KFENCE alloc. */
mm/kfence/kfence_test.c
729
KUNIT_EXPECT_GE(test, ksize(buf), size * 3);
mm/kfence/kfence_test.c
736
KUNIT_EXPECT_GE(test, ksize(buf), size * 2);
mm/nommu.c
83
return ksize(objp);
mm/slab_common.c
1249
ks = ksize(mem);
mm/slub.c
6596
EXPORT_SYMBOL(ksize);
mm/slub.c
7010
memcpy(n, kasan_reset_tag(p), min(size, ksize(p)));
net/core/skbuff.c
420
*size = ksize(data);
net/netfilter/nf_tables_api.c
5420
if (ops->ksize)
net/netfilter/nf_tables_api.c
5421
return ops->ksize(desc->size);
net/netfilter/nft_set_rbtree.c
1199
.ksize = nft_rbtree_ksize,
net/openvswitch/flow_netlink.c
2437
if (req_size <= (ksize(*sfa) - next_offset))
net/openvswitch/flow_netlink.c
2440
new_acts_size = max(next_offset + req_size, ksize(*sfa) * 2);
net/sched/act_pedit.c
173
int i, ksize;
net/sched/act_pedit.c
222
ksize = parm->nkeys * sizeof(struct tc_pedit_key);
net/sched/act_pedit.c
223
if (nla_len(pattr) < sizeof(*parm) + ksize) {
net/sched/act_pedit.c
251
nparms->tcfp_keys = kmemdup(parm->keys, ksize, GFP_KERNEL);
security/landlock/syscalls.c
67
copy_min_struct_from_user(void *const dst, const size_t ksize,
security/landlock/syscalls.c
77
BUILD_BUG_ON(ksize <= 0);
security/landlock/syscalls.c
78
BUILD_BUG_ON(ksize < ksize_min);
security/landlock/syscalls.c
85
return copy_struct_from_user(dst, ksize, src, usize);
security/tomoyo/gc.c
23
tomoyo_memory_used[TOMOYO_MEMORY_POLICY] -= ksize(ptr);
security/tomoyo/memory.c
50
const size_t s = ksize(ptr);
sound/soc/codecs/cs-amp-lib-test.c
245
KUNIT_ASSERT_GE_MSG(test, ksize(buf), priv->cal_blob->size, "Buffer to small");
sound/soc/codecs/cs-amp-lib-test.c
330
KUNIT_ASSERT_GE_MSG(test, ksize(buf), priv->cal_blob->size, "Buffer to small");
tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c
62
long usize, ksize;
tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c
91
ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0);
tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c
92
if (ksize < 0)
tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c
95
total_size = usize + ksize;