Lines Matching refs:ntrips
73 int ntrips; member
126 return data->ntrips; in of_thermal_get_ntrips()
144 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
278 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
291 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
304 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_temp()
326 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_hyst()
339 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_hyst()
354 for (i = 0; i < data->ntrips; i++) in of_thermal_get_crit_temp()
679 int ntrips) in thermal_of_populate_bind_params() argument
700 for (i = 0; i < ntrips; i++) in thermal_of_populate_bind_params()
706 if (i == ntrips) { in thermal_of_populate_bind_params()
907 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone()
908 if (tz->ntrips == 0) /* must have at least one child */ in thermal_of_build_thermal_zone()
911 tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
946 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
969 for (i = 0; i < tz->ntrips; i++) in thermal_of_build_thermal_zone()
995 for (i = 0; i < tz->ntrips; i++) in of_thermal_free_zone()
1087 for (i = 0; i < tz->ntrips; i++) in of_parse_thermal_zones()
1094 zone = thermal_zone_device_register(child->name, tz->ntrips, in of_parse_thermal_zones()