Lines Matching refs:p

13 	__be32 *p;  in gssx_enc_bool()  local
15 p = xdr_reserve_space(xdr, 4); in gssx_enc_bool()
16 if (unlikely(p == NULL)) in gssx_enc_bool()
18 *p = v ? xdr_one : xdr_zero; in gssx_enc_bool()
24 __be32 *p; in gssx_dec_bool() local
26 p = xdr_inline_decode(xdr, 4); in gssx_dec_bool()
27 if (unlikely(p == NULL)) in gssx_dec_bool()
29 *v = be32_to_cpu(*p); in gssx_dec_bool()
36 __be32 *p; in gssx_enc_buffer() local
38 p = xdr_reserve_space(xdr, sizeof(u32) + buf->len); in gssx_enc_buffer()
39 if (!p) in gssx_enc_buffer()
41 xdr_encode_opaque(p, buf->data, buf->len); in gssx_enc_buffer()
48 __be32 *p; in gssx_enc_in_token() local
50 p = xdr_reserve_space(xdr, 4); in gssx_enc_in_token()
51 if (!p) in gssx_enc_in_token()
53 *p = cpu_to_be32(in->page_len); in gssx_enc_in_token()
66 __be32 *p; in gssx_dec_buffer() local
68 p = xdr_inline_decode(xdr, 4); in gssx_dec_buffer()
69 if (unlikely(p == NULL)) in gssx_dec_buffer()
72 length = be32_to_cpup(p); in gssx_dec_buffer()
73 p = xdr_inline_decode(xdr, length); in gssx_dec_buffer()
74 if (unlikely(p == NULL)) in gssx_dec_buffer()
85 buf->data = kmemdup(p, length, GFP_KERNEL); in gssx_dec_buffer()
89 memcpy(buf->data, p, length); in gssx_dec_buffer()
122 __be32 *p; in dummy_enc_opt_array() local
127 p = xdr_reserve_space(xdr, 4); in dummy_enc_opt_array()
128 if (!p) in dummy_enc_opt_array()
130 *p = 0; in dummy_enc_opt_array()
140 __be32 *p; in dummy_dec_opt_array() local
142 p = xdr_inline_decode(xdr, 4); in dummy_dec_opt_array()
143 if (unlikely(p == NULL)) in dummy_dec_opt_array()
145 count = be32_to_cpup(p++); in dummy_dec_opt_array()
158 __be32 *p; in get_host_u32() local
160 p = xdr_inline_decode(xdr, 4); in get_host_u32()
161 if (!p) in get_host_u32()
164 memcpy(res, p, sizeof(u32)); in get_host_u32()
172 __be32 *p; in gssx_dec_linux_creds() local
177 p = xdr_inline_decode(xdr, 4); in gssx_dec_linux_creds()
178 if (unlikely(p == NULL)) in gssx_dec_linux_creds()
181 length = be32_to_cpup(p); in gssx_dec_linux_creds()
234 __be32 *p; in gssx_dec_option_array() local
237 p = xdr_inline_decode(xdr, 4); in gssx_dec_option_array()
238 if (unlikely(p == NULL)) in gssx_dec_option_array()
240 count = be32_to_cpup(p++); in gssx_dec_option_array()
267 p = xdr_inline_decode(xdr, 4); in gssx_dec_option_array()
268 if (unlikely(p == NULL)) { in gssx_dec_option_array()
273 length = be32_to_cpup(p); in gssx_dec_option_array()
274 p = xdr_inline_decode(xdr, length); in gssx_dec_option_array()
275 if (unlikely(p == NULL)) { in gssx_dec_option_array()
281 memcmp(p, CREDS_VALUE, sizeof(CREDS_VALUE)) == 0) { in gssx_dec_option_array()
307 __be32 *p; in gssx_dec_status() local
311 p = xdr_inline_decode(xdr, 8); in gssx_dec_status()
312 if (unlikely(p == NULL)) in gssx_dec_status()
314 p = xdr_decode_hyper(p, &status->major_status); in gssx_dec_status()
322 p = xdr_inline_decode(xdr, 8); in gssx_dec_status()
323 if (unlikely(p == NULL)) in gssx_dec_status()
325 p = xdr_decode_hyper(p, &status->minor_status); in gssx_dec_status()
353 __be32 *p; in gssx_enc_call_ctx() local
368 p = xdr_reserve_space(xdr, 4); in gssx_enc_call_ctx()
369 *p = cpu_to_be32(2); in gssx_enc_call_ctx()
412 __be32 *p; in dummy_enc_nameattr_array() local
417 p = xdr_reserve_space(xdr, 4); in dummy_enc_nameattr_array()
418 if (!p) in dummy_enc_nameattr_array()
420 *p = 0; in dummy_enc_nameattr_array()
430 __be32 *p; in dummy_dec_nameattr_array() local
432 p = xdr_inline_decode(xdr, 4); in dummy_dec_nameattr_array()
433 if (unlikely(p == NULL)) in dummy_dec_nameattr_array()
435 count = be32_to_cpup(p++); in dummy_dec_nameattr_array()
536 __be32 *p; in dummy_enc_credel_array() local
541 p = xdr_reserve_space(xdr, 4); in dummy_enc_credel_array()
542 if (!p) in dummy_enc_credel_array()
544 *p = 0; in dummy_enc_credel_array()
578 __be32 *p; in gssx_enc_ctx() local
612 p = xdr_reserve_space(xdr, 8+8); in gssx_enc_ctx()
613 if (!p) in gssx_enc_ctx()
615 p = xdr_encode_hyper(p, ctx->lifetime); in gssx_enc_ctx()
618 p = xdr_encode_hyper(p, ctx->ctx_flags); in gssx_enc_ctx()
641 __be32 *p; in gssx_dec_ctx() local
675 p = xdr_inline_decode(xdr, 8+8); in gssx_dec_ctx()
676 if (unlikely(p == NULL)) in gssx_dec_ctx()
678 p = xdr_decode_hyper(p, &ctx->lifetime); in gssx_dec_ctx()
681 p = xdr_decode_hyper(p, &ctx->ctx_flags); in gssx_dec_ctx()
702 __be32 *p; in gssx_enc_cb() local
706 p = xdr_reserve_space(xdr, 8); in gssx_enc_cb()
707 if (!p) in gssx_enc_cb()
709 p = xdr_encode_hyper(p, cb->initiator_addrtype); in gssx_enc_cb()
717 p = xdr_reserve_space(xdr, 8); in gssx_enc_cb()
718 if (!p) in gssx_enc_cb()
720 p = xdr_encode_hyper(p, cb->acceptor_addrtype); in gssx_enc_cb()