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
1581
static int fpstate_realloc(u64 xfeatures, unsigned int ksize,
arch/x86/kernel/fpu/xstate.c
1589
fpsize = ksize + ALIGN(offsetof(struct fpstate, regs), 64);
arch/x86/kernel/fpu/xstate.c
1594
newfps->size = ksize;
arch/x86/kernel/fpu/xstate.c
1679
unsigned int ksize, usize;
arch/x86/kernel/fpu/xstate.c
1694
ksize = xstate_calculate_size(mask, compacted);
arch/x86/kernel/fpu/xstate.c
1712
perm->__state_size = ksize;
arch/x86/kernel/fpu/xstate.c
1766
unsigned int ksize, usize;
arch/x86/kernel/fpu/xstate.c
1786
ksize = perm->__state_size;
arch/x86/kernel/fpu/xstate.c
1801
if (fpstate_realloc(xfd_event, ksize, usize, guest_fpu))
crypto/testmgr.c
1305
if (vec->ksize) {
crypto/testmgr.c
1306
err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize,
crypto/testmgr.c
1492
if (vec->ksize) {
crypto/testmgr.c
1493
err = do_setkey(crypto_ahash_setkey, tfm, vec->key, vec->ksize,
crypto/testmgr.c
1720
vec->ksize = 0;
crypto/testmgr.c
1722
vec->ksize = maxkeysize;
crypto/testmgr.c
1724
vec->ksize = prandom_u32_inclusive(rng, 1, maxkeysize);
crypto/testmgr.c
1725
generate_random_bytes(rng, (u8 *)vec->key, vec->ksize);
crypto/testmgr.c
1728
crypto_ahash_reqtfm(req), vec->key, vec->ksize);
crypto/testmgr.c
1740
vec->psize, vec->ksize);
crypto/testmgr.c
2005
if (template[nr_unkeyed].ksize)
crypto/testmgr.c
2009
if (!template[nr_unkeyed + nr_keyed].ksize) {
crypto/testmgr.c
2015
template[nr_unkeyed + nr_keyed].ksize);
crypto/testmgr.c
828
static int prepare_keybuf(const u8 *key, unsigned int ksize,
crypto/testmgr.c
839
keybuf = kmalloc(key_offset + ksize, GFP_KERNEL);
crypto/testmgr.c
843
memcpy(keyptr, key, ksize);
crypto/testmgr.c
854
#define do_setkey(setkey_f, tfm, key, ksize, cfg, alignmask) \
crypto/testmgr.c
859
err = prepare_keybuf((key), (ksize), (cfg), (alignmask), \
crypto/testmgr.c
864
err = setkey_f((tfm), keyptr, (ksize)); \
crypto/testmgr.h
13295
.ksize = 16,
crypto/testmgr.h
13307
.ksize = 16,
crypto/testmgr.h
13322
.ksize = 16,
crypto/testmgr.h
13335
.ksize = 16,
crypto/testmgr.h
13347
.ksize = 16,
crypto/testmgr.h
13362
.ksize = 16,
crypto/testmgr.h
13374
.ksize = 16,
crypto/testmgr.h
13382
.ksize = 16,
crypto/testmgr.h
13391
.ksize = 16,
crypto/testmgr.h
13401
.ksize = 16,
crypto/testmgr.h
13412
.ksize = 16,
crypto/testmgr.h
13424
.ksize = 16,
crypto/testmgr.h
23472
.ksize = 16,
crypto/testmgr.h
23481
.ksize = 16,
crypto/testmgr.h
23493
.ksize = 16,
crypto/testmgr.h
23508
.ksize = 16,
crypto/testmgr.h
32819
.ksize = 8,
crypto/testmgr.h
32826
.ksize = 8,
crypto/testmgr.h
32833
.ksize = 8,
crypto/testmgr.h
32840
.ksize = 8,
crypto/testmgr.h
32847
.ksize = 8,
crypto/testmgr.h
32854
.ksize = 8,
crypto/testmgr.h
32876
.ksize = 4,
crypto/testmgr.h
32882
.ksize = 4,
crypto/testmgr.h
32893
.ksize = 4,
crypto/testmgr.h
32904
.ksize = 4,
crypto/testmgr.h
32915
.ksize = 4,
crypto/testmgr.h
32926
.ksize = 4,
crypto/testmgr.h
32937
.ksize = 4,
crypto/testmgr.h
32948
.ksize = 4,
crypto/testmgr.h
32959
.ksize = 4,
crypto/testmgr.h
32970
.ksize = 4,
crypto/testmgr.h
32981
.ksize = 4,
crypto/testmgr.h
32992
.ksize = 4,
crypto/testmgr.h
33003
.ksize = 4,
crypto/testmgr.h
33038
.ksize = 4,
crypto/testmgr.h
33315
.ksize = 4,
crypto/testmgr.h
33321
.ksize = 4,
crypto/testmgr.h
33332
.ksize = 4,
crypto/testmgr.h
33343
.ksize = 4,
crypto/testmgr.h
33354
.ksize = 4,
crypto/testmgr.h
33365
.ksize = 4,
crypto/testmgr.h
33376
.ksize = 4,
crypto/testmgr.h
33387
.ksize = 4,
crypto/testmgr.h
33398
.ksize = 4,
crypto/testmgr.h
33409
.ksize = 4,
crypto/testmgr.h
33420
.ksize = 4,
crypto/testmgr.h
33431
.ksize = 4,
crypto/testmgr.h
33442
.ksize = 4,
crypto/testmgr.h
33477
.ksize = 4,
crypto/testmgr.h
33790
.ksize = 8,
crypto/testmgr.h
33798
.ksize = 8,
crypto/testmgr.h
33806
.ksize = 8,
crypto/testmgr.h
33840
.ksize = 8,
crypto/testmgr.h
34580
.ksize = 32,
crypto/testmgr.h
34588
.ksize = 64,
crypto/testmgr.h
34596
.ksize = 1,
crypto/testmgr.h
34604
.ksize = 32,
crypto/testmgr.h
34612
.ksize = 64,
crypto/testmgr.h
34636
.ksize = 1,
crypto/testmgr.h
34643
.ksize = 64,
crypto/testmgr.h
34652
.ksize = 32,
crypto/testmgr.h
34661
.ksize = 1,
crypto/testmgr.h
34670
.ksize = 64,
crypto/testmgr.h
34699
.ksize = 32,
crypto/testmgr.h
34708
.ksize = 1,
crypto/testmgr.h
34719
.ksize = 64,
crypto/testmgr.h
34730
.ksize = 32,
crypto/testmgr.h
34741
.ksize = 1,
crypto/testmgr.h
34765
.ksize = 64,
crypto/testmgr.h
34776
.ksize = 1,
crypto/testmgr.h
34789
.ksize = 32,
crypto/testmgr.h
34802
.ksize = 64,
crypto/testmgr.h
34815
.ksize = 1,
crypto/testmgr.h
34828
.ksize = 32,
crypto/testmgr.h
44
unsigned short ksize;
crypto/testmgr.h
4863
.ksize = 32,
crypto/testmgr.h
4882
.ksize = 32,
crypto/testmgr.h
4975
.ksize = 32,
crypto/testmgr.h
4989
.ksize = 37,
crypto/testmgr.h
5003
.ksize = 32,
crypto/testmgr.h
5012
.ksize = 4,
crypto/testmgr.h
6191
.ksize = 16,
crypto/testmgr.h
6200
.ksize = 16,
crypto/testmgr.h
6208
.ksize = 16,
crypto/testmgr.h
6219
.ksize = 16,
crypto/testmgr.h
6230
.ksize = 16,
crypto/testmgr.h
6238
.ksize = 16,
crypto/testmgr.h
6303
.ksize = 16,
crypto/testmgr.h
6310
.ksize = 4,
crypto/testmgr.h
6317
.ksize = 16,
crypto/testmgr.h
6329
.ksize = 25,
crypto/testmgr.h
6339
.ksize = 16,
crypto/testmgr.h
6352
.ksize = 80,
crypto/testmgr.h
6365
.ksize = 80,
crypto/testmgr.h
6380
.ksize = 20,
crypto/testmgr.h
6387
.ksize = 4,
crypto/testmgr.h
6394
.ksize = 20,
crypto/testmgr.h
6406
.ksize = 25,
crypto/testmgr.h
6416
.ksize = 20,
crypto/testmgr.h
6429
.ksize = 80,
crypto/testmgr.h
6442
.ksize = 80,
crypto/testmgr.h
6457
.ksize = 20,
crypto/testmgr.h
6465
.ksize = 4,
crypto/testmgr.h
6473
.ksize = 20,
crypto/testmgr.h
6485
.ksize = 25,
crypto/testmgr.h
6495
.ksize = 20,
crypto/testmgr.h
6508
.ksize = 80,
crypto/testmgr.h
6521
.ksize = 80,
crypto/testmgr.h
6539
.ksize = 20,
crypto/testmgr.h
6549
.ksize = 4,
crypto/testmgr.h
6579
.ksize = 131,
crypto/testmgr.h
6611
.ksize = 131,
crypto/testmgr.h
6652
.ksize = 32,
crypto/testmgr.h
6664
.ksize = 32,
crypto/testmgr.h
6676
.ksize = 32,
crypto/testmgr.h
6688
.ksize = 32,
crypto/testmgr.h
6697
.ksize = 4,
crypto/testmgr.h
6709
.ksize = 32,
crypto/testmgr.h
6725
.ksize = 37,
crypto/testmgr.h
6739
.ksize = 32,
crypto/testmgr.h
6754
.ksize = 80,
crypto/testmgr.h
6769
.ksize = 80,
crypto/testmgr.h
6788
.ksize = 16,
crypto/testmgr.h
6797
.ksize = 16,
crypto/testmgr.h
6809
.ksize = 16,
crypto/testmgr.h
6824
.ksize = 16,
crypto/testmgr.h
6834
.ksize = 32,
crypto/testmgr.h
6851
.ksize = 32,
crypto/testmgr.h
6864
.ksize = 16,
crypto/testmgr.h
6876
.ksize = 16,
crypto/testmgr.h
6891
.ksize = 16,
crypto/testmgr.h
6909
.ksize = 32,
crypto/testmgr.h
6926
.ksize = 24,
crypto/testmgr.h
6934
.ksize = 24,
crypto/testmgr.h
6944
.ksize = 24,
crypto/testmgr.h
6955
.ksize = 24,
crypto/testmgr.h
6967
.ksize = 16,
crypto/testmgr.h
6975
.ksize = 16,
crypto/testmgr.h
6984
.ksize = 16,
crypto/testmgr.h
6994
.ksize = 16,
crypto/testmgr.h
7005
.ksize = 16,
crypto/testmgr.h
7017
.ksize = 16,
crypto/testmgr.h
7030
.ksize = 20,
crypto/testmgr.h
7041
.ksize = 4,
crypto/testmgr.h
7069
.ksize = 131,
crypto/testmgr.h
7097
.ksize = 131,
crypto/testmgr.h
7127
.ksize = 20,
crypto/testmgr.h
7140
.ksize = 4,
crypto/testmgr.h
7170
.ksize = 131,
crypto/testmgr.h
7202
.ksize = 131,
crypto/testmgr.h
7231
.ksize = 20,
crypto/testmgr.h
7240
.ksize = 4,
crypto/testmgr.h
7266
.ksize = 131,
crypto/testmgr.h
7294
.ksize = 131,
crypto/testmgr.h
7319
.ksize = 20,
crypto/testmgr.h
7328
.ksize = 4,
crypto/testmgr.h
7354
.ksize = 131,
crypto/testmgr.h
7382
.ksize = 131,
crypto/testmgr.h
7407
.ksize = 20,
crypto/testmgr.h
7418
.ksize = 4,
crypto/testmgr.h
7446
.ksize = 131,
crypto/testmgr.h
7476
.ksize = 131,
crypto/testmgr.h
7503
.ksize = 20,
crypto/testmgr.h
7516
.ksize = 4,
crypto/testmgr.h
7546
.ksize = 131,
crypto/testmgr.h
7578
.ksize = 131,
drivers/base/devres.c
918
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
137
unsigned int in_size, out_size, drv_size, ksize;
drivers/dma-buf/dma-heap.c
156
ksize = max(max(in_size, out_size), drv_size);
drivers/dma-buf/dma-heap.c
159
if (ksize > sizeof(stack_kdata)) {
drivers/dma-buf/dma-heap.c
160
kdata = kmalloc(ksize, GFP_KERNEL);
drivers/dma-buf/dma-heap.c
171
if (ksize > in_size)
drivers/dma-buf/dma-heap.c
172
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
832
unsigned int in_size, out_size, drv_size, ksize;
drivers/gpu/drm/drm_ioctl.c
867
ksize = max(max(in_size, out_size), drv_size);
drivers/gpu/drm/drm_ioctl.c
883
if (ksize <= sizeof(stack_kdata)) {
drivers/gpu/drm/drm_ioctl.c
886
kdata = kmalloc(ksize, GFP_KERNEL);
drivers/gpu/drm/drm_ioctl.c
898
if (ksize > in_size)
drivers/gpu/drm/drm_ioctl.c
899
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/chelsio/inline_crypto/chtls/chtls_hw.c
152
int ksize;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
159
ksize = sizeof(*cdev->kmap.addr) * bsize;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
160
cdev->kmap.addr = kvzalloc(ksize, GFP_KERNEL);
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
520
size_t ksize(const void *objp);
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
90
size_t size = min(ksize, usize);
include/linux/sockptr.h
91
size_t rest = max(ksize, usize) - size;
include/linux/sockptr.h
94
return copy_struct_from_user(dst, ksize, src.user, size);
include/linux/sockptr.h
96
if (usize < ksize) {
include/linux/sockptr.h
98
} else if (usize > ksize) {
include/linux/uaccess.h
395
copy_struct_from_user(void *dst, size_t ksize, const void __user *src,
include/linux/uaccess.h
398
size_t size = min(ksize, usize);
include/linux/uaccess.h
399
size_t rest = max(ksize, usize) - size;
include/linux/uaccess.h
402
if (WARN_ON_ONCE(ksize > __builtin_object_size(dst, 1)))
include/linux/uaccess.h
406
if (usize < ksize) {
include/linux/uaccess.h
408
} else if (usize > ksize) {
include/linux/uaccess.h
493
size_t ksize, bool *ignored_trailing)
include/linux/uaccess.h
495
size_t size = min(ksize, usize);
include/linux/uaccess.h
496
size_t rest = max(ksize, usize) - size;
include/linux/uaccess.h
499
if (WARN_ON_ONCE(ksize > __builtin_object_size(src, 1)))
include/linux/uaccess.h
503
if (usize > ksize) {
include/linux/uaccess.h
508
*ignored_trailing = ksize < usize &&
include/net/netfilter/nf_tables.h
497
u32 (*ksize)(u32 size);
kernel/bpf/verifier.c
1406
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
894
real_size = ksize(ptr);
mm/kasan/kasan_test_c.c
926
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
1232
ks = ksize(mem);
mm/slub.c
6387
EXPORT_SYMBOL(ksize);
mm/slub.c
6868
memcpy(n, kasan_reset_tag(p), ksize(p));
net/core/skbuff.c
418
*size = ksize(data);
net/netfilter/nf_tables_api.c
5333
if (ops->ksize)
net/netfilter/nf_tables_api.c
5334
return ops->ksize(desc->size);
net/netfilter/nft_set_rbtree.c
1201
.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
170
int i, ksize;
net/sched/act_pedit.c
219
ksize = parm->nkeys * sizeof(struct tc_pedit_key);
net/sched/act_pedit.c
220
if (nla_len(pattr) < sizeof(*parm) + ksize) {
net/sched/act_pedit.c
249
nparms->tcfp_keys = kmemdup(parm->keys, ksize, GFP_KERNEL);
security/landlock/syscalls.c
65
copy_min_struct_from_user(void *const dst, const size_t ksize,
security/landlock/syscalls.c
75
BUILD_BUG_ON(ksize <= 0);
security/landlock/syscalls.c
76
BUILD_BUG_ON(ksize < ksize_min);
security/landlock/syscalls.c
83
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
246
KUNIT_ASSERT_GE_MSG(test, ksize(buf), priv->cal_blob->size, "Buffer to small");
sound/soc/codecs/cs-amp-lib-test.c
331
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;