Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/macintosh/
Dwindfarm_smu_sat.c46 struct wf_sensor sens; member
49 #define wf_to_sat(c) container_of(c, struct wf_sat_sensor, sens)
137 struct wf_sat_sensor *sens = wf_to_sat(sr); in wf_sat_sensor_get() local
138 struct wf_sat *sat = sens->sat; in wf_sat_sensor_get()
152 i = sens->index * 2; in wf_sat_sensor_get()
153 val = ((sat->cache[i] << 8) + sat->cache[i+1]) << sens->shift; in wf_sat_sensor_get()
154 if (sens->index2 >= 0) { in wf_sat_sensor_get()
155 i = sens->index2 * 2; in wf_sat_sensor_get()
179 struct wf_sat_sensor *sens = wf_to_sat(sr); in wf_sat_sensor_release() local
180 struct wf_sat *sat = sens->sat; in wf_sat_sensor_release()
[all …]
Dwindfarm_smu_sensors.c54 struct wf_sensor sens; member
56 #define to_smu_ads(c) container_of(c, struct smu_ad_sensor, sens)
218 ads->sens.ops = &smu_cputemp_ops; in smu_ads_create()
219 ads->sens.name = "cpu-temp"; in smu_ads_create()
227 ads->sens.ops = &smu_cpuamp_ops; in smu_ads_create()
228 ads->sens.name = "cpu-current"; in smu_ads_create()
236 ads->sens.ops = &smu_cpuvolt_ops; in smu_ads_create()
237 ads->sens.name = "cpu-voltage"; in smu_ads_create()
245 ads->sens.ops = &smu_slotspow_ops; in smu_ads_create()
246 ads->sens.name = "slots-power"; in smu_ads_create()
[all …]
Dwindfarm_max6690_sensor.c29 struct wf_sensor sens; member
32 #define wf_to_6690(x) container_of((x), struct wf_6690_sensor, sens)
97 max->sens.name = name; in wf_max6690_probe()
98 max->sens.ops = &wf_max6690_ops; in wf_max6690_probe()
101 rc = wf_register_sensor(&max->sens); in wf_max6690_probe()
112 wf_unregister_sensor(&max->sens); in wf_max6690_remove()
Dwindfarm_lm87_sensor.c36 struct wf_sensor sens; member
38 #define wf_to_lm87(c) container_of(c, struct wf_lm87_sensor, sens)
137 lm->sens.name = name; in wf_lm87_probe()
138 lm->sens.ops = &wf_lm87_ops; in wf_lm87_probe()
139 lm->sens.priv = lm; in wf_lm87_probe()
142 rc = wf_register_sensor(&lm->sens); in wf_lm87_probe()
156 wf_unregister_sensor(&lm->sens); in wf_lm87_remove()
Dwindfarm_lm75_sensor.c40 struct wf_sensor sens; member
42 #define wf_to_lm75(c) container_of(c, struct wf_lm75_sensor, sens)
141 lm->sens.name = name; in wf_lm75_probe()
142 lm->sens.ops = &wf_lm75_ops; in wf_lm75_probe()
145 rc = wf_register_sensor(&lm->sens); in wf_lm75_probe()
159 wf_unregister_sensor(&lm->sens); in wf_lm75_remove()
Dwindfarm_core.c294 struct wf_sensor *sens = container_of(attr, struct wf_sensor, attr); in wf_show_sensor() local
298 err = sens->ops->get_value(sens, &val); in wf_show_sensor()
/Linux-v5.10/security/selinux/ss/
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()
105 if (r1->level[1].sens < r2->level[0].sens || in mls_context_glblub()
106 r2->level[1].sens < r1->level[0].sens) in mls_context_glblub()
111 dr->level[0].sens = max(r1->level[0].sens, r2->level[0].sens); in mls_context_glblub()
114 dr->level[1].sens = min(r1->level[1].sens, r2->level[1].sens); in mls_context_glblub()
[all …]
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()
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()
166 if (!l->sens || l->sens > p->p_levels.nprim) in mls_level_isvalid()
169 sym_name(p, SYM_LEVELS, l->sens - 1)); in mls_level_isvalid()
299 context->range.level[l].sens = levdatum->level->sens; in mls_context_to_sid()
345 context->range.level[1].sens = context->range.level[0].sens; in mls_context_to_sid()
392 context->range.level[l].sens = range->level[l].sens; in mls_range_set()
462 oldc->range.level[l].sens - 1); in mls_convert_context()
468 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 …]
Dmls.h109 hash = jhash_2words(r->level[0].sens, r->level[1].sens, hash); in mls_range_hash()
/Linux-v5.10/drivers/iio/magnetometer/
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-v5.10/drivers/iio/pressure/
Dms5611_core.c126 s64 off, sens, dt; in ms5611_temp_and_pressure_compensate() local
130 sens = ((s64)chip_info->prom[1] << 15) + ((chip_info->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate()
149 sens -= sens2; in ms5611_temp_and_pressure_compensate()
153 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5611_temp_and_pressure_compensate()
162 s64 off, sens, dt; in ms5607_temp_and_pressure_compensate() local
166 sens = ((s64)chip_info->prom[1] << 16) + ((chip_info->prom[3] * dt) >> 7); in ms5607_temp_and_pressure_compensate()
185 sens -= sens2; in ms5607_temp_and_pressure_compensate()
189 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5607_temp_and_pressure_compensate()
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-v5.10/sound/isa/gus/
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-v5.10/drivers/pinctrl/mediatek/
Dmtk-eint.c36 .sens = 0x140,
69 unsigned int sens; in mtk_eint_can_en_debounce() local
72 eint->regs->sens); in mtk_eint_can_en_debounce()
75 sens = MTK_EINT_LEVEL_SENSITIVE; in mtk_eint_can_en_debounce()
77 sens = MTK_EINT_EDGE_SENSITIVE; in mtk_eint_can_en_debounce()
79 if (eint_num < eint->hw->db_cnt && sens != MTK_EINT_EDGE_SENSITIVE) in mtk_eint_can_en_debounce()
Dmtk-eint.h20 unsigned int sens; member
Dpinctrl-mtk-common.h172 unsigned int sens; member
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Ddevices.c162 priv->hw_params.sens = &iwl1000_sensitivity; in iwl1000_hw_set_hw_params()
223 priv->hw_params.sens = &iwl2000_sensitivity; in iwl2000_hw_set_hw_params()
367 priv->hw_params.sens = &iwl5000_sensitivity; in iwl5000_hw_set_hw_params()
375 priv->hw_params.sens = &iwl5150_sensitivity; in iwl5150_hw_set_hw_params()
547 priv->hw_params.sens = &iwl6000_sensitivity; in iwl6000_hw_set_hw_params()
/Linux-v5.10/drivers/iio/common/ms_sensors/
Dms_sensors_i2c.c579 s64 off, sens, t2, off2, sens2; in ms_sensors_read_temp_and_pressure() local
636 sens = (((s64)prom[1]) << 16) + (((s64)prom[3] * dt) >> 7); in ms_sensors_read_temp_and_pressure()
637 sens -= sens2; in ms_sensors_read_temp_and_pressure()
641 *pressure = (u32)(((((s64)p_adc * sens) >> 21) - off) >> 15); in ms_sensors_read_temp_and_pressure()
/Linux-v5.10/drivers/staging/iio/cdc/
Dad7150.c177 u8 sens, timeout; in ad7150_write_event_params() local
195 sens = chip->mag_sensitivity[rising][chan]; in ad7150_write_event_params()
199 sens = chip->thresh_sensitivity[rising][chan]; in ad7150_write_event_params()
207 sens); in ad7150_write_event_params()
/Linux-v5.10/drivers/staging/rtl8192u/
Dr8192U_wx.c671 wrqu->sens.value = priv->sens; in r8192_wx_get_sens()
687 if (priv->rf_set_sens(dev, wrqu->sens.value) == 0) in r8192_wx_set_sens()
688 priv->sens = wrqu->sens.value; in r8192_wx_set_sens()
/Linux-v5.10/drivers/hwmon/
Dw83627hf.c379 u16 sens[3]; /* 1 = pentium diode; 2 = 3904 diode; member
1175 return sprintf(buf, "%ld\n", (long) data->sens[nr]); in temp_type_show()
1202 data->sens[nr] = val; in temp_type_store()
1211 data->sens[nr] = val; in temp_type_store()
1221 data->sens[nr] = val; in temp_type_store()
1756 data->sens[i - 1] = 4; in w83627hf_init_device()
1761 data->sens[i - 1] = 1; in w83627hf_init_device()
1763 data->sens[i - 1] = 2; in w83627hf_init_device()
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()
1394 data->sens[i - 1] = 4; in w83781d_init_device()
1399 data->sens[i - 1] = 1; in w83781d_init_device()
1401 data->sens[i - 1] = 2; in w83781d_init_device()
/Linux-v5.10/drivers/staging/rtl8192e/rtl8192e/
Drtl_wx.c833 wrqu->sens.value = priv->sens; in _rtl92e_wx_get_sens()
853 if (priv->rf_set_sens(dev, wrqu->sens.value) == 0) in _rtl92e_wx_set_sens()
854 priv->sens = wrqu->sens.value; in _rtl92e_wx_set_sens()
Drtl_core.h371 short (*rf_set_sens)(struct net_device *dev, short sens);
411 short sens; member

12