Home
last modified time | relevance | path

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

/drivers/base/
Dbus.c57 struct driver_attribute *drv_attr = to_drv_attr(attr); in drv_attr_show() local
61 if (drv_attr->show) in drv_attr_show()
62 ret = drv_attr->show(drv_priv->driver, buf); in drv_attr_show()
69 struct driver_attribute *drv_attr = to_drv_attr(attr); in drv_attr_store() local
73 if (drv_attr->store) in drv_attr_store()
74 ret = drv_attr->store(drv_priv->driver, buf, count); in drv_attr_store()
/drivers/cpufreq/
Dcpufreq.c797 struct freq_attr **drv_attr; in cpufreq_add_dev_interface() local
809 drv_attr = cpufreq_driver->attr; in cpufreq_add_dev_interface()
810 while ((drv_attr) && (*drv_attr)) { in cpufreq_add_dev_interface()
811 ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); in cpufreq_add_dev_interface()
814 drv_attr++; in cpufreq_add_dev_interface()