Lines Matching refs:status
144 __be32 status; in decode_compound_hdr_arg() local
146 status = decode_string(xdr, &hdr->taglen, &hdr->tag, CB_OP_TAGLEN_MAXSZ); in decode_compound_hdr_arg()
147 if (unlikely(status != 0)) in decode_compound_hdr_arg()
148 return status; in decode_compound_hdr_arg()
180 __be32 status; in decode_getattr_args() local
182 status = decode_fh(xdr, &args->fh); in decode_getattr_args()
183 if (unlikely(status != 0)) in decode_getattr_args()
184 return status; in decode_getattr_args()
193 __be32 status; in decode_recall_args() local
195 status = decode_delegation_stateid(xdr, &args->stateid); in decode_recall_args()
196 if (unlikely(status != 0)) in decode_recall_args()
197 return status; in decode_recall_args()
217 __be32 status = 0; in decode_layoutrecall_args() local
234 status = decode_fh(xdr, &args->cbl_fh); in decode_layoutrecall_args()
235 if (unlikely(status != 0)) in decode_layoutrecall_args()
236 return status; in decode_layoutrecall_args()
262 __be32 status = 0; in decode_devicenotify_args() local
270 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
277 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
283 status = htonl(NFS4ERR_DELAY); in decode_devicenotify_args()
294 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
300 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
306 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
315 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
325 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()
366 __be32 status; in decode_rc_list() local
368 status = decode_sessionid(xdr, &rc_list->rcl_sessionid); in decode_rc_list()
369 if (status) in decode_rc_list()
372 status = htonl(NFS4ERR_RESOURCE); in decode_rc_list()
393 status = 0; in decode_rc_list()
396 return status; in decode_rc_list()
406 __be32 status; in decode_cb_sequence_args() local
408 status = decode_sessionid(xdr, &args->csa_sessionid); in decode_cb_sequence_args()
409 if (status) in decode_cb_sequence_args()
410 return status; in decode_cb_sequence_args()
431 status = decode_rc_list(xdr, &args->csa_rclists[i]); in decode_cb_sequence_args()
432 if (status) { in decode_cb_sequence_args()
444 return status; in decode_cb_sequence_args()
453 __be32 *p, status; in decode_recallany_args() local
459 status = decode_bitmap(xdr, bitmap); in decode_recallany_args()
460 if (unlikely(status)) in decode_recallany_args()
461 return status; in decode_recallany_args()
515 __be32 status; in decode_notify_lock_args() local
517 status = decode_fh(xdr, &args->cbnl_fh); in decode_notify_lock_args()
518 if (unlikely(status != 0)) in decode_notify_lock_args()
519 return status; in decode_notify_lock_args()
558 __be32 status; in decode_offload_args() local
561 status = decode_fh(xdr, &args->coa_fh); in decode_offload_args()
562 if (unlikely(status != 0)) in decode_offload_args()
563 return status; in decode_offload_args()
566 status = decode_stateid(xdr, &args->coa_stateid); in decode_offload_args()
567 if (unlikely(status != 0)) in decode_offload_args()
568 return status; in decode_offload_args()
576 status = decode_write_response(xdr, args); in decode_offload_args()
577 if (unlikely(status != 0)) in decode_offload_args()
578 return status; in decode_offload_args()
658 __be32 status; in encode_compound_hdr_res() local
660 hdr->status = xdr_reserve_space(xdr, 4); in encode_compound_hdr_res()
661 if (unlikely(hdr->status == NULL)) in encode_compound_hdr_res()
663 status = encode_string(xdr, hdr->taglen, hdr->tag); in encode_compound_hdr_res()
664 if (unlikely(status != 0)) in encode_compound_hdr_res()
665 return status; in encode_compound_hdr_res()
689 __be32 status = res->status; in encode_getattr_res() local
691 if (unlikely(status != 0)) in encode_getattr_res()
693 status = encode_attr_bitmap(xdr, res->bitmap, ARRAY_SIZE(res->bitmap)); in encode_getattr_res()
694 if (unlikely(status != 0)) in encode_getattr_res()
696 status = cpu_to_be32(NFS4ERR_RESOURCE); in encode_getattr_res()
700 status = encode_attr_change(xdr, res->bitmap, res->change_attr); in encode_getattr_res()
701 if (unlikely(status != 0)) in encode_getattr_res()
703 status = encode_attr_size(xdr, res->bitmap, res->size); in encode_getattr_res()
704 if (unlikely(status != 0)) in encode_getattr_res()
706 status = encode_attr_ctime(xdr, res->bitmap, &res->ctime); in encode_getattr_res()
707 if (unlikely(status != 0)) in encode_getattr_res()
709 status = encode_attr_mtime(xdr, res->bitmap, &res->mtime); in encode_getattr_res()
712 return status; in encode_getattr_res()
736 __be32 status = res->csr_status; in encode_cb_sequence_res() local
738 if (unlikely(status != 0)) in encode_cb_sequence_res()
739 return status; in encode_cb_sequence_res()
741 status = encode_sessionid(xdr, &res->csr_sessionid); in encode_cb_sequence_res()
742 if (status) in encode_cb_sequence_res()
743 return status; in encode_cb_sequence_res()
831 __be32 status = preprocess_nfs41_op(nop, op_nr, op); in preprocess_nfs42_op() local
832 if (status != htonl(NFS4ERR_OP_ILLEGAL)) in preprocess_nfs42_op()
833 return status; in preprocess_nfs42_op()
872 __be32 status; in process_op() local
876 status = decode_op_hdr(xdr_in, &op_nr); in process_op()
877 if (unlikely(status)) in process_op()
878 return status; in process_op()
882 status = preprocess_nfs4_op(op_nr, &op); in process_op()
885 status = preprocess_nfs41_op(nop, op_nr, &op); in process_op()
888 status = preprocess_nfs42_op(nop, op_nr, &op); in process_op()
891 status = htonl(NFS4ERR_MINOR_VERS_MISMATCH); in process_op()
894 if (status == htonl(NFS4ERR_OP_ILLEGAL)) in process_op()
896 if (status) in process_op()
900 status = cps->drc_status; in process_op()
906 status = op->decode_args(rqstp, xdr_in, argp); in process_op()
907 if (likely(status == 0)) in process_op()
908 status = op->process_op(argp, resp, cps); in process_op()
910 status = htonl(NFS4ERR_RESOURCE); in process_op()
913 res = encode_op_hdr(xdr_out, op_nr, status); in process_op()
916 if (op->encode_res != NULL && status == 0) in process_op()
917 status = op->encode_res(rqstp, xdr_out, resp); in process_op()
918 return status; in process_op()
929 __be32 *p, status; in nfs4_callback_compound() local
943 status = decode_compound_hdr_arg(&xdr_in, &hdr_arg); in nfs4_callback_compound()
944 if (status == htonl(NFS4ERR_RESOURCE)) in nfs4_callback_compound()
964 while (status == 0 && nops != hdr_arg.nops) { in nfs4_callback_compound()
965 status = process_op(nops, rqstp, &xdr_in, in nfs4_callback_compound()
973 if (unlikely(status == htonl(NFS4ERR_RESOURCE_HDR))) { in nfs4_callback_compound()
974 status = htonl(NFS4ERR_RESOURCE); in nfs4_callback_compound()
978 *hdr_res.status = status; in nfs4_callback_compound()