• Home
  • Raw
  • Download

Lines Matching refs:dev

1922 	struct device *dev = get_cpu_device(cpu);  in cpuhp_offline_cpu_device()  local
1924 dev->offline = true; in cpuhp_offline_cpu_device()
1926 kobject_uevent(&dev->kobj, KOBJ_OFFLINE); in cpuhp_offline_cpu_device()
1931 struct device *dev = get_cpu_device(cpu); in cpuhp_online_cpu_device() local
1933 dev->offline = false; in cpuhp_online_cpu_device()
1935 kobject_uevent(&dev->kobj, KOBJ_ONLINE); in cpuhp_online_cpu_device()
1992 static ssize_t show_cpuhp_state(struct device *dev, in show_cpuhp_state() argument
1995 struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, dev->id); in show_cpuhp_state()
2001 static ssize_t write_cpuhp_target(struct device *dev, in write_cpuhp_target() argument
2005 struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, dev->id); in write_cpuhp_target()
2033 ret = do_cpu_up(dev->id, target); in write_cpuhp_target()
2035 ret = do_cpu_down(dev->id, target); in write_cpuhp_target()
2041 static ssize_t show_cpuhp_target(struct device *dev, in show_cpuhp_target() argument
2044 struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, dev->id); in show_cpuhp_target()
2051 static ssize_t write_cpuhp_fail(struct device *dev, in write_cpuhp_fail() argument
2055 struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, dev->id); in write_cpuhp_fail()
2088 static ssize_t show_cpuhp_fail(struct device *dev, in show_cpuhp_fail() argument
2091 struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, dev->id); in show_cpuhp_fail()
2111 static ssize_t show_cpuhp_states(struct device *dev, in show_cpuhp_states() argument
2146 __store_smt_control(struct device *dev, struct device_attribute *attr, in __store_smt_control() argument
2188 __store_smt_control(struct device *dev, struct device_attribute *attr, in __store_smt_control() argument
2204 show_smt_control(struct device *dev, struct device_attribute *attr, char *buf) in show_smt_control() argument
2212 store_smt_control(struct device *dev, struct device_attribute *attr, in store_smt_control() argument
2215 return __store_smt_control(dev, attr, buf, count); in store_smt_control()
2220 show_smt_active(struct device *dev, struct device_attribute *attr, char *buf) in show_smt_active() argument
2258 struct device *dev = get_cpu_device(cpu); in cpuhp_sysfs_init() local
2260 if (!dev) in cpuhp_sysfs_init()
2262 ret = sysfs_create_group(&dev->kobj, &cpuhp_cpu_attr_group); in cpuhp_sysfs_init()