Home
last modified time | relevance | path

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

12

/Linux-v5.4/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 …]
Decrdsa.c150 const void *value, size_t vlen) in ecrdsa_param_curve() argument
154 ctx->curve_oid = look_up_OID(value, vlen); in ecrdsa_param_curve()
163 const void *value, size_t vlen) in ecrdsa_param_digest() argument
166 int digest_oid = look_up_OID(value, vlen); in ecrdsa_param_digest()
174 const void *value, size_t vlen) in ecrdsa_parse_pub_key() argument
179 ctx->key_len = vlen; in ecrdsa_parse_pub_key()
/Linux-v5.4/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
256 const void *value, size_t vlen) in x509_note_signature() argument
260 pr_debug("Signature type: %u size %zu\n", ctx->last_oid, vlen); in x509_note_signature()
271 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
284 const void *value, size_t vlen) in pkcs7_check_content_type() argument
301 const void *value, size_t vlen) in pkcs7_note_signeddata_version() argument
306 if (vlen != 1) in pkcs7_note_signeddata_version()
335 const void *value, size_t vlen) in pkcs7_note_signerinfo_version() argument
340 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()
Dx509_parser.h51 const unsigned char *value, size_t vlen);
/Linux-v5.4/fs/
Dread_write.c988 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_readv() argument
995 ret = import_iovec(READ, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_readv()
1005 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_writev() argument
1012 ret = import_iovec(WRITE, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_writev()
1023 unsigned long vlen, rwf_t flags) in do_readv() argument
1034 ret = vfs_readv(f.file, vec, vlen, ppos, flags); in do_readv()
1047 unsigned long vlen, rwf_t flags) in do_writev() argument
1058 ret = vfs_writev(f.file, vec, vlen, ppos, flags); in do_writev()
1077 unsigned long vlen, loff_t pos, rwf_t flags) in do_preadv() argument
1089 ret = vfs_readv(f.file, vec, vlen, &pos, flags); in do_preadv()
[all …]
/Linux-v5.4/tools/lib/bpf/
Dbtf_dump.c253 __u16 vlen; in btf_dump_mark_referenced() local
257 vlen = btf_vlen(t); in btf_dump_mark_referenced()
286 for (j = 0; j < vlen; j++, m++) in btf_dump_mark_referenced()
293 for (j = 0; j < vlen; j++, p++) in btf_dump_mark_referenced()
300 for (j = 0; j < vlen; j++, v++) in btf_dump_mark_referenced()
418 __u16 vlen; in btf_dump_order_type() local
461 vlen = btf_vlen(t); in btf_dump_order_type()
462 for (i = 0; i < vlen; i++, m++) { in btf_dump_order_type()
525 vlen = btf_vlen(t); in btf_dump_order_type()
526 for (i = 0; i < vlen; i++, p++) { in btf_dump_order_type()
[all …]
Dbtf.c148 __u16 vlen = btf_vlen(t); in btf_type_size() local
162 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
167 return base_size + vlen * sizeof(struct btf_member); in btf_type_size()
169 return base_size + vlen * sizeof(struct btf_param); in btf_type_size()
173 return base_size + vlen * sizeof(struct btf_var_secinfo); in btf_type_size()
1467 __u16 vlen = btf_vlen(t); in btf_for_each_str_off() local
1469 for (j = 0; j < vlen; j++) { in btf_for_each_str_off()
1479 __u16 vlen = btf_vlen(t); in btf_for_each_str_off() local
1481 for (j = 0; j < vlen; j++) { in btf_for_each_str_off()
1491 __u16 vlen = btf_vlen(t); in btf_for_each_str_off() local
[all …]
Dlibbpf_internal.h14 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
15 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
/Linux-v5.4/tools/bpf/bpftool/
Dbtf.c148 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
153 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
157 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
159 for (i = 0; i < vlen; i++, m++) { in dump_btf_type()
194 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
199 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
203 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
205 for (i = 0; i < vlen; i++, v++) { in dump_btf_type()
239 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
244 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
[all …]
Dbtf_dumper.c272 int i, vlen; in btf_dumper_struct() local
279 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct()
283 for (i = 0; i < vlen; i++) { in btf_dumper_struct()
331 int ret = 0, i, vlen; in btf_dumper_datasec() local
337 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_datasec()
343 for (i = 0; i < vlen; i++) { in btf_dumper_datasec()
514 int i, vlen; in btf_dump_func() local
521 vlen = BTF_INFO_VLEN(func_proto->info); in btf_dump_func()
522 for (i = 0; i < vlen; i++) { in btf_dump_func()
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_attr_sf.h30 #define XFS_ATTR_SF_ENTSIZE_BYNAME(nlen,vlen) /* space name/value uses */ \ argument
31 (((int)sizeof(xfs_attr_sf_entry_t)-1 + (nlen)+(vlen)))
/Linux-v5.4/include/linux/
Dcompat.h585 const struct compat_iovec __user *vec, compat_ulong_t vlen);
587 const struct compat_iovec __user *vec, compat_ulong_t vlen);
591 compat_ulong_t vlen, u32 pos_low, u32 pos_high);
594 compat_ulong_t vlen, u32 pos_low, u32 pos_high);
598 unsigned long vlen, loff_t pos);
604 unsigned long vlen, loff_t pos);
816 unsigned vlen, unsigned int flags,
819 unsigned vlen, unsigned int flags,
830 unsigned vlen, unsigned int flags);
844 compat_ulong_t vlen, u32 pos_low, u32 pos_high, rwf_t flags);
[all …]
/Linux-v5.4/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c973 size_t vlen) in qat_rsa_set_n() argument
980 while (!*ptr && vlen) { in qat_rsa_set_n()
982 vlen--; in qat_rsa_set_n()
985 ctx->key_sz = vlen; in qat_rsa_set_n()
1005 size_t vlen) in qat_rsa_set_e() argument
1011 while (!*ptr && vlen) { in qat_rsa_set_e()
1013 vlen--; in qat_rsa_set_e()
1016 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) { in qat_rsa_set_e()
1025 memcpy(ctx->e + (ctx->key_sz - vlen), ptr, vlen); in qat_rsa_set_e()
1030 size_t vlen) in qat_rsa_set_d() argument
[all …]
/Linux-v5.4/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst92 [2] STRUCT 'dummy_tracepoint_args' size=16 vlen=2
145 [2] UNION 'my_union' size=48 vlen=2
149 [4] STRUCT 'my_struct' size=48 vlen=6
165 [14] ENUM 'my_enum' size=4 vlen=2
171 [18] FUNC_PROTO '(anon)' ret_type_id=3 vlen=2
178 [23] DATASEC 'data_sec' size=0 vlen=3
/Linux-v5.4/arch/um/drivers/
Dvector_user.h89 unsigned int vlen,
95 unsigned int vlen,
/Linux-v5.4/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 …]
/Linux-v5.4/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))
/Linux-v5.4/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()
/Linux-v5.4/net/
Dcompat.c654 unsigned int vlen, unsigned int flags) in __compat_sys_sendmmsg() argument
656 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_sendmmsg()
661 unsigned int, vlen, unsigned int, flags) in COMPAT_SYSCALL_DEFINE4() argument
663 return __compat_sys_sendmmsg(fd, mmsg, vlen, flags); in COMPAT_SYSCALL_DEFINE4()
702 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument
705 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
711 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument
714 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
/Linux-v5.4/fs/nfsd/
Dvfs.h87 struct kvec *vec, int vlen,
97 struct kvec *vec, int vlen, unsigned long *cnt,
/Linux-v5.4/fs/jffs2/
Dwbuf.c860 int vlen = invecs[invec].iov_len; in jffs2_flash_writev() local
863 wbuf_retlen = jffs2_fill_wbuf(c, v, vlen); in jffs2_flash_writev()
870 vlen -= wbuf_retlen; in jffs2_flash_writev()
875 if (vlen >= c->wbuf_pagesize) { in jffs2_flash_writev()
876 ret = mtd_write(c->mtd, outvec_to, PAGE_DIV(vlen), in jffs2_flash_writev()
878 if (ret < 0 || wbuf_retlen != PAGE_DIV(vlen)) in jffs2_flash_writev()
881 vlen -= wbuf_retlen; in jffs2_flash_writev()
888 wbuf_retlen = jffs2_fill_wbuf(c, v, vlen); in jffs2_flash_writev()

12