Home
last modified time | relevance | path

Searched full:prep (Results 1 – 25 of 215) sorted by relevance

123456789

/linux/io_uring/
H A Dopdef.c56 .prep = io_nop_prep,
71 .prep = io_prep_readv,
86 .prep = io_prep_writev,
92 .prep = io_fsync_prep,
105 .prep = io_prep_read_fixed,
119 .prep = io_prep_write_fixed,
126 .prep = io_poll_add_prep,
131 .prep = io_poll_remove_prep,
137 .prep = io_sfr_prep,
147 .prep = io_sendmsg_prep,
[all …]
/linux/crypto/asymmetric_keys/
H A Dpkcs7_key_type.c31 struct key_preparsed_payload *prep = ctx; in pkcs7_view_content() local
36 saved_prep_data = prep->data; in pkcs7_view_content()
37 saved_prep_datalen = prep->datalen; in pkcs7_view_content()
38 prep->data = data; in pkcs7_view_content()
39 prep->datalen = len; in pkcs7_view_content()
41 ret = user_preparse(prep); in pkcs7_view_content()
43 prep->data = saved_prep_data; in pkcs7_view_content()
44 prep->datalen = saved_prep_datalen; in pkcs7_view_content()
51 static int pkcs7_preparse(struct key_preparsed_payload *prep) in pkcs7_preparse() argument
61 prep->data, prep->datalen, in pkcs7_preparse()
[all …]
H A Dpkcs8_parser.c136 static int pkcs8_key_preparse(struct key_preparsed_payload *prep) in pkcs8_key_preparse() argument
140 pub = pkcs8_parse(prep->data, prep->datalen); in pkcs8_key_preparse()
149 prep->payload.data[asym_subtype] = &public_key_subtype; in pkcs8_key_preparse()
150 prep->payload.data[asym_key_ids] = NULL; in pkcs8_key_preparse()
151 prep->payload.data[asym_crypto] = pub; in pkcs8_key_preparse()
152 prep->payload.data[asym_auth] = NULL; in pkcs8_key_preparse()
153 prep->quotalen = 100; in pkcs8_key_preparse()
H A Dx509_public_key.c149 static int x509_key_preparse(struct key_preparsed_payload *prep) in x509_key_preparse() argument
157 cert = x509_cert_parse(prep->data, prep->datalen); in x509_key_preparse()
213 prep->payload.data[asym_subtype] = &public_key_subtype; in x509_key_preparse()
214 prep->payload.data[asym_key_ids] = kids; in x509_key_preparse()
215 prep->payload.data[asym_crypto] = cert->pub; in x509_key_preparse()
216 prep->payload.data[asym_auth] = cert->sig; in x509_key_preparse()
217 prep->description = desc; in x509_key_preparse()
218 prep->quotalen = 100; in x509_key_preparse()
H A Dasymmetric_type.c402 static int asymmetric_key_preparse(struct key_preparsed_payload *prep) in asymmetric_key_preparse() argument
409 if (prep->datalen == 0) in asymmetric_key_preparse()
418 ret = parser->parse(prep); in asymmetric_key_preparse()
448 static void asymmetric_key_free_preparse(struct key_preparsed_payload *prep) in asymmetric_key_free_preparse() argument
450 struct asymmetric_key_subtype *subtype = prep->payload.data[asym_subtype]; in asymmetric_key_free_preparse()
451 struct asymmetric_key_ids *kids = prep->payload.data[asym_key_ids]; in asymmetric_key_free_preparse()
456 subtype->destroy(prep->payload.data[asym_crypto], in asymmetric_key_free_preparse()
457 prep->payload.data[asym_auth]); in asymmetric_key_free_preparse()
461 kfree(prep->description); in asymmetric_key_free_preparse()
/linux/security/keys/
H A Dkey.c427 struct key_preparsed_payload *prep, in __key_instantiate_and_link() argument
445 ret = key->type->instantiate(key, prep); in __key_instantiate_and_link()
468 if (prep->expiry != TIME64_MAX) in __key_instantiate_and_link()
469 key_set_expiry(key, prep->expiry); in __key_instantiate_and_link()
504 struct key_preparsed_payload prep; in key_instantiate_and_link() local
508 memset(&prep, 0, sizeof(prep)); in key_instantiate_and_link()
509 prep.orig_description = key->description; in key_instantiate_and_link()
510 prep.data = data; in key_instantiate_and_link()
511 prep.datalen = datalen; in key_instantiate_and_link()
512 prep.quotalen = key->type->def_datalen; in key_instantiate_and_link()
[all …]
H A Duser_defined.c59 int user_preparse(struct key_preparsed_payload *prep) in user_preparse() argument
62 size_t datalen = prep->datalen; in user_preparse()
64 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_preparse()
72 prep->quotalen = datalen; in user_preparse()
73 prep->payload.data[0] = upayload; in user_preparse()
75 memcpy(upayload->data, prep->data, datalen); in user_preparse()
83 void user_free_preparse(struct key_preparsed_payload *prep) in user_free_preparse() argument
85 kfree_sensitive(prep->payload.data[0]); in user_free_preparse()
101 int user_update(struct key *key, struct key_preparsed_payload *prep) in user_update() argument
107 ret = key_payload_reserve(key, prep->datalen); in user_update()
[all …]
H A Dbig_key.c57 int big_key_preparse(struct key_preparsed_payload *prep) in big_key_preparse() argument
59 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_preparse()
63 size_t datalen = prep->datalen; in big_key_preparse()
67 BUILD_BUG_ON(sizeof(*payload) != sizeof(prep->payload.data)); in big_key_preparse()
69 if (datalen <= 0 || datalen > 1024 * 1024 || !prep->data) in big_key_preparse()
73 prep->quotalen = 16; in big_key_preparse()
102 chacha20poly1305_encrypt(buf, prep->data, datalen, NULL, 0, in big_key_preparse()
136 memcpy(data, prep->data, prep->datalen); in big_key_preparse()
152 void big_key_free_preparse(struct key_preparsed_payload *prep) in big_key_free_preparse() argument
154 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_free_preparse()
[all …]
H A Drequest_key_auth.c42 static int request_key_auth_preparse(struct key_preparsed_payload *prep) in request_key_auth_preparse() argument
47 static void request_key_auth_free_preparse(struct key_preparsed_payload *prep) in request_key_auth_free_preparse() argument
55 struct key_preparsed_payload *prep) in request_key_auth_instantiate() argument
57 rcu_assign_keypointer(key, (struct request_key_auth *)prep->data); in request_key_auth_instantiate()
/linux/net/rxrpc/
H A Dkey.c52 static int rxrpc_preparse_xdr_rxkad(struct key_preparsed_payload *prep, in rxrpc_preparse_xdr_rxkad() argument
75 prep->quotalen = datalen + plen; in rxrpc_preparse_xdr_rxkad()
116 prep->payload.data[1] = (void *)((unsigned long)prep->payload.data[1] + 1); in rxrpc_preparse_xdr_rxkad()
119 for (pptoken = (struct rxrpc_key_token **)&prep->payload.data[0]; in rxrpc_preparse_xdr_rxkad()
125 if (expiry < prep->expiry) in rxrpc_preparse_xdr_rxkad()
126 prep->expiry = expiry; in rxrpc_preparse_xdr_rxkad()
136 static int rxrpc_preparse_xdr(struct key_preparsed_payload *prep) in rxrpc_preparse_xdr() argument
138 const __be32 *xdr = prep->data, *token, *p; in rxrpc_preparse_xdr()
141 size_t datalen = prep->datalen; in rxrpc_preparse_xdr()
146 prep->datalen); in rxrpc_preparse_xdr()
[all …]
H A Dserver_key.c67 static int rxrpc_preparse_s(struct key_preparsed_payload *prep) in rxrpc_preparse_s() argument
73 _enter("%zu", prep->datalen); in rxrpc_preparse_s()
75 if (!prep->orig_description) in rxrpc_preparse_s()
78 if (sscanf(prep->orig_description, "%u:%u%n", &service, &sec_class, &n) != 2) in rxrpc_preparse_s()
85 prep->payload.data[1] = (struct rxrpc_security *)sec; in rxrpc_preparse_s()
90 return sec->preparse_server_key(prep); in rxrpc_preparse_s()
93 static void rxrpc_free_preparse_s(struct key_preparsed_payload *prep) in rxrpc_free_preparse_s() argument
95 const struct rxrpc_security *sec = prep->payload.data[1]; in rxrpc_free_preparse_s()
98 sec->free_preparse_server_key(prep); in rxrpc_free_preparse_s()
/linux/net/dns_resolver/
H A Ddns_key.c92 dns_resolver_preparse(struct key_preparsed_payload *prep) in dns_resolver_preparse() argument
97 int datalen = prep->datalen, result_len = 0; in dns_resolver_preparse()
98 const char *data = prep->data, *end, *opt; in dns_resolver_preparse()
128 if (prep->expiry == TIME64_MAX) in dns_resolver_preparse()
129 prep->expiry = ktime_get_real_seconds() + 1; in dns_resolver_preparse()
196 prep->payload.data[dns_key_error] = ERR_PTR(-derrno); in dns_resolver_preparse()
209 if (prep->payload.data[dns_key_error]) { in dns_resolver_preparse()
210 kleave(" = 0 [h_error %ld]", PTR_ERR(prep->payload.data[dns_key_error])); in dns_resolver_preparse()
216 prep->quotalen = result_len; in dns_resolver_preparse()
228 prep->payload.data[dns_key_data] = upayload; in dns_resolver_preparse()
[all …]
/linux/net/ceph/
H A Dcrypto.c298 static int ceph_key_preparse(struct key_preparsed_payload *prep) in ceph_key_preparse() argument
301 size_t datalen = prep->datalen; in ceph_key_preparse()
306 if (datalen <= 0 || datalen > 32767 || !prep->data) in ceph_key_preparse()
315 p = (void *)prep->data; in ceph_key_preparse()
316 ret = ceph_crypto_key_decode(ckey, &p, (char*)prep->data+datalen); in ceph_key_preparse()
320 prep->payload.data[0] = ckey; in ceph_key_preparse()
321 prep->quotalen = datalen; in ceph_key_preparse()
330 static void ceph_key_free_preparse(struct key_preparsed_payload *prep) in ceph_key_free_preparse() argument
332 struct ceph_crypto_key *ckey = prep->payload.data[0]; in ceph_key_free_preparse()
/linux/security/keys/trusted-keys/
H A Dtrusted_core.c151 struct key_preparsed_payload *prep) in trusted_instantiate() argument
154 size_t datalen = prep->datalen; in trusted_instantiate()
160 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_instantiate()
166 memcpy(datablob, prep->data, datalen); in trusted_instantiate()
230 static int trusted_update(struct key *key, struct key_preparsed_payload *prep) in trusted_update() argument
234 size_t datalen = prep->datalen; in trusted_update()
243 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_update()
256 memcpy(datablob, prep->data, datalen); in trusted_update()
/linux/include/keys/
H A Dbig_key-type.h15 extern int big_key_preparse(struct key_preparsed_payload *prep);
16 extern void big_key_free_preparse(struct key_preparsed_payload *prep);
21 extern int big_key_update(struct key *key, struct key_preparsed_payload *prep);
H A Duser-type.h38 extern int user_preparse(struct key_preparsed_payload *prep);
39 extern void user_free_preparse(struct key_preparsed_payload *prep);
40 extern int user_update(struct key *key, struct key_preparsed_payload *prep);
/linux/net/smc/
H A Dsmc_tx.h23 union smc_host_cursor sent, prep; in smc_tx_prepared_sends() local
26 smc_curs_copy(&prep, &conn->tx_curs_prep, conn); in smc_tx_prepared_sends()
27 return smc_curs_diff(conn->sndbuf_desc->len, &sent, &prep); in smc_tx_prepared_sends()
H A Dsmc_tx.c186 union smc_host_cursor prep; in smc_tx_sendmsg() local
240 smc_curs_copy(&prep, &conn->tx_curs_prep, conn); in smc_tx_sendmsg()
241 tx_cnt_prep = prep.count; in smc_tx_sendmsg()
269 smc_curs_add(conn->sndbuf_desc->len, &prep, copylen); in smc_tx_sendmsg()
270 smc_curs_copy(&conn->tx_curs_prep, &prep, conn); in smc_tx_sendmsg()
467 union smc_host_cursor sent, prep, prod, cons; in smc_tx_rdma_writes() local
474 smc_curs_copy(&prep, &conn->tx_curs_prep, conn); in smc_tx_rdma_writes()
476 to_send = smc_curs_diff(conn->sndbuf_desc->len, &sent, &prep); in smc_tx_rdma_writes()
/linux/include/linux/
H A Dkey-type.h85 int (*preparse)(struct key_preparsed_payload *prep);
89 void (*free_preparse)(struct key_preparsed_payload *prep);
95 int (*instantiate)(struct key *key, struct key_preparsed_payload *prep);
102 int (*update)(struct key *key, struct key_preparsed_payload *prep);
191 extern int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep);
/linux/certs/
H A Dblacklist.c87 struct key_preparsed_payload *prep) in blacklist_key_instantiate() argument
109 strlen(key->description), prep->data, prep->datalen, in blacklist_key_instantiate()
124 return generic_key_instantiate(key, prep); in blacklist_key_instantiate()
128 struct key_preparsed_payload *prep) in blacklist_key_update() argument
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_vf.c164 /* clear mailbox and prep first tlv */ in _qed_vf_pf_release()
253 /* clear mailbox and prep first tlv */ in qed_vf_pf_acquire()
736 /* clear mailbox and prep first tlv */ in qed_vf_pf_rxq_start()
808 /* clear mailbox and prep first tlv */ in qed_vf_pf_rxq_stop()
849 /* clear mailbox and prep first tlv */ in qed_vf_pf_txq_start()
905 /* clear mailbox and prep first tlv */ in qed_vf_pf_txq_stop()
945 /* clear mailbox and prep first tlv */ in qed_vf_pf_vport_start()
989 /* clear mailbox and prep first tlv */ in qed_vf_pf_vport_stop()
1083 /* clear mailbox and prep header tlv */ in qed_vf_pf_vport_update()
1229 /* clear mailbox and prep first tlv */ in qed_vf_pf_reset()
[all …]
/linux/drivers/soundwire/
H A Dstream.c417 dev_err(dev, "Slave Port Prep cmd %d failed: %d\n", in sdw_do_port_prep()
430 bool prep) in sdw_prep_deprep_slave_ports() argument
451 prep_ch.prepare = prep; in sdw_prep_deprep_slave_ports()
464 if (prep && intr) { in sdw_prep_deprep_slave_ports()
465 ret = sdw_configure_dpn_intr(s_rt->slave, p_rt->num, prep, in sdw_prep_deprep_slave_ports()
472 sdw_do_port_prep(s_rt, prep_ch, prep ? SDW_OPS_PORT_PRE_PREP : SDW_OPS_PORT_PRE_DEPREP); in sdw_prep_deprep_slave_ports()
478 if (prep) in sdw_prep_deprep_slave_ports()
498 "Chn prep failed for port %d: %d\n", prep_ch.num, ret); in sdw_prep_deprep_slave_ports()
504 sdw_do_port_prep(s_rt, prep_ch, prep ? SDW_OPS_PORT_POST_PREP : SDW_OPS_PORT_POST_DEPREP); in sdw_prep_deprep_slave_ports()
507 if (!prep && intr) in sdw_prep_deprep_slave_ports()
[all …]
/linux/fs/crypto/
H A Dkeyring.c148 struct key_preparsed_payload *prep) in fscrypt_user_key_instantiate() argument
582 static int fscrypt_provisioning_key_preparse(struct key_preparsed_payload *prep) in fscrypt_provisioning_key_preparse() argument
584 const struct fscrypt_provisioning_key_payload *payload = prep->data; in fscrypt_provisioning_key_preparse()
586 if (prep->datalen < sizeof(*payload) + FSCRYPT_MIN_KEY_SIZE || in fscrypt_provisioning_key_preparse()
587 prep->datalen > sizeof(*payload) + FSCRYPT_MAX_KEY_SIZE) in fscrypt_provisioning_key_preparse()
597 prep->payload.data[0] = kmemdup(payload, prep->datalen, GFP_KERNEL); in fscrypt_provisioning_key_preparse()
598 if (!prep->payload.data[0]) in fscrypt_provisioning_key_preparse()
601 prep->quotalen = prep->datalen; in fscrypt_provisioning_key_preparse()
606 struct key_preparsed_payload *prep) in fscrypt_provisioning_key_free_preparse() argument
608 kfree_sensitive(prep->payload.data[0]); in fscrypt_provisioning_key_free_preparse()
/linux/arch/loongarch/kernel/
H A Dgenex.S69 .macro BUILD_HANDLER exception handler prep argument
76 build_prep_\prep
/linux/arch/powerpc/include/asm/
H A Dprocessor.h50 /* PREP sub-platform types. Unused */
51 #define _PREP_Motorola 0x01 /* motorola prep */
52 #define _PREP_Firm 0x02 /* firmworks prep */
53 #define _PREP_IBM 0x00 /* ibm prep */
54 #define _PREP_Bull 0x03 /* bull prep */

123456789