Lines Matching refs:ntrips
75 int ntrips; member
117 return data->ntrips; in of_thermal_get_ntrips()
135 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
300 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
313 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
326 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_temp()
340 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_hyst()
353 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_hyst()
368 for (i = 0; i < data->ntrips; i++) in of_thermal_get_crit_temp()
576 int ntrips) in thermal_of_populate_bind_params() argument
596 for (i = 0; i < ntrips; i++) in thermal_of_populate_bind_params()
602 if (i == ntrips) { in thermal_of_populate_bind_params()
762 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone()
763 if (tz->ntrips == 0) /* must have at least one child */ in thermal_of_build_thermal_zone()
766 tz->trips = kzalloc(tz->ntrips * sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
801 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
817 for (i = 0; i < tz->ntrips; i++) in thermal_of_build_thermal_zone()
835 for (i = 0; i < tz->ntrips; i++) in of_thermal_free_zone()
894 zone = thermal_zone_device_register(child->name, tz->ntrips, in of_parse_thermal_zones()