Home
last modified time | relevance | path

Searched refs:temp_data (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/hwmon/
H A Dcoretemp.c74 struct temp_data { struct
97 struct temp_data *pkg_data; argument
98 struct temp_data **core_data;
150 static bool is_pkg_temp_data(struct temp_data *tdata) in is_pkg_temp_data()
273 static int get_tjmax(struct temp_data *tdata, struct device *dev) in get_tjmax()
312 static int get_ttarget(struct temp_data *tdata, struct device *dev) in get_ttarget()
345 struct temp_data *tdata = container_of(devattr, struct temp_data, sd_attrs[ATTR_LABEL]); in show_label()
357 struct temp_data *tdata = container_of(devattr, struct temp_data, in show_crit_alarm()
370 struct temp_data *tdata = container_of(devattr, struct temp_data, sd_attrs[ATTR_TJMAX]); in show_tjmax()
383 struct temp_data *tdata = container_of(devattr, struct temp_data, sd_attrs[ATTR_TTARGET]); in show_ttarget()
[all …]
/linux/sound/soc/mediatek/mt8192/
H A Dmt8192-afe-control.c147 void *temp_data; in mt8192_dai_set_priv() local
149 temp_data = devm_kzalloc(afe->dev, in mt8192_dai_set_priv()
152 if (!temp_data) in mt8192_dai_set_priv()
156 memcpy(temp_data, priv_data, priv_size); in mt8192_dai_set_priv()
158 afe_priv->dai_priv[id] = temp_data; in mt8192_dai_set_priv()
/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-afe-control.c240 void *temp_data; in mt8186_dai_set_priv() local
242 temp_data = devm_kzalloc(afe->dev, in mt8186_dai_set_priv()
245 if (!temp_data) in mt8186_dai_set_priv()
249 memcpy(temp_data, priv_data, priv_size); in mt8186_dai_set_priv()
251 afe_priv->dai_priv[id] = temp_data; in mt8186_dai_set_priv()
/linux/drivers/iio/humidity/
H A Dam2315.c44 s16 temp_data; member
147 sensor_data->temp_data = (rx_buf[AM2315_TEMP_OFFSET] << 8) | in am2315_read_data()
174 data->scan.chans[1] = sensor_data.temp_data; in am2315_trigger_handler()
178 data->scan.chans[i] = (bit ? sensor_data.temp_data : in am2315_trigger_handler()
206 sensor_data.hum_data : sensor_data.temp_data; in am2315_read_raw()
/linux/drivers/input/touchscreen/
H A Dsun4i-ts.c112 int temp_data; member
155 ts->temp_data = readl(ts->base + TEMP_DATA); in sun4i_ts_irq()
187 if (ts->temp_data == -1) in sun4i_get_temp()
190 *temp = ts->temp_data * ts->temp_step - ts->temp_offset; in sun4i_get_temp()
253 ts->temp_data = -1; in sun4i_ts_probe()
/linux/drivers/thermal/st/
H A Dst_thermal.c36 sensor->temp_data = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
41 IS_ERR(sensor->temp_data)) { in st_thermal_alloc_regfields()
123 ret = regmap_field_read(sensor->temp_data, &temp); in st_thermal_get_temp()
H A Dst_thermal.h88 struct regmap_field *temp_data; member
/linux/sound/soc/codecs/aw88395/
H A Daw88395_device.c41 u16 temp_data; in aw_dev_dsp_write_32bit() local
50 temp_data = dsp_data & AW88395_DSP_16_DATA_MASK; in aw_dev_dsp_write_32bit()
51 ret = regmap_write(aw_dev->regmap, AW88395_DSPMDAT_REG, (u16)temp_data); in aw_dev_dsp_write_32bit()
57 temp_data = dsp_data >> 16; in aw_dev_dsp_write_32bit()
58 ret = regmap_write(aw_dev->regmap, AW88395_DSPMDAT_REG, (u16)temp_data); in aw_dev_dsp_write_32bit()
104 unsigned int temp_data; in aw_dev_dsp_read_16bit() local
113 ret = regmap_read(aw_dev->regmap, AW88395_DSPMDAT_REG, &temp_data); in aw_dev_dsp_read_16bit()
118 *dsp_data = temp_data; in aw_dev_dsp_read_16bit()
126 unsigned int temp_data; in aw_dev_dsp_read_32bit() local
135 ret = regmap_read(aw_dev->regmap, AW88395_DSPMDAT_REG, &temp_data); in aw_dev_dsp_read_32bit()
[all …]
/linux/drivers/thermal/
H A Dimx_thermal.c99 u32 temp_data; member
134 .temp_data = IMX6_TEMPSENSE0,
155 .temp_data = IMX6_TEMPSENSE0,
184 .temp_data = IMX7_TEMPSENSE1,
267 regmap_read(map, soc_data->temp_data, &val); in imx_get_temp()
/linux/drivers/mtd/nand/raw/
H A Dnuvoton-ma35d1-nand-controller.c287 u32 temp_data[24], temp_addr[24]; in ma35_nfi_correct() local
320 temp_data[i * 4 + 0] = err_data[i] & 0xff; in ma35_nfi_correct()
321 temp_data[i * 4 + 1] = (err_data[i] >> 8) & 0xff; in ma35_nfi_correct()
322 temp_data[i * 4 + 2] = (err_data[i] >> 16) & 0xff; in ma35_nfi_correct()
323 temp_data[i * 4 + 3] = (err_data[i] >> 24) & 0xff; in ma35_nfi_correct()
349 *(addr + corrected_index) ^= temp_data[i]; in ma35_nfi_correct()
356 value ^= temp_data[i] << (8 * corrected_index); in ma35_nfi_correct()
381 value ^= temp_data[i] << (8 * remain); in ma35_nfi_correct()
/linux/sound/soc/codecs/
H A Daw88399.c52 unsigned int temp_data; in aw_dev_dsp_write_32bit() local
61 temp_data = dsp_data & AW88395_DSP_16_DATA_MASK; in aw_dev_dsp_write_32bit()
62 ret = regmap_write(aw_dev->regmap, AW88399_DSPMDAT_REG, temp_data); in aw_dev_dsp_write_32bit()
68 temp_data = dsp_data >> 16; in aw_dev_dsp_write_32bit()
69 ret = regmap_write(aw_dev->regmap, AW88399_DSPMDAT_REG, temp_data); in aw_dev_dsp_write_32bit()
113 unsigned int temp_data; in aw_dev_dsp_read_16bit() local
122 ret = regmap_read(aw_dev->regmap, AW88399_DSPMDAT_REG, &temp_data); in aw_dev_dsp_read_16bit()
127 *dsp_data = temp_data; in aw_dev_dsp_read_16bit()
135 unsigned int temp_data; in aw_dev_dsp_read_32bit() local
144 ret = regmap_read(aw_dev->regmap, AW88399_DSPMDAT_REG, &temp_data); in aw_dev_dsp_read_32bit()
[all …]
H A Daw88166.c67 unsigned int temp_data; in aw_dev_dsp_read_16bit() local
76 ret = regmap_read(aw_dev->regmap, AW88166_DSPMDAT_REG, &temp_data); in aw_dev_dsp_read_16bit()
81 *dsp_data = temp_data; in aw_dev_dsp_read_16bit()
89 unsigned int temp_data; in aw_dev_dsp_read_32bit() local
98 ret = regmap_read(aw_dev->regmap, AW88166_DSPMDAT_REG, &temp_data); in aw_dev_dsp_read_32bit()
103 *dsp_data = temp_data; in aw_dev_dsp_read_32bit()
105 ret = regmap_read(aw_dev->regmap, AW88166_DSPMDAT_REG, &temp_data); in aw_dev_dsp_read_32bit()
110 *dsp_data |= (temp_data << 16); in aw_dev_dsp_read_32bit()
/linux/drivers/iio/adc/
H A Dsun4i-gpadc-iio.c93 int temp_data; member
245 *val = info->temp_data; in sun4i_gpadc_read()
357 if (!regmap_read(info->regmap, SUN4I_GPADC_TEMP_DATA, &info->temp_data)) in sun4i_gpadc_temp_data_irq_handler()
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_sdio.c713 u32 temp_data = data & 0xFF; in rsi_sdio_master_reg_write() local
715 *data_aligned = ((temp_data << 24) | (temp_data << 16) | in rsi_sdio_master_reg_write()
716 (temp_data << 8) | temp_data); in rsi_sdio_master_reg_write()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c65 u64 temp_data = 0; in rvu_npc_toeplitz_hash() local
69 temp_data = (data[i / 64]); in rvu_npc_toeplitz_hash()
70 temp_data = temp_data >> (i % 64); in rvu_npc_toeplitz_hash()
71 temp_data &= 0x1; in rvu_npc_toeplitz_hash()
72 if (temp_data) in rvu_npc_toeplitz_hash()
/linux/drivers/acpi/
H A Dec.c915 u8 temp_data; in ec_read() local
920 err = acpi_ec_read(first_ec, addr, &temp_data); in ec_read()
923 *val = temp_data; in ec_read()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dphy.c414 u32 temp_data = 0; in _phy_convert_txpower_dbm_to_relative_value() local
429 temp_data <<= 8; in _phy_convert_txpower_dbm_to_relative_value()
430 temp_data |= temp_value; in _phy_convert_txpower_dbm_to_relative_value()
432 *data = temp_data; in _phy_convert_txpower_dbm_to_relative_value()