Lines Matching refs:p

966 	__be32 *p = xdr_reserve_space(xdr, nbytes);  in reserve_space()  local
967 BUG_ON(!p); in reserve_space()
968 return p; in reserve_space()
1033 __be32 *p; in encode_compound_hdr() local
1042 p = reserve_space(xdr, 8); in encode_compound_hdr()
1043 *p++ = cpu_to_be32(hdr->minorversion); in encode_compound_hdr()
1044 hdr->nops_p = p; in encode_compound_hdr()
1045 *p = cpu_to_be32(hdr->nops); in encode_compound_hdr()
1074 xdr_encode_nfstime4(__be32 *p, const struct timespec64 *t) in xdr_encode_nfstime4() argument
1076 p = xdr_encode_hyper(p, t->tv_sec); in xdr_encode_nfstime4()
1077 *p++ = cpu_to_be32(t->tv_nsec); in xdr_encode_nfstime4()
1078 return p; in xdr_encode_nfstime4()
1091 __be32 *p; in encode_attrs() local
1162 xdr_stream_encode_opaque_inline(xdr, (void **)&p, len); in encode_attrs()
1165 p = xdr_encode_hyper(p, iap->ia_size); in encode_attrs()
1167 *p++ = cpu_to_be32(iap->ia_mode & S_IALLUGO); in encode_attrs()
1169 p = xdr_encode_opaque(p, owner_name, owner_namelen); in encode_attrs()
1171 p = xdr_encode_opaque(p, owner_group, owner_grouplen); in encode_attrs()
1174 *p++ = cpu_to_be32(NFS4_SET_TO_CLIENT_TIME); in encode_attrs()
1175 p = xdr_encode_nfstime4(p, &iap->ia_atime); in encode_attrs()
1177 *p++ = cpu_to_be32(NFS4_SET_TO_SERVER_TIME); in encode_attrs()
1181 *p++ = cpu_to_be32(NFS4_SET_TO_CLIENT_TIME); in encode_attrs()
1182 p = xdr_encode_nfstime4(p, &iap->ia_mtime); in encode_attrs()
1184 *p++ = cpu_to_be32(NFS4_SET_TO_SERVER_TIME); in encode_attrs()
1187 *p++ = cpu_to_be32(label->lfs); in encode_attrs()
1188 *p++ = cpu_to_be32(label->pi); in encode_attrs()
1189 *p++ = cpu_to_be32(label->len); in encode_attrs()
1190 p = xdr_encode_opaque_fixed(p, label->label, label->len); in encode_attrs()
1193 *p++ = cpu_to_be32(iap->ia_mode & S_IALLUGO); in encode_attrs()
1194 *p++ = cpu_to_be32(*umask); in encode_attrs()
1215 __be32 *p; in encode_commit() local
1218 p = reserve_space(xdr, 12); in encode_commit()
1219 p = xdr_encode_hyper(p, args->offset); in encode_commit()
1220 *p = cpu_to_be32(args->count); in encode_commit()
1225 __be32 *p; in encode_create() local
1232 p = reserve_space(xdr, 4); in encode_create()
1233 *p = cpu_to_be32(create->u.symlink.len); in encode_create()
1240 p = reserve_space(xdr, 8); in encode_create()
1241 *p++ = cpu_to_be32(create->u.device.specdata1); in encode_create()
1242 *p = cpu_to_be32(create->u.device.specdata2); in encode_create()
1322 __be32 *p; in encode_lockowner() local
1324 p = reserve_space(xdr, 32); in encode_lockowner()
1325 p = xdr_encode_hyper(p, lowner->clientid); in encode_lockowner()
1326 *p++ = cpu_to_be32(20); in encode_lockowner()
1327 p = xdr_encode_opaque_fixed(p, "lock id:", 8); in encode_lockowner()
1328 *p++ = cpu_to_be32(lowner->s_dev); in encode_lockowner()
1329 xdr_encode_hyper(p, lowner->id); in encode_lockowner()
1338 __be32 *p; in encode_lock() local
1341 p = reserve_space(xdr, 28); in encode_lock()
1342 *p++ = cpu_to_be32(nfs4_lock_type(args->fl, args->block)); in encode_lock()
1343 *p++ = cpu_to_be32(args->reclaim); in encode_lock()
1344 p = xdr_encode_hyper(p, args->fl->fl_start); in encode_lock()
1345 p = xdr_encode_hyper(p, nfs4_lock_length(args->fl)); in encode_lock()
1346 *p = cpu_to_be32(args->new_lock_owner); in encode_lock()
1361 __be32 *p; in encode_lockt() local
1364 p = reserve_space(xdr, 20); in encode_lockt()
1365 *p++ = cpu_to_be32(nfs4_lock_type(args->fl, 0)); in encode_lockt()
1366 p = xdr_encode_hyper(p, args->fl->fl_start); in encode_lockt()
1367 p = xdr_encode_hyper(p, nfs4_lock_length(args->fl)); in encode_lockt()
1373 __be32 *p; in encode_locku() local
1379 p = reserve_space(xdr, 16); in encode_locku()
1380 p = xdr_encode_hyper(p, args->fl->fl_start); in encode_locku()
1381 xdr_encode_hyper(p, nfs4_lock_length(args->fl)); in encode_locku()
1403 __be32 *p; in encode_share_access() local
1405 p = reserve_space(xdr, 8); in encode_share_access()
1406 *p++ = cpu_to_be32(share_access); in encode_share_access()
1407 *p = cpu_to_be32(0); /* for linux, share_deny = 0 always */ in encode_share_access()
1412 __be32 *p; in encode_openhdr() local
1419 p = reserve_space(xdr, 36); in encode_openhdr()
1420 p = xdr_encode_hyper(p, arg->clientid); in encode_openhdr()
1421 *p++ = cpu_to_be32(24); in encode_openhdr()
1422 p = xdr_encode_opaque_fixed(p, "open id:", 8); in encode_openhdr()
1423 *p++ = cpu_to_be32(arg->server->s_dev); in encode_openhdr()
1424 *p++ = cpu_to_be32(arg->id.uniquifier); in encode_openhdr()
1425 xdr_encode_hyper(p, arg->id.create_time); in encode_openhdr()
1430 __be32 *p; in encode_createmode() local
1432 p = reserve_space(xdr, 4); in encode_createmode()
1435 *p = cpu_to_be32(NFS4_CREATE_UNCHECKED); in encode_createmode()
1440 *p = cpu_to_be32(NFS4_CREATE_GUARDED); in encode_createmode()
1445 *p = cpu_to_be32(NFS4_CREATE_EXCLUSIVE); in encode_createmode()
1449 *p = cpu_to_be32(NFS4_CREATE_EXCLUSIVE4_1); in encode_createmode()
1458 __be32 *p; in encode_opentype() local
1460 p = reserve_space(xdr, 4); in encode_opentype()
1463 *p = cpu_to_be32(NFS4_OPEN_NOCREATE); in encode_opentype()
1466 *p = cpu_to_be32(NFS4_OPEN_CREATE); in encode_opentype()
1473 __be32 *p; in encode_delegation_type() local
1475 p = reserve_space(xdr, 4); in encode_delegation_type()
1478 *p = cpu_to_be32(NFS4_OPEN_DELEGATE_NONE); in encode_delegation_type()
1481 *p = cpu_to_be32(NFS4_OPEN_DELEGATE_READ); in encode_delegation_type()
1484 *p = cpu_to_be32(NFS4_OPEN_DELEGATE_WRITE); in encode_delegation_type()
1493 __be32 *p; in encode_claim_null() local
1495 p = reserve_space(xdr, 4); in encode_claim_null()
1496 *p = cpu_to_be32(NFS4_OPEN_CLAIM_NULL); in encode_claim_null()
1502 __be32 *p; in encode_claim_previous() local
1504 p = reserve_space(xdr, 4); in encode_claim_previous()
1505 *p = cpu_to_be32(NFS4_OPEN_CLAIM_PREVIOUS); in encode_claim_previous()
1511 __be32 *p; in encode_claim_delegate_cur() local
1513 p = reserve_space(xdr, 4); in encode_claim_delegate_cur()
1514 *p = cpu_to_be32(NFS4_OPEN_CLAIM_DELEGATE_CUR); in encode_claim_delegate_cur()
1521 __be32 *p; in encode_claim_fh() local
1523 p = reserve_space(xdr, 4); in encode_claim_fh()
1524 *p = cpu_to_be32(NFS4_OPEN_CLAIM_FH); in encode_claim_fh()
1529 __be32 *p; in encode_claim_delegate_cur_fh() local
1531 p = reserve_space(xdr, 4); in encode_claim_delegate_cur_fh()
1532 *p = cpu_to_be32(NFS4_OPEN_CLAIM_DELEG_CUR_FH); in encode_claim_delegate_cur_fh()
1592 __be32 *p; in encode_read() local
1597 p = reserve_space(xdr, 12); in encode_read()
1598 p = xdr_encode_hyper(p, args->offset); in encode_read()
1599 *p = cpu_to_be32(args->count); in encode_read()
1610 __be32 *p, verf[2]; in encode_readdir() local
1635 p = reserve_space(xdr, 12 + (attrlen << 2)); in encode_readdir()
1636 *p++ = cpu_to_be32(dircount); in encode_readdir()
1637 *p++ = cpu_to_be32(maxcount); in encode_readdir()
1638 *p++ = cpu_to_be32(attrlen); in encode_readdir()
1640 *p++ = cpu_to_be32(attrs[i]); in encode_readdir()
1731 __be32 *p; in encode_setclientid() local
1738 p = reserve_space(xdr, 4); in encode_setclientid()
1739 *p = cpu_to_be32(setclientid->sc_prog); in encode_setclientid()
1742 p = reserve_space(xdr, 4); in encode_setclientid()
1743 *p = cpu_to_be32(setclientid->sc_clnt->cl_cb_ident); in encode_setclientid()
1757 __be32 *p; in encode_write() local
1762 p = reserve_space(xdr, 16); in encode_write()
1763 p = xdr_encode_hyper(p, args->offset); in encode_write()
1764 *p++ = cpu_to_be32(args->stable); in encode_write()
1765 *p = cpu_to_be32(args->count); in encode_write()
1788 __be32 *p; in encode_bind_conn_to_session() local
1793 p = xdr_reserve_space(xdr, 8); in encode_bind_conn_to_session()
1794 *p++ = cpu_to_be32(args->dir); in encode_bind_conn_to_session()
1795 *p = (args->use_conn_in_rdma_mode) ? cpu_to_be32(1) : cpu_to_be32(0); in encode_bind_conn_to_session()
1810 __be32 *p; in encode_exchange_id() local
1851 p = reserve_space(xdr, 12); in encode_exchange_id()
1852 p = xdr_encode_hyper(p, 0); in encode_exchange_id()
1853 *p = cpu_to_be32(0); in encode_exchange_id()
1862 __be32 *p; in encode_create_session() local
1876 p = reserve_space(xdr, 16 + 2*28 + 20 + clnt->cl_nodelen + 12); in encode_create_session()
1877 p = xdr_encode_hyper(p, args->clientid); in encode_create_session()
1878 *p++ = cpu_to_be32(args->seqid); /*Sequence id */ in encode_create_session()
1879 *p++ = cpu_to_be32(args->flags); /*flags */ in encode_create_session()
1882 *p++ = cpu_to_be32(0); /* header padding size */ in encode_create_session()
1883 *p++ = cpu_to_be32(args->fc_attrs.max_rqst_sz); /* max req size */ in encode_create_session()
1884 *p++ = cpu_to_be32(args->fc_attrs.max_resp_sz); /* max resp size */ in encode_create_session()
1885 *p++ = cpu_to_be32(max_resp_sz_cached); /* Max resp sz cached */ in encode_create_session()
1886 *p++ = cpu_to_be32(args->fc_attrs.max_ops); /* max operations */ in encode_create_session()
1887 *p++ = cpu_to_be32(args->fc_attrs.max_reqs); /* max requests */ in encode_create_session()
1888 *p++ = cpu_to_be32(0); /* rdmachannel_attrs */ in encode_create_session()
1891 *p++ = cpu_to_be32(0); /* header padding size */ in encode_create_session()
1892 *p++ = cpu_to_be32(args->bc_attrs.max_rqst_sz); /* max req size */ in encode_create_session()
1893 *p++ = cpu_to_be32(args->bc_attrs.max_resp_sz); /* max resp size */ in encode_create_session()
1894 *p++ = cpu_to_be32(args->bc_attrs.max_resp_sz_cached); /* Max resp sz cached */ in encode_create_session()
1895 *p++ = cpu_to_be32(args->bc_attrs.max_ops); /* max operations */ in encode_create_session()
1896 *p++ = cpu_to_be32(args->bc_attrs.max_reqs); /* max requests */ in encode_create_session()
1897 *p++ = cpu_to_be32(0); /* rdmachannel_attrs */ in encode_create_session()
1899 *p++ = cpu_to_be32(args->cb_program); /* cb_program */ in encode_create_session()
1900 *p++ = cpu_to_be32(1); in encode_create_session()
1901 *p++ = cpu_to_be32(RPC_AUTH_UNIX); /* auth_sys */ in encode_create_session()
1904 *p++ = cpu_to_be32(ktime_to_ns(nn->boot_time)); /* stamp */ in encode_create_session()
1905 p = xdr_encode_array(p, clnt->cl_nodename, clnt->cl_nodelen); in encode_create_session()
1906 *p++ = cpu_to_be32(0); /* UID */ in encode_create_session()
1907 *p++ = cpu_to_be32(0); /* GID */ in encode_create_session()
1908 *p = cpu_to_be32(0); /* No more gids */ in encode_create_session()
1944 __be32 *p; in encode_sequence() local
1965 p = reserve_space(xdr, NFS4_MAX_SESSIONID_LEN + 16); in encode_sequence()
1966 p = xdr_encode_opaque_fixed(p, session->sess_id.data, NFS4_MAX_SESSIONID_LEN); in encode_sequence()
1967 *p++ = cpu_to_be32(slot->seq_nr); in encode_sequence()
1968 *p++ = cpu_to_be32(slot->slot_nr); in encode_sequence()
1969 *p++ = cpu_to_be32(tp->highest_used_slotid); in encode_sequence()
1970 *p = cpu_to_be32(args->sa_cache_this); in encode_sequence()
1980 __be32 *p; in encode_getdeviceinfo() local
1983 p = reserve_space(xdr, NFS4_DEVICEID4_SIZE + 4 + 4); in encode_getdeviceinfo()
1984 p = xdr_encode_opaque_fixed(p, args->pdev->dev_id.data, in encode_getdeviceinfo()
1986 *p++ = cpu_to_be32(args->pdev->layout_type); in encode_getdeviceinfo()
1987 *p++ = cpu_to_be32(args->pdev->maxcount); /* gdia_maxcount */ in encode_getdeviceinfo()
1989 p = reserve_space(xdr, 4 + 4); in encode_getdeviceinfo()
1990 *p++ = cpu_to_be32(1); /* bitmap length */ in encode_getdeviceinfo()
1991 *p++ = cpu_to_be32(args->notify_types); in encode_getdeviceinfo()
1999 __be32 *p; in encode_layoutget() local
2002 p = reserve_space(xdr, 36); in encode_layoutget()
2003 *p++ = cpu_to_be32(0); /* Signal layout available */ in encode_layoutget()
2004 *p++ = cpu_to_be32(args->type); in encode_layoutget()
2005 *p++ = cpu_to_be32(args->range.iomode); in encode_layoutget()
2006 p = xdr_encode_hyper(p, args->range.offset); in encode_layoutget()
2007 p = xdr_encode_hyper(p, args->range.length); in encode_layoutget()
2008 p = xdr_encode_hyper(p, args->minlength); in encode_layoutget()
2027 __be32 *p; in encode_layoutcommit() local
2033 p = reserve_space(xdr, 20); in encode_layoutcommit()
2035 p = xdr_encode_hyper(p, 0); /* offset */ in encode_layoutcommit()
2036 p = xdr_encode_hyper(p, args->lastbytewritten + 1); /* length */ in encode_layoutcommit()
2037 *p = cpu_to_be32(0); /* reclaim */ in encode_layoutcommit()
2040 p = reserve_space(xdr, 20); in encode_layoutcommit()
2041 *p++ = cpu_to_be32(1); /* newoffset = TRUE */ in encode_layoutcommit()
2042 p = xdr_encode_hyper(p, args->lastbytewritten); in encode_layoutcommit()
2044 p = reserve_space(xdr, 12); in encode_layoutcommit()
2045 *p++ = cpu_to_be32(0); /* newoffset = FALSE */ in encode_layoutcommit()
2047 *p++ = cpu_to_be32(0); /* Never send time_modify_changed */ in encode_layoutcommit()
2048 *p++ = cpu_to_be32(NFS_SERVER(args->inode)->pnfs_curr_ld->id);/* type */ in encode_layoutcommit()
2063 __be32 *p; in encode_layoutreturn() local
2066 p = reserve_space(xdr, 16); in encode_layoutreturn()
2067 *p++ = cpu_to_be32(0); /* reclaim. always 0 for now */ in encode_layoutreturn()
2068 *p++ = cpu_to_be32(args->layout_type); in encode_layoutreturn()
2069 *p++ = cpu_to_be32(args->range.iomode); in encode_layoutreturn()
2070 *p = cpu_to_be32(RETURN_FILE); in encode_layoutreturn()
2071 p = reserve_space(xdr, 16); in encode_layoutreturn()
2072 p = xdr_encode_hyper(p, args->range.offset); in encode_layoutreturn()
2073 p = xdr_encode_hyper(p, args->range.length); in encode_layoutreturn()
3212 __be32 *p; in __decode_op_hdr() local
3216 p = xdr_inline_decode(xdr, 8); in __decode_op_hdr()
3217 if (unlikely(!p)) in __decode_op_hdr()
3219 opnum = be32_to_cpup(p++); in __decode_op_hdr()
3222 if (unlikely(*p != cpu_to_be32(NFS_OK))) in __decode_op_hdr()
3227 nfserr = be32_to_cpup(p); in __decode_op_hdr()
3251 __be32 *p; in decode_ace() local
3255 p = xdr_inline_decode(xdr, 12); in decode_ace()
3256 if (unlikely(!p)) in decode_ace()
3283 __be32 *p; in decode_attr_length() local
3285 p = xdr_inline_decode(xdr, 4); in decode_attr_length()
3286 if (unlikely(!p)) in decode_attr_length()
3288 *attrlen = be32_to_cpup(p); in decode_attr_length()
3310 __be32 *p; in decode_attr_type() local
3317 p = xdr_inline_decode(xdr, 4); in decode_attr_type()
3318 if (unlikely(!p)) in decode_attr_type()
3320 *type = be32_to_cpup(p); in decode_attr_type()
3335 __be32 *p; in decode_attr_fh_expire_type() local
3341 p = xdr_inline_decode(xdr, 4); in decode_attr_fh_expire_type()
3342 if (unlikely(!p)) in decode_attr_fh_expire_type()
3344 *type = be32_to_cpup(p); in decode_attr_fh_expire_type()
3353 __be32 *p; in decode_attr_change() local
3360 p = xdr_inline_decode(xdr, 8); in decode_attr_change()
3361 if (unlikely(!p)) in decode_attr_change()
3363 xdr_decode_hyper(p, change); in decode_attr_change()
3374 __be32 *p; in decode_attr_size() local
3381 p = xdr_inline_decode(xdr, 8); in decode_attr_size()
3382 if (unlikely(!p)) in decode_attr_size()
3384 xdr_decode_hyper(p, size); in decode_attr_size()
3394 __be32 *p; in decode_attr_link_support() local
3400 p = xdr_inline_decode(xdr, 4); in decode_attr_link_support()
3401 if (unlikely(!p)) in decode_attr_link_support()
3403 *res = be32_to_cpup(p); in decode_attr_link_support()
3412 __be32 *p; in decode_attr_symlink_support() local
3418 p = xdr_inline_decode(xdr, 4); in decode_attr_symlink_support()
3419 if (unlikely(!p)) in decode_attr_symlink_support()
3421 *res = be32_to_cpup(p); in decode_attr_symlink_support()
3430 __be32 *p; in decode_attr_fsid() local
3438 p = xdr_inline_decode(xdr, 16); in decode_attr_fsid()
3439 if (unlikely(!p)) in decode_attr_fsid()
3441 p = xdr_decode_hyper(p, &fsid->major); in decode_attr_fsid()
3442 xdr_decode_hyper(p, &fsid->minor); in decode_attr_fsid()
3454 __be32 *p; in decode_attr_lease_time() local
3460 p = xdr_inline_decode(xdr, 4); in decode_attr_lease_time()
3461 if (unlikely(!p)) in decode_attr_lease_time()
3463 *res = be32_to_cpup(p); in decode_attr_lease_time()
3472 __be32 *p; in decode_attr_error() local
3477 p = xdr_inline_decode(xdr, 4); in decode_attr_error()
3478 if (unlikely(!p)) in decode_attr_error()
3481 *res = -be32_to_cpup(p); in decode_attr_error()
3504 __be32 *p; in decode_attr_filehandle() local
3513 p = xdr_inline_decode(xdr, 4); in decode_attr_filehandle()
3514 if (unlikely(!p)) in decode_attr_filehandle()
3516 len = be32_to_cpup(p); in decode_attr_filehandle()
3522 p = xdr_inline_decode(xdr, len); in decode_attr_filehandle()
3523 if (unlikely(!p)) in decode_attr_filehandle()
3526 memcpy(fh->data, p, len); in decode_attr_filehandle()
3536 __be32 *p; in decode_attr_aclsupport() local
3542 p = xdr_inline_decode(xdr, 4); in decode_attr_aclsupport()
3543 if (unlikely(!p)) in decode_attr_aclsupport()
3545 *res = be32_to_cpup(p); in decode_attr_aclsupport()
3554 __be32 *p; in decode_attr_case_insensitive() local
3560 p = xdr_inline_decode(xdr, 4); in decode_attr_case_insensitive()
3561 if (unlikely(!p)) in decode_attr_case_insensitive()
3563 *res = be32_to_cpup(p); in decode_attr_case_insensitive()
3572 __be32 *p; in decode_attr_case_preserving() local
3578 p = xdr_inline_decode(xdr, 4); in decode_attr_case_preserving()
3579 if (unlikely(!p)) in decode_attr_case_preserving()
3581 *res = be32_to_cpup(p); in decode_attr_case_preserving()
3590 __be32 *p; in decode_attr_fileid() local
3597 p = xdr_inline_decode(xdr, 8); in decode_attr_fileid()
3598 if (unlikely(!p)) in decode_attr_fileid()
3600 xdr_decode_hyper(p, fileid); in decode_attr_fileid()
3610 __be32 *p; in decode_attr_mounted_on_fileid() local
3617 p = xdr_inline_decode(xdr, 8); in decode_attr_mounted_on_fileid()
3618 if (unlikely(!p)) in decode_attr_mounted_on_fileid()
3620 xdr_decode_hyper(p, fileid); in decode_attr_mounted_on_fileid()
3630 __be32 *p; in decode_attr_files_avail() local
3637 p = xdr_inline_decode(xdr, 8); in decode_attr_files_avail()
3638 if (unlikely(!p)) in decode_attr_files_avail()
3640 xdr_decode_hyper(p, res); in decode_attr_files_avail()
3649 __be32 *p; in decode_attr_files_free() local
3656 p = xdr_inline_decode(xdr, 8); in decode_attr_files_free()
3657 if (unlikely(!p)) in decode_attr_files_free()
3659 xdr_decode_hyper(p, res); in decode_attr_files_free()
3668 __be32 *p; in decode_attr_files_total() local
3675 p = xdr_inline_decode(xdr, 8); in decode_attr_files_total()
3676 if (unlikely(!p)) in decode_attr_files_total()
3678 xdr_decode_hyper(p, res); in decode_attr_files_total()
3688 __be32 *p; in decode_pathname() local
3691 p = xdr_inline_decode(xdr, 4); in decode_pathname()
3692 if (unlikely(!p)) in decode_pathname()
3694 n = be32_to_cpup(p); in decode_pathname()
3730 __be32 *p; in decode_attr_fs_locations() local
3747 p = xdr_inline_decode(xdr, 4); in decode_attr_fs_locations()
3748 if (unlikely(!p)) in decode_attr_fs_locations()
3750 n = be32_to_cpup(p); in decode_attr_fs_locations()
3758 p = xdr_inline_decode(xdr, 4); in decode_attr_fs_locations()
3759 if (unlikely(!p)) in decode_attr_fs_locations()
3761 m = be32_to_cpup(p); in decode_attr_fs_locations()
3805 __be32 *p; in decode_attr_maxfilesize() local
3812 p = xdr_inline_decode(xdr, 8); in decode_attr_maxfilesize()
3813 if (unlikely(!p)) in decode_attr_maxfilesize()
3815 xdr_decode_hyper(p, res); in decode_attr_maxfilesize()
3824 __be32 *p; in decode_attr_maxlink() local
3831 p = xdr_inline_decode(xdr, 4); in decode_attr_maxlink()
3832 if (unlikely(!p)) in decode_attr_maxlink()
3834 *maxlink = be32_to_cpup(p); in decode_attr_maxlink()
3843 __be32 *p; in decode_attr_maxname() local
3850 p = xdr_inline_decode(xdr, 4); in decode_attr_maxname()
3851 if (unlikely(!p)) in decode_attr_maxname()
3853 *maxname = be32_to_cpup(p); in decode_attr_maxname()
3862 __be32 *p; in decode_attr_maxread() local
3870 p = xdr_inline_decode(xdr, 8); in decode_attr_maxread()
3871 if (unlikely(!p)) in decode_attr_maxread()
3873 xdr_decode_hyper(p, &maxread); in decode_attr_maxread()
3885 __be32 *p; in decode_attr_maxwrite() local
3893 p = xdr_inline_decode(xdr, 8); in decode_attr_maxwrite()
3894 if (unlikely(!p)) in decode_attr_maxwrite()
3896 xdr_decode_hyper(p, &maxwrite); in decode_attr_maxwrite()
3909 __be32 *p; in decode_attr_mode() local
3916 p = xdr_inline_decode(xdr, 4); in decode_attr_mode()
3917 if (unlikely(!p)) in decode_attr_mode()
3919 tmp = be32_to_cpup(p); in decode_attr_mode()
3930 __be32 *p; in decode_attr_nlink() local
3937 p = xdr_inline_decode(xdr, 4); in decode_attr_nlink()
3938 if (unlikely(!p)) in decode_attr_nlink()
3940 *nlink = be32_to_cpup(p); in decode_attr_nlink()
3966 char *p; in decode_attr_owner() local
3982 len = xdr_stream_decode_opaque_inline(xdr, (void **)&p, in decode_attr_owner()
3984 if (len <= 0 || nfs_map_name_to_uid(server, p, len, uid) != 0) in decode_attr_owner()
4000 char *p; in decode_attr_group() local
4016 len = xdr_stream_decode_opaque_inline(xdr, (void **)&p, in decode_attr_group()
4018 if (len <= 0 || nfs_map_group_to_gid(server, p, len, gid) != 0) in decode_attr_group()
4032 __be32 *p; in decode_attr_rdev() local
4041 p = xdr_inline_decode(xdr, 8); in decode_attr_rdev()
4042 if (unlikely(!p)) in decode_attr_rdev()
4044 major = be32_to_cpup(p++); in decode_attr_rdev()
4045 minor = be32_to_cpup(p); in decode_attr_rdev()
4058 __be32 *p; in decode_attr_space_avail() local
4065 p = xdr_inline_decode(xdr, 8); in decode_attr_space_avail()
4066 if (unlikely(!p)) in decode_attr_space_avail()
4068 xdr_decode_hyper(p, res); in decode_attr_space_avail()
4077 __be32 *p; in decode_attr_space_free() local
4084 p = xdr_inline_decode(xdr, 8); in decode_attr_space_free()
4085 if (unlikely(!p)) in decode_attr_space_free()
4087 xdr_decode_hyper(p, res); in decode_attr_space_free()
4096 __be32 *p; in decode_attr_space_total() local
4103 p = xdr_inline_decode(xdr, 8); in decode_attr_space_total()
4104 if (unlikely(!p)) in decode_attr_space_total()
4106 xdr_decode_hyper(p, res); in decode_attr_space_total()
4115 __be32 *p; in decode_attr_space_used() local
4122 p = xdr_inline_decode(xdr, 8); in decode_attr_space_used()
4123 if (unlikely(!p)) in decode_attr_space_used()
4125 xdr_decode_hyper(p, used); in decode_attr_space_used()
4135 xdr_decode_nfstime4(__be32 *p, struct timespec64 *t) in xdr_decode_nfstime4() argument
4139 p = xdr_decode_hyper(p, &sec); in xdr_decode_nfstime4()
4141 t->tv_nsec = be32_to_cpup(p++); in xdr_decode_nfstime4()
4142 return p; in xdr_decode_nfstime4()
4147 __be32 *p; in decode_attr_time() local
4149 p = xdr_inline_decode(xdr, nfstime4_maxsz << 2); in decode_attr_time()
4150 if (unlikely(!p)) in decode_attr_time()
4152 xdr_decode_nfstime4(p, time); in decode_attr_time()
4216 __be32 *p; in decode_attr_security_label() local
4222 p = xdr_inline_decode(xdr, 4); in decode_attr_security_label()
4223 if (unlikely(!p)) in decode_attr_security_label()
4225 lfs = be32_to_cpup(p++); in decode_attr_security_label()
4226 p = xdr_inline_decode(xdr, 4); in decode_attr_security_label()
4227 if (unlikely(!p)) in decode_attr_security_label()
4229 pi = be32_to_cpup(p++); in decode_attr_security_label()
4230 p = xdr_inline_decode(xdr, 4); in decode_attr_security_label()
4231 if (unlikely(!p)) in decode_attr_security_label()
4233 len = be32_to_cpup(p++); in decode_attr_security_label()
4234 p = xdr_inline_decode(xdr, len); in decode_attr_security_label()
4235 if (unlikely(!p)) in decode_attr_security_label()
4242 memcpy(label->label, p, len); in decode_attr_security_label()
4280 __be32 *p; in decode_attr_xattrsupport() local
4286 p = xdr_inline_decode(xdr, 4); in decode_attr_xattrsupport()
4287 if (unlikely(!p)) in decode_attr_xattrsupport()
4289 *res = be32_to_cpup(p); in decode_attr_xattrsupport()
4316 __be32 *p; in decode_change_info() local
4318 p = xdr_inline_decode(xdr, 20); in decode_change_info()
4319 if (unlikely(!p)) in decode_change_info()
4321 cinfo->atomic = be32_to_cpup(p++); in decode_change_info()
4322 p = xdr_decode_hyper(p, &cinfo->before); in decode_change_info()
4323 xdr_decode_hyper(p, &cinfo->after); in decode_change_info()
4329 __be32 *p; in decode_access() local
4336 p = xdr_inline_decode(xdr, 8); in decode_access()
4337 if (unlikely(!p)) in decode_access()
4339 supp = be32_to_cpup(p++); in decode_access()
4340 acc = be32_to_cpup(p); in decode_access()
4422 __be32 *p; in decode_create() local
4431 p = xdr_inline_decode(xdr, 4); in decode_create()
4432 if (unlikely(!p)) in decode_create()
4434 bmlen = be32_to_cpup(p); in decode_create()
4435 p = xdr_inline_decode(xdr, bmlen << 2); in decode_create()
4436 if (likely(p)) in decode_create()
4543 __be32 *p; in decode_threshold_hint() local
4547 p = xdr_inline_decode(xdr, 8); in decode_threshold_hint()
4548 if (unlikely(!p)) in decode_threshold_hint()
4550 xdr_decode_hyper(p, res); in decode_threshold_hint()
4558 __be32 *p; in decode_first_threshold_item4() local
4564 p = xdr_inline_decode(xdr, 4); in decode_first_threshold_item4()
4565 if (unlikely(!p)) in decode_first_threshold_item4()
4567 res->l_type = be32_to_cpup(p); in decode_first_threshold_item4()
4612 __be32 *p; in decode_attr_mdsthreshold() local
4622 p = xdr_inline_decode(xdr, 4); in decode_attr_mdsthreshold()
4623 if (unlikely(!p)) in decode_attr_mdsthreshold()
4625 num = be32_to_cpup(p); in decode_attr_mdsthreshold()
4809 __be32 *p; in decode_pnfs_layout_types() local
4812 p = xdr_inline_decode(xdr, 4); in decode_pnfs_layout_types()
4813 if (unlikely(!p)) in decode_pnfs_layout_types()
4815 fsinfo->nlayouttypes = be32_to_cpup(p); in decode_pnfs_layout_types()
4822 p = xdr_inline_decode(xdr, fsinfo->nlayouttypes * 4); in decode_pnfs_layout_types()
4823 if (unlikely(!p)) in decode_pnfs_layout_types()
4834 fsinfo->layouttype[i] = be32_to_cpup(p++); in decode_pnfs_layout_types()
4863 __be32 *p; in decode_attr_layout_blksize() local
4868 p = xdr_inline_decode(xdr, 4); in decode_attr_layout_blksize()
4869 if (unlikely(!p)) in decode_attr_layout_blksize()
4871 *res = be32_to_cpup(p); in decode_attr_layout_blksize()
4883 __be32 *p; in decode_attr_clone_blksize() local
4888 p = xdr_inline_decode(xdr, 4); in decode_attr_clone_blksize()
4889 if (unlikely(!p)) in decode_attr_clone_blksize()
4891 *res = be32_to_cpup(p); in decode_attr_clone_blksize()
4989 __be32 *p; in decode_getfh() local
5000 p = xdr_inline_decode(xdr, 4); in decode_getfh()
5001 if (unlikely(!p)) in decode_getfh()
5003 len = be32_to_cpup(p); in decode_getfh()
5009 p = xdr_inline_decode(xdr, len); in decode_getfh()
5010 if (unlikely(!p)) in decode_getfh()
5012 memcpy(fh->data, p, len); in decode_getfh()
5032 __be32 *p; in decode_lock_denied() local
5035 p = xdr_inline_decode(xdr, 32); /* read 32 bytes */ in decode_lock_denied()
5036 if (unlikely(!p)) in decode_lock_denied()
5038 p = xdr_decode_hyper(p, &offset); /* read 2 8-byte long words */ in decode_lock_denied()
5039 p = xdr_decode_hyper(p, &length); in decode_lock_denied()
5040 type = be32_to_cpup(p++); /* 4 byte read */ in decode_lock_denied()
5051 p = xdr_decode_hyper(p, &clientid); /* read 8 bytes */ in decode_lock_denied()
5052 namelen = be32_to_cpup(p); /* read 4 bytes */ /* have read all 32 bytes now */ in decode_lock_denied()
5053 p = xdr_inline_decode(xdr, namelen); /* variable size field */ in decode_lock_denied()
5054 if (likely(!p)) in decode_lock_denied()
5119 __be32 *p; in decode_space_limit() local
5123 p = xdr_inline_decode(xdr, 12); in decode_space_limit()
5124 if (unlikely(!p)) in decode_space_limit()
5126 limit_type = be32_to_cpup(p++); in decode_space_limit()
5129 xdr_decode_hyper(p, &maxsize); in decode_space_limit()
5132 nblocks = be32_to_cpup(p++); in decode_space_limit()
5133 blocksize = be32_to_cpup(p); in decode_space_limit()
5145 __be32 *p; in decode_rw_delegation() local
5151 p = xdr_inline_decode(xdr, 4); in decode_rw_delegation()
5152 if (unlikely(!p)) in decode_rw_delegation()
5154 res->do_recall = be32_to_cpup(p); in decode_rw_delegation()
5170 __be32 *p; in decode_no_delegation() local
5173 p = xdr_inline_decode(xdr, 4); in decode_no_delegation()
5174 if (unlikely(!p)) in decode_no_delegation()
5176 why_no_delegation = be32_to_cpup(p); in decode_no_delegation()
5188 __be32 *p; in decode_delegation() local
5191 p = xdr_inline_decode(xdr, 4); in decode_delegation()
5192 if (unlikely(!p)) in decode_delegation()
5194 delegation_type = be32_to_cpup(p); in decode_delegation()
5210 __be32 *p; in decode_open() local
5225 p = xdr_inline_decode(xdr, 8); in decode_open()
5226 if (unlikely(!p)) in decode_open()
5228 res->rflags = be32_to_cpup(p++); in decode_open()
5229 bmlen = be32_to_cpup(p); in decode_open()
5233 p = xdr_inline_decode(xdr, bmlen << 2); in decode_open()
5234 if (unlikely(!p)) in decode_open()
5238 res->attrset[i] = be32_to_cpup(p++); in decode_open()
5285 __be32 *p; in decode_read() local
5292 p = xdr_inline_decode(xdr, 8); in decode_read()
5293 if (unlikely(!p)) in decode_read()
5295 eof = be32_to_cpup(p++); in decode_read()
5296 count = be32_to_cpup(p); in decode_read()
5329 __be32 *p; in decode_readlink() local
5337 p = xdr_inline_decode(xdr, 4); in decode_readlink()
5338 if (unlikely(!p)) in decode_readlink()
5340 len = be32_to_cpup(p); in decode_readlink()
5476 __be32 *p; in decode_setclientid() local
5480 p = xdr_inline_decode(xdr, 8); in decode_setclientid()
5481 if (unlikely(!p)) in decode_setclientid()
5483 opnum = be32_to_cpup(p++); in decode_setclientid()
5489 nfserr = be32_to_cpup(p); in decode_setclientid()
5491 p = xdr_inline_decode(xdr, 8 + NFS4_VERIFIER_SIZE); in decode_setclientid()
5492 if (unlikely(!p)) in decode_setclientid()
5494 p = xdr_decode_hyper(p, &res->clientid); in decode_setclientid()
5495 memcpy(res->confirm.data, p, NFS4_VERIFIER_SIZE); in decode_setclientid()
5500 p = xdr_inline_decode(xdr, 4); in decode_setclientid()
5501 if (unlikely(!p)) in decode_setclientid()
5503 len = be32_to_cpup(p); in decode_setclientid()
5504 p = xdr_inline_decode(xdr, len); in decode_setclientid()
5505 if (unlikely(!p)) in decode_setclientid()
5509 p = xdr_inline_decode(xdr, 4); in decode_setclientid()
5510 if (unlikely(!p)) in decode_setclientid()
5512 len = be32_to_cpup(p); in decode_setclientid()
5513 p = xdr_inline_decode(xdr, len); in decode_setclientid()
5514 if (unlikely(!p)) in decode_setclientid()
5530 __be32 *p; in decode_write() local
5537 p = xdr_inline_decode(xdr, 8); in decode_write()
5538 if (unlikely(!p)) in decode_write()
5540 res->count = be32_to_cpup(p++); in decode_write()
5541 res->verf->committed = be32_to_cpup(p++); in decode_write()
5554 __be32 *p; in decode_secinfo_gss() local
5556 p = xdr_inline_decode(xdr, 4); in decode_secinfo_gss()
5557 if (unlikely(!p)) in decode_secinfo_gss()
5559 oid_len = be32_to_cpup(p); in decode_secinfo_gss()
5563 p = xdr_inline_decode(xdr, oid_len); in decode_secinfo_gss()
5564 if (unlikely(!p)) in decode_secinfo_gss()
5566 memcpy(flavor->flavor_info.oid.data, p, oid_len); in decode_secinfo_gss()
5569 p = xdr_inline_decode(xdr, 8); in decode_secinfo_gss()
5570 if (unlikely(!p)) in decode_secinfo_gss()
5572 flavor->flavor_info.qop = be32_to_cpup(p++); in decode_secinfo_gss()
5573 flavor->flavor_info.service = be32_to_cpup(p); in decode_secinfo_gss()
5583 __be32 *p; in decode_secinfo_common() local
5585 p = xdr_inline_decode(xdr, 4); in decode_secinfo_common()
5586 if (unlikely(!p)) in decode_secinfo_common()
5590 num_flavors = be32_to_cpup(p); in decode_secinfo_common()
5597 p = xdr_inline_decode(xdr, 4); in decode_secinfo_common()
5598 if (unlikely(!p)) in decode_secinfo_common()
5600 sec_flavor->flavor = be32_to_cpup(p); in decode_secinfo_common()
5643 __be32 *p; in decode_exchange_id() local
5653 p = xdr_inline_decode(xdr, 8); in decode_exchange_id()
5654 if (unlikely(!p)) in decode_exchange_id()
5656 xdr_decode_hyper(p, &res->clientid); in decode_exchange_id()
5657 p = xdr_inline_decode(xdr, 12); in decode_exchange_id()
5658 if (unlikely(!p)) in decode_exchange_id()
5660 res->seqid = be32_to_cpup(p++); in decode_exchange_id()
5661 res->flags = be32_to_cpup(p++); in decode_exchange_id()
5663 res->state_protect.how = be32_to_cpup(p); in decode_exchange_id()
5681 p = xdr_inline_decode(xdr, 8); in decode_exchange_id()
5682 if (unlikely(!p)) in decode_exchange_id()
5684 p = xdr_decode_hyper(p, &res->server_owner->minor_id); in decode_exchange_id()
5701 p = xdr_inline_decode(xdr, 4); in decode_exchange_id()
5702 if (unlikely(!p)) in decode_exchange_id()
5704 impl_id_count = be32_to_cpup(p++); in decode_exchange_id()
5720 p = xdr_inline_decode(xdr, 12); in decode_exchange_id()
5721 if (unlikely(!p)) in decode_exchange_id()
5723 p = xdr_decode_hyper(p, &res->impl_id->date.seconds); in decode_exchange_id()
5724 res->impl_id->date.nseconds = be32_to_cpup(p); in decode_exchange_id()
5734 __be32 *p; in decode_chan_attrs() local
5737 p = xdr_inline_decode(xdr, 28); in decode_chan_attrs()
5738 if (unlikely(!p)) in decode_chan_attrs()
5740 val = be32_to_cpup(p++); /* headerpadsz */ in decode_chan_attrs()
5743 attrs->max_rqst_sz = be32_to_cpup(p++); in decode_chan_attrs()
5744 attrs->max_resp_sz = be32_to_cpup(p++); in decode_chan_attrs()
5745 attrs->max_resp_sz_cached = be32_to_cpup(p++); in decode_chan_attrs()
5746 attrs->max_ops = be32_to_cpup(p++); in decode_chan_attrs()
5747 attrs->max_reqs = be32_to_cpup(p++); in decode_chan_attrs()
5748 nr_attrs = be32_to_cpup(p); in decode_chan_attrs()
5755 p = xdr_inline_decode(xdr, 4); /* skip rdma_attrs */ in decode_chan_attrs()
5756 if (unlikely(!p)) in decode_chan_attrs()
5770 __be32 *p; in decode_bind_conn_to_session() local
5780 p = xdr_inline_decode(xdr, 8); in decode_bind_conn_to_session()
5781 if (unlikely(!p)) in decode_bind_conn_to_session()
5784 res->dir = be32_to_cpup(p++); in decode_bind_conn_to_session()
5787 if (be32_to_cpup(p) == 0) in decode_bind_conn_to_session()
5798 __be32 *p; in decode_create_session() local
5808 p = xdr_inline_decode(xdr, 8); in decode_create_session()
5809 if (unlikely(!p)) in decode_create_session()
5811 res->seqid = be32_to_cpup(p++); in decode_create_session()
5812 res->flags = be32_to_cpup(p); in decode_create_session()
5846 __be32 *p; in decode_sequence() local
5872 p = xdr_inline_decode(xdr, 20); in decode_sequence()
5873 if (unlikely(!p)) in decode_sequence()
5877 dummy = be32_to_cpup(p++); in decode_sequence()
5883 dummy = be32_to_cpup(p++); in decode_sequence()
5889 res->sr_highest_slotid = be32_to_cpup(p++); in decode_sequence()
5891 res->sr_target_highest_slotid = be32_to_cpup(p++); in decode_sequence()
5893 res->sr_status_flags = be32_to_cpup(p); in decode_sequence()
5917 __be32 *p; in decode_getdeviceinfo() local
5924 p = xdr_inline_decode(xdr, 4); in decode_getdeviceinfo()
5925 if (unlikely(!p)) in decode_getdeviceinfo()
5927 pdev->mincount = be32_to_cpup(p); in decode_getdeviceinfo()
5934 p = xdr_inline_decode(xdr, 8); in decode_getdeviceinfo()
5935 if (unlikely(!p)) in decode_getdeviceinfo()
5937 type = be32_to_cpup(p++); in decode_getdeviceinfo()
5948 pdev->mincount = be32_to_cpup(p); in decode_getdeviceinfo()
5953 p = xdr_inline_decode(xdr, 4); in decode_getdeviceinfo()
5954 if (unlikely(!p)) in decode_getdeviceinfo()
5956 len = be32_to_cpup(p); in decode_getdeviceinfo()
5960 p = xdr_inline_decode(xdr, 4 * len); in decode_getdeviceinfo()
5961 if (unlikely(!p)) in decode_getdeviceinfo()
5964 res->notification = be32_to_cpup(p++); in decode_getdeviceinfo()
5966 if (be32_to_cpup(p++)) { in decode_getdeviceinfo()
5979 __be32 *p; in decode_layoutget() local
5987 p = xdr_inline_decode(xdr, 4); in decode_layoutget()
5988 if (unlikely(!p)) in decode_layoutget()
5990 res->return_on_close = be32_to_cpup(p); in decode_layoutget()
5992 p = xdr_inline_decode(xdr, 4); in decode_layoutget()
5993 if (unlikely(!p)) in decode_layoutget()
5995 layout_count = be32_to_cpup(p); in decode_layoutget()
6003 p = xdr_inline_decode(xdr, 28); in decode_layoutget()
6004 if (unlikely(!p)) in decode_layoutget()
6006 p = xdr_decode_hyper(p, &res->range.offset); in decode_layoutget()
6007 p = xdr_decode_hyper(p, &res->range.length); in decode_layoutget()
6008 res->range.iomode = be32_to_cpup(p++); in decode_layoutget()
6009 res->type = be32_to_cpup(p++); in decode_layoutget()
6010 res->layoutp->len = be32_to_cpup(p); in decode_layoutget()
6050 __be32 *p; in decode_layoutreturn() local
6056 p = xdr_inline_decode(xdr, 4); in decode_layoutreturn()
6057 if (unlikely(!p)) in decode_layoutreturn()
6059 res->lrs_present = be32_to_cpup(p); in decode_layoutreturn()
6071 __be32 *p; in decode_layoutcommit() local
6080 p = xdr_inline_decode(xdr, 4); in decode_layoutcommit()
6081 if (unlikely(!p)) in decode_layoutcommit()
6083 sizechanged = be32_to_cpup(p); in decode_layoutcommit()
6087 p = xdr_inline_decode(xdr, 8); in decode_layoutcommit()
6088 if (unlikely(!p)) in decode_layoutcommit()
6097 __be32 *p; in decode_test_stateid() local
6105 p = xdr_inline_decode(xdr, 4); in decode_test_stateid()
6106 if (unlikely(!p)) in decode_test_stateid()
6108 num_res = be32_to_cpup(p++); in decode_test_stateid()
6112 p = xdr_inline_decode(xdr, 4); in decode_test_stateid()
6113 if (unlikely(!p)) in decode_test_stateid()
6115 res->status = be32_to_cpup(p++); in decode_test_stateid()
7486 __be32 *p = xdr_inline_decode(xdr, 4); in nfs4_decode_dirent() local
7487 if (unlikely(!p)) in nfs4_decode_dirent()
7489 if (*p == xdr_zero) { in nfs4_decode_dirent()
7490 p = xdr_inline_decode(xdr, 4); in nfs4_decode_dirent()
7491 if (unlikely(!p)) in nfs4_decode_dirent()
7493 if (*p == xdr_zero) in nfs4_decode_dirent()
7499 p = xdr_inline_decode(xdr, 12); in nfs4_decode_dirent()
7500 if (unlikely(!p)) in nfs4_decode_dirent()
7502 p = xdr_decode_hyper(p, &new_cookie); in nfs4_decode_dirent()
7503 entry->len = be32_to_cpup(p); in nfs4_decode_dirent()
7505 p = xdr_inline_decode(xdr, entry->len); in nfs4_decode_dirent()
7506 if (unlikely(!p)) in nfs4_decode_dirent()
7508 entry->name = (const char *) p; in nfs4_decode_dirent()