Home
last modified time | relevance | path

Searched refs:hyst (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/clk/bcm/
H A Dclk-kona-setup.c74 struct bcm_clk_hyst *hyst; in peri_clk_data_offsets_valid() local
100 hyst = &peri->hyst; in peri_clk_data_offsets_valid()
108 if (hyst_exists(hyst)) { in peri_clk_data_offsets_valid()
109 if (hyst->offset > limit) { in peri_clk_data_offsets_valid()
112 name, hyst->offset, limit); in peri_clk_data_offsets_valid()
116 } else if (hyst_exists(hyst)) { in peri_clk_data_offsets_valid()
268 static bool hyst_valid(struct bcm_clk_hyst *hyst, const char *clock_name) in hyst_valid() argument
270 if (!bit_posn_valid(hyst->en_bit, "hysteresis enable", clock_name)) in hyst_valid()
273 if (!bit_posn_valid(hyst->val_bit, "hysteresis value", clock_name)) in hyst_valid()
397 struct bcm_clk_hyst *hyst; in peri_clk_data_valid() local
[all …]
H A Dclk-kona.h55 #define hyst_exists(hyst) ((hyst)->offset != 0) argument
385 struct bcm_clk_hyst hyst; member
H A Dclk-kona.c502 static bool hyst_init(struct ccu_data *ccu, struct bcm_clk_hyst *hyst) in hyst_init() argument
508 if (!hyst_exists(hyst)) in hyst_init()
511 offset = hyst->offset; in hyst_init()
512 mask = (u32)1 << hyst->en_bit; in hyst_init()
513 mask |= (u32)1 << hyst->val_bit; in hyst_init()
1186 if (!hyst_init(ccu, &peri->hyst)) { in __peri_clk_init()
H A Dclk-bcm21664.c34 .hyst = HYST(0x0414, 8, 9),
/linux/drivers/hwmon/
H A Djc42.c214 int ret, temp, hyst; in jc42_read() local
252 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read()
254 *val = temp - hyst; in jc42_read()
263 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read()
265 *val = temp - hyst; in jc42_read()
301 int diff, hyst; in jc42_write() local
331 hyst = 0; in jc42_write()
334 hyst = 1; /* 1.5 degrees C */ in jc42_write()
336 hyst = 2; /* 3.0 degrees C */ in jc42_write()
338 hyst = 3; /* 6.0 degrees C */ in jc42_write()
[all …]
H A Dtmp108.c123 int err, hyst; in tmp108_read() local
175 hyst = 0; in tmp108_read()
178 hyst = 1000; in tmp108_read()
181 hyst = 2000; in tmp108_read()
184 hyst = 4000; in tmp108_read()
193 *temp += hyst; in tmp108_read()
195 *temp -= hyst; in tmp108_read()
H A Dlm75.c1039 int conf, hyst, os; in lm75_detect() local
1087 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
1091 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
1092 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect()
1093 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect()
1094 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect()
1095 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect()
1108 if (hyst == 0 && os == 0) in lm75_detect()
1114 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
H A Dintel-m10-bmc-hwmon.c612 long hyst, value; in m10bmc_hwmon_read() local
695 ret = do_sensor_read(hw, data, reg_hyst, &hyst); in m10bmc_hwmon_read()
699 value -= hyst; in m10bmc_hwmon_read()
H A Dlm63.c730 u8 hyst; in pwm1_auto_point_temp_hyst_show() local
733 hyst = data->lut_temp_hyst; in pwm1_auto_point_temp_hyst_show()
736 return sprintf(buf, "%d\n", TEMP8_FROM_REG(hyst)); in pwm1_auto_point_temp_hyst_show()
772 long hyst; in temp2_crit_hyst_store() local
779 hyst = temp8_from_reg(data, 2) + data->temp2_offset - val; in temp2_crit_hyst_store()
781 HYST_TO_REG(hyst)); in temp2_crit_hyst_store()
/linux/drivers/input/misc/
H A Diqs626a.c288 u8 hyst; member
305 u8 hyst; member
314 u8 hyst; member
328 u8 hyst; member
465 u8 *thresh, *hyst; in iqs626_parse_events() local
472 hyst = &sys_reg->ch_reg_ulp.hyst; in iqs626_parse_events()
478 hyst = &sys_reg->tp_grp_reg.hyst; in iqs626_parse_events()
486 hyst = &sys_reg->ch_reg_gen[i].hyst; in iqs626_parse_events()
491 hyst = &sys_reg->ch_reg_hall.hyst; in iqs626_parse_events()
551 *hyst &= ~IQS626_CHx_HYST_DEEP_MASK; in iqs626_parse_events()
[all …]
H A Dbma150.c226 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_low_g_interrupt() argument
230 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_low_g_interrupt()
250 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_high_g_interrupt() argument
254 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_high_g_interrupt()
H A Diqs269a.c278 u8 hyst; member
746 u8 *hyst = &ch_reg->hyst; in iqs269_parse_chan() local
757 *hyst &= ~IQS269_CHx_HYST_DEEP_MASK; in iqs269_parse_chan()
758 *hyst |= (val << IQS269_CHx_HYST_DEEP_SHIFT); in iqs269_parse_chan()
761 *hyst &= ~IQS269_CHx_HYST_TOUCH_MASK; in iqs269_parse_chan()
762 *hyst |= val; in iqs269_parse_chan()
/linux/drivers/thermal/intel/int340x_thermal/
H A Dint340x_thermal_zone.c122 unsigned long long hyst; in int340x_thermal_zone_add() local
152 status = acpi_evaluate_integer(adev->handle, "GTSH", NULL, &hyst); in int340x_thermal_zone_add()
154 hyst *= 100; in int340x_thermal_zone_add()
156 hyst = 0; in int340x_thermal_zone_add()
159 zone_trips[i].hysteresis = hyst; in int340x_thermal_zone_add()
/linux/drivers/mfd/
H A Dtps65218.c229 u32 hyst; in tps65218_voltage_set_uv_hyst() local
232 "ti,under-voltage-hyst-microvolt", &hyst)) in tps65218_voltage_set_uv_hyst()
235 if (hyst != 400000 && hyst != 200000) { in tps65218_voltage_set_uv_hyst()
243 hyst == 400000 ? TPS65218_CONFIG2_UVLOHYS : 0, in tps65218_voltage_set_uv_hyst()
/linux/drivers/iio/proximity/
H A Dsx9360.c518 unsigned int hyst, val = _val; in sx9360_write_hysteresis() local
526 hyst = 0; in sx9360_write_hysteresis()
528 hyst = 3; in sx9360_write_hysteresis()
530 hyst = 2; in sx9360_write_hysteresis()
532 hyst = 1; in sx9360_write_hysteresis()
536 hyst = FIELD_PREP(SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
539 SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
H A Dsx9310.c555 unsigned int hyst, val = _val; in sx9310_write_hysteresis() local
563 hyst = 0; in sx9310_write_hysteresis()
565 hyst = 3; in sx9310_write_hysteresis()
567 hyst = 2; in sx9310_write_hysteresis()
569 hyst = 1; in sx9310_write_hysteresis()
573 hyst = FIELD_PREP(SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
577 SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
H A Dsx9324.c636 unsigned int hyst, val = _val; in sx9324_write_hysteresis() local
644 hyst = 0; in sx9324_write_hysteresis()
646 hyst = 3; in sx9324_write_hysteresis()
648 hyst = 2; in sx9324_write_hysteresis()
650 hyst = 1; in sx9324_write_hysteresis()
654 hyst = FIELD_PREP(SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis()
658 SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis()
/linux/tools/lib/thermal/include/
H A Dthermal.h36 int (*trip_add)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg);
37 int (*trip_change)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg);
59 int hyst; member
/linux/include/sound/
H A Dda7218.h79 bool hyst; member
/linux/Documentation/devicetree/bindings/sound/
H A Dda7218.txt63 - dlg,hyst : Boolean flag, enable hysteresis
100 dlg,hyst;
/linux/drivers/iio/temperature/
H A Dmcp9600.c324 u8 hyst; in mcp9600_write_thresh() local
349 hyst = min(abs(val), 255); in mcp9600_write_thresh()
352 hyst); in mcp9600_write_thresh()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drx.c566 int hyst = bss_conf->cqm_rssi_hyst; in iwl_mvm_update_link_sig() local
603 sig < last_event - hyst)) { in iwl_mvm_update_link_sig()
613 (last_event == 0 || sig > last_event + hyst)) { in iwl_mvm_update_link_sig()
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_mac80211.c1296 u32 hyst = common->cqm_info.rssi_hyst; in rsi_perform_cqm() local
1299 if (rssi < thold && (last_event == 0 || rssi < (last_event - hyst))) in rsi_perform_cqm()
1302 (last_event == 0 || rssi > (last_event + hyst))) in rsi_perform_cqm()
/linux/drivers/gpu/drm/amd/pm/
H A Damdgpu_pm.c2891 int hyst = to_sensor_dev_attr(attr)->index; in amdgpu_hwmon_show_temp_thresh() local
2894 if (hyst) in amdgpu_hwmon_show_temp_thresh()
2907 int hyst = to_sensor_dev_attr(attr)->index; in amdgpu_hwmon_show_hotspot_temp_thresh() local
2910 if (hyst) in amdgpu_hwmon_show_hotspot_temp_thresh()
2923 int hyst = to_sensor_dev_attr(attr)->index; in amdgpu_hwmon_show_mem_temp_thresh() local
2926 if (hyst) in amdgpu_hwmon_show_mem_temp_thresh()
/linux/drivers/thermal/
H A Dthermal_core.c438 struct thermal_trip *trip, int hyst) in thermal_zone_set_trip_hyst() argument
442 WRITE_ONCE(trip->hysteresis, hyst); in thermal_zone_set_trip_hyst()

12