Lines Matching refs:ntrips
79 int ntrips; member
121 return data->ntrips; in of_thermal_get_ntrips()
139 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
305 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
318 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
331 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_temp()
345 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_hyst()
358 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_hyst()
373 for (i = 0; i < data->ntrips; i++) in of_thermal_get_crit_temp()
581 int ntrips) in thermal_of_populate_bind_params() argument
601 for (i = 0; i < ntrips; i++) in thermal_of_populate_bind_params()
607 if (i == ntrips) { in thermal_of_populate_bind_params()
781 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone()
782 if (tz->ntrips == 0) /* must have at least one child */ in thermal_of_build_thermal_zone()
785 tz->trips = kzalloc(tz->ntrips * sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
820 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
836 for (i = 0; i < tz->ntrips; i++) in thermal_of_build_thermal_zone()
854 for (i = 0; i < tz->ntrips; i++) in of_thermal_free_zone()
918 for (i = 0; i < tz->ntrips; i++) in of_parse_thermal_zones()
925 zone = thermal_zone_device_register(child->name, tz->ntrips, in of_parse_thermal_zones()