Home
last modified time | relevance | path

Searched refs:sens (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.3-rc2/drivers/macintosh/
A Dwindfarm_smu_sat.c182 kfree(sens); in wf_sat_sensor_release()
273 sens->sens.ops = &wf_sat_ops; in wf_sat_probe()
274 sens->sens.name = (char *) (sens + 1); in wf_sat_probe()
275 snprintf((char *)sens->sens.name, 16, "%s-%d", name, cpu); in wf_sat_probe()
277 if (wf_register_sensor(&sens->sens)) in wf_sat_probe()
278 kfree(sens); in wf_sat_probe()
300 sens->sens.ops = &wf_sat_ops; in wf_sat_probe()
301 sens->sens.name = (char *) (sens + 1); in wf_sat_probe()
304 if (wf_register_sensor(&sens->sens)) in wf_sat_probe()
305 kfree(sens); in wf_sat_probe()
[all …]
A Dwindfarm_smu_sensors.c55 struct wf_sensor sens; member
219 ads->sens.ops = &smu_cputemp_ops; in smu_ads_create()
220 ads->sens.name = "cpu-temp"; in smu_ads_create()
228 ads->sens.ops = &smu_cpuamp_ops; in smu_ads_create()
229 ads->sens.name = "cpu-current"; in smu_ads_create()
237 ads->sens.ops = &smu_cpuvolt_ops; in smu_ads_create()
238 ads->sens.name = "cpu-voltage"; in smu_ads_create()
247 ads->sens.name = "slots-power"; in smu_ads_create()
279 struct wf_sensor sens; member
345 pow->sens.name = "cpu-power"; in smu_cpu_power_create()
[all …]
A Dwindfarm_max6690_sensor.c29 struct wf_sensor sens; member
32 #define wf_to_6690(x) container_of((x), struct wf_6690_sensor, sens)
96 max->sens.name = name; in wf_max6690_probe()
97 max->sens.ops = &wf_max6690_ops; in wf_max6690_probe()
100 rc = wf_register_sensor(&max->sens); in wf_max6690_probe()
111 wf_unregister_sensor(&max->sens); in wf_max6690_remove()
A Dwindfarm_lm87_sensor.c36 struct wf_sensor sens; member
38 #define wf_to_lm87(c) container_of(c, struct wf_lm87_sensor, sens)
136 lm->sens.name = name; in wf_lm87_probe()
137 lm->sens.ops = &wf_lm87_ops; in wf_lm87_probe()
138 lm->sens.priv = lm; in wf_lm87_probe()
141 rc = wf_register_sensor(&lm->sens); in wf_lm87_probe()
155 wf_unregister_sensor(&lm->sens); in wf_lm87_remove()
A Dwindfarm_lm75_sensor.c39 struct wf_sensor sens; member
41 #define wf_to_lm75(c) container_of(c, struct wf_lm75_sensor, sens)
140 lm->sens.name = name; in wf_lm75_probe()
141 lm->sens.ops = &wf_lm75_ops; in wf_lm75_probe()
144 rc = wf_register_sensor(&lm->sens); in wf_lm75_probe()
158 wf_unregister_sensor(&lm->sens); in wf_lm75_remove()
A Dwindfarm_core.c292 struct wf_sensor *sens = container_of(attr, struct wf_sensor, attr); in wf_show_sensor() local
296 err = sens->ops->get_value(sens, &val); in wf_show_sensor()
/linux-6.3-rc2/security/selinux/ss/
A Dcontext.h45 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy()
50 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy()
65 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy_low()
70 dst->range.level[1].sens = src->range.level[0].sens; in mls_context_cpy_low()
85 dst->range.level[0].sens = src->range.level[1].sens; in mls_context_cpy_high()
90 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy_high()
106 if (r1->level[1].sens < r2->level[0].sens || in mls_context_glblub()
107 r2->level[1].sens < r1->level[0].sens) in mls_context_glblub()
112 dr->level[0].sens = max(r1->level[0].sens, r2->level[0].sens); in mls_context_glblub()
115 dr->level[1].sens = min(r1->level[1].sens, r2->level[1].sens); in mls_context_glblub()
[all …]
A Dmls_types.h22 u32 sens; /* sensitivity */ member
32 return ((l1->sens == l2->sens) && in mls_level_eq()
38 return ((l1->sens >= l2->sens) && in mls_level_dom()
A Dmls.c48 int index_sens = context->range.level[l].sens; in mls_compute_context_len()
108 context->range.level[l].sens - 1)); in mls_sid_to_context()
165 if (!l->sens || l->sens > p->p_levels.nprim) in mls_level_isvalid()
168 sym_name(p, SYM_LEVELS, l->sens - 1)); in mls_level_isvalid()
298 context->range.level[l].sens = levdatum->level->sens; in mls_context_to_sid()
344 context->range.level[1].sens = context->range.level[0].sens; in mls_context_to_sid()
391 context->range.level[l].sens = range->level[l].sens; in mls_range_set()
461 oldc->range.level[l].sens - 1); in mls_convert_context()
467 newc->range.level[l].sens = levdatum->level->sens; in mls_convert_context()
571 secattr->attr.mls.lvl = context->range.level[0].sens - 1; in mls_export_netlbl_lvl()
[all …]
A Dmls.h109 hash = jhash_2words(r->level[0].sens, r->level[1].sens, hash); in mls_range_hash()
/linux-6.3-rc2/drivers/iio/magnetometer/
A Dmmc35240.c97 int sens[3]; /* sensitivity per X, Y, Z axis */ member
317 int sens[3]; in mmc35240_raw_to_mgauss() local
324 sens[AXIS_X] = mmc35240_props_table[data->res].sens[AXIS_X]; in mmc35240_raw_to_mgauss()
325 sens[AXIS_Y] = mmc35240_props_table[data->res].sens[AXIS_Y]; in mmc35240_raw_to_mgauss()
326 sens[AXIS_Z] = mmc35240_props_table[data->res].sens[AXIS_Z]; in mmc35240_raw_to_mgauss()
332 *val = (raw[AXIS_X] - nfo) * 1000 / sens[AXIS_X]; in mmc35240_raw_to_mgauss()
335 *val = (raw[AXIS_Y] - nfo) * 1000 / sens[AXIS_Y] - in mmc35240_raw_to_mgauss()
336 (raw[AXIS_Z] - nfo) * 1000 / sens[AXIS_Z]; in mmc35240_raw_to_mgauss()
339 *val = (raw[AXIS_Y] - nfo) * 1000 / sens[AXIS_Y] + in mmc35240_raw_to_mgauss()
340 (raw[AXIS_Z] - nfo) * 1000 / sens[AXIS_Z]; in mmc35240_raw_to_mgauss()
/linux-6.3-rc2/drivers/iio/pressure/
A Dms5611_core.c124 s64 off, sens, dt; in ms5611_temp_and_pressure_compensate() local
128 sens = ((s64)st->prom[1] << 15) + ((st->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate()
147 sens -= sens2; in ms5611_temp_and_pressure_compensate()
151 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5611_temp_and_pressure_compensate()
160 s64 off, sens, dt; in ms5607_temp_and_pressure_compensate() local
164 sens = ((s64)st->prom[1] << 16) + ((st->prom[3] * dt) >> 7); in ms5607_temp_and_pressure_compensate()
183 sens -= sens2; in ms5607_temp_and_pressure_compensate()
187 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5607_temp_and_pressure_compensate()
A Dhp03.c99 int ab_val, d1_val, d2_val, diff_val, dut, off, sens, x; in hp03_update_temp_pressure() local
147 sens = cx_val[0] + ((cx_val[2] * dut) >> 10); in hp03_update_temp_pressure()
148 x = ((sens * (d1_val - 7168)) >> 14) - off; in hp03_update_temp_pressure()
/linux-6.3-rc2/sound/isa/gus/
A Dgus_volume.c147 unsigned short snd_gf1_compute_pitchbend(unsigned short pitchbend, unsigned short sens)
156 if (!sens)
159 sensitivity = ((int) sens * wheel) / 128;
/linux-6.3-rc2/drivers/pinctrl/mediatek/
A Dmtk-eint.c37 .sens = 0x140,
85 unsigned int sens; in mtk_eint_can_en_debounce() local
88 eint->regs->sens); in mtk_eint_can_en_debounce()
91 sens = MTK_EINT_LEVEL_SENSITIVE; in mtk_eint_can_en_debounce()
93 sens = MTK_EINT_EDGE_SENSITIVE; in mtk_eint_can_en_debounce()
95 if (eint_num < eint->hw->db_cnt && sens != MTK_EINT_EDGE_SENSITIVE) in mtk_eint_can_en_debounce()
A Dmtk-eint.h20 unsigned int sens; member
A Dpinctrl-mtk-common.h172 unsigned int sens; member
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/dvm/
A Ddevices.c157 priv->hw_params.sens = &iwl1000_sensitivity; in iwl1000_hw_set_hw_params()
218 priv->hw_params.sens = &iwl2000_sensitivity; in iwl2000_hw_set_hw_params()
362 priv->hw_params.sens = &iwl5000_sensitivity; in iwl5000_hw_set_hw_params()
370 priv->hw_params.sens = &iwl5150_sensitivity; in iwl5150_hw_set_hw_params()
542 priv->hw_params.sens = &iwl6000_sensitivity; in iwl6000_hw_set_hw_params()
/linux-6.3-rc2/drivers/iio/common/ms_sensors/
A Dms_sensors_i2c.c625 s64 off, sens, t2, off2, sens2; in ms_sensors_read_temp_and_pressure() local
682 sens = (((s64)prom[1]) << 16) + (((s64)prom[3] * dt) >> 7); in ms_sensors_read_temp_and_pressure()
683 sens -= sens2; in ms_sensors_read_temp_and_pressure()
687 *pressure = (u32)(((((s64)p_adc * sens) >> 21) - off) >> 15); in ms_sensors_read_temp_and_pressure()
/linux-6.3-rc2/drivers/staging/rtl8192u/
A Dr8192U_wx.c673 wrqu->sens.value = priv->sens; in r8192_wx_get_sens()
689 if (priv->rf_set_sens(dev, wrqu->sens.value) == 0) in r8192_wx_set_sens()
690 priv->sens = wrqu->sens.value; in r8192_wx_set_sens()
/linux-6.3-rc2/drivers/iio/cdc/
A Dad7150.c206 u8 sens, timeout; in ad7150_write_event_params() local
208 sens = chip->thresh_sensitivity[rising][chan]; in ad7150_write_event_params()
211 sens); in ad7150_write_event_params()
/linux-6.3-rc2/drivers/staging/rtl8192e/rtl8192e/
A Drtl_core.h295 short (*rf_set_sens)(struct net_device *dev, short sens);
335 short sens; member
A Drtl_wx.c822 wrqu->sens.value = priv->sens; in _rtl92e_wx_get_sens()
842 if (priv->rf_set_sens(dev, wrqu->sens.value) == 0) in _rtl92e_wx_set_sens()
843 priv->sens = wrqu->sens.value; in _rtl92e_wx_set_sens()
/linux-6.3-rc2/drivers/hwmon/
A Dw83627hf.c379 u16 sens[3]; /* 1 = pentium diode; 2 = 3904 diode; member
755 data->sens[i - 1] = 4; in w83627hf_init_device()
760 data->sens[i - 1] = 1; in w83627hf_init_device()
762 data->sens[i - 1] = 2; in w83627hf_init_device()
1297 return sprintf(buf, "%ld\n", (long) data->sens[nr]); in temp_type_show()
1324 data->sens[nr] = val; in temp_type_store()
1333 data->sens[nr] = val; in temp_type_store()
1343 data->sens[nr] = val; in temp_type_store()
A Dw83781d.c229 u16 sens[3]; /* member
774 return sprintf(buf, "%d\n", (int)data->sens[attr->index]); in show_sensor()
802 data->sens[nr] = val; in store_sensor()
811 data->sens[nr] = val; in store_sensor()
822 data->sens[nr] = val; in store_sensor()
1392 data->sens[i - 1] = 4; in w83781d_init_device()
1397 data->sens[i - 1] = 1; in w83781d_init_device()
1399 data->sens[i - 1] = 2; in w83781d_init_device()

Completed in 49 milliseconds

12