Lines Matching refs:desc
41 if (!edev || !edev->desc) in devfreq_event_enable_edev()
45 if (edev->desc->ops && edev->desc->ops->enable in devfreq_event_enable_edev()
47 ret = edev->desc->ops->enable(edev); in devfreq_event_enable_edev()
73 if (!edev || !edev->desc) in devfreq_event_disable_edev()
83 if (edev->desc->ops && edev->desc->ops->disable in devfreq_event_disable_edev()
85 ret = edev->desc->ops->disable(edev); in devfreq_event_disable_edev()
110 if (!edev || !edev->desc) in devfreq_event_is_enabled()
135 if (!edev || !edev->desc) in devfreq_event_set_event()
138 if (!edev->desc->ops || !edev->desc->ops->set_event) in devfreq_event_set_event()
145 ret = edev->desc->ops->set_event(edev); in devfreq_event_set_event()
165 if (!edev || !edev->desc) in devfreq_event_get_event()
168 if (!edev->desc->ops || !edev->desc->ops->get_event) in devfreq_event_get_event()
177 ret = edev->desc->ops->get_event(edev, edata); in devfreq_event_get_event()
197 if (!edev || !edev->desc) in devfreq_event_reset_event()
204 if (edev->desc->ops && edev->desc->ops->reset) in devfreq_event_reset_event()
205 ret = edev->desc->ops->reset(edev); in devfreq_event_reset_event()
241 if (of_node_name_eq(node, edev->desc->name)) in devfreq_event_get_edev_by_phandle()
305 struct devfreq_event_desc *desc) in devfreq_event_add_edev() argument
311 if (!dev || !desc) in devfreq_event_add_edev()
314 if (!desc->name || !desc->ops) in devfreq_event_add_edev()
317 if (!desc->ops->set_event || !desc->ops->get_event) in devfreq_event_add_edev()
325 edev->desc = desc; in devfreq_event_add_edev()
398 struct devfreq_event_desc *desc) in devm_devfreq_event_add_edev() argument
407 edev = devfreq_event_add_edev(dev, desc); in devm_devfreq_event_add_edev()
444 if (!edev || !edev->desc) in name_show()
447 return sprintf(buf, "%s\n", edev->desc->name); in name_show()
456 if (!edev || !edev->desc) in enable_count_show()