Home
last modified time | relevance | path

Searched refs:sattr (Results 1 – 25 of 25) sorted by relevance

/Linux-v5.4/drivers/hwmon/
Dadt7475.c327 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in voltage_show() local
333 switch (sattr->nr) { in voltage_show()
336 (data->alarms >> sattr->index) & 1); in voltage_show()
338 val = data->voltage[sattr->nr][sattr->index]; in voltage_show()
340 reg2volt(sattr->index, val, data->bypass_attn)); in voltage_show()
349 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in voltage_store() local
360 data->voltage[sattr->nr][sattr->index] = in voltage_store()
361 volt2reg(sattr->index, val, data->bypass_attn); in voltage_store()
363 if (sattr->index < ADT7475_VOLTAGE_COUNT) { in voltage_store()
364 if (sattr->nr == MIN) in voltage_store()
[all …]
Dnct7802.c67 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_show() local
75 return sprintf(buf, "%u\n", (mode >> (2 * sattr->index) & 3) + 2); in temp_type_show()
83 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_store() local
90 if (sattr->index == 2 && type != 4) /* RD3 */ in temp_type_store()
95 3 << 2 * sattr->index, (type - 2) << 2 * sattr->index); in temp_type_store()
102 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_mode_show() local
107 if (sattr->index > 1) in pwm_mode_show()
114 return sprintf(buf, "%u\n", !(regval & (1 << sattr->index))); in pwm_mode_show()
155 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_enable_show() local
159 ret = regmap_read(data->regmap, REG_SMARTFAN_EN(sattr->index), &reg); in pwm_enable_show()
[all …]
Dnct6775.c1874 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_in_reg() local
1875 int index = sattr->index; in show_in_reg()
1876 int nr = sattr->nr; in show_in_reg()
1886 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in store_in_reg() local
1887 int index = sattr->index; in store_in_reg()
1888 int nr = sattr->nr; in store_in_reg()
1907 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_alarm() local
1908 int nr = data->ALARM_BITS[sattr->index]; in show_alarm()
1933 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_temp_alarm() local
1942 nr = find_temp_source(data, sattr->index, data->num_temp_alarms); in show_temp_alarm()
[all …]
Dnct6683.c655 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_in_label() local
657 int nr = sattr->index; in show_in_label()
665 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_in_reg() local
667 int index = sattr->index; in show_in_reg()
668 int nr = sattr->nr; in show_in_reg()
713 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_fan() local
716 return sprintf(buf, "%d\n", data->rpm[sattr->index]); in show_fan()
723 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_fan_min() local
724 int nr = sattr->index; in show_fan_min()
732 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_fan_pulses() local
[all …]
Diio_hwmon.c45 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in iio_hwmon_read_val() local
47 struct iio_channel *chan = &state->channels[sattr->index]; in iio_hwmon_read_val()
Dit87.c858 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_in() local
860 int index = sattr->index; in show_in()
861 int nr = sattr->nr; in show_in()
869 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in set_in() local
871 int index = sattr->index; in set_in()
872 int nr = sattr->nr; in set_in()
946 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_temp() local
947 int nr = sattr->nr; in show_temp()
948 int index = sattr->index; in show_temp()
957 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in set_temp() local
[all …]
Dda9052-hwmon.c306 struct sensor_device_attribute *sattr = to_sensor_dev_attr(dattr); in da9052_channel_is_visible() local
309 switch (sattr->index) { in da9052_channel_is_visible()
/Linux-v5.4/drivers/misc/
Dds1682.c57 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in ds1682_show() local
66 rc = i2c_smbus_read_i2c_block_data(client, sattr->index, sattr->nr, in ds1682_show()
73 if (sattr->index == DS1682_REG_ELAPSED) { in ds1682_show()
78 rc = i2c_smbus_read_i2c_block_data(client, sattr->index, in ds1682_show()
79 sattr->nr, in ds1682_show()
94 return sprintf(buf, "%llu\n", (sattr->nr == 4) ? (val * 250) : val); in ds1682_show()
100 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in ds1682_store() local
117 if (sattr->nr == 4) in ds1682_store()
122 rc = i2c_smbus_write_i2c_block_data(client, sattr->index, sattr->nr, in ds1682_store()
126 sattr->index, sattr->nr); in ds1682_store()
/Linux-v5.4/fs/nfs/
Dproc.c121 struct iattr *sattr) in nfs_proc_setattr() argument
126 .sattr = sattr in nfs_proc_setattr()
136 sattr->ia_mode &= S_IALLUGO; in nfs_proc_setattr()
139 if (sattr->ia_valid & ATTR_FILE) in nfs_proc_setattr()
140 msg.rpc_cred = nfs_file_cred(sattr->ia_file); in nfs_proc_setattr()
144 nfs_setattr_update_inode(inode, sattr, fattr); in nfs_proc_setattr()
206 struct dentry *dentry, struct iattr *sattr) in nfs_alloc_createdata() argument
216 data->arg.sattr = sattr; in nfs_alloc_createdata()
231 nfs_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, in nfs_proc_create() argument
241 data = nfs_alloc_createdata(dir, dentry, sattr); in nfs_proc_create()
[all …]
Dnfs3proc.c123 struct iattr *sattr) in nfs3_proc_setattr() argument
128 .sattr = sattr, in nfs3_proc_setattr()
138 if (sattr->ia_valid & ATTR_FILE) in nfs3_proc_setattr()
139 msg.rpc_cred = nfs_file_cred(sattr->ia_file); in nfs3_proc_setattr()
145 nfs_setattr_update_inode(inode, sattr, fattr); in nfs3_proc_setattr()
304 nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, in nfs3_proc_create() argument
322 data->arg.create.sattr = sattr; in nfs3_proc_create()
331 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_create()
370 if (!(sattr->ia_valid & ATTR_ATIME_SET)) in nfs3_proc_create()
371 sattr->ia_valid |= ATTR_ATIME; in nfs3_proc_create()
[all …]
Dnfs4proc.c97 struct nfs_fattr *fattr, struct iattr *sattr,
114 struct iattr *sattr, struct nfs4_label *label) in nfs4_label_init_security() argument
124 err = security_dentry_init_security(dentry, sattr->ia_mode, in nfs4_label_init_security()
147 struct iattr *sattr, struct nfs4_label *l) in nfs4_label_init_security() argument
1174 struct iattr *sattr; member
1299 if (c->sattr != NULL && c->sattr->ia_valid != 0) { in nfs4_opendata_alloc()
1301 memcpy(&p->attrs, c->sattr, sizeof(p->attrs)); in nfs4_opendata_alloc()
2913 struct iattr *sattr, struct nfs4_label **label) in nfs4_exclusive_attrset() argument
2927 sattr->ia_valid : 0; in nfs4_exclusive_attrset()
2930 if (sattr->ia_valid & ATTR_ATIME_SET) in nfs4_exclusive_attrset()
[all …]
Dnfs3xdr.c858 encode_sattr3(xdr, args->sattr, rpc_rqst_userns(req)); in nfs3_xdr_enc_setattr3args()
1026 encode_sattr3(xdr, args->sattr, userns); in encode_createhow3()
1061 encode_sattr3(xdr, args->sattr, rpc_rqst_userns(req)); in nfs3_xdr_enc_mkdir3args()
1083 encode_sattr3(xdr, args->sattr, userns); in encode_symlinkdata3()
1126 encode_sattr3(xdr, args->sattr, userns); in encode_devicedata3()
1142 encode_sattr3(xdr, args->sattr, userns); in encode_mknoddata3()
Dnfs2xdr.c581 encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); in nfs2_xdr_enc_sattrargs()
696 encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); in nfs2_xdr_enc_createargs()
763 encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); in nfs2_xdr_enc_symlinkargs()
/Linux-v5.4/drivers/hwmon/occ/
Dcommon.c231 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_1() local
237 temp = ((struct temp_sensor_1 *)sensors->temp.data) + sattr->index; in occ_show_temp_1()
239 switch (sattr->nr) { in occ_show_temp_1()
267 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_2() local
273 temp = ((struct temp_sensor_2 *)sensors->temp.data) + sattr->index; in occ_show_temp_2()
275 switch (sattr->nr) { in occ_show_temp_2()
318 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_1() local
324 freq = ((struct freq_sensor_1 *)sensors->freq.data) + sattr->index; in occ_show_freq_1()
326 switch (sattr->nr) { in occ_show_freq_1()
348 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_2() local
[all …]
Dsysfs.c30 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in occ_sysfs_show() local
38 switch (sattr->index) { in occ_sysfs_show()
/Linux-v5.4/arch/sh/kernel/cpu/sh4/
Dsq.c269 struct sq_sysfs_attr *sattr = to_sq_sysfs_attr(attr); in sq_sysfs_show() local
271 if (likely(sattr->show)) in sq_sysfs_show()
272 return sattr->show(buf); in sq_sysfs_show()
280 struct sq_sysfs_attr *sattr = to_sq_sysfs_attr(attr); in sq_sysfs_store() local
282 if (likely(sattr->store)) in sq_sysfs_store()
283 return sattr->store(buf, count); in sq_sysfs_store()
/Linux-v5.4/include/linux/
Dnfs_xdr.h756 struct iattr * sattr; member
769 struct iattr * sattr; member
830 struct iattr * sattr; member
870 struct iattr * sattr; member
890 struct iattr * sattr; member
899 struct iattr * sattr; member
908 struct iattr * sattr; member
916 struct iattr * sattr; member
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dopal-sensor-groups.c62 struct sg_attr *sattr = container_of(attr, struct sg_attr, attr); in sg_store() local
84 ret = opal_sensor_group_clear(sattr->handle, token); in sg_store()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dsysfs.c293 struct hfi1_sc2vl_attr *sattr = in sc2vl_attr_show() local
299 return sprintf(buf, "%u\n", *((u8 *)dd->sc2vl + sattr->sc)); in sc2vl_attr_show()
398 struct hfi1_sl2sc_attr *sattr = in sl2sc_attr_show() local
404 return sprintf(buf, "%u\n", ibp->sl_to_sc[sattr->sl]); in sl2sc_attr_show()
/Linux-v5.4/fs/nfsd/
Dxdr.h122 struct nfsd_sattrargs sattr; member
/Linux-v5.4/arch/sparc/include/uapi/asm/
Dfbio.h88 struct fbsattr sattr; member
/Linux-v5.4/kernel/
Dmodule.c1519 struct module_sect_attr *sattr = in module_sect_show() local
1522 (void *)sattr->address : NULL); in module_sect_show()
1538 struct module_sect_attr *sattr; in add_sect_attrs() local
1557 sattr = &sect_attrs->attrs[0]; in add_sect_attrs()
1563 sattr->address = sec->sh_addr; in add_sect_attrs()
1564 sattr->name = kstrdup(info->secstrings + sec->sh_name, in add_sect_attrs()
1566 if (sattr->name == NULL) in add_sect_attrs()
1569 sysfs_attr_init(&sattr->mattr.attr); in add_sect_attrs()
1570 sattr->mattr.show = module_sect_show; in add_sect_attrs()
1571 sattr->mattr.store = NULL; in add_sect_attrs()
[all …]
/Linux-v5.4/arch/m68k/include/asm/
Dfbio.h91 struct fbsattr sattr; member
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_sysfs.c383 struct qib_sl2vl_attr *sattr = in sl2vl_attr_show() local
389 return sprintf(buf, "%u\n", qibp->sl_to_vl[sattr->sl]); in sl2vl_attr_show()
/Linux-v5.4/security/selinux/ss/
Dservices.c625 struct ebitmap *sattr, *tattr; in context_struct_compute_av() local
651 sattr = &policydb->type_attr_map_array[scontext->type - 1]; in context_struct_compute_av()
653 ebitmap_for_each_positive_bit(sattr, snode, i) { in context_struct_compute_av()
1011 struct ebitmap *sattr, *tattr; in security_compute_xperms_decision() local
1057 sattr = &policydb->type_attr_map_array[scontext->type - 1]; in security_compute_xperms_decision()
1059 ebitmap_for_each_positive_bit(sattr, snode, i) { in security_compute_xperms_decision()