Lines Matching refs:status
145 __be32 status; in decode_compound_hdr_arg() local
147 status = decode_string(xdr, &hdr->taglen, &hdr->tag, CB_OP_TAGLEN_MAXSZ); in decode_compound_hdr_arg()
148 if (unlikely(status != 0)) in decode_compound_hdr_arg()
149 return status; in decode_compound_hdr_arg()
181 __be32 status; in decode_getattr_args() local
183 status = decode_fh(xdr, &args->fh); in decode_getattr_args()
184 if (unlikely(status != 0)) in decode_getattr_args()
185 return status; in decode_getattr_args()
194 __be32 status; in decode_recall_args() local
196 status = decode_delegation_stateid(xdr, &args->stateid); in decode_recall_args()
197 if (unlikely(status != 0)) in decode_recall_args()
198 return status; in decode_recall_args()
218 __be32 status = 0; in decode_layoutrecall_args() local
235 status = decode_fh(xdr, &args->cbl_fh); in decode_layoutrecall_args()
236 if (unlikely(status != 0)) in decode_layoutrecall_args()
237 return status; in decode_layoutrecall_args()
264 __be32 status = 0; in decode_devicenotify_args() local
269 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
278 status = htonl(NFS4ERR_DELAY); in decode_devicenotify_args()
289 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
295 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
301 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
310 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
320 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
341 __func__, ntohl(status), args->ndevs); in decode_devicenotify_args()
342 return status; in decode_devicenotify_args()
363 __be32 status; in decode_rc_list() local
365 status = decode_sessionid(xdr, &rc_list->rcl_sessionid); in decode_rc_list()
366 if (status) in decode_rc_list()
369 status = htonl(NFS4ERR_RESOURCE); in decode_rc_list()
390 status = 0; in decode_rc_list()
393 return status; in decode_rc_list()
403 __be32 status; in decode_cb_sequence_args() local
405 status = decode_sessionid(xdr, &args->csa_sessionid); in decode_cb_sequence_args()
406 if (status) in decode_cb_sequence_args()
407 return status; in decode_cb_sequence_args()
428 status = decode_rc_list(xdr, &args->csa_rclists[i]); in decode_cb_sequence_args()
429 if (status) { in decode_cb_sequence_args()
441 return status; in decode_cb_sequence_args()
450 __be32 *p, status; in decode_recallany_args() local
456 status = decode_bitmap(xdr, bitmap); in decode_recallany_args()
457 if (unlikely(status)) in decode_recallany_args()
458 return status; in decode_recallany_args()
512 __be32 status; in decode_notify_lock_args() local
514 status = decode_fh(xdr, &args->cbnl_fh); in decode_notify_lock_args()
515 if (unlikely(status != 0)) in decode_notify_lock_args()
516 return status; in decode_notify_lock_args()
555 __be32 status; in decode_offload_args() local
558 status = decode_fh(xdr, &args->coa_fh); in decode_offload_args()
559 if (unlikely(status != 0)) in decode_offload_args()
560 return status; in decode_offload_args()
563 status = decode_stateid(xdr, &args->coa_stateid); in decode_offload_args()
564 if (unlikely(status != 0)) in decode_offload_args()
565 return status; in decode_offload_args()
573 status = decode_write_response(xdr, args); in decode_offload_args()
574 if (unlikely(status != 0)) in decode_offload_args()
575 return status; in decode_offload_args()
655 __be32 status; in encode_compound_hdr_res() local
657 hdr->status = xdr_reserve_space(xdr, 4); in encode_compound_hdr_res()
658 if (unlikely(hdr->status == NULL)) in encode_compound_hdr_res()
660 status = encode_string(xdr, hdr->taglen, hdr->tag); in encode_compound_hdr_res()
661 if (unlikely(status != 0)) in encode_compound_hdr_res()
662 return status; in encode_compound_hdr_res()
686 __be32 status = res->status; in encode_getattr_res() local
688 if (unlikely(status != 0)) in encode_getattr_res()
690 status = encode_attr_bitmap(xdr, res->bitmap, ARRAY_SIZE(res->bitmap)); in encode_getattr_res()
691 if (unlikely(status != 0)) in encode_getattr_res()
693 status = cpu_to_be32(NFS4ERR_RESOURCE); in encode_getattr_res()
697 status = encode_attr_change(xdr, res->bitmap, res->change_attr); in encode_getattr_res()
698 if (unlikely(status != 0)) in encode_getattr_res()
700 status = encode_attr_size(xdr, res->bitmap, res->size); in encode_getattr_res()
701 if (unlikely(status != 0)) in encode_getattr_res()
703 status = encode_attr_ctime(xdr, res->bitmap, &res->ctime); in encode_getattr_res()
704 if (unlikely(status != 0)) in encode_getattr_res()
706 status = encode_attr_mtime(xdr, res->bitmap, &res->mtime); in encode_getattr_res()
709 return status; in encode_getattr_res()
733 __be32 status = res->csr_status; in encode_cb_sequence_res() local
735 if (unlikely(status != 0)) in encode_cb_sequence_res()
736 return status; in encode_cb_sequence_res()
738 status = encode_sessionid(xdr, &res->csr_sessionid); in encode_cb_sequence_res()
739 if (status) in encode_cb_sequence_res()
740 return status; in encode_cb_sequence_res()
828 __be32 status = preprocess_nfs41_op(nop, op_nr, op); in preprocess_nfs42_op() local
829 if (status != htonl(NFS4ERR_OP_ILLEGAL)) in preprocess_nfs42_op()
830 return status; in preprocess_nfs42_op()
869 __be32 status; in process_op() local
873 status = decode_op_hdr(xdr_in, &op_nr); in process_op()
874 if (unlikely(status)) in process_op()
875 return status; in process_op()
879 status = preprocess_nfs4_op(op_nr, &op); in process_op()
882 status = preprocess_nfs41_op(nop, op_nr, &op); in process_op()
885 status = preprocess_nfs42_op(nop, op_nr, &op); in process_op()
888 status = htonl(NFS4ERR_MINOR_VERS_MISMATCH); in process_op()
891 if (status == htonl(NFS4ERR_OP_ILLEGAL)) in process_op()
893 if (status) in process_op()
897 status = cps->drc_status; in process_op()
903 status = op->decode_args(rqstp, xdr_in, argp); in process_op()
904 if (likely(status == 0)) in process_op()
905 status = op->process_op(argp, resp, cps); in process_op()
907 status = htonl(NFS4ERR_RESOURCE); in process_op()
910 res = encode_op_hdr(xdr_out, op_nr, status); in process_op()
913 if (op->encode_res != NULL && status == 0) in process_op()
914 status = op->encode_res(rqstp, xdr_out, resp); in process_op()
915 return status; in process_op()
926 __be32 *p, status; in nfs4_callback_compound() local
940 status = decode_compound_hdr_arg(&xdr_in, &hdr_arg); in nfs4_callback_compound()
941 if (status == htonl(NFS4ERR_RESOURCE)) in nfs4_callback_compound()
965 while (status == 0 && nops != hdr_arg.nops) { in nfs4_callback_compound()
966 status = process_op(nops, rqstp, &xdr_in, in nfs4_callback_compound()
974 if (unlikely(status == htonl(NFS4ERR_RESOURCE_HDR))) { in nfs4_callback_compound()
975 status = htonl(NFS4ERR_RESOURCE); in nfs4_callback_compound()
979 *hdr_res.status = status; in nfs4_callback_compound()