Lines Matching refs:ntrips
61 int ntrips; member
114 return data->ntrips; in of_thermal_get_ntrips()
132 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
284 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
297 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
310 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_temp()
332 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_hyst()
345 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_hyst()
360 for (i = 0; i < data->ntrips; i++) in of_thermal_get_crit_temp()
655 int ntrips) in thermal_of_populate_bind_params() argument
675 for (i = 0; i < ntrips; i++) in thermal_of_populate_bind_params()
681 if (i == ntrips) { in thermal_of_populate_bind_params()
855 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone()
856 if (tz->ntrips == 0) /* must have at least one child */ in thermal_of_build_thermal_zone()
859 tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
894 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
910 for (i = 0; i < tz->ntrips; i++) in thermal_of_build_thermal_zone()
928 for (i = 0; i < tz->ntrips; i++) in of_thermal_free_zone()
988 for (i = 0; i < tz->ntrips; i++) in of_parse_thermal_zones()
995 zone = thermal_zone_device_register(child->name, tz->ntrips, in of_parse_thermal_zones()