Lines Matching defs:desc
831 struct xdr_array2_desc *desc, int encode)
839 if (xdr_encode_word(buf, base, desc->array_len) != 0)
842 if (xdr_decode_word(buf, base, &desc->array_len) != 0 ||
843 desc->array_len > desc->array_maxlen ||
844 (unsigned long) base + 4 + desc->array_len *
845 desc->elem_size > buf->len)
850 if (!desc->xcode)
853 todo = desc->array_len * desc->elem_size;
862 while (avail_here >= desc->elem_size) {
863 err = desc->xcode(desc, c);
866 c += desc->elem_size;
867 avail_here -= desc->elem_size;
871 elem = kmalloc(desc->elem_size, GFP_KERNEL);
877 err = desc->xcode(desc, elem);
905 if (copied || avail_page < desc->elem_size) {
907 desc->elem_size - copied);
909 elem = kmalloc(desc->elem_size,
917 err = desc->xcode(desc, elem);
923 if (copied == desc->elem_size)
928 if (copied == desc->elem_size) {
929 err = desc->xcode(desc, elem);
938 while (avail_page >= desc->elem_size) {
939 err = desc->xcode(desc, c);
942 c += desc->elem_size;
943 avail_page -= desc->elem_size;
947 desc->elem_size - copied);
949 elem = kmalloc(desc->elem_size,
957 err = desc->xcode(desc, elem);
963 if (copied == desc->elem_size)
968 if (copied == desc->elem_size) {
969 err = desc->xcode(desc, elem);
993 unsigned int l = desc->elem_size - copied;
999 err = desc->xcode(desc, elem);
1007 err = desc->xcode(desc, c);
1010 c += desc->elem_size;
1011 todo -= desc->elem_size;
1025 struct xdr_array2_desc *desc)
1030 return xdr_xcode_array2(buf, base, desc, 0);
1036 struct xdr_array2_desc *desc)
1038 if ((unsigned long) base + 4 + desc->array_len * desc->elem_size >
1042 return xdr_xcode_array2(buf, base, desc, 1);