| /linux/crypto/ |
| H A D | rsa_helper.c | 17 const void *value, size_t vlen) in rsa_get_n() argument 21 size_t n_sz = vlen; in rsa_get_n() 24 if (!value || !vlen) in rsa_get_n() 41 key->n_sz = vlen; in rsa_get_n() 47 const void *value, size_t vlen) in rsa_get_e() argument 52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e() 56 key->e_sz = vlen; in rsa_get_e() 62 const void *value, size_t vlen) in rsa_get_d() argument 67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d() 71 key->d_sz = vlen; in rsa_get_d() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_distill.c | 72 "[3] STRUCT 's1' size=8 vlen=1\n" in test_distilled_base() 74 "[4] STRUCT '(anon)' size=12 vlen=2\n" in test_distilled_base() 78 "[6] UNION 'u1' size=12 vlen=2\n" in test_distilled_base() 81 "[7] UNION '(anon)' size=4 vlen=1\n" in test_distilled_base() 83 "[8] ENUM 'e1' encoding=UNSIGNED size=4 vlen=1\n" in test_distilled_base() 85 "[9] ENUM '(anon)' encoding=UNSIGNED size=4 vlen=1\n" in test_distilled_base() 87 "[10] ENUM64 'e641' encoding=SIGNED size=8 vlen=1\n" in test_distilled_base() 89 "[11] ENUM64 '(anon)' encoding=SIGNED size=8 vlen=1\n" in test_distilled_base() 91 "[12] STRUCT 'unneeded' size=4 vlen=1\n" in test_distilled_base() 93 "[13] STRUCT 'embedded' size=4 vlen=1\n" in test_distilled_base() [all …]
|
| H A D | btf_dedup_split.c | 28 "[3] STRUCT 's1' size=4 vlen=1\n" in test_split_simple() 70 "[3] STRUCT 's1' size=4 vlen=1\n" in test_split_simple() 72 "[4] STRUCT 's2' size=16 vlen=3\n" in test_split_simple() 77 "[6] STRUCT 's1' size=4 vlen=1\n" in test_split_simple() 103 "[3] STRUCT 's1' size=4 vlen=1\n" in test_split_simple() 105 "[4] STRUCT 's2' size=16 vlen=3\n" in test_split_simple() 156 "[4] STRUCT 's1' size=16 vlen=2\n" in test_split_fwd_resolve() 159 "[5] STRUCT 's2' size=4 vlen=1\n" in test_split_fwd_resolve() 161 "[6] STRUCT 's3' size=4 vlen=1\n" in test_split_fwd_resolve() 184 "[4] STRUCT 's1' size=16 vlen in test_split_fwd_resolve() [all...] |
| H A D | btf_write.c | 125 "[7] STRUCT 's1' size=8 vlen=2\n" in gen_btf() 152 "[8] UNION 'u1' size=8 vlen=1\n" in gen_btf() 175 "[9] ENUM 'e1' encoding=UNSIGNED size=4 vlen=2\n" in gen_btf() 206 "[12] ENUM 'enum_fwd' encoding=UNSIGNED size=4 vlen=0", "raw_dump"); in gen_btf() 247 "[15] FUNC_PROTO '(anon)' ret_type_id=1 vlen=2\n" in gen_btf() 278 "[17] DATASEC 'datasec1' size=12 vlen=1\n" in gen_btf() 333 "[21] ENUM64 'e1' encoding=SIGNED size=8 vlen=2\n" in gen_btf() 351 "[22] ENUM64 'e1' encoding=UNSIGNED size=8 vlen=1\n" in gen_btf() 373 "[7] STRUCT 's1' size=8 vlen=2\n" in test_btf_add() 376 "[8] UNION 'u1' size=8 vlen=1\n" in test_btf_add() [all …]
|
| H A D | btf_field_iter.c | 97 "[5] STRUCT 's1' size=12 vlen=2\n" in test_btf_field_iter() 100 "[6] UNION 'u1' size=12 vlen=2\n" in test_btf_field_iter() 103 "[7] ENUM 'e1' encoding=UNSIGNED size=4 vlen=2\n" in test_btf_field_iter() 111 "[13] FUNC_PROTO '(anon)' ret_type_id=1 vlen=2\n" in test_btf_field_iter() 120 "[20] ENUM64 'e64' encoding=SIGNED size=8 vlen=3\n" in test_btf_field_iter() 124 "[21] DATASEC 'datasec1' size=12 vlen=2\n" in test_btf_field_iter()
|
| /linux/crypto/asymmetric_keys/ |
| H A D | pkcs7_parser.c | 206 const void *value, size_t vlen) in pkcs7_note_OID() argument 210 ctx->last_oid = look_up_OID(value, vlen); in pkcs7_note_OID() 213 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs7_note_OID() 225 const void *value, size_t vlen) in pkcs7_sig_note_digest_algo() argument 275 const void *value, size_t vlen) in pkcs7_sig_note_pkey_algo() argument 312 const void *value, size_t vlen) in pkcs7_check_content_type() argument 329 const void *value, size_t vlen) in pkcs7_note_signeddata_version() argument 334 if (vlen != 1) in pkcs7_note_signeddata_version() 363 const void *value, size_t vlen) in pkcs7_note_signerinfo_version() argument 368 if (vlen != 1) in pkcs7_note_signerinfo_version() [all …]
|
| H A D | mscode_parser.c | 38 const void *value, size_t vlen) in mscode_note_content_type() argument 42 oid = look_up_OID(value, vlen); in mscode_note_content_type() 46 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_content_type() 70 const void *value, size_t vlen) in mscode_note_digest_algo() argument 76 oid = look_up_OID(value, vlen); in mscode_note_digest_algo() 101 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_digest_algo() 118 const void *value, size_t vlen) in mscode_note_digest() argument 122 ctx->digest = kmemdup(value, vlen, GFP_KERNEL); in mscode_note_digest() 126 ctx->digest_len = vlen; in mscode_note_digest()
|
| H A D | pkcs8_parser.c | 35 const void *value, size_t vlen) in pkcs8_note_OID() argument 39 ctx->last_oid = look_up_OID(value, vlen); in pkcs8_note_OID() 43 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs8_note_OID() 55 const void *value, size_t vlen) in pkcs8_note_version() argument 57 if (vlen != 1 || ((const u8 *)value)[0] != 0) { in pkcs8_note_version() 69 const void *value, size_t vlen) in pkcs8_note_algo() argument 85 const void *value, size_t vlen) in pkcs8_note_key() argument 90 ctx->key_size = vlen; in pkcs8_note_key()
|
| /linux/fs/smb/server/ |
| H A D | asn1.c | 163 const void *value, size_t vlen) in ksmbd_gssapi_this_mech() argument 167 oid = look_up_OID(value, vlen); in ksmbd_gssapi_this_mech() 171 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_gssapi_this_mech() 181 size_t vlen) in ksmbd_neg_token_init_mech_type() argument 187 oid = look_up_OID(value, vlen); in ksmbd_neg_token_init_mech_type() 199 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_neg_token_init_mech_type() 213 size_t vlen) in ksmbd_neg_token_alloc() argument 217 if (!vlen) in ksmbd_neg_token_alloc() 220 conn->mechToken = kmemdup_nul(value, vlen, KSMBD_DEFAULT_GFP); in ksmbd_neg_token_alloc() 224 conn->mechTokenLen = (unsigned int)vlen; in ksmbd_neg_token_alloc() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | btf_helpers.c | 92 __u32 vlen; in fprintf_btf_type_raw() local 98 vlen = btf_vlen(t); in fprintf_btf_type_raw() 128 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw() 129 for (i = 0; i < vlen; i++, m++) { in fprintf_btf_type_raw() 146 fprintf(out, " encoding=%s size=%u vlen=%u", in fprintf_btf_type_raw() 147 btf_kflag(t) ? "SIGNED" : "UNSIGNED", t->size, vlen); in fprintf_btf_type_raw() 148 for (i = 0; i < vlen; i++, v++) { in fprintf_btf_type_raw() 160 fprintf(out, " encoding=%s size=%u vlen=%u", in fprintf_btf_type_raw() 161 btf_kflag(t) ? "SIGNED" : "UNSIGNED", t->size, vlen); in fprintf_btf_type_raw() 162 for (i = 0; i < vlen; i++, v++) { in fprintf_btf_type_raw() [all …]
|
| /linux/fs/smb/client/ |
| H A D | asn1.c | 23 unsigned char tag, const void *value, size_t vlen) in cifs_gssapi_this_mech() argument 27 oid = look_up_OID(value, vlen); in cifs_gssapi_this_mech() 31 sprint_oid(value, vlen, buf, sizeof(buf)); in cifs_gssapi_this_mech() 41 const void *value, size_t vlen) in cifs_neg_token_init_mech_type() argument 46 oid = look_up_OID(value, vlen); in cifs_neg_token_init_mech_type() 60 sprint_oid(value, vlen, buf, sizeof(buf)); in cifs_neg_token_init_mech_type()
|
| /linux/fs/ |
| H A D | read_write.c | 991 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_readv() argument 1004 ret = import_iovec(ITER_DEST, vec, vlen, ARRAY_SIZE(iovstack), &iov, in vfs_readv() 1029 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_writev() argument 1042 ret = import_iovec(ITER_SOURCE, vec, vlen, ARRAY_SIZE(iovstack), &iov, in vfs_writev() 1069 unsigned long vlen, rwf_t flags) in do_readv() argument 1080 ret = vfs_readv(fd_file(f), vec, vlen, ppos, flags); in do_readv() 1092 unsigned long vlen, rwf_t flags) in do_writev() argument 1103 ret = vfs_writev(fd_file(f), vec, vlen, ppos, flags); in do_writev() 1121 unsigned long vlen, loff_t pos, rwf_t flags) in do_preadv() argument 1132 ret = vfs_readv(fd_file(f), vec, vlen, &pos, flags); in do_preadv() [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 181 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local 186 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type() 190 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type() 192 for (i = 0; i < vlen; i++, m++) { in dump_btf_type() 227 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local 235 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type() 239 printf(" encoding=%s size=%u vlen=%u", encoding, t->size, vlen); in dump_btf_type() 241 for (i = 0; i < vlen; i++, v++) { in dump_btf_type() 265 __u16 vlen = btf_vlen(t); in dump_btf_type() local 273 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type() [all …]
|
| H A D | btf_dumper.c | 473 int i, vlen; in btf_dumper_struct() local 480 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct() 484 for (i = 0; i < vlen; i++) { in btf_dumper_struct() 532 int ret = 0, i, vlen; in btf_dumper_datasec() local 538 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_datasec() 544 for (i = 0; i < vlen; i++) { in btf_dumper_datasec() 714 int i, vlen; in btf_dump_func() local 721 vlen = BTF_INFO_VLEN(func_proto->info); in btf_dump_func() 722 for (i = 0; i < vlen; i++) { in btf_dump_func()
|
| /linux/tools/bpf/bpftool/Documentation/ |
| H A D | bpftool-btf.rst | 102 [2] STRUCT 'dummy_tracepoint_args' size=16 vlen=2 157 [2] UNION 'my_union' size=48 vlen=2 161 [4] STRUCT 'my_struct' size=48 vlen=6 177 [14] ENUM 'my_enum' size=4 vlen=2 183 [18] FUNC_PROTO '(anon)' ret_type_id=3 vlen=2 190 [23] DATASEC 'data_sec' size=0 vlen=3 248 [104848] STRUCT 'i2c_smbus_alert' size=40 vlen=2 251 [104849] STRUCT 'alert_data' size=12 vlen=3 259 [104854] FUNC_PROTO '(anon)' ret_type_id=18 vlen=1 263 [104857] FUNC_PROTO '(anon)' ret_type_id=18 vlen=2
|
| /linux/include/uapi/linux/ |
| H A D | btf.h | 34 * bits 0-15: vlen (e.g. # of struct's members) 103 * The exact number of btf_enum is stored in the vlen (of the 120 * of btf_member is stored in the vlen (of the info in 143 * The exact number of btf_param is stored in the vlen (of the 185 * or argument (0 ... vlen-1). 192 * The exact number of btf_enum64 is stored in the vlen (of the
|
| /linux/tools/include/uapi/linux/ |
| H A D | btf.h | 34 * bits 0-15: vlen (e.g. # of struct's members) 103 * The exact number of btf_enum is stored in the vlen (of the 120 * of btf_member is stored in the vlen (of the info in 143 * The exact number of btf_param is stored in the vlen (of the 185 * or argument (0 ... vlen-1). 192 * The exact number of btf_enum64 is stored in the vlen (of the
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm2.c | 144 const void *value, size_t vlen) in tpm2_key_parent() argument 151 for (i = 0; i < vlen; i++) { in tpm2_key_parent() 161 const void *value, size_t vlen) in tpm2_key_type() argument 163 enum OID oid = look_up_OID(value, vlen); in tpm2_key_type() 168 sprint_oid(value, vlen, buffer, sizeof(buffer)); in tpm2_key_type() 179 const void *value, size_t vlen) in tpm2_key_pub() argument 184 ctx->pub_len = vlen; in tpm2_key_pub() 191 const void *value, size_t vlen) in tpm2_key_priv() argument 196 ctx->priv_len = vlen; in tpm2_key_priv()
|
| /linux/drivers/crypto/hisilicon/hpre/ |
| H A D | hpre_crypto.c | 893 size_t vlen, bool private) in hpre_rsa_set_n() argument 897 hpre_rsa_drop_leading_zeros(&ptr, &vlen); in hpre_rsa_set_n() 899 ctx->key_sz = vlen; in hpre_rsa_set_n() 905 ctx->rsa.pubkey = dma_alloc_coherent(ctx->dev, vlen << 1, in hpre_rsa_set_n() 912 ctx->rsa.prikey = dma_alloc_coherent(ctx->dev, vlen << 1, in hpre_rsa_set_n() 916 dma_free_coherent(ctx->dev, vlen << 1, in hpre_rsa_set_n() 922 memcpy(ctx->rsa.prikey + vlen, ptr, vlen); in hpre_rsa_set_n() 924 memcpy(ctx->rsa.pubkey + vlen, ptr, vlen); in hpre_rsa_set_n() 931 size_t vlen) in hpre_rsa_set_e() argument 935 hpre_rsa_drop_leading_zeros(&ptr, &vlen); in hpre_rsa_set_e() [all …]
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | qat_asym_algs.c | 983 size_t vlen) in qat_rsa_set_n() argument 990 while (!*ptr && vlen) { in qat_rsa_set_n() 992 vlen--; in qat_rsa_set_n() 995 ctx->key_sz = vlen; in qat_rsa_set_n() 1015 size_t vlen) in qat_rsa_set_e() argument 1021 while (!*ptr && vlen) { in qat_rsa_set_e() 1023 vlen--; in qat_rsa_set_e() 1026 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) { in qat_rsa_set_e() 1035 memcpy(ctx->e + (ctx->key_sz - vlen), ptr, vlen); in qat_rsa_set_e() 1040 size_t vlen) in qat_rsa_set_d() argument [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | btf_dump.c | 319 __u16 vlen; in btf_dump_mark_referenced() 323 vlen = btf_vlen(t); in btf_dump_mark_referenced() 356 for (j = 0; j < vlen; j++, m++) in btf_dump_mark_referenced() 363 for (j = 0; j < vlen; j++, p++) in btf_dump_mark_referenced() 370 for (j = 0; j < vlen; j++, v++) in btf_dump_mark_referenced() 488 __u16 vlen; in btf_dump_order_type() 532 vlen = btf_vlen(t); in btf_dump_order_type() 533 for (i = 0; i < vlen; i++, m++) { in btf_dump_order_type() 598 vlen = btf_vlen(t); in btf_dump_order_type() 599 for (i = 0; i < vlen; in btf_dump_order_type() 320 __u16 vlen; btf_dump_mark_referenced() local 489 __u16 vlen; btf_dump_order_type() local 802 __u16 vlen = btf_vlen(t); btf_dump_emit_type() local 843 __u16 vlen; btf_is_struct_packed() local 977 __u16 vlen = btf_vlen(t); btf_dump_emit_struct_def() local 1068 btf_dump_emit_enum32_val(struct btf_dump * d,const struct btf_type * t,int lvl,__u16 vlen) btf_dump_emit_enum32_val() argument 1093 btf_dump_emit_enum64_val(struct btf_dump * d,const struct btf_type * t,int lvl,__u16 vlen) btf_dump_emit_enum64_val() argument 1126 __u16 vlen = btf_vlen(t); btf_dump_emit_enum_def() local 1546 __u16 vlen = btf_vlen(t); btf_dump_emit_type_chain() local [all...] |
| H A D | btf_iter.c | 22 it->vlen = 0; in btf_field_iter_init() 139 it->vlen = btf_vlen(t); in btf_field_iter_init() 172 if (it->m_idx < it->vlen) in btf_field_iter_next()
|
| H A D | btf.c | 298 __u16 vlen = btf_vlen(t); in btf_type_size() 314 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size() 316 return base_size + vlen * sizeof(struct btf_enum64); in btf_type_size() 321 return base_size + vlen * sizeof(struct btf_member); in btf_type_size() 323 return base_size + vlen * sizeof(struct btf_param); in btf_type_size() 327 return base_size + vlen * sizeof(struct btf_var_secinfo); in btf_type_size() 351 __u16 vlen = btf_vlen(t); in btf_bswap_type_rest() 369 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest() 375 for (i = 0, e64 = btf_enum64(t); i < vlen; i++, e64++) { in btf_bswap_type_rest() 389 for (i = 0, m = btf_members(t); i < vlen; in btf_bswap_type_rest() 299 __u16 vlen = btf_vlen(t); btf_type_size() local 352 __u16 vlen = btf_vlen(t); btf_bswap_type_rest() local 850 __u16 vlen = btf_vlen(t); btf__align_of() local 3958 __u16 vlen; btf_equal_enum_members() local 3976 __u16 vlen; btf_equal_enum64_members() local 4032 __u32 vlen = btf_vlen(t); btf_hash_struct() local 4053 __u16 vlen; btf_shallow_equal_struct() local 4129 __u16 vlen = btf_vlen(t); btf_hash_fnproto() local 4151 __u16 vlen; btf_equal_fnproto() local 4177 __u16 vlen; btf_compat_fnproto() local 4713 __u16 vlen; btf_dedup_is_equiv() local 4733 __u16 vlen; btf_dedup_is_equiv() local 5049 __u16 vlen; btf_dedup_ref_type() local [all...] |
| /linux/net/ |
| H A D | compat.c | 358 unsigned int vlen, unsigned int flags) in __compat_sys_sendmmsg() argument 360 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_sendmmsg() 365 unsigned int, vlen, unsigned int, flags) in COMPAT_SYSCALL_DEFINE4() argument 367 return __compat_sys_sendmmsg(fd, mmsg, vlen, flags); in COMPAT_SYSCALL_DEFINE4() 406 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument 409 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5() 415 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument 418 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
|
| /linux/arch/um/drivers/ |
| H A D | vector_user.h | 89 unsigned int vlen, 95 unsigned int vlen,
|