Lines Matching refs:ops

88 	const struct thermal_zone_of_device_ops *ops;  member
98 if (!data->ops->get_temp) in of_thermal_get_temp()
101 return data->ops->get_temp(data->sensor_data, temp); in of_thermal_get_temp()
184 if (!data->ops || !data->ops->set_emul_temp) in of_thermal_set_emul_temp()
187 return data->ops->set_emul_temp(data->sensor_data, temp); in of_thermal_set_emul_temp()
197 if (!data->ops->get_trend) in of_thermal_get_trend()
200 r = data->ops->get_trend(data->sensor_data, &dev_trend); in of_thermal_get_trend()
402 const struct thermal_zone_of_device_ops *ops) in thermal_zone_of_add_sensor() argument
413 if (!ops) in thermal_zone_of_add_sensor()
417 tz->ops = ops; in thermal_zone_of_add_sensor()
420 tzd->ops->get_temp = of_thermal_get_temp; in thermal_zone_of_add_sensor()
421 tzd->ops->get_trend = of_thermal_get_trend; in thermal_zone_of_add_sensor()
422 tzd->ops->set_emul_temp = of_thermal_set_emul_temp; in thermal_zone_of_add_sensor()
462 const struct thermal_zone_of_device_ops *ops) in thermal_zone_of_sensor_register() argument
504 data, ops); in thermal_zone_of_sensor_register()
506 tzd->ops->set_mode(tzd, THERMAL_DEVICE_ENABLED); in thermal_zone_of_sensor_register()
552 tzd->ops->get_temp = NULL; in thermal_zone_of_sensor_unregister()
553 tzd->ops->get_trend = NULL; in thermal_zone_of_sensor_unregister()
554 tzd->ops->set_emul_temp = NULL; in thermal_zone_of_sensor_unregister()
556 tz->ops = NULL; in thermal_zone_of_sensor_unregister()
876 struct thermal_zone_device_ops *ops; in of_parse_thermal_zones() local
902 ops = kmemdup(&of_thermal_ops, sizeof(*ops), GFP_KERNEL); in of_parse_thermal_zones()
903 if (!ops) in of_parse_thermal_zones()
908 kfree(ops); in of_parse_thermal_zones()
927 ops, tzp, in of_parse_thermal_zones()
934 kfree(ops); in of_parse_thermal_zones()
984 kfree(zone->ops); in of_thermal_destroy_zones()