Lines Matching refs:drv
55 struct cpuidle_driver *drv; in show_current_driver() local
58 drv = cpuidle_get_driver(); in show_current_driver()
59 if (drv) in show_current_driver()
60 ret = sprintf(buf, "%s\n", drv->name); in show_current_driver()
401 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(device); in cpuidle_add_state_sysfs() local
404 for (i = 0; i < drv->state_count; i++) { in cpuidle_add_state_sysfs()
408 kobj->state = &drv->states[i]; in cpuidle_add_state_sysfs()
436 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(device); in cpuidle_remove_state_sysfs() local
439 for (i = 0; i < drv->state_count; i++) in cpuidle_remove_state_sysfs()
452 struct cpuidle_driver *drv; member
463 static ssize_t show_driver_name(struct cpuidle_driver *drv, char *buf) in show_driver_name() argument
468 ret = sprintf(buf, "%s\n", drv ? drv->name : "none"); in show_driver_name()
488 ret = dattr->show(driver_kobj->drv, buf); in cpuidle_driver_show()
501 ret = dattr->store(driver_kobj->drv, buf, size); in cpuidle_driver_store()
532 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); in cpuidle_add_driver_sysfs() local
539 kdrv->drv = drv; in cpuidle_add_driver_sysfs()