/drivers/macintosh/ |
D | windfarm_smu_sat.c | 47 struct wf_sensor sens; member 50 #define wf_to_sat(c) container_of(c, struct wf_sat_sensor, sens) 138 struct wf_sat_sensor *sens = wf_to_sat(sr); in wf_sat_sensor_get() local 139 struct wf_sat *sat = sens->sat; in wf_sat_sensor_get() 153 i = sens->index * 2; in wf_sat_sensor_get() 154 val = ((sat->cache[i] << 8) + sat->cache[i+1]) << sens->shift; in wf_sat_sensor_get() 155 if (sens->index2 >= 0) { in wf_sat_sensor_get() 156 i = sens->index2 * 2; in wf_sat_sensor_get() 180 struct wf_sat_sensor *sens = wf_to_sat(sr); in wf_sat_sensor_release() local 181 struct wf_sat *sat = sens->sat; in wf_sat_sensor_release() [all …]
|
D | windfarm_smu_sensors.c | 55 struct wf_sensor sens; member 57 #define to_smu_ads(c) container_of(c, struct smu_ad_sensor, sens) 220 ads->sens.ops = &smu_cputemp_ops; in smu_ads_create() 221 ads->sens.name = "cpu-temp"; in smu_ads_create() 229 ads->sens.ops = &smu_cpuamp_ops; in smu_ads_create() 230 ads->sens.name = "cpu-current"; in smu_ads_create() 238 ads->sens.ops = &smu_cpuvolt_ops; in smu_ads_create() 239 ads->sens.name = "cpu-voltage"; in smu_ads_create() 247 ads->sens.ops = &smu_slotspow_ops; in smu_ads_create() 248 ads->sens.name = "slots-power"; in smu_ads_create() [all …]
|
D | windfarm_lm87_sensor.c | 38 struct wf_sensor sens; member 40 #define wf_to_lm87(c) container_of(c, struct wf_lm87_sensor, sens) 139 lm->sens.name = name; in wf_lm87_probe() 140 lm->sens.ops = &wf_lm87_ops; in wf_lm87_probe() 141 lm->sens.priv = lm; in wf_lm87_probe() 144 rc = wf_register_sensor(&lm->sens); in wf_lm87_probe() 154 DBG("wf_lm87: i2c detatch called for %s\n", lm->sens.name); in wf_lm87_remove() 160 wf_unregister_sensor(&lm->sens); in wf_lm87_remove()
|
D | windfarm_lm75_sensor.c | 40 struct wf_sensor sens; member 42 #define wf_to_lm75(c) container_of(c, struct wf_lm75_sensor, sens) 136 lm->sens.name = name; in wf_lm75_probe() 137 lm->sens.ops = &wf_lm75_ops; in wf_lm75_probe() 140 rc = wf_register_sensor(&lm->sens); in wf_lm75_probe() 150 DBG("wf_lm75: i2c detatch called for %s\n", lm->sens.name); in wf_lm75_remove() 156 wf_unregister_sensor(&lm->sens); in wf_lm75_remove()
|
D | windfarm_max6690_sensor.c | 30 struct wf_sensor sens; member 33 #define wf_to_6690(x) container_of((x), struct wf_6690_sensor, sens) 98 max->sens.name = name; in wf_max6690_probe() 99 max->sens.ops = &wf_max6690_ops; in wf_max6690_probe() 102 rc = wf_register_sensor(&max->sens); in wf_max6690_probe() 113 wf_unregister_sensor(&max->sens); in wf_max6690_remove()
|
D | windfarm_core.c | 295 struct wf_sensor *sens = container_of(attr, struct wf_sensor, attr); in wf_show_sensor() local 299 err = sens->ops->get_value(sens, &val); in wf_show_sensor()
|
/drivers/iio/magnetometer/ |
D | mmc35240.c | 100 int sens[3]; /* sensitivity per X, Y, Z axis */ member 320 int sens[3]; in mmc35240_raw_to_mgauss() local 327 sens[AXIS_X] = mmc35240_props_table[data->res].sens[AXIS_X]; in mmc35240_raw_to_mgauss() 328 sens[AXIS_Y] = mmc35240_props_table[data->res].sens[AXIS_Y]; in mmc35240_raw_to_mgauss() 329 sens[AXIS_Z] = mmc35240_props_table[data->res].sens[AXIS_Z]; in mmc35240_raw_to_mgauss() 335 *val = (raw[AXIS_X] - nfo) * 1000 / sens[AXIS_X]; in mmc35240_raw_to_mgauss() 338 *val = (raw[AXIS_Y] - nfo) * 1000 / sens[AXIS_Y] - in mmc35240_raw_to_mgauss() 339 (raw[AXIS_Z] - nfo) * 1000 / sens[AXIS_Z]; in mmc35240_raw_to_mgauss() 342 *val = (raw[AXIS_Y] - nfo) * 1000 / sens[AXIS_Y] + in mmc35240_raw_to_mgauss() 343 (raw[AXIS_Z] - nfo) * 1000 / sens[AXIS_Z]; in mmc35240_raw_to_mgauss()
|
D | ak8974.c | 520 unsigned sens = le16_to_cpu(fab_data1[i + 3]); in ak8974_detect() local 528 axis[i], offz, sens, fine, pgaxis[i * 2], in ak8974_detect()
|
/drivers/iio/pressure/ |
D | ms5611_core.c | 129 s64 off, sens, dt; in ms5611_temp_and_pressure_compensate() local 133 sens = ((s64)chip_info->prom[1] << 15) + ((chip_info->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate() 152 sens -= sens2; in ms5611_temp_and_pressure_compensate() 156 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5611_temp_and_pressure_compensate() 165 s64 off, sens, dt; in ms5607_temp_and_pressure_compensate() local 169 sens = ((s64)chip_info->prom[1] << 16) + ((chip_info->prom[3] * dt) >> 7); in ms5607_temp_and_pressure_compensate() 188 sens -= sens2; in ms5607_temp_and_pressure_compensate() 192 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5607_temp_and_pressure_compensate()
|
D | hp03.c | 102 int ab_val, d1_val, d2_val, diff_val, dut, off, sens, x; in hp03_update_temp_pressure() local 150 sens = cx_val[0] + ((cx_val[2] * dut) >> 10); in hp03_update_temp_pressure() 151 x = ((sens * (d1_val - 7168)) >> 14) - off; in hp03_update_temp_pressure()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | devices.c | 174 priv->hw_params.sens = &iwl1000_sensitivity; in iwl1000_hw_set_hw_params() 235 priv->hw_params.sens = &iwl2000_sensitivity; in iwl2000_hw_set_hw_params() 379 priv->hw_params.sens = &iwl5000_sensitivity; in iwl5000_hw_set_hw_params() 387 priv->hw_params.sens = &iwl5150_sensitivity; in iwl5150_hw_set_hw_params() 559 priv->hw_params.sens = &iwl6000_sensitivity; in iwl6000_hw_set_hw_params()
|
D | calib.c | 192 const struct iwl_sensitivity_ranges *ranges = priv->hw_params.sens; in iwl_sens_energy_cck() 375 const struct iwl_sensitivity_ranges *ranges = priv->hw_params.sens; in iwl_sens_auto_corr_ofdm() 599 const struct iwl_sensitivity_ranges *ranges = priv->hw_params.sens; in iwl_init_sensitivity()
|
/drivers/iio/common/ms_sensors/ |
D | ms_sensors_i2c.c | 580 s64 off, sens, t2, off2, sens2; in ms_sensors_read_temp_and_pressure() local 637 sens = (((s64)prom[1]) << 16) + (((s64)prom[3] * dt) >> 7); in ms_sensors_read_temp_and_pressure() 638 sens -= sens2; in ms_sensors_read_temp_and_pressure() 642 *pressure = (u32)(((((s64)p_adc * sens) >> 21) - off) >> 15); in ms_sensors_read_temp_and_pressure()
|
/drivers/staging/iio/cdc/ |
D | ad7150.c | 172 u8 sens, timeout; in ad7150_write_event_params() local 190 sens = chip->mag_sensitivity[rising][chan]; in ad7150_write_event_params() 194 sens = chip->thresh_sensitivity[rising][chan]; in ad7150_write_event_params() 202 sens); in ad7150_write_event_params()
|
/drivers/staging/rtl8192u/ |
D | r8192U_wx.c | 692 wrqu->sens.value = priv->sens; in r8192_wx_get_sens() 709 if (priv->rf_set_sens(dev, wrqu->sens.value) == 0) in r8192_wx_set_sens() 710 priv->sens = wrqu->sens.value; in r8192_wx_set_sens()
|
/drivers/hwmon/ |
D | w83781d.c | 242 u16 sens[3]; /* member 787 return sprintf(buf, "%d\n", (int)data->sens[attr->index]); in show_sensor() 815 data->sens[nr] = val; in store_sensor() 824 data->sens[nr] = val; in store_sensor() 835 data->sens[nr] = val; in store_sensor() 1410 data->sens[i - 1] = 4; in w83781d_init_device() 1415 data->sens[i - 1] = 1; in w83781d_init_device() 1417 data->sens[i - 1] = 2; in w83781d_init_device()
|
D | w83627hf.c | 392 u16 sens[3]; /* 1 = pentium diode; 2 = 3904 diode; member 1208 return sprintf(buf, "%ld\n", (long) data->sens[nr]); in show_temp_type() 1235 data->sens[nr] = val; in store_temp_type() 1244 data->sens[nr] = val; in store_temp_type() 1254 data->sens[nr] = val; in store_temp_type() 1794 data->sens[i - 1] = 4; in w83627hf_init_device() 1799 data->sens[i - 1] = 1; in w83627hf_init_device() 1801 data->sens[i - 1] = 2; in w83627hf_init_device()
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_wx.c | 861 wrqu->sens.value = priv->sens; in _rtl92e_wx_get_sens() 883 if (priv->rf_set_sens(dev, wrqu->sens.value) == 0) in _rtl92e_wx_set_sens() 884 priv->sens = wrqu->sens.value; in _rtl92e_wx_set_sens()
|
D | rtl_core.h | 383 short (*rf_set_sens)(struct net_device *dev, short sens); 423 short sens; member
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-calib.c | 120 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_sens_energy_cck() 299 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_sens_auto_corr_ofdm() 434 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_init_sensitivity()
|
/drivers/pinctrl/mediatek/ |
D | pinctrl-mtk-common.h | 178 unsigned int sens; member
|
D | pinctrl-mtk-common.c | 911 unsigned int sens; in mtk_eint_can_en_debounce() local 917 eint_offsets->sens); in mtk_eint_can_en_debounce() 920 sens = MT_LEVEL_SENSITIVE; in mtk_eint_can_en_debounce() 922 sens = MT_EDGE_SENSITIVE; in mtk_eint_can_en_debounce() 924 if ((eint_num < pctl->devdata->db_cnt) && (sens != MT_EDGE_SENSITIVE)) in mtk_eint_can_en_debounce()
|
D | pinctrl-mt8127.c | 310 .sens = 0x140,
|
D | pinctrl-mt8173.c | 350 .sens = 0x140,
|
D | pinctrl-mt2701.c | 541 .sens = 0x140,
|