Lines Matching refs:handler

77 	struct platform_profile_handler *handler;  in _store_class_profile()  local
81 handler = to_pprof_handler(dev); in _store_class_profile()
82 if (!test_bit(*bit, handler->choices) && !test_bit(*bit, handler->hidden_choices)) in _store_class_profile()
85 return handler->ops->profile_set(dev, *bit); in _store_class_profile()
97 struct platform_profile_handler *handler = to_pprof_handler(dev); in _notify_class_profile() local
100 sysfs_notify(&handler->dev.kobj, NULL, "profile"); in _notify_class_profile()
101 kobject_uevent(&handler->dev.kobj, KOBJ_CHANGE); in _notify_class_profile()
116 struct platform_profile_handler *handler; in get_class_profile() local
121 handler = to_pprof_handler(dev); in get_class_profile()
122 err = handler->ops->profile_get(dev, &val); in get_class_profile()
124 pr_err("Failed to get profile for handler %s\n", handler->name); in get_class_profile()
145 struct platform_profile_handler *handler = to_pprof_handler(dev); in name_show() local
147 return sysfs_emit(buf, "%s\n", handler->name); in name_show()
163 struct platform_profile_handler *handler = to_pprof_handler(dev); in choices_show() local
165 return _commmon_choices_show(handler->choices, buf); in choices_show()
257 struct platform_profile_handler *handler; in _aggregate_choices() local
261 handler = to_pprof_handler(dev); in _aggregate_choices()
262 bitmap_or(tmp, handler->choices, handler->hidden_choices, PLATFORM_PROFILE_LAST); in _aggregate_choices()
279 struct platform_profile_handler *handler; in _remove_hidden_choices() local
282 handler = to_pprof_handler(dev); in _remove_hidden_choices()
283 bitmap_andnot(data->aggregate, handler->choices, in _remove_hidden_choices()
284 handler->hidden_choices, PLATFORM_PROFILE_LAST); in _remove_hidden_choices()