Lines Matching refs:len
51 u32 len; in svcxdr_decode_string() local
53 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_string()
55 if (len > NLM_MAXSTRLEN) in svcxdr_decode_string()
57 p = xdr_inline_decode(xdr, len); in svcxdr_decode_string()
60 *data_len = len; in svcxdr_decode_string()
76 u32 len; in svcxdr_decode_cookie() local
78 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_cookie()
80 if (len > NLM_MAXCOOKIELEN) in svcxdr_decode_cookie()
82 if (!len) in svcxdr_decode_cookie()
85 p = xdr_inline_decode(xdr, len); in svcxdr_decode_cookie()
88 cookie->len = len; in svcxdr_decode_cookie()
89 memcpy(cookie->data, p, len); in svcxdr_decode_cookie()
95 cookie->len = 4; in svcxdr_decode_cookie()
105 if (xdr_stream_encode_u32(xdr, cookie->len) < 0) in svcxdr_encode_cookie()
107 p = xdr_reserve_space(xdr, cookie->len); in svcxdr_encode_cookie()
110 memcpy(p, cookie->data, cookie->len); in svcxdr_encode_cookie()
119 u32 len; in svcxdr_decode_owner() local
121 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_owner()
123 if (len > XDR_MAX_NETOBJ) in svcxdr_decode_owner()
125 p = xdr_inline_decode(xdr, len); in svcxdr_decode_owner()
128 obj->len = len; in svcxdr_decode_owner()
137 if (obj->len > XDR_MAX_NETOBJ) in svcxdr_encode_owner()
139 return xdr_stream_encode_opaque(xdr, obj->data, obj->len) > 0; in svcxdr_encode_owner()