Lines Matching refs:prep

52 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()
229 ret2 = rxrpc_preparse_xdr_rxkad(prep, datalen, token, toklen); in rxrpc_preparse_xdr()
277 static int rxrpc_preparse(struct key_preparsed_payload *prep) in rxrpc_preparse() argument
286 _enter("%zu", prep->datalen); in rxrpc_preparse()
289 if (!prep->data && prep->datalen == 0) in rxrpc_preparse()
293 if (prep->datalen > 7 * 4) { in rxrpc_preparse()
294 ret = rxrpc_preparse_xdr(prep); in rxrpc_preparse()
301 if (prep->datalen <= 4 || !prep->data) in rxrpc_preparse()
303 memcpy(&kver, prep->data, sizeof(kver)); in rxrpc_preparse()
304 prep->data += sizeof(kver); in rxrpc_preparse()
305 prep->datalen -= sizeof(kver); in rxrpc_preparse()
315 if (prep->datalen < sizeof(*v1)) in rxrpc_preparse()
318 v1 = prep->data; in rxrpc_preparse()
319 if (prep->datalen != sizeof(*v1) + v1->ticket_length) in rxrpc_preparse()
343 prep->quotalen = plen + sizeof(*token); in rxrpc_preparse()
361 prep->payload.data[1] = (void *)((unsigned long)prep->payload.data[1] + 1); in rxrpc_preparse()
364 pp = (struct rxrpc_key_token **)&prep->payload.data[0]; in rxrpc_preparse()
369 if (expiry < prep->expiry) in rxrpc_preparse()
370 prep->expiry = expiry; in rxrpc_preparse()
406 static void rxrpc_free_preparse(struct key_preparsed_payload *prep) in rxrpc_free_preparse() argument
408 rxrpc_free_token_list(prep->payload.data[0]); in rxrpc_free_preparse()