Home
last modified time | relevance | path

Searched refs:iap (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.15/fs/nfsd/
Dvfs.c306 nfsd_sanitize_attrs(struct inode *inode, struct iattr *iap) in nfsd_sanitize_attrs() argument
309 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs()
310 iap->ia_mode &= S_IALLUGO; in nfsd_sanitize_attrs()
311 iap->ia_mode |= (inode->i_mode & ~S_IALLUGO); in nfsd_sanitize_attrs()
316 ((iap->ia_valid & ATTR_UID) || (iap->ia_valid & ATTR_GID))) { in nfsd_sanitize_attrs()
317 iap->ia_valid |= ATTR_KILL_PRIV; in nfsd_sanitize_attrs()
318 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs()
320 iap->ia_mode &= ~S_ISUID; in nfsd_sanitize_attrs()
321 if (iap->ia_mode & S_IXGRP) in nfsd_sanitize_attrs()
322 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()
[all …]
Dnfsxdr.c131 struct iattr *iap) in svcxdr_decode_sattr() argument
140 iap->ia_valid = 0; in svcxdr_decode_sattr()
148 iap->ia_valid |= ATTR_MODE; in svcxdr_decode_sattr()
149 iap->ia_mode = tmp1; in svcxdr_decode_sattr()
154 iap->ia_uid = make_kuid(nfsd_user_namespace(rqstp), tmp1); in svcxdr_decode_sattr()
155 if (uid_valid(iap->ia_uid)) in svcxdr_decode_sattr()
156 iap->ia_valid |= ATTR_UID; in svcxdr_decode_sattr()
161 iap->ia_gid = make_kgid(nfsd_user_namespace(rqstp), tmp1); in svcxdr_decode_sattr()
162 if (gid_valid(iap->ia_gid)) in svcxdr_decode_sattr()
163 iap->ia_valid |= ATTR_GID; in svcxdr_decode_sattr()
[all …]
Dnfs3xdr.c211 struct iattr *iap) in svcxdr_decode_sattr3() argument
215 iap->ia_valid = 0; in svcxdr_decode_sattr3()
224 iap->ia_valid |= ATTR_MODE; in svcxdr_decode_sattr3()
225 iap->ia_mode = mode; in svcxdr_decode_sattr3()
234 iap->ia_uid = make_kuid(nfsd_user_namespace(rqstp), uid); in svcxdr_decode_sattr3()
235 if (uid_valid(iap->ia_uid)) in svcxdr_decode_sattr3()
236 iap->ia_valid |= ATTR_UID; in svcxdr_decode_sattr3()
245 iap->ia_gid = make_kgid(nfsd_user_namespace(rqstp), gid); in svcxdr_decode_sattr3()
246 if (gid_valid(iap->ia_gid)) in svcxdr_decode_sattr3()
247 iap->ia_valid |= ATTR_GID; in svcxdr_decode_sattr3()
[all …]
Dnfsproc.c53 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr() local
75 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_proc_setattr()
76 iap->ia_mtime.tv_sec == iap->ia_atime.tv_sec) { in nfsd_proc_setattr()
84 time64_t delta = iap->ia_atime.tv_sec - ktime_get_real_seconds(); in nfsd_proc_setattr()
93 setattr_prepare(&init_user_ns, fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr()
99 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_proc_setattr()
103 resp->status = nfsd_setattr(rqstp, fhp, iap, 0, (time64_t)0); in nfsd_proc_setattr()
/Linux-v5.15/drivers/input/mouse/
Delan_i2c_smbus.c151 u8 pattern, bool iap, u8 *version) in elan_smbus_get_version() argument
157 iap ? ETP_SMBUS_IAP_VERSION_CMD : in elan_smbus_get_version()
162 iap ? "IAP" : "FW", error); in elan_smbus_get_version()
206 bool iap, u16 *csum) in elan_smbus_get_checksum() argument
212 iap ? ETP_SMBUS_FW_CHECKSUM_CMD : in elan_smbus_get_checksum()
217 iap ? "IAP" : "FW", error); in elan_smbus_get_checksum()
Delan_i2c_i2c.c271 u8 pattern, bool iap, u8 *version) in elan_i2c_get_version() argument
277 if (!iap) in elan_i2c_get_version()
287 iap ? "IAP" : "FW", error); in elan_i2c_get_version()
292 *version = iap ? val[1] : val[0]; in elan_i2c_get_version()
368 bool iap, u16 *csum) in elan_i2c_get_checksum() argument
374 iap ? ETP_I2C_IAP_CHECKSUM_CMD : in elan_i2c_get_checksum()
379 iap ? "IAP" : "FW", error); in elan_i2c_get_checksum()
Delan_i2c.h84 int (*get_version)(struct i2c_client *client, u8 pattern, bool iap,
88 int (*get_checksum)(struct i2c_client *client, bool iap, u16 *csum);
/Linux-v5.15/drivers/net/ethernet/freescale/
Dfec_main.c1708 unsigned char *iap, tmpaddr[ETH_ALEN]; in fec_get_mac() local
1717 iap = macaddr; in fec_get_mac()
1722 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1727 iap = tmpaddr; in fec_get_mac()
1736 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1739 iap = (unsigned char *)FEC_FLASHMAC; in fec_get_mac()
1744 iap = (unsigned char *)&pdata->mac; in fec_get_mac()
1751 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1756 iap = &tmpaddr[0]; in fec_get_mac()
1762 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
[all …]
/Linux-v5.15/fs/nfs/
Dnfs4xdr.c1081 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()
[all …]
Dnfs4proc.c3317 truncate = (arg->iap->ia_valid & ATTR_SIZE) ? true : false; in _nfs4_do_setattr()
3365 .iap = sattr, in nfs4_do_setattr()
6068 .iap = &sattr, in _nfs4_do_set_security_label()
/Linux-v5.15/include/linux/
Dnfs_xdr.h800 struct iattr * iap; member