Home
last modified time | relevance | path

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

/drivers/base/
Dbus.c52 struct driver_attribute *drv_attr = to_drv_attr(attr); in drv_attr_show() local
56 if (drv_attr->show) in drv_attr_show()
57 ret = drv_attr->show(drv_priv->driver, buf); in drv_attr_show()
64 struct driver_attribute *drv_attr = to_drv_attr(attr); in drv_attr_store() local
68 if (drv_attr->store) in drv_attr_store()
69 ret = drv_attr->store(drv_priv->driver, buf, count); in drv_attr_store()
/drivers/cpufreq/
Dcpufreq.c769 struct freq_attr **drv_attr; in cpufreq_add_dev() local
896 drv_attr = cpufreq_driver->attr; in cpufreq_add_dev()
897 while ((drv_attr) && (*drv_attr)) { in cpufreq_add_dev()
898 ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); in cpufreq_add_dev()
901 drv_attr++; in cpufreq_add_dev()