Lines Matching refs:ntrips
58 * @ntrips: number of trip points
59 * @trips: an array of trip points (0..ntrips - 1)
73 int ntrips;
126 return data->ntrips;
144 if (!data || trip >= data->ntrips || trip < 0)
278 if (trip >= data->ntrips || trip < 0)
291 if (trip >= data->ntrips || trip < 0)
304 if (trip >= data->ntrips || trip < 0)
326 if (trip >= data->ntrips || trip < 0)
339 if (trip >= data->ntrips || trip < 0)
354 for (i = 0; i < data->ntrips; i++)
667 * @ntrips: number of trip points inside trips.
679 int ntrips)
700 for (i = 0; i < ntrips; i++)
706 if (i == ntrips) {
907 tz->ntrips = of_get_child_count(child);
908 if (tz->ntrips == 0) /* must have at least one child */
911 tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL);
946 tz->trips, tz->ntrips);
969 for (i = 0; i < tz->ntrips; i++)
995 for (i = 0; i < tz->ntrips; i++)
1087 for (i = 0; i < tz->ntrips; i++)
1094 zone = thermal_zone_device_register(child->name, tz->ntrips,