Home
last modified time | relevance | path

Searched refs:vlen (Results 1 – 25 of 56) sorted by relevance

123

/kernel/linux/linux-5.10/crypto/
Drsa_helper.c17 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 …]
Decdsa.c36 const void *value, size_t vlen, unsigned int ndigits) in ecdsa_get_signature_rs() argument
39 ssize_t diff = vlen - keylen; in ecdsa_get_signature_rs()
43 if (!value || !vlen) in ecdsa_get_signature_rs()
54 vlen -= 1; in ecdsa_get_signature_rs()
69 memcpy(&rs[-diff], d, vlen); in ecdsa_get_signature_rs()
77 const void *value, size_t vlen) in ecdsa_get_signature_r() argument
81 return ecdsa_get_signature_rs(sig->r, hdrlen, tag, value, vlen, in ecdsa_get_signature_r()
86 const void *value, size_t vlen) in ecdsa_get_signature_s() argument
90 return ecdsa_get_signature_rs(sig->s, hdrlen, tag, value, vlen, in ecdsa_get_signature_s()
Decrdsa.c151 const void *value, size_t vlen) in ecrdsa_param_curve() argument
155 ctx->curve_oid = look_up_OID(value, vlen); in ecrdsa_param_curve()
164 const void *value, size_t vlen) in ecrdsa_param_digest() argument
167 int digest_oid = look_up_OID(value, vlen); in ecrdsa_param_digest()
175 const void *value, size_t vlen) in ecrdsa_parse_pub_key() argument
180 ctx->key_len = vlen; in ecrdsa_parse_pub_key()
Dsm2.c187 const void *value, size_t vlen) in sm2_get_signature_r() argument
191 if (!value || !vlen) in sm2_get_signature_r()
194 sig->sig_r = mpi_read_raw_data(value, vlen); in sm2_get_signature_r()
202 const void *value, size_t vlen) in sm2_get_signature_s() argument
206 if (!value || !vlen) in sm2_get_signature_s()
209 sig->sig_s = mpi_read_raw_data(value, vlen); in sm2_get_signature_s()
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dx509_cert_parser.c157 const void *value, size_t vlen) in x509_note_OID() argument
161 ctx->last_oid = look_up_OID(value, vlen); in x509_note_OID()
164 sprint_oid(value, vlen, buffer, sizeof(buffer)); in x509_note_OID()
177 const void *value, size_t vlen) in x509_note_tbs_certificate() argument
182 hdrlen, tag, (unsigned long)value - ctx->data, vlen); in x509_note_tbs_certificate()
185 ctx->cert->tbs_size = vlen + hdrlen; in x509_note_tbs_certificate()
194 const void *value, size_t vlen) in x509_note_pkey_algo() argument
290 const void *value, size_t vlen) in x509_note_signature() argument
294 pr_debug("Signature type: %u size %zu\n", ctx->last_oid, vlen); in x509_note_signature()
307 if (vlen < 1 || *(const u8 *)value != 0) in x509_note_signature()
[all …]
Dpkcs7_parser.c206 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
263 const void *value, size_t vlen) in pkcs7_sig_note_pkey_algo() argument
292 const void *value, size_t vlen) in pkcs7_check_content_type() argument
309 const void *value, size_t vlen) in pkcs7_note_signeddata_version() argument
314 if (vlen != 1) in pkcs7_note_signeddata_version()
343 const void *value, size_t vlen) in pkcs7_note_signerinfo_version() argument
348 if (vlen != 1) in pkcs7_note_signerinfo_version()
[all …]
Dmscode_parser.c38 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()
Dpkcs8_parser.c35 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()
Dtpm_parser.c23 const void *value, size_t vlen) in tpm_note_key() argument
28 ctx->blob_len = vlen; in tpm_note_key()
/kernel/linux/linux-5.10/fs/
Dread_write.c907 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_readv() argument
914 ret = import_iovec(READ, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_readv()
924 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_writev() argument
931 ret = import_iovec(WRITE, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_writev()
942 unsigned long vlen, rwf_t flags) in do_readv() argument
953 ret = vfs_readv(f.file, vec, vlen, ppos, flags); in do_readv()
966 unsigned long vlen, rwf_t flags) in do_writev() argument
977 ret = vfs_writev(f.file, vec, vlen, ppos, flags); in do_writev()
996 unsigned long vlen, loff_t pos, rwf_t flags) in do_preadv() argument
1008 ret = vfs_readv(f.file, vec, vlen, &pos, flags); in do_preadv()
[all …]
/kernel/linux/linux-5.10/tools/lib/bpf/
Dbtf_dump.c283 __u16 vlen; in btf_dump_mark_referenced() local
287 vlen = btf_vlen(t); in btf_dump_mark_referenced()
316 for (j = 0; j < vlen; j++, m++) in btf_dump_mark_referenced()
323 for (j = 0; j < vlen; j++, p++) in btf_dump_mark_referenced()
330 for (j = 0; j < vlen; j++, v++) in btf_dump_mark_referenced()
448 __u16 vlen; in btf_dump_order_type() local
491 vlen = btf_vlen(t); in btf_dump_order_type()
492 for (i = 0; i < vlen; i++, m++) { in btf_dump_order_type()
555 vlen = btf_vlen(t); in btf_dump_order_type()
556 for (i = 0; i < vlen; i++, p++) { in btf_dump_order_type()
[all …]
Dbtf.c256 __u16 vlen = btf_vlen(t); in btf_type_size() local
270 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
275 return base_size + vlen * sizeof(struct btf_member); in btf_type_size()
277 return base_size + vlen * sizeof(struct btf_param); in btf_type_size()
281 return base_size + vlen * sizeof(struct btf_var_secinfo); in btf_type_size()
302 __u16 vlen = btf_vlen(t); in btf_bswap_type_rest() local
318 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest()
331 for (i = 0, m = btf_members(t); i < vlen; i++, m++) { in btf_bswap_type_rest()
338 for (i = 0, p = btf_params(t); i < vlen; i++, p++) { in btf_bswap_type_rest()
347 for (i = 0, v = btf_var_secinfos(t); i < vlen; i++, v++) { in btf_bswap_type_rest()
[all …]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dbtf.c164 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
169 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
173 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
175 for (i = 0; i < vlen; i++, m++) { in dump_btf_type()
210 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
215 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
219 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
221 for (i = 0; i < vlen; i++, v++) { in dump_btf_type()
260 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
265 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
[all …]
Dbtf_dumper.c437 int i, vlen; in btf_dumper_struct() local
444 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct()
448 for (i = 0; i < vlen; i++) { in btf_dumper_struct()
496 int ret = 0, i, vlen; in btf_dumper_datasec() local
502 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_datasec()
508 for (i = 0; i < vlen; i++) { in btf_dumper_datasec()
674 int i, vlen; in btf_dump_func() local
681 vlen = BTF_INFO_VLEN(func_proto->info); in btf_dump_func()
682 for (i = 0; i < vlen; i++) { in btf_dump_func()
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c820 size_t vlen, bool private) in hpre_rsa_set_n() argument
824 hpre_rsa_drop_leading_zeros(&ptr, &vlen); in hpre_rsa_set_n()
826 ctx->key_sz = vlen; in hpre_rsa_set_n()
832 ctx->rsa.pubkey = dma_alloc_coherent(HPRE_DEV(ctx), vlen << 1, in hpre_rsa_set_n()
839 ctx->rsa.prikey = dma_alloc_coherent(HPRE_DEV(ctx), vlen << 1, in hpre_rsa_set_n()
843 dma_free_coherent(HPRE_DEV(ctx), vlen << 1, in hpre_rsa_set_n()
849 memcpy(ctx->rsa.prikey + vlen, ptr, vlen); in hpre_rsa_set_n()
851 memcpy(ctx->rsa.pubkey + vlen, ptr, vlen); in hpre_rsa_set_n()
858 size_t vlen) in hpre_rsa_set_e() argument
862 hpre_rsa_drop_leading_zeros(&ptr, &vlen); in hpre_rsa_set_e()
[all …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_attr_sf.h33 static inline int xfs_attr_sf_entsize_byname(uint8_t nlen, uint8_t vlen) in xfs_attr_sf_entsize_byname() argument
35 return sizeof(struct xfs_attr_sf_entry) + nlen + vlen; in xfs_attr_sf_entsize_byname()
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst83 [2] STRUCT 'dummy_tracepoint_args' size=16 vlen=2
138 [2] UNION 'my_union' size=48 vlen=2
142 [4] STRUCT 'my_struct' size=48 vlen=6
158 [14] ENUM 'my_enum' size=4 vlen=2
164 [18] FUNC_PROTO '(anon)' ret_type_id=3 vlen=2
171 [23] DATASEC 'data_sec' size=0 vlen=3
/kernel/linux/linux-5.10/net/
Dcompat.c359 unsigned int vlen, unsigned int flags) in __compat_sys_sendmmsg() argument
361 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_sendmmsg()
366 unsigned int, vlen, unsigned int, flags) in COMPAT_SYSCALL_DEFINE4() argument
368 return __compat_sys_sendmmsg(fd, mmsg, vlen, flags); in COMPAT_SYSCALL_DEFINE4()
407 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument
410 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
416 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument
419 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c928 size_t vlen) in qat_rsa_set_n() argument
935 while (!*ptr && vlen) { in qat_rsa_set_n()
937 vlen--; in qat_rsa_set_n()
940 ctx->key_sz = vlen; in qat_rsa_set_n()
960 size_t vlen) in qat_rsa_set_e() argument
966 while (!*ptr && vlen) { in qat_rsa_set_e()
968 vlen--; in qat_rsa_set_e()
971 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) { in qat_rsa_set_e()
980 memcpy(ctx->e + (ctx->key_sz - vlen), ptr, vlen); in qat_rsa_set_e()
985 size_t vlen) in qat_rsa_set_d() argument
[all …]
/kernel/linux/linux-5.10/arch/um/drivers/
Dvector_user.h91 unsigned int vlen,
97 unsigned int vlen,
/kernel/linux/linux-5.10/include/linux/
Dcompat.h545 compat_ulong_t vlen, u32 pos_low, u32 pos_high);
548 compat_ulong_t vlen, u32 pos_low, u32 pos_high);
552 unsigned long vlen, loff_t pos);
558 unsigned long vlen, loff_t pos);
762 unsigned vlen, unsigned int flags,
765 unsigned vlen, unsigned int flags,
776 unsigned vlen, unsigned int flags);
782 compat_ulong_t vlen, u32 pos_low, u32 pos_high, rwf_t flags);
785 compat_ulong_t vlen, u32 pos_low, u32 pos_high, rwf_t flags);
789 unsigned long vlen, loff_t pos, rwf_t flags);
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_btf.h7 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
8 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
/kernel/linux/linux-5.10/Documentation/bpf/
Dbtf.rst96 * bits 0-15: vlen (e.g. # of struct's members)
128 * ``info.vlen``: 0
180 * ``info.vlen``: 0
192 * ``info.vlen``: 0
237 * ``info.vlen``: the number of struct/union members
240 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_member``.::
283 * ``info.vlen``: number of enum values
286 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum``.::
304 * ``info.vlen``: 0
316 * ``info.vlen``: 0
[all …]
/kernel/linux/linux-5.10/arch/s390/kvm/
Dpv.c118 unsigned long npages = 0, vlen = 0; in kvm_s390_pv_alloc_vm() local
140 vlen = ALIGN(virt * ((npages * PAGE_SIZE) / HPAGE_SIZE), PAGE_SIZE); in kvm_s390_pv_alloc_vm()
141 vlen += uv_info.guest_virt_base_stor_len; in kvm_s390_pv_alloc_vm()
142 kvm->arch.pv.stor_var = vzalloc(vlen); in kvm_s390_pv_alloc_vm()
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/
Dmatroxfb_maven.c885 int vlen; in maven_compute_timming() local
907 vlen = (vslen + umargin + mt->VDisplay) * vdec; in maven_compute_timming()
908 vlen = (vlen >> 16) - 146; /* FIXME: 146?! */ in maven_compute_timming()
909 if (vlen < 0) in maven_compute_timming()
910 vlen = 0; in maven_compute_timming()
911 if (vlen > 0xFF) in maven_compute_timming()
912 vlen = 0xFF; in maven_compute_timming()
916 m->regs[0xBE] = vlen; in maven_compute_timming()

123