Home
last modified time | relevance | path

Searched refs:drv_attr (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/base/
Dbus.c60 struct driver_attribute *drv_attr = to_drv_attr(attr); in drv_attr_show() local
64 if (drv_attr->show) in drv_attr_show()
65 ret = drv_attr->show(drv_priv->driver, buf); in drv_attr_show()
72 struct driver_attribute *drv_attr = to_drv_attr(attr); in drv_attr_store() local
76 if (drv_attr->store) in drv_attr_store()
77 ret = drv_attr->store(drv_priv->driver, buf, count); in drv_attr_store()
/kernel/linux/linux-5.10/drivers/cpufreq/
Dcpufreq.c1030 struct freq_attr **drv_attr; in cpufreq_add_dev_interface() local
1034 drv_attr = cpufreq_driver->attr; in cpufreq_add_dev_interface()
1035 while (drv_attr && *drv_attr) { in cpufreq_add_dev_interface()
1036 ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); in cpufreq_add_dev_interface()
1039 drv_attr++; in cpufreq_add_dev_interface()