Home
last modified time | relevance | path

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

/linux-5.19.10/fs/nfsd/
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 …]
Dvfs.c307 nfsd_sanitize_attrs(struct inode *inode, struct iattr *iap) in nfsd_sanitize_attrs() argument
310 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs()
311 iap->ia_mode &= S_IALLUGO; in nfsd_sanitize_attrs()
312 iap->ia_mode |= (inode->i_mode & ~S_IALLUGO); in nfsd_sanitize_attrs()
317 ((iap->ia_valid & ATTR_UID) || (iap->ia_valid & ATTR_GID))) { in nfsd_sanitize_attrs()
318 iap->ia_valid |= ATTR_KILL_PRIV; in nfsd_sanitize_attrs()
319 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs()
321 iap->ia_mode &= ~S_ISUID; in nfsd_sanitize_attrs()
322 if (iap->ia_mode & S_IXGRP) in nfsd_sanitize_attrs()
323 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()
[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 …]
Dnfs3proc.c234 struct iattr *iap = &argp->attrs; in nfsd3_create_file() local
243 if (!(iap->ia_valid & ATTR_MODE)) in nfsd3_create_file()
244 iap->ia_mode = 0; in nfsd3_create_file()
296 iap->ia_valid &= ATTR_SIZE; in nfsd3_create_file()
313 iap->ia_mode &= ~current_umask(); in nfsd3_create_file()
315 host_err = vfs_create(&init_user_ns, inode, child, iap->ia_mode, true); in nfsd3_create_file()
322 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd3_create_file()
323 iap->ia_valid &= ~ATTR_SIZE; in nfsd3_create_file()
325 iap->ia_valid = ATTR_MTIME | ATTR_ATIME | in nfsd3_create_file()
327 iap->ia_mtime.tv_sec = v_mtime; in nfsd3_create_file()
[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()
Dnfs4proc.c288 struct iattr *iap = &open->op_iattr; in nfsd4_create_file() local
297 if (!(iap->ia_valid & ATTR_MODE)) in nfsd4_create_file()
298 iap->ia_mode = 0; in nfsd4_create_file()
359 open->op_truncate = (iap->ia_valid & ATTR_SIZE) && in nfsd4_create_file()
360 !iap->ia_size; in nfsd4_create_file()
387 iap->ia_mode &= ~current_umask(); in nfsd4_create_file()
395 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd4_create_file()
396 iap->ia_valid &= ~ATTR_SIZE; in nfsd4_create_file()
398 iap->ia_valid = ATTR_MTIME | ATTR_ATIME | in nfsd4_create_file()
400 iap->ia_mtime.tv_sec = v_mtime; in nfsd4_create_file()
[all …]
Dvfs.h73 struct svc_fh *resfhp, struct iattr *iap);
/linux-5.19.10/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-5.19.10/drivers/net/ethernet/freescale/
Dfec_main.c1721 unsigned char *iap, tmpaddr[ETH_ALEN]; in fec_get_mac() local
1730 iap = macaddr; in fec_get_mac()
1735 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1740 iap = tmpaddr; in fec_get_mac()
1749 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1752 iap = (unsigned char *)FEC_FLASHMAC; in fec_get_mac()
1757 iap = (unsigned char *)&pdata->mac; in fec_get_mac()
1764 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1769 iap = &tmpaddr[0]; in fec_get_mac()
1775 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
[all …]
/linux-5.19.10/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.c3305 truncate = (arg->iap->ia_valid & ATTR_SIZE) ? true : false; in _nfs4_do_setattr()
3352 .iap = sattr, in nfs4_do_setattr()
6174 .iap = &sattr, in _nfs4_do_set_security_label()
/linux-5.19.10/include/linux/
Dnfs_xdr.h797 struct iattr * iap; member