Home
last modified time | relevance | path

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

12

/linux/crypto/
H A 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 …]
/linux/crypto/asymmetric_keys/
H A Dx509_cert_parser.c143 const void *value, size_t vlen) in x509_note_OID() argument
147 ctx->last_oid = look_up_OID(value, vlen); in x509_note_OID()
150 sprint_oid(value, vlen, buffer, sizeof(buffer)); in x509_note_OID()
163 const void *value, size_t vlen) in x509_note_tbs_certificate() argument
168 hdrlen, tag, (unsigned long)value - ctx->data, vlen); in x509_note_tbs_certificate()
171 ctx->cert->tbs_size = vlen + hdrlen; in x509_note_tbs_certificate()
179 const void *value, size_t vlen) in x509_note_sig_algo() argument
299 const void *value, size_t vlen) in x509_note_signature() argument
303 pr_debug("Signature: alg=%u, size=%zu\n", ctx->last_oid, vlen); in x509_note_signature()
321 if (vlen < 1 || *(const u8 *)value != 0) in x509_note_signature()
[all …]
H A Dpkcs7_parser.c220 const void *value, size_t vlen) in pkcs7_note_OID() argument
224 ctx->last_oid = look_up_OID(value, vlen); in pkcs7_note_OID()
227 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs7_note_OID()
239 const void *value, size_t vlen) in pkcs7_sig_note_digest_algo() argument
289 const void *value, size_t vlen) in pkcs7_sig_note_pkey_algo() argument
341 const void *value, size_t vlen) in pkcs7_check_content_type() argument
358 const void *value, size_t vlen) in pkcs7_note_signeddata_version() argument
363 if (vlen != 1) in pkcs7_note_signeddata_version()
392 const void *value, size_t vlen) in pkcs7_note_signerinfo_version() argument
397 if (vlen != 1) in pkcs7_note_signerinfo_version()
[all …]
H A 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()
H A 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()
/linux/fs/smb/server/
H A Dasn1.c163 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 Dbtf_helpers.c92 __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()
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()
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()
178 fprintf(out, " ret_type_id=%u vlen=%u", t->type, vlen); in fprintf_btf_type_raw()
179 for (i = 0; i < vlen; i++, p++) { in fprintf_btf_type_raw()
[all …]
H A Dtest_btf.h9 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
10 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
/linux/fs/smb/client/
H A Dasn1.c23 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/tools/bpf/bpftool/
H A Dbtf.c182 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type()
187 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
191 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
193 for (i = 0; i < vlen; i++, m++) { in dump_btf_type()
228 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type()
236 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
240 printf(" encoding=%s size=%u vlen in dump_btf_type()
181 __u16 vlen = BTF_INFO_VLEN(t->info); dump_btf_type() local
227 __u16 vlen = BTF_INFO_VLEN(t->info); dump_btf_type() local
265 __u16 vlen = btf_vlen(t); dump_btf_type() local
327 __u16 vlen = BTF_INFO_VLEN(t->info); dump_btf_type() local
371 __u16 vlen = BTF_INFO_VLEN(t->info); dump_btf_type() local
[all...]
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c136 const void *value, size_t vlen) in tpm2_key_parent() argument
143 for (i = 0; i < vlen; i++) { in tpm2_key_parent()
153 const void *value, size_t vlen) in tpm2_key_type() argument
155 enum OID oid = look_up_OID(value, vlen); in tpm2_key_type()
160 sprint_oid(value, vlen, buffer, sizeof(buffer)); in tpm2_key_type()
171 const void *value, size_t vlen) in tpm2_key_pub() argument
176 ctx->pub_len = vlen; in tpm2_key_pub()
183 const void *value, size_t vlen) in tpm2_key_priv() argument
188 ctx->priv_len = vlen; in tpm2_key_priv()
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-btf.rst105 [2] STRUCT 'dummy_tracepoint_args' size=16 vlen=2
160 [2] UNION 'my_union' size=48 vlen=2
164 [4] STRUCT 'my_struct' size=48 vlen=6
180 [14] ENUM 'my_enum' size=4 vlen=2
186 [18] FUNC_PROTO '(anon)' ret_type_id=3 vlen=2
193 [23] DATASEC 'data_sec' size=0 vlen=3
251 [104848] STRUCT 'i2c_smbus_alert' size=40 vlen=2
254 [104849] STRUCT 'alert_data' size=12 vlen=3
262 [104854] FUNC_PROTO '(anon)' ret_type_id=18 vlen=1
266 [104857] FUNC_PROTO '(anon)' ret_type_id=18 vlen
[all...]
/linux/net/
H A Dcompat.c358 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()
H A Dsocket.c2796 int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, in __sys_sendmmsg() argument
2810 if (vlen > UIO_MAXIOV) in __sys_sendmmsg()
2811 vlen = UIO_MAXIOV; in __sys_sendmmsg()
2829 while (datagrams < vlen) { in __sys_sendmmsg()
2830 if (datagrams == vlen - 1) in __sys_sendmmsg()
2866 unsigned int, vlen, unsigned int, flags) in SYSCALL_DEFINE4() argument
2868 return __sys_sendmmsg(fd, mmsg, vlen, flags, true); in SYSCALL_DEFINE4()
3007 unsigned int vlen, unsigned int flags, in do_recvmmsg() argument
3042 while (datagrams < vlen) { in do_recvmmsg()
3115 unsigned int vlen, unsigned int flags, in __sys_recvmmsg() argument
[all …]
/linux/tools/lib/bpf/
H A Dbtf_iter.c22 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 Dlibbpf_internal.h79 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
80 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
259 static inline __u32 btf_type_info(int kind, int vlen, int kflag) in btf_type_info() argument
261 return (kflag << 31) | (kind << 24) | vlen; in btf_type_info()
586 int vlen;
577 int vlen; global() member
/linux/arch/um/drivers/
H A Dvector_user.h89 unsigned int vlen,
95 unsigned int vlen,
/linux/drivers/video/fbdev/matrox/
H A 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/arch/riscv/kernel/
H A Dptrace.c135 unsigned long elen, vlen; in invalid_ptrace_v_csr() local
139 vlen = vstate->vlenb * 8; in invalid_ptrace_v_csr()
178 if (vlen < vl * sew * lmul) in invalid_ptrace_v_csr()
183 if (vl * sew > lmul * vlen) in invalid_ptrace_v_csr()
210 if (vl * sew > lmul * vlen) in invalid_ptrace_v_csr()
/linux/tools/testing/selftests/
H A Dkselftest_harness.h1153 unsigned int flen = 0, vlen = 0, tlen = 0; in test_enabled() local
1178 vlen = strlen(v->name); in test_enabled()
1181 if (strlen(optarg) == flen + 1 + vlen + !!vlen + tlen && in test_enabled()
1183 !strncmp(v->name, &optarg[flen + 1], vlen) && in test_enabled()
1184 !strncmp(t->name, &optarg[flen + 1 + vlen + !!vlen], tlen)) in test_enabled()
/linux/fs/jffs2/
H A 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()
/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c28 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
29 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
/linux/tools/perf/util/
H A Dbpf-event.c192 unsigned int vlen, vars; in bpf_metadata_read_map_data() local
224 vlen = btf_vlen(datasec); in bpf_metadata_read_map_data()
227 for (unsigned int i = 0; i < vlen; i++, vsi++) { in bpf_metadata_read_map_data()
306 unsigned int i, vlen; in bpf_metadata_fill_event() local
309 vlen = btf_vlen(map->datasec); in bpf_metadata_fill_event()
312 for (i = 0; i < vlen; i++, vsi++) { in bpf_metadata_fill_event()
/linux/drivers/video/fbdev/
H A Docfb.c109 u32 vlen; in ocfb_setupfb() local
136 vlen = var->upper_margin + var->lower_margin + var->vsync_len + in ocfb_setupfb()
139 ocfb_writereg(fbdev, OCFB_HVLEN, (hlen - 1) << 16 | (vlen - 1)); in ocfb_setupfb()
/linux/include/linux/
H A Dasn1_ber_bytecode.h19 const void *value, size_t vlen);

12