Lines Matching full:trip
25 * into the device tree binding of 'trip', property type.
37 * @type: Pointer to resulting trip type
39 * The function gets trip type string from property 'type',
64 struct thermal_trip *trip) in thermal_of_populate_trip() argument
74 trip->temperature = prop; in thermal_of_populate_trip()
81 trip->hysteresis = prop; in thermal_of_populate_trip()
83 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip()
85 pr_err("wrong trip type property\n"); in thermal_of_populate_trip()
89 trip->flags = THERMAL_TRIP_FLAG_RW_TEMP; in thermal_of_populate_trip()
91 trip->priv = np; in thermal_of_populate_trip()
115 for_each_child_of_node_scoped(trips, trip) { in thermal_of_trips_init()
116 ret = thermal_of_populate_trip(trip, &tt[count++]); in thermal_of_trips_init()
278 const struct thermal_trip *trip, in thermal_of_cm_lookup() argument
286 tr_np = of_parse_phandle(child, "trip", 0); in thermal_of_cm_lookup()
287 if (tr_np != trip->priv) in thermal_of_cm_lookup()
290 /* The trip has been found, look up the cdev. */ in thermal_of_cm_lookup()
306 const struct thermal_trip *trip, in thermal_of_should_bind() argument
323 /* Look up the trip and the cdev in the cooling maps. */ in thermal_of_should_bind()
324 result = thermal_of_cm_lookup(cm_np, trip, cdev, c); in thermal_of_should_bind()
389 pr_err("Failed to parse trip points for %pOFn id=%d\n", sensor, id); in thermal_of_zone_register()
395 pr_info("No trip points found for %pOFn id=%d\n", sensor, id); in thermal_of_zone_register()