trip              572 drivers/acpi/thermal.c 				 int trip, enum thermal_trip_type *type)
trip              577 drivers/acpi/thermal.c 	if (!tz || trip < 0)
trip              581 drivers/acpi/thermal.c 		if (!trip) {
trip              585 drivers/acpi/thermal.c 		trip--;
trip              589 drivers/acpi/thermal.c 		if (!trip) {
trip              593 drivers/acpi/thermal.c 		trip--;
trip              597 drivers/acpi/thermal.c 		if (!trip) {
trip              601 drivers/acpi/thermal.c 		trip--;
trip              606 drivers/acpi/thermal.c 		if (!trip) {
trip              610 drivers/acpi/thermal.c 		trip--;
trip              617 drivers/acpi/thermal.c 				 int trip, int *temp)
trip              622 drivers/acpi/thermal.c 	if (!tz || trip < 0)
trip              626 drivers/acpi/thermal.c 		if (!trip) {
trip              632 drivers/acpi/thermal.c 		trip--;
trip              636 drivers/acpi/thermal.c 		if (!trip) {
trip              642 drivers/acpi/thermal.c 		trip--;
trip              646 drivers/acpi/thermal.c 		if (!trip) {
trip              652 drivers/acpi/thermal.c 		trip--;
trip              657 drivers/acpi/thermal.c 		if (!trip) {
trip              663 drivers/acpi/thermal.c 		trip--;
trip              684 drivers/acpi/thermal.c 				int trip, enum thermal_trend *trend)
trip              690 drivers/acpi/thermal.c 	if (thermal_get_trip_type(thermal, trip, &type))
trip              697 drivers/acpi/thermal.c 		if (thermal_get_trip_temp(thermal, trip, &trip_temp))
trip              727 drivers/acpi/thermal.c static int thermal_notify(struct thermal_zone_device *thermal, int trip,
trip              760 drivers/acpi/thermal.c 	int trip = -1;
trip              764 drivers/acpi/thermal.c 		trip++;
trip              767 drivers/acpi/thermal.c 		trip++;
trip              770 drivers/acpi/thermal.c 		trip++;
trip              780 drivers/acpi/thermal.c 					(thermal, trip, cdev,
trip              786 drivers/acpi/thermal.c 					(thermal, trip, cdev);
trip              795 drivers/acpi/thermal.c 		trip++;
trip              805 drivers/acpi/thermal.c 					(thermal, trip, cdev,
trip              810 drivers/acpi/thermal.c 					(thermal, trip, cdev);
trip              360 drivers/crypto/nx/nx.c 	struct msc_triplet *trip;
trip              376 drivers/crypto/nx/nx.c 		trip = msc->trip;
trip              389 drivers/crypto/nx/nx.c 			if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) {
trip              391 drivers/crypto/nx/nx.c 					 "%u/%u (ignored)\n", trip->sglen,
trip              392 drivers/crypto/nx/nx.c 					 trip->databytelen);
trip              396 drivers/crypto/nx/nx.c 			switch (trip->keybitlen) {
trip              400 drivers/crypto/nx/nx.c 					trip->databytelen;
trip              402 drivers/crypto/nx/nx.c 					trip->sglen;
trip              406 drivers/crypto/nx/nx.c 					trip->databytelen;
trip              408 drivers/crypto/nx/nx.c 					trip->sglen;
trip              413 drivers/crypto/nx/nx.c 						databytelen = trip->databytelen;
trip              415 drivers/crypto/nx/nx.c 						trip->sglen;
trip              419 drivers/crypto/nx/nx.c 						databytelen = trip->databytelen;
trip              421 drivers/crypto/nx/nx.c 						trip->sglen;
trip              430 drivers/crypto/nx/nx.c 					trip->databytelen;
trip              432 drivers/crypto/nx/nx.c 					trip->sglen;
trip              437 drivers/crypto/nx/nx.c 					 trip->keybitlen);
trip              442 drivers/crypto/nx/nx.c 			trip++;
trip              445 drivers/crypto/nx/nx.c 		msc = (struct max_sync_cop *)trip;
trip               40 drivers/crypto/nx/nx.h 	struct msc_triplet trip[0];
trip              197 drivers/firmware/arm_scmi/sensors.c 	struct scmi_msg_set_sensor_trip_point *trip;
trip              200 drivers/firmware/arm_scmi/sensors.c 				 SCMI_PROTOCOL_SENSOR, sizeof(*trip), 0, &t);
trip              204 drivers/firmware/arm_scmi/sensors.c 	trip = t->tx.buf;
trip              205 drivers/firmware/arm_scmi/sensors.c 	trip->id = cpu_to_le32(sensor_id);
trip              206 drivers/firmware/arm_scmi/sensors.c 	trip->event_control = cpu_to_le32(evt_cntl | SENSOR_TP_ID(trip_id));
trip              207 drivers/firmware/arm_scmi/sensors.c 	trip->value_low = cpu_to_le32(trip_value & 0xffffffff);
trip              208 drivers/firmware/arm_scmi/sensors.c 	trip->value_high = cpu_to_le32(trip_value >> 32);
trip             5370 drivers/gpu/drm/i915/display/intel_display.c 	u16 trip = 0;
trip             5387 drivers/gpu/drm/i915/display/intel_display.c 		trip = PS_PHASE_TRIP;
trip             5389 drivers/gpu/drm/i915/display/intel_display.c 	return ((phase >> 2) & PS_PHASE_MASK) | trip;
trip               56 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/therm.h 	struct nvbios_therm_trip_point trip[NVKM_TEMP_FAN_TRIP_MAX];
trip              177 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c 			cur_trip = &fan->trip[fan->nr_fan_trip - 1];
trip              183 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c 			cur_trip = &fan->trip[fan->nr_fan_trip - 1];
trip               40 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c 	struct nvbios_therm_trip_point *trip = therm->fan->bios.trip,
trip               49 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c 		if (temp >= trip[i].temp)
trip               50 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c 			cur_trip = &trip[i];
trip               91 drivers/hwmon/acpi_power_meter.c 	s64			trip[2];
trip              263 drivers/hwmon/acpi_power_meter.c 	if (resource->trip[0] < 0 || resource->trip[1] < 0)
trip              267 drivers/hwmon/acpi_power_meter.c 	arg_objs[0].integer.value = resource->trip[1];
trip              268 drivers/hwmon/acpi_power_meter.c 	arg_objs[1].integer.value = resource->trip[0];
trip              300 drivers/hwmon/acpi_power_meter.c 	resource->trip[attr->index - 7] = temp;
trip              421 drivers/hwmon/acpi_power_meter.c 		if (resource->trip[attr->index - 7] < 0)
trip              424 drivers/hwmon/acpi_power_meter.c 		val = resource->trip[attr->index - 7] * 1000;
trip              882 drivers/hwmon/acpi_power_meter.c 	resource->trip[0] = resource->trip[1] = -1;
trip               33 drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c 				       int trip, enum thermal_trip_type *type)
trip               45 drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c 				       int trip, int *temp)
trip              208 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal_trip *trip = trips;
trip              216 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	     i++, trip++) {
trip              217 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		if (temp < trip->temp) {
trip              218 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			delta = DIV_ROUND_CLOSEST(temp, trip->temp - temp);
trip              243 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		const struct mlxsw_thermal_trip *trip = &thermal->trips[i];
trip              246 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 						       trip->max_state,
trip              247 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 						       trip->min_state,
trip              335 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 				       int trip,
trip              340 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS)
trip              343 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_type = thermal->trips[trip].type;
trip              348 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 				       int trip, int *p_temp)
trip              352 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS)
trip              355 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_temp = thermal->trips[trip].temp;
trip              360 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 				       int trip, int temp)
trip              364 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS ||
trip              368 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->trips[trip].temp = temp;
trip              373 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 				       int trip, int *p_hyst)
trip              377 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_hyst = thermal->trips[trip].hyst;
trip              382 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 				       int trip, int hyst)
trip              386 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->trips[trip].hyst = hyst;
trip              391 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 				   int trip, enum thermal_trend *trend)
trip              395 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS)
trip              431 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		const struct mlxsw_thermal_trip *trip = &tz->trips[i];
trip              434 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 						       trip->max_state,
trip              435 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 						       trip->min_state,
trip              535 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_module_trip_type_get(struct thermal_zone_device *tzdev, int trip,
trip              540 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS)
trip              543 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_type = tz->trips[trip].type;
trip              549 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 				   int trip, int *p_temp)
trip              553 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS)
trip              556 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_temp = tz->trips[trip].temp;
trip              562 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 				   int trip, int temp)
trip              566 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS ||
trip              570 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	tz->trips[trip].temp = temp;
trip              575 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_module_trip_hyst_get(struct thermal_zone_device *tzdev, int trip,
trip              580 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_hyst = tz->trips[trip].hyst;
trip              585 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_module_trip_hyst_set(struct thermal_zone_device *tzdev, int trip,
trip              590 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	tz->trips[trip].hyst = hyst;
trip              595 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 					  int trip, enum thermal_trend *trend)
trip              600 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS)
trip              642 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 				       int trip, int *temp)
trip              646 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 	if (trip < 0 || trip >= IWL_MAX_DTS_TRIPS)
trip              649 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 	*temp = mvm->tz_device.temp_trips[trip] * 1000;
trip              655 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 				       int trip, enum thermal_trip_type *type)
trip              657 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 	if (trip < 0 || trip >= IWL_MAX_DTS_TRIPS)
trip              666 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 				       int trip, int temp)
trip              681 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 	if (trip < 0 || trip >= IWL_MAX_DTS_TRIPS) {
trip              700 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 	if (tzone->temp_trips[trip] == temperature) {
trip              713 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 	tzone->temp_trips[trip] = temperature;
trip              440 drivers/platform/x86/acerhdf.c static int acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip,
trip              443 drivers/platform/x86/acerhdf.c 	if (trip == 0)
trip              445 drivers/platform/x86/acerhdf.c 	else if (trip == 1)
trip              453 drivers/platform/x86/acerhdf.c static int acerhdf_get_trip_hyst(struct thermal_zone_device *thermal, int trip,
trip              456 drivers/platform/x86/acerhdf.c 	if (trip != 0)
trip              464 drivers/platform/x86/acerhdf.c static int acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip,
trip              467 drivers/platform/x86/acerhdf.c 	if (trip == 0)
trip              469 drivers/platform/x86/acerhdf.c 	else if (trip == 1)
trip              169 drivers/thermal/broadcom/brcmstb_thermal.c 	struct avs_tmon_trip *trip = &avs_tmon_trips[type];
trip              170 drivers/thermal/broadcom/brcmstb_thermal.c 	u32 val = __raw_readl(priv->tmon_base + trip->enable_offs);
trip              175 drivers/thermal/broadcom/brcmstb_thermal.c 		val |= trip->enable_mask;
trip              177 drivers/thermal/broadcom/brcmstb_thermal.c 		val &= ~trip->enable_mask;
trip              179 drivers/thermal/broadcom/brcmstb_thermal.c 	__raw_writel(val, priv->tmon_base + trip->enable_offs);
trip              185 drivers/thermal/broadcom/brcmstb_thermal.c 	struct avs_tmon_trip *trip = &avs_tmon_trips[type];
trip              186 drivers/thermal/broadcom/brcmstb_thermal.c 	u32 val = __raw_readl(priv->tmon_base + trip->reg_offs);
trip              188 drivers/thermal/broadcom/brcmstb_thermal.c 	val &= trip->reg_msk;
trip              189 drivers/thermal/broadcom/brcmstb_thermal.c 	val >>= trip->reg_shift;
trip              198 drivers/thermal/broadcom/brcmstb_thermal.c 	struct avs_tmon_trip *trip = &avs_tmon_trips[type];
trip              207 drivers/thermal/broadcom/brcmstb_thermal.c 	val <<= trip->reg_shift;
trip              208 drivers/thermal/broadcom/brcmstb_thermal.c 	val &= trip->reg_msk;
trip              210 drivers/thermal/broadcom/brcmstb_thermal.c 	orig = __raw_readl(priv->tmon_base + trip->reg_offs);
trip              211 drivers/thermal/broadcom/brcmstb_thermal.c 	orig &= ~trip->reg_msk;
trip              213 drivers/thermal/broadcom/brcmstb_thermal.c 	__raw_writel(orig, priv->tmon_base + trip->reg_offs);
trip              133 drivers/thermal/da9062-thermal.c 					int trip,
trip              138 drivers/thermal/da9062-thermal.c 	switch (trip) {
trip              152 drivers/thermal/da9062-thermal.c 					int trip,
trip              157 drivers/thermal/da9062-thermal.c 	switch (trip) {
trip               77 drivers/thermal/db8500_thermal.c static int db8500_thermal_get_trend(void *data, int trip, enum thermal_trend *trend)
trip               78 drivers/thermal/fair_share.c static int fair_share_throttle(struct thermal_zone_device *tz, int trip)
trip               86 drivers/thermal/fair_share.c 		if (instance->trip != trip)
trip               97 drivers/thermal/fair_share.c 		if (instance->trip != trip)
trip               16 drivers/thermal/gov_bang_bang.c static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
trip               21 drivers/thermal/gov_bang_bang.c 	tz->ops->get_trip_temp(tz, trip, &trip_temp);
trip               28 drivers/thermal/gov_bang_bang.c 		tz->ops->get_trip_hyst(tz, trip, &trip_hyst);
trip               31 drivers/thermal/gov_bang_bang.c 				trip, trip_temp, tz->temperature,
trip               37 drivers/thermal/gov_bang_bang.c 		if (instance->trip != trip)
trip               99 drivers/thermal/gov_bang_bang.c static int bang_bang_control(struct thermal_zone_device *tz, int trip)
trip              103 drivers/thermal/gov_bang_bang.c 	thermal_zone_trip_update(tz, trip);
trip              493 drivers/thermal/hisi_thermal.c 	const struct thermal_trip *trip;
trip              506 drivers/thermal/hisi_thermal.c 	trip = of_thermal_get_trip_points(sensor->tzd);
trip              509 drivers/thermal/hisi_thermal.c 		if (trip[i].type == THERMAL_TRIP_PASSIVE) {
trip              510 drivers/thermal/hisi_thermal.c 			sensor->thres_temp = trip[i].temperature;
trip              392 drivers/thermal/imx_thermal.c static int imx_get_trip_type(struct thermal_zone_device *tz, int trip,
trip              395 drivers/thermal/imx_thermal.c 	*type = (trip == IMX_TRIP_PASSIVE) ? THERMAL_TRIP_PASSIVE :
trip              408 drivers/thermal/imx_thermal.c static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip,
trip              413 drivers/thermal/imx_thermal.c 	*temp = (trip == IMX_TRIP_PASSIVE) ? data->temp_passive :
trip              418 drivers/thermal/imx_thermal.c static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip,
trip              424 drivers/thermal/imx_thermal.c 	if (trip == IMX_TRIP_CRITICAL)
trip               43 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 					 int trip, int *temp)
trip               49 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 		return d->override_ops->get_trip_temp(zone, trip, temp);
trip               51 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	if (trip < d->aux_trip_nr)
trip               52 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 		*temp = d->aux_trips[trip];
trip               53 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	else if (trip == d->crt_trip_id)
trip               55 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	else if (trip == d->psv_trip_id)
trip               57 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	else if (trip == d->hot_trip_id)
trip               62 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 			    d->act_trips[i].id == trip) {
trip               75 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 					 int trip,
trip               82 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 		return d->override_ops->get_trip_type(zone, trip, type);
trip               84 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	if (trip < d->aux_trip_nr)
trip               86 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	else if (trip == d->crt_trip_id)
trip               88 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	else if (trip == d->hot_trip_id)
trip               90 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	else if (trip == d->psv_trip_id)
trip               95 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 			    d->act_trips[i].id == trip) {
trip              108 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 				      int trip, int temp)
trip              115 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 		return d->override_ops->set_trip_temp(zone, trip, temp);
trip              117 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	snprintf(name, sizeof(name), "PAT%d", trip);
trip              123 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	d->aux_trips[trip] = temp;
trip              130 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 		int trip, int *temp)
trip              137 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 		return d->override_ops->get_trip_hyst(zone, trip, temp);
trip              231 drivers/thermal/intel/intel_pch_thermal.c static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip,
trip              236 drivers/thermal/intel/intel_pch_thermal.c 	if (ptd->crt_trip_id == trip)
trip              238 drivers/thermal/intel/intel_pch_thermal.c 	else if (ptd->hot_trip_id == trip)
trip              240 drivers/thermal/intel/intel_pch_thermal.c 	else if (ptd->psv_trip_id == trip)
trip              248 drivers/thermal/intel/intel_pch_thermal.c static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp)
trip              252 drivers/thermal/intel/intel_pch_thermal.c 	if (ptd->crt_trip_id == trip)
trip              254 drivers/thermal/intel/intel_pch_thermal.c 	else if (ptd->hot_trip_id == trip)
trip              256 drivers/thermal/intel/intel_pch_thermal.c 	else if (ptd->psv_trip_id == trip)
trip              189 drivers/thermal/intel/intel_quark_dts_thermal.c static int _get_trip_temp(int trip, int *temp)
trip              208 drivers/thermal/intel/intel_quark_dts_thermal.c 	*temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES;
trip              215 drivers/thermal/intel/intel_quark_dts_thermal.c 				int trip, int *temp)
trip              217 drivers/thermal/intel/intel_quark_dts_thermal.c 	return _get_trip_temp(trip, temp);
trip              226 drivers/thermal/intel/intel_quark_dts_thermal.c 				int trip, int temp)
trip              261 drivers/thermal/intel/intel_quark_dts_thermal.c 		(trip * QRK_DTS_SHIFT_TP)));
trip              263 drivers/thermal/intel/intel_quark_dts_thermal.c 		(trip * QRK_DTS_SHIFT_TP);
trip              273 drivers/thermal/intel/intel_quark_dts_thermal.c static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
trip              276 drivers/thermal/intel/intel_quark_dts_thermal.c 	return update_trip_temp(tzd->devdata, trip, temp);
trip              280 drivers/thermal/intel/intel_quark_dts_thermal.c 		int trip, enum thermal_trip_type *type)
trip              282 drivers/thermal/intel/intel_quark_dts_thermal.c 	if (trip)
trip               73 drivers/thermal/intel/intel_soc_dts_iosf.c static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip,
trip               90 drivers/thermal/intel/intel_soc_dts_iosf.c 	out = (out >> (trip * 8)) & SOC_DTS_TJMAX_ENCODING;
trip              189 drivers/thermal/intel/intel_soc_dts_iosf.c static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
trip              200 drivers/thermal/intel/intel_soc_dts_iosf.c 	status = update_trip_temp(tzd->devdata, trip, temp,
trip              201 drivers/thermal/intel/intel_soc_dts_iosf.c 				  dts->trip_types[trip]);
trip              208 drivers/thermal/intel/intel_soc_dts_iosf.c 			     int trip, enum thermal_trip_type *type)
trip              214 drivers/thermal/intel/intel_soc_dts_iosf.c 	*type = dts->trip_types[trip];
trip              140 drivers/thermal/intel/x86_pkg_temp_thermal.c 			     int trip, int *temp)
trip              147 drivers/thermal/intel/x86_pkg_temp_thermal.c 	if (trip >= MAX_NUMBER_OF_TRIPS)
trip              150 drivers/thermal/intel/x86_pkg_temp_thermal.c 	if (trip) {
trip              174 drivers/thermal/intel/x86_pkg_temp_thermal.c sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp)
trip              180 drivers/thermal/intel/x86_pkg_temp_thermal.c 	if (trip >= MAX_NUMBER_OF_TRIPS || temp >= zonedev->tj_max)
trip              188 drivers/thermal/intel/x86_pkg_temp_thermal.c 	if (trip) {
trip              213 drivers/thermal/intel/x86_pkg_temp_thermal.c static int sys_get_trip_type(struct thermal_zone_device *thermal, int trip,
trip              142 drivers/thermal/of-thermal.c bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip)
trip              146 drivers/thermal/of-thermal.c 	if (!data || trip >= data->ntrips || trip < 0)
trip              194 drivers/thermal/of-thermal.c static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip,
trip              202 drivers/thermal/of-thermal.c 	return data->ops->get_trend(data->sensor_data, trip, trend);
trip              305 drivers/thermal/of-thermal.c static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip,
trip              310 drivers/thermal/of-thermal.c 	if (trip >= data->ntrips || trip < 0)
trip              313 drivers/thermal/of-thermal.c 	*type = data->trips[trip].type;
trip              318 drivers/thermal/of-thermal.c static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip,
trip              323 drivers/thermal/of-thermal.c 	if (trip >= data->ntrips || trip < 0)
trip              326 drivers/thermal/of-thermal.c 	*temp = data->trips[trip].temperature;
trip              331 drivers/thermal/of-thermal.c static int of_thermal_set_trip_temp(struct thermal_zone_device *tz, int trip,
trip              336 drivers/thermal/of-thermal.c 	if (trip >= data->ntrips || trip < 0)
trip              342 drivers/thermal/of-thermal.c 		ret = data->ops->set_trip_temp(data->sensor_data, trip, temp);
trip              348 drivers/thermal/of-thermal.c 	data->trips[trip].temperature = temp;
trip              353 drivers/thermal/of-thermal.c static int of_thermal_get_trip_hyst(struct thermal_zone_device *tz, int trip,
trip              358 drivers/thermal/of-thermal.c 	if (trip >= data->ntrips || trip < 0)
trip              361 drivers/thermal/of-thermal.c 	*hyst = data->trips[trip].hysteresis;
trip              366 drivers/thermal/of-thermal.c static int of_thermal_set_trip_hyst(struct thermal_zone_device *tz, int trip,
trip              371 drivers/thermal/of-thermal.c 	if (trip >= data->ntrips || trip < 0)
trip              375 drivers/thermal/of-thermal.c 	data->trips[trip].hysteresis = hyst;
trip              685 drivers/thermal/of-thermal.c 	struct device_node *trip;
trip              695 drivers/thermal/of-thermal.c 	trip = of_parse_phandle(np, "trip", 0);
trip              696 drivers/thermal/of-thermal.c 	if (!trip) {
trip              703 drivers/thermal/of-thermal.c 		if (trip == trips[i].np) {
trip              752 drivers/thermal/of-thermal.c 	of_node_put(trip);
trip              808 drivers/thermal/of-thermal.c 				    struct thermal_trip *trip)
trip              818 drivers/thermal/of-thermal.c 	trip->temperature = prop;
trip              825 drivers/thermal/of-thermal.c 	trip->hysteresis = prop;
trip              827 drivers/thermal/of-thermal.c 	ret = thermal_of_get_trip_type(np, &trip->type);
trip              834 drivers/thermal/of-thermal.c 	trip->np = np;
trip              103 drivers/thermal/power_allocator.c 		if (instance->trip != params->trip_max_desired_temperature)
trip              349 drivers/thermal/power_allocator.c 		if ((instance->trip == trip_max_desired_temperature) &&
trip              392 drivers/thermal/power_allocator.c 		if (instance->trip != trip_max_desired_temperature)
trip              427 drivers/thermal/power_allocator.c 		if (instance->trip != trip_max_desired_temperature)
trip              528 drivers/thermal/power_allocator.c 		if ((instance->trip != params->trip_max_desired_temperature) ||
trip              612 drivers/thermal/power_allocator.c static int power_allocator_throttle(struct thermal_zone_device *tz, int trip)
trip              622 drivers/thermal/power_allocator.c 	if (trip != params->trip_max_desired_temperature)
trip              242 drivers/thermal/qcom/qcom-spmi-temp-alarm.c static int qpnp_tm_set_trip_temp(void *data, int trip, int temp)
trip              252 drivers/thermal/qcom/qcom-spmi-temp-alarm.c 	if (trip_points[trip].type != THERMAL_TRIP_CRITICAL)
trip               23 drivers/thermal/qcom/tsens.c static int tsens_get_trend(void *data, int trip, enum thermal_trend *trend)
trip              305 drivers/thermal/rcar_thermal.c 				      int trip, enum thermal_trip_type *type)
trip              311 drivers/thermal/rcar_thermal.c 	switch (trip) {
trip              324 drivers/thermal/rcar_thermal.c 				      int trip, int *temp)
trip              330 drivers/thermal/rcar_thermal.c 	switch (trip) {
trip              343 drivers/thermal/rcar_thermal.c 			       int trip, enum thermal_trip_type type)
trip              194 drivers/thermal/samsung/exynos_tmu.c 	void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
trip              196 drivers/thermal/samsung/exynos_tmu.c 	void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
trip              360 drivers/thermal/samsung/exynos_tmu.c 					 int trip, u8 temp)
trip              368 drivers/thermal/samsung/exynos_tmu.c 	if (trip == 0) {
trip              374 drivers/thermal/samsung/exynos_tmu.c 	writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip * 4);
trip              379 drivers/thermal/samsung/exynos_tmu.c 					 int trip, u8 temp, u8 hyst)
trip              391 drivers/thermal/samsung/exynos_tmu.c 					 int trip, u8 temp)
trip              396 drivers/thermal/samsung/exynos_tmu.c 	th &= ~(0xff << 8 * trip);
trip              397 drivers/thermal/samsung/exynos_tmu.c 	th |= temp_to_code(data, temp) << 8 * trip;
trip              400 drivers/thermal/samsung/exynos_tmu.c 	if (trip == 3) {
trip              408 drivers/thermal/samsung/exynos_tmu.c 					 int trip, u8 temp, u8 hyst)
trip              413 drivers/thermal/samsung/exynos_tmu.c 	th &= ~(0xff << 8 * trip);
trip              415 drivers/thermal/samsung/exynos_tmu.c 		th |= temp_to_code(data, temp - hyst) << 8 * trip;
trip              447 drivers/thermal/samsung/exynos_tmu.c 					 int trip, u8 temp)
trip              452 drivers/thermal/samsung/exynos_tmu.c 	if (trip > 3) {
trip              454 drivers/thermal/samsung/exynos_tmu.c 		j = trip - 4;
trip              457 drivers/thermal/samsung/exynos_tmu.c 		j = trip;
trip              467 drivers/thermal/samsung/exynos_tmu.c 					 int trip, u8 temp, u8 hyst)
trip              472 drivers/thermal/samsung/exynos_tmu.c 	if (trip > 3) {
trip              474 drivers/thermal/samsung/exynos_tmu.c 		j = trip - 4;
trip              477 drivers/thermal/samsung/exynos_tmu.c 		j = trip;
trip              520 drivers/thermal/samsung/exynos_tmu.c 				      int trip, u8 temp)
trip              525 drivers/thermal/samsung/exynos_tmu.c 	reg_off = ((7 - trip) / 2) * 4;
trip              526 drivers/thermal/samsung/exynos_tmu.c 	bit_off = ((8 - trip) % 2);
trip              535 drivers/thermal/samsung/exynos_tmu.c 				      int trip, u8 temp, u8 hyst)
trip              540 drivers/thermal/samsung/exynos_tmu.c 	reg_off = ((7 - trip) / 2) * 4;
trip              541 drivers/thermal/samsung/exynos_tmu.c 	bit_off = ((8 - trip) % 2);
trip              138 drivers/thermal/st/st_thermal.c 				int trip, enum thermal_trip_type *type)
trip              143 drivers/thermal/st/st_thermal.c 	switch (trip) {
trip              156 drivers/thermal/st/st_thermal.c 				    int trip, int *temp)
trip              161 drivers/thermal/st/st_thermal.c 	switch (trip) {
trip              615 drivers/thermal/st/stm_thermal.c 	const struct thermal_trip *trip;
trip              683 drivers/thermal/st/stm_thermal.c 	trip = of_thermal_get_trip_points(sensor->th_dev);
trip              688 drivers/thermal/st/stm_thermal.c 		if (trip[i].type == THERMAL_TRIP_PASSIVE) {
trip              689 drivers/thermal/st/stm_thermal.c 			sensor->temp_passive = celsius(trip[i].temperature);
trip              116 drivers/thermal/step_wise.c static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
trip              125 drivers/thermal/step_wise.c 	if (trip == THERMAL_TRIPS_NONE) {
trip              129 drivers/thermal/step_wise.c 		tz->ops->get_trip_temp(tz, trip, &trip_temp);
trip              130 drivers/thermal/step_wise.c 		tz->ops->get_trip_type(tz, trip, &trip_type);
trip              133 drivers/thermal/step_wise.c 	trend = get_tz_trend(tz, trip);
trip              137 drivers/thermal/step_wise.c 		trace_thermal_zone_trip(tz, trip, trip_type);
trip              141 drivers/thermal/step_wise.c 				trip, trip_type, trip_temp, trend, throttle);
trip              146 drivers/thermal/step_wise.c 		if (instance->trip != trip)
trip              186 drivers/thermal/step_wise.c static int step_wise_throttle(struct thermal_zone_device *tz, int trip)
trip              190 drivers/thermal/step_wise.c 	thermal_zone_trip_update(tz, trip);
trip              584 drivers/thermal/tegra/soctherm.c static int tegra_thermctl_set_trip_temp(void *data, int trip, int temp)
trip              597 drivers/thermal/tegra/soctherm.c 	ret = tz->ops->get_trip_type(tz, trip, &type);
trip              623 drivers/thermal/tegra/soctherm.c 			if (get_thermal_instance(tz, cdev, trip))
trip              635 drivers/thermal/tegra/soctherm.c static int tegra_thermctl_get_trend(void *data, int trip,
trip              645 drivers/thermal/tegra/soctherm.c 	ret = tz->ops->get_trip_temp(zone->tz, trip, &trip_temp);
trip              722 drivers/thermal/tegra/soctherm.c static int get_hot_temp(struct thermal_zone_device *tz, int *trip, int *temp)
trip              738 drivers/thermal/tegra/soctherm.c 				*trip = i;
trip              775 drivers/thermal/tegra/soctherm.c 	int i, trip, temperature, ret;
trip              792 drivers/thermal/tegra/soctherm.c 	ret = get_hot_temp(tz, &trip, &temperature);
trip              806 drivers/thermal/tegra/soctherm.c 		if (get_thermal_instance(tz, cdev, trip))
trip              324 drivers/thermal/thermal_core.c static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip)
trip              326 drivers/thermal/thermal_core.c 	tz->governor ? tz->governor->throttle(tz, trip) :
trip              327 drivers/thermal/thermal_core.c 		       def_governor->throttle(tz, trip);
trip              379 drivers/thermal/thermal_core.c 				  int trip, enum thermal_trip_type trip_type)
trip              383 drivers/thermal/thermal_core.c 	tz->ops->get_trip_temp(tz, trip, &trip_temp);
trip              389 drivers/thermal/thermal_core.c 	trace_thermal_zone_trip(tz, trip, trip_type);
trip              392 drivers/thermal/thermal_core.c 		tz->ops->notify(tz, trip, trip_type);
trip              412 drivers/thermal/thermal_core.c static void handle_thermal_trip(struct thermal_zone_device *tz, int trip)
trip              417 drivers/thermal/thermal_core.c 	if (test_bit(trip, &tz->trips_disabled))
trip              420 drivers/thermal/thermal_core.c 	tz->ops->get_trip_type(tz, trip, &type);
trip              423 drivers/thermal/thermal_core.c 		handle_critical_trips(tz, trip, type);
trip              425 drivers/thermal/thermal_core.c 		handle_non_critical_trips(tz, trip);
trip              508 drivers/thermal/thermal_core.c void thermal_notify_framework(struct thermal_zone_device *tz, int trip)
trip              510 drivers/thermal/thermal_core.c 	handle_thermal_trip(tz, trip);
trip              682 drivers/thermal/thermal_core.c 				     int trip,
trip              694 drivers/thermal/thermal_core.c 	if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE))
trip              725 drivers/thermal/thermal_core.c 	dev->trip = trip;
trip              764 drivers/thermal/thermal_core.c 		if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) {
trip              807 drivers/thermal/thermal_core.c 				       int trip,
trip              815 drivers/thermal/thermal_core.c 		if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) {
trip               43 drivers/thermal/thermal_core.h 	int trip;
trip              108 drivers/thermal/thermal_core.h 					    int trip)
trip               25 drivers/thermal/thermal_helpers.c int get_tz_trend(struct thermal_zone_device *tz, int trip)
trip               30 drivers/thermal/thermal_helpers.c 	    tz->ops->get_trend(tz, trip, &trend)) {
trip               45 drivers/thermal/thermal_helpers.c 		     struct thermal_cooling_device *cdev, int trip)
trip               54 drivers/thermal/thermal_helpers.c 		if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) {
trip               95 drivers/thermal/thermal_sysfs.c 	int trip, result;
trip              100 drivers/thermal/thermal_sysfs.c 	if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1)
trip              103 drivers/thermal/thermal_sysfs.c 	result = tz->ops->get_trip_type(tz, trip, &type);
trip              126 drivers/thermal/thermal_sysfs.c 	int trip, ret;
trip              132 drivers/thermal/thermal_sysfs.c 	if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1)
trip              138 drivers/thermal/thermal_sysfs.c 	ret = tz->ops->set_trip_temp(tz, trip, temperature);
trip              152 drivers/thermal/thermal_sysfs.c 	int trip, ret;
trip              158 drivers/thermal/thermal_sysfs.c 	if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1)
trip              161 drivers/thermal/thermal_sysfs.c 	ret = tz->ops->get_trip_temp(tz, trip, &temperature);
trip              174 drivers/thermal/thermal_sysfs.c 	int trip, ret;
trip              180 drivers/thermal/thermal_sysfs.c 	if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1)
trip              191 drivers/thermal/thermal_sysfs.c 	ret = tz->ops->set_trip_hyst(tz, trip, temperature);
trip              204 drivers/thermal/thermal_sysfs.c 	int trip, ret;
trip              210 drivers/thermal/thermal_sysfs.c 	if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1)
trip              213 drivers/thermal/thermal_sysfs.c 	ret = tz->ops->get_trip_hyst(tz, trip, &temperature);
trip              974 drivers/thermal/thermal_sysfs.c 	if (instance->trip == THERMAL_TRIPS_NONE)
trip              977 drivers/thermal/thermal_sysfs.c 		return sprintf(buf, "%d\n", instance->trip);
trip              117 drivers/thermal/ti-soc-thermal/ti-thermal-common.c static int __ti_thermal_get_trend(void *p, int trip, enum thermal_trend *trend)
trip               53 drivers/thermal/ti-soc-thermal/ti-thermal.h #define ti_thermal_is_valid_trip(trip)				\
trip               54 drivers/thermal/ti-soc-thermal/ti-thermal.h 	((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER)
trip               25 drivers/thermal/user_space.c static int notify_user_space(struct thermal_zone_device *tz, int trip)
trip               33 drivers/thermal/user_space.c 	thermal_prop[2] = kasprintf(GFP_KERNEL, "TRIP=%d", trip);
trip              240 include/linux/thermal.h 	int (*throttle)(struct thermal_zone_device *tz, int trip);
trip              489 include/linux/thermal.h 	struct thermal_zone_device *tz, int trip,
trip              495 include/linux/thermal.h 	struct thermal_zone_device *tz, int trip,
trip              534 include/linux/thermal.h static inline int get_tz_trend(struct thermal_zone_device *tz, int trip)
trip              538 include/linux/thermal.h 	struct thermal_cooling_device *cdev, int trip)
trip              543 include/linux/thermal.h 	int trip)
trip               70 include/trace/events/thermal.h 	TP_PROTO(struct thermal_zone_device *tz, int trip,
trip               73 include/trace/events/thermal.h 	TP_ARGS(tz, trip, trip_type),
trip               78 include/trace/events/thermal.h 		__field(int, trip)
trip               85 include/trace/events/thermal.h 		__entry->trip = trip;
trip               90 include/trace/events/thermal.h 		__get_str(thermal_zone), __entry->id, __entry->trip,