Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/nfsd/
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 …]
Dnfsxdr.c74 decode_sattr(__be32 *p, struct iattr *iap, struct user_namespace *userns) in decode_sattr() argument
78 iap->ia_valid = 0; in decode_sattr()
85 iap->ia_valid |= ATTR_MODE; in decode_sattr()
86 iap->ia_mode = tmp; in decode_sattr()
89 iap->ia_uid = make_kuid(userns, tmp); in decode_sattr()
90 if (uid_valid(iap->ia_uid)) in decode_sattr()
91 iap->ia_valid |= ATTR_UID; in decode_sattr()
94 iap->ia_gid = make_kgid(userns, tmp); in decode_sattr()
95 if (gid_valid(iap->ia_gid)) in decode_sattr()
96 iap->ia_valid |= ATTR_GID; in decode_sattr()
[all …]
Dnfs3xdr.c100 decode_sattr3(__be32 *p, struct iattr *iap, struct user_namespace *userns) in decode_sattr3() argument
104 iap->ia_valid = 0; in decode_sattr3()
107 iap->ia_valid |= ATTR_MODE; in decode_sattr3()
108 iap->ia_mode = ntohl(*p++); in decode_sattr3()
111 iap->ia_uid = make_kuid(userns, ntohl(*p++)); in decode_sattr3()
112 if (uid_valid(iap->ia_uid)) in decode_sattr3()
113 iap->ia_valid |= ATTR_UID; in decode_sattr3()
116 iap->ia_gid = make_kgid(userns, ntohl(*p++)); in decode_sattr3()
117 if (gid_valid(iap->ia_gid)) in decode_sattr3()
118 iap->ia_valid |= ATTR_GID; in 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(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()
/kernel/linux/linux-5.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.h78 int (*get_version)(struct i2c_client *client, u8 pattern, bool iap,
82 int (*get_checksum)(struct i2c_client *client, bool iap, u16 *csum);
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Dfec_main.c1668 unsigned char *iap, tmpaddr[ETH_ALEN]; in fec_get_mac() local
1676 iap = macaddr; in fec_get_mac()
1681 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1686 iap = (unsigned char *) mac; in fec_get_mac()
1693 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1696 iap = (unsigned char *)FEC_FLASHMAC; in fec_get_mac()
1699 iap = (unsigned char *)&pdata->mac; in fec_get_mac()
1706 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
1711 iap = &tmpaddr[0]; in fec_get_mac()
1717 if (!is_valid_ether_addr(iap)) { in fec_get_mac()
[all …]
/kernel/linux/linux-5.10/fs/nfs/
Dnfs4xdr.c1069 static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, in encode_attrs() argument
1086 if ((iap->ia_valid & ATTR_SIZE) && (attrmask[0] & FATTR4_WORD0_SIZE)) { in encode_attrs()
1090 if (iap->ia_valid & ATTR_MODE) { in encode_attrs()
1099 if ((iap->ia_valid & ATTR_UID) && (attrmask[1] & FATTR4_WORD1_OWNER)) { in encode_attrs()
1100 owner_namelen = nfs_map_uid_to_name(server, iap->ia_uid, owner_name, IDMAP_NAMESZ); in encode_attrs()
1103 from_kuid(&init_user_ns, iap->ia_uid)); in encode_attrs()
1112 if ((iap->ia_valid & ATTR_GID) && in encode_attrs()
1114 owner_grouplen = nfs_map_gid_to_group(server, iap->ia_gid, owner_group, IDMAP_NAMESZ); in encode_attrs()
1117 from_kgid(&init_user_ns, iap->ia_gid)); in encode_attrs()
1126 if (iap->ia_valid & ATTR_ATIME_SET) { in encode_attrs()
[all …]
Dnfs4proc.c3295 truncate = (arg->iap->ia_valid & ATTR_SIZE) ? true : false; in _nfs4_do_setattr()
3343 .iap = sattr, in nfs4_do_setattr()
6030 .iap = &sattr, in _nfs4_do_set_security_label()
/kernel/linux/linux-5.10/include/linux/
Dnfs_xdr.h783 struct iattr * iap; member
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dsky2.c4728 const void *iap; in sky2_init_netdev() local
4798 iap = of_get_mac_address(hw->pdev->dev.of_node); in sky2_init_netdev()
4799 if (!IS_ERR(iap)) in sky2_init_netdev()
4800 ether_addr_copy(dev->dev_addr, iap); in sky2_init_netdev()