/linux-6.12.1/fs/nfsd/ |
D | nfsxdr.c | 131 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 …]
|
D | vfs.c | 386 nfsd_sanitize_attrs(struct inode *inode, struct iattr *iap) in nfsd_sanitize_attrs() argument 390 iap->ia_valid &= ~ATTR_MODE; in nfsd_sanitize_attrs() 393 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs() 394 iap->ia_mode &= S_IALLUGO; in nfsd_sanitize_attrs() 395 iap->ia_mode |= (inode->i_mode & ~S_IALLUGO); in nfsd_sanitize_attrs() 400 ((iap->ia_valid & ATTR_UID) || (iap->ia_valid & ATTR_GID))) { in nfsd_sanitize_attrs() 401 iap->ia_valid |= ATTR_KILL_PRIV; in nfsd_sanitize_attrs() 402 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs() 404 iap->ia_mode &= ~S_ISUID; in nfsd_sanitize_attrs() 405 if (iap->ia_mode & S_IXGRP) in nfsd_sanitize_attrs() [all …]
|
D | nfs3xdr.c | 211 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 …]
|
D | nfs3proc.c | 259 struct iattr *iap = &argp->attrs; in nfsd3_create_file() local 262 .na_iattr = iap, in nfsd3_create_file() 271 if (!(iap->ia_valid & ATTR_MODE)) in nfsd3_create_file() 272 iap->ia_mode = 0; in nfsd3_create_file() 324 iap->ia_valid &= ATTR_SIZE; in nfsd3_create_file() 341 iap->ia_mode &= ~current_umask(); in nfsd3_create_file() 346 host_err = vfs_create(&nop_mnt_idmap, inode, child, iap->ia_mode, true); in nfsd3_create_file() 354 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd3_create_file() 355 iap->ia_valid &= ~ATTR_SIZE; in nfsd3_create_file() 357 iap->ia_valid = ATTR_MTIME | ATTR_ATIME | in nfsd3_create_file() [all …]
|
D | vfs.h | 67 struct iattr *iap = attrs->na_iattr; in nfsd_attrs_valid() local 69 return (iap->ia_valid || (attrs->na_seclabel && in nfsd_attrs_valid() 100 struct svc_fh *resfhp, struct nfsd_attrs *iap);
|
D | nfsproc.c | 79 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr() local 81 .na_iattr = iap, in nfsd_proc_setattr() 104 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_proc_setattr() 105 iap->ia_mtime.tv_sec == iap->ia_atime.tv_sec) { in nfsd_proc_setattr() 113 time64_t delta = iap->ia_atime.tv_sec - ktime_get_real_seconds(); in nfsd_proc_setattr() 122 setattr_prepare(&nop_mnt_idmap, fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr() 128 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_proc_setattr()
|
D | nfs4proc.c | 236 struct iattr *iap = &open->op_iattr; in nfsd4_create_file() local 238 .na_iattr = iap, in nfsd4_create_file() 249 if (!(iap->ia_valid & ATTR_MODE)) in nfsd4_create_file() 250 iap->ia_mode = 0; in nfsd4_create_file() 319 open->op_truncate = (iap->ia_valid & ATTR_SIZE) && in nfsd4_create_file() 320 !iap->ia_size; in nfsd4_create_file() 347 iap->ia_mode &= ~current_umask(); in nfsd4_create_file() 359 if ((iap->ia_valid & ATTR_SIZE) && (iap->ia_size == 0)) in nfsd4_create_file() 360 iap->ia_valid &= ~ATTR_SIZE; in nfsd4_create_file() 362 iap->ia_valid = ATTR_MTIME | ATTR_ATIME | in nfsd4_create_file() [all …]
|
/linux-6.12.1/drivers/input/mouse/ |
D | elan_i2c_smbus.c | 151 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()
|
D | elan_i2c_i2c.c | 271 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()
|
D | elan_i2c.h | 84 int (*get_version)(struct i2c_client *client, u8 pattern, bool iap, 88 int (*get_checksum)(struct i2c_client *client, bool iap, u16 *csum);
|
/linux-6.12.1/drivers/net/ethernet/freescale/ |
D | fec_main.c | 1963 unsigned char *iap, tmpaddr[ETH_ALEN]; in fec_get_mac() local 1972 iap = macaddr; in fec_get_mac() 1977 if (!is_valid_ether_addr(iap)) { in fec_get_mac() 1982 iap = tmpaddr; in fec_get_mac() 1991 if (!is_valid_ether_addr(iap)) { in fec_get_mac() 1994 iap = (unsigned char *)FEC_FLASHMAC; in fec_get_mac() 1999 iap = (unsigned char *)&pdata->mac; in fec_get_mac() 2006 if (!is_valid_ether_addr(iap)) { in fec_get_mac() 2011 iap = &tmpaddr[0]; in fec_get_mac() 2017 if (!is_valid_ether_addr(iap)) { in fec_get_mac() [all …]
|
/linux-6.12.1/fs/nfs/ |
D | nfs4xdr.c | 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() [all …]
|
D | nfs4proc.c | 3386 truncate = (arg->iap->ia_valid & ATTR_SIZE) ? true : false; in _nfs4_do_setattr() 3433 .iap = sattr, in nfs4_do_setattr() 6323 .iap = &sattr, in _nfs4_do_set_security_label()
|
/linux-6.12.1/drivers/hwtracing/coresight/ |
D | coresight-etm4x-core.c | 2230 struct etm4_init_arg *iap = *this_cpu_ptr(&delayed_probe); in etm4_probe_cpu() local 2232 if (!iap) in etm4_probe_cpu() 2235 init_arg = *iap; in etm4_probe_cpu() 2236 devm_kfree(init_arg.dev, iap); in etm4_probe_cpu()
|
/linux-6.12.1/include/linux/ |
D | nfs_xdr.h | 821 struct iattr * iap; member
|