Lines Matching refs:status

147 	__be32 status;  in decode_compound_hdr_arg()  local
149 status = decode_string(xdr, &hdr->taglen, &hdr->tag, CB_OP_TAGLEN_MAXSZ); in decode_compound_hdr_arg()
150 if (unlikely(status != 0)) in decode_compound_hdr_arg()
151 return status; in decode_compound_hdr_arg()
183 __be32 status; in decode_getattr_args() local
185 status = decode_fh(xdr, &args->fh); in decode_getattr_args()
186 if (unlikely(status != 0)) in decode_getattr_args()
187 return status; in decode_getattr_args()
196 __be32 status; in decode_recall_args() local
198 status = decode_delegation_stateid(xdr, &args->stateid); in decode_recall_args()
199 if (unlikely(status != 0)) in decode_recall_args()
200 return status; in decode_recall_args()
220 __be32 status = 0; in decode_layoutrecall_args() local
237 status = decode_fh(xdr, &args->cbl_fh); in decode_layoutrecall_args()
238 if (unlikely(status != 0)) in decode_layoutrecall_args()
239 return status; in decode_layoutrecall_args()
266 __be32 status = 0; in decode_devicenotify_args() local
271 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
280 status = htonl(NFS4ERR_DELAY); in decode_devicenotify_args()
291 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
297 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
303 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
312 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
322 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
343 __func__, ntohl(status), args->ndevs); in decode_devicenotify_args()
344 return status; in decode_devicenotify_args()
365 __be32 status; in decode_rc_list() local
367 status = decode_sessionid(xdr, &rc_list->rcl_sessionid); in decode_rc_list()
368 if (status) in decode_rc_list()
371 status = htonl(NFS4ERR_RESOURCE); in decode_rc_list()
394 status = 0; in decode_rc_list()
397 return status; in decode_rc_list()
407 __be32 status; in decode_cb_sequence_args() local
409 status = decode_sessionid(xdr, &args->csa_sessionid); in decode_cb_sequence_args()
410 if (status) in decode_cb_sequence_args()
411 return status; in decode_cb_sequence_args()
432 status = decode_rc_list(xdr, &args->csa_rclists[i]); in decode_cb_sequence_args()
433 if (status) { in decode_cb_sequence_args()
445 return status; in decode_cb_sequence_args()
454 __be32 *p, status; in decode_recallany_args() local
460 status = decode_bitmap(xdr, bitmap); in decode_recallany_args()
461 if (unlikely(status)) in decode_recallany_args()
462 return status; in decode_recallany_args()
516 __be32 status; in decode_notify_lock_args() local
518 status = decode_fh(xdr, &args->cbnl_fh); in decode_notify_lock_args()
519 if (unlikely(status != 0)) in decode_notify_lock_args()
520 return status; in decode_notify_lock_args()
559 __be32 status; in decode_offload_args() local
562 status = decode_fh(xdr, &args->coa_fh); in decode_offload_args()
563 if (unlikely(status != 0)) in decode_offload_args()
564 return status; in decode_offload_args()
567 status = decode_stateid(xdr, &args->coa_stateid); in decode_offload_args()
568 if (unlikely(status != 0)) in decode_offload_args()
569 return status; in decode_offload_args()
577 status = decode_write_response(xdr, args); in decode_offload_args()
578 if (unlikely(status != 0)) in decode_offload_args()
579 return status; in decode_offload_args()
684 __be32 status; in encode_compound_hdr_res() local
686 hdr->status = xdr_reserve_space(xdr, 4); in encode_compound_hdr_res()
687 if (unlikely(hdr->status == NULL)) in encode_compound_hdr_res()
689 status = encode_string(xdr, hdr->taglen, hdr->tag); in encode_compound_hdr_res()
690 if (unlikely(status != 0)) in encode_compound_hdr_res()
691 return status; in encode_compound_hdr_res()
715 __be32 status = res->status; in encode_getattr_res() local
717 if (unlikely(status != 0)) in encode_getattr_res()
719 status = encode_attr_bitmap(xdr, res->bitmap, ARRAY_SIZE(res->bitmap)); in encode_getattr_res()
720 if (unlikely(status != 0)) in encode_getattr_res()
722 status = cpu_to_be32(NFS4ERR_RESOURCE); in encode_getattr_res()
726 status = encode_attr_change(xdr, res->bitmap, res->change_attr); in encode_getattr_res()
727 if (unlikely(status != 0)) in encode_getattr_res()
729 status = encode_attr_size(xdr, res->bitmap, res->size); in encode_getattr_res()
730 if (unlikely(status != 0)) in encode_getattr_res()
732 status = encode_attr_atime(xdr, res->bitmap, &res->atime); in encode_getattr_res()
733 if (unlikely(status != 0)) in encode_getattr_res()
735 status = encode_attr_ctime(xdr, res->bitmap, &res->ctime); in encode_getattr_res()
736 if (unlikely(status != 0)) in encode_getattr_res()
738 status = encode_attr_mtime(xdr, res->bitmap, &res->mtime); in encode_getattr_res()
739 if (unlikely(status != 0)) in encode_getattr_res()
741 status = encode_attr_delegatime(xdr, res->bitmap, &res->atime); in encode_getattr_res()
742 if (unlikely(status != 0)) in encode_getattr_res()
744 status = encode_attr_delegmtime(xdr, res->bitmap, &res->mtime); in encode_getattr_res()
747 return status; in encode_getattr_res()
771 __be32 status = res->csr_status; in encode_cb_sequence_res() local
773 if (unlikely(status != 0)) in encode_cb_sequence_res()
774 return status; in encode_cb_sequence_res()
776 status = encode_sessionid(xdr, &res->csr_sessionid); in encode_cb_sequence_res()
777 if (status) in encode_cb_sequence_res()
778 return status; in encode_cb_sequence_res()
866 __be32 status = preprocess_nfs41_op(nop, op_nr, op); in preprocess_nfs42_op() local
867 if (status != htonl(NFS4ERR_OP_ILLEGAL)) in preprocess_nfs42_op()
868 return status; in preprocess_nfs42_op()
906 __be32 status; in process_op() local
910 status = decode_op_hdr(&rqstp->rq_arg_stream, &op_nr); in process_op()
911 if (unlikely(status)) in process_op()
912 return status; in process_op()
916 status = preprocess_nfs4_op(op_nr, &op); in process_op()
919 status = preprocess_nfs41_op(nop, op_nr, &op); in process_op()
922 status = preprocess_nfs42_op(nop, op_nr, &op); in process_op()
925 status = htonl(NFS4ERR_MINOR_VERS_MISMATCH); in process_op()
928 if (status == htonl(NFS4ERR_OP_ILLEGAL)) in process_op()
930 if (status) in process_op()
934 status = cps->drc_status; in process_op()
940 status = op->decode_args(rqstp, &rqstp->rq_arg_stream, in process_op()
942 if (likely(status == 0)) in process_op()
943 status = op->process_op(rqstp->rq_argp, rqstp->rq_resp, in process_op()
946 status = htonl(NFS4ERR_RESOURCE); in process_op()
949 res = encode_op_hdr(xdr_out, op_nr, status); in process_op()
952 if (op->encode_res != NULL && status == 0) in process_op()
953 status = op->encode_res(rqstp, xdr_out, rqstp->rq_resp); in process_op()
954 return status; in process_op()
970 __be32 status; in nfs4_callback_compound() local
972 status = decode_compound_hdr_arg(&rqstp->rq_arg_stream, &hdr_arg); in nfs4_callback_compound()
973 if (status == htonl(NFS4ERR_RESOURCE)) in nfs4_callback_compound()
998 while (status == 0 && nops != hdr_arg.nops) { in nfs4_callback_compound()
999 status = process_op(nops, rqstp, &cps); in nfs4_callback_compound()
1005 if (unlikely(status == htonl(NFS4ERR_RESOURCE_HDR))) { in nfs4_callback_compound()
1006 status = htonl(NFS4ERR_RESOURCE); in nfs4_callback_compound()
1015 *hdr_res.status = status; in nfs4_callback_compound()