Home
last modified time | relevance | path

Searched refs:prep (Results 1 – 10 of 10) sorted by relevance

/net/rxrpc/
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 …]
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()
Drxkad.c59 static int rxkad_preparse_server_key(struct key_preparsed_payload *prep) in rxkad_preparse_server_key() argument
63 if (prep->datalen != 8) in rxkad_preparse_server_key()
66 memcpy(&prep->payload.data[2], prep->data, 8); in rxkad_preparse_server_key()
74 if (crypto_skcipher_setkey(ci, prep->data, 8) < 0) in rxkad_preparse_server_key()
77 prep->payload.data[0] = ci; in rxkad_preparse_server_key()
82 static void rxkad_free_preparse_server_key(struct key_preparsed_payload *prep) in rxkad_free_preparse_server_key() argument
85 if (prep->payload.data[0]) in rxkad_free_preparse_server_key()
86 crypto_free_skcipher(prep->payload.data[0]); in rxkad_free_preparse_server_key()
/net/dns_resolver/
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 …]
/net/ceph/
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()
/net/smc/
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()
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()
/net/mac80211/
Dmesh_hwmp.c958 if (elems->prep) { in mesh_rx_path_sel_frame()
962 path_metric = hwmp_route_info_get(sdata, mgmt, elems->prep, in mesh_rx_path_sel_frame()
965 hwmp_prep_frame_process(sdata, mgmt, elems->prep, in mesh_rx_path_sel_frame()
Dieee80211_i.h1707 const u8 *prep; member
Dutil.c1225 elems->prep = pos; in _ieee802_11_parse_elems_full()