Lines Matching refs:iap

1081 static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap,  in encode_attrs()  argument
1098 if ((iap->ia_valid & ATTR_SIZE) && (attrmask[0] & FATTR4_WORD0_SIZE)) { in encode_attrs()
1102 if (iap->ia_valid & ATTR_MODE) { in encode_attrs()
1111 if ((iap->ia_valid & ATTR_UID) && (attrmask[1] & FATTR4_WORD1_OWNER)) { in encode_attrs()
1112 owner_namelen = nfs_map_uid_to_name(server, iap->ia_uid, owner_name, IDMAP_NAMESZ); in encode_attrs()
1115 from_kuid(&init_user_ns, iap->ia_uid)); in encode_attrs()
1124 if ((iap->ia_valid & ATTR_GID) && in encode_attrs()
1126 owner_grouplen = nfs_map_gid_to_group(server, iap->ia_gid, owner_group, IDMAP_NAMESZ); in encode_attrs()
1129 from_kgid(&init_user_ns, iap->ia_gid)); in encode_attrs()
1138 if (iap->ia_valid & ATTR_ATIME_SET) { in encode_attrs()
1141 } else if (iap->ia_valid & ATTR_ATIME) { in encode_attrs()
1147 if (iap->ia_valid & ATTR_MTIME_SET) { in encode_attrs()
1150 } else if (iap->ia_valid & ATTR_MTIME) { 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()
1173 if (iap->ia_valid & ATTR_ATIME_SET) { in encode_attrs()
1175 p = xdr_encode_nfstime4(p, &iap->ia_atime); in encode_attrs()
1180 if (iap->ia_valid & ATTR_MTIME_SET) { in encode_attrs()
1182 p = xdr_encode_nfstime4(p, &iap->ia_mtime); in encode_attrs()
1193 *p++ = cpu_to_be32(iap->ia_mode & S_IALLUGO); in encode_attrs()
1725 encode_attrs(xdr, arg->iap, arg->label, NULL, server, in encode_setattr()