Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/hwmon/
Dadt7475.c332 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in voltage_show() local
338 switch (sattr->nr) { in voltage_show()
341 (data->alarms >> sattr->index) & 1); in voltage_show()
343 val = data->voltage[sattr->nr][sattr->index]; in voltage_show()
345 reg2volt(sattr->index, val, data->bypass_attn)); in voltage_show()
354 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in voltage_store() local
365 data->voltage[sattr->nr][sattr->index] = in voltage_store()
366 volt2reg(sattr->index, val, data->bypass_attn); in voltage_store()
368 if (sattr->index < ADT7475_VOLTAGE_COUNT) { in voltage_store()
369 if (sattr->nr == MIN) in voltage_store()
[all …]
Dnct7802.c86 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_show() local
94 return sprintf(buf, "%u\n", (mode >> (2 * sattr->index) & 3) + 2); in temp_type_show()
102 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_store() local
109 if (sattr->index == 2 && type != 4) /* RD3 */ in temp_type_store()
114 3 << 2 * sattr->index, (type - 2) << 2 * sattr->index); in temp_type_store()
121 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_mode_show() local
126 if (sattr->index > 1) in pwm_mode_show()
133 return sprintf(buf, "%u\n", !(regval & (1 << sattr->index))); in pwm_mode_show()
174 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_enable_show() local
178 ret = regmap_read(data->regmap, REG_SMARTFAN_EN(sattr->index), &reg); in pwm_enable_show()
[all …]
Dnct6775-core.c1627 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_in_reg() local
1628 int index = sattr->index; in show_in_reg()
1629 int nr = sattr->nr; in show_in_reg()
1642 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in store_in_reg() local
1643 int index = sattr->index; in store_in_reg()
1644 int nr = sattr->nr; in store_in_reg()
1662 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in nct6775_show_alarm() local
1668 nr = data->ALARM_BITS[sattr->index]; in nct6775_show_alarm()
1694 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_temp_alarm() local
1706 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.c47 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in iio_hwmon_read_val() local
49 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 …]
Dhwmon.c645 char sattr[MAX_SYSFS_ATTR_NAME_LENGTH]; in hwmon_notify_event() local
661 scnprintf(sattr, MAX_SYSFS_ATTR_NAME_LENGTH, template, base + channel); in hwmon_notify_event()
662 scnprintf(event, sizeof(event), "NAME=%s", sattr); in hwmon_notify_event()
663 sysfs_notify(&dev->kobj, NULL, sattr); in hwmon_notify_event()
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-6.1.9/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-6.1.9/fs/nfs/
Dproc.c127 struct iattr *sattr) in nfs_proc_setattr() argument
132 .sattr = sattr in nfs_proc_setattr()
142 sattr->ia_mode &= S_IALLUGO; in nfs_proc_setattr()
145 if (sattr->ia_valid & ATTR_FILE) in nfs_proc_setattr()
146 msg.rpc_cred = nfs_file_cred(sattr->ia_file); in nfs_proc_setattr()
150 nfs_setattr_update_inode(inode, sattr, fattr); in nfs_proc_setattr()
216 struct dentry *dentry, struct iattr *sattr) in nfs_alloc_createdata() argument
226 data->arg.sattr = sattr; in nfs_alloc_createdata()
241 nfs_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, in nfs_proc_create() argument
251 data = nfs_alloc_createdata(dir, dentry, sattr); in nfs_proc_create()
[all …]
Dnfs3proc.c127 struct iattr *sattr) in nfs3_proc_setattr() argument
132 .sattr = sattr, in nfs3_proc_setattr()
142 if (sattr->ia_valid & ATTR_FILE) in nfs3_proc_setattr()
143 msg.rpc_cred = nfs_file_cred(sattr->ia_file); in nfs3_proc_setattr()
147 nfs_setattr_update_inode(inode, sattr, fattr); in nfs3_proc_setattr()
338 nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, in nfs3_proc_create() argument
356 data->arg.create.sattr = sattr; in nfs3_proc_create()
365 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_create()
404 if (!(sattr->ia_valid & ATTR_ATIME_SET)) in nfs3_proc_create()
405 sattr->ia_valid |= ATTR_ATIME; in nfs3_proc_create()
[all …]
Dnfs4proc.c99 struct nfs_fattr *fattr, struct iattr *sattr,
115 struct iattr *sattr, struct nfs4_label *label) in nfs4_label_init_security() argument
130 err = security_dentry_init_security(dentry, sattr->ia_mode, in nfs4_label_init_security()
154 struct iattr *sattr, struct nfs4_label *l) in nfs4_label_init_security() argument
1266 struct iattr *sattr; member
1390 if (c->sattr != NULL && c->sattr->ia_valid != 0) { in nfs4_opendata_alloc()
1392 memcpy(&p->attrs, c->sattr, sizeof(p->attrs)); in nfs4_opendata_alloc()
3001 struct iattr *sattr, struct nfs4_label **label) in nfs4_exclusive_attrset() argument
3015 sattr->ia_valid : 0; in nfs4_exclusive_attrset()
3018 if (sattr->ia_valid & ATTR_ATIME_SET) in nfs4_exclusive_attrset()
[all …]
Dnfs2xdr.c577 encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); in nfs2_xdr_enc_sattrargs()
692 encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); in nfs2_xdr_enc_createargs()
759 encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); in nfs2_xdr_enc_symlinkargs()
Dnfs3xdr.c857 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()
/linux-6.1.9/drivers/hwmon/occ/
Dcommon.c237 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_1() local
243 temp = ((struct temp_sensor_1 *)sensors->temp.data) + sattr->index; in occ_show_temp_1()
245 switch (sattr->nr) { in occ_show_temp_1()
273 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_2() local
279 temp = ((struct temp_sensor_2 *)sensors->temp.data) + sattr->index; in occ_show_temp_2()
281 switch (sattr->nr) { in occ_show_temp_2()
324 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_10() local
330 temp = ((struct temp_sensor_10 *)sensors->temp.data) + sattr->index; in occ_show_temp_10()
332 switch (sattr->nr) { in occ_show_temp_10()
371 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_1() local
[all …]
Dsysfs.c51 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in occ_sysfs_show() local
60 switch (sattr->index) { in occ_sysfs_show()
105 if (sattr->index == 1) in occ_sysfs_show()
107 else if (sattr->index <= 11) in occ_sysfs_show()
/linux-6.1.9/kernel/module/
Dsysfs.c38 struct module_sect_attr *sattr = in module_sect_read() local
56 ? (void *)sattr->address : NULL); in module_sect_read()
76 struct module_sect_attr *sattr; in add_sect_attrs() local
95 sattr = &sect_attrs->attrs[0]; in add_sect_attrs()
102 sysfs_bin_attr_init(&sattr->battr); in add_sect_attrs()
103 sattr->address = sec->sh_addr; in add_sect_attrs()
104 sattr->battr.attr.name = in add_sect_attrs()
106 if (!sattr->battr.attr.name) in add_sect_attrs()
109 sattr->battr.read = module_sect_read; in add_sect_attrs()
110 sattr->battr.size = MODULE_SECT_READ_SIZE; in add_sect_attrs()
[all …]
/linux-6.1.9/arch/sh/kernel/cpu/sh4/
Dsq.c270 struct sq_sysfs_attr *sattr = to_sq_sysfs_attr(attr); in sq_sysfs_show() local
272 if (likely(sattr->show)) in sq_sysfs_show()
273 return sattr->show(buf); in sq_sysfs_show()
281 struct sq_sysfs_attr *sattr = to_sq_sysfs_attr(attr); in sq_sysfs_store() local
283 if (likely(sattr->store)) in sq_sysfs_store()
284 return sattr->store(buf, count); in sq_sysfs_store()
/linux-6.1.9/drivers/net/phy/
Dmdio_bus.c227 struct mdio_bus_stat_attr *sattr; in mdio_bus_stat_field_show() local
232 sattr = eattr->var; in mdio_bus_stat_field_show()
234 if (sattr->addr < 0) in mdio_bus_stat_field_show()
235 val = mdio_bus_get_global_stat(bus, sattr->field_offset); in mdio_bus_stat_field_show()
237 val = mdio_bus_get_stat(&bus->stats[sattr->addr], in mdio_bus_stat_field_show()
238 sattr->field_offset); in mdio_bus_stat_field_show()
249 struct mdio_bus_stat_attr *sattr; in mdio_bus_device_stat_field_show() local
255 sattr = eattr->var; in mdio_bus_device_stat_field_show()
257 val = mdio_bus_get_stat(&bus->stats[addr], sattr->field_offset); in mdio_bus_device_stat_field_show()
/linux-6.1.9/include/linux/
Dnfs_xdr.h777 struct iattr * sattr; member
790 struct iattr * sattr; member
860 struct iattr * sattr; member
900 struct iattr * sattr; member
920 struct iattr * sattr; member
929 struct iattr * sattr; member
938 struct iattr * sattr; member
946 struct iattr * sattr; member
/linux-6.1.9/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-6.1.9/drivers/infiniband/hw/hfi1/
Dsysfs.c149 struct hfi1_sc2vl_attr *sattr = in sc2vl_attr_show() local
153 return sysfs_emit(buf, "%u\n", *((u8 *)dd->sc2vl + sattr->sc)); in sc2vl_attr_show()
246 struct hfi1_sl2sc_attr *sattr = in sl2sc_attr_show() local
251 return sysfs_emit(buf, "%u\n", ibp->sl_to_sc[sattr->sl]); in sl2sc_attr_show()
/linux-6.1.9/arch/sparc/include/uapi/asm/
Dfbio.h88 struct fbsattr sattr; member
/linux-6.1.9/fs/nfsd/
Dxdr.h130 struct nfsd_sattrargs sattr; member
/linux-6.1.9/arch/m68k/include/asm/
Dfbio.h91 struct fbsattr sattr; member

12