Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dcoretemp.c69 struct temp_data { struct
94 struct temp_data *core_data[MAX_CORE_DATA]; argument
108 struct temp_data *tdata = pdata->core_data[attr->index]; in show_label()
122 struct temp_data *tdata = pdata->core_data[attr->index]; in show_crit_alarm()
155 struct temp_data *tdata = pdata->core_data[attr->index]; in show_temp()
382 static int create_core_attrs(struct temp_data *tdata, struct device *dev, in create_core_attrs()
434 static struct temp_data *init_temp_data(unsigned int cpu, int pkg_flag) in init_temp_data()
436 struct temp_data *tdata; in init_temp_data()
438 tdata = kzalloc(sizeof(struct temp_data), GFP_KERNEL); in init_temp_data()
455 struct temp_data *tdata; in create_core_data()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/humidity/
H A Dam2315.c45 s16 temp_data; member
148 sensor_data->temp_data = (rx_buf[AM2315_TEMP_OFFSET] << 8) | in am2315_read_data()
175 data->scan.chans[1] = sensor_data.temp_data; in am2315_trigger_handler()
180 data->scan.chans[i] = (bit ? sensor_data.temp_data : in am2315_trigger_handler()
208 sensor_data.hum_data : sensor_data.temp_data; in am2315_read_raw()
/OK3568_Linux_fs/kernel/sound/soc/codecs/aw883xx/
H A Daw_monitor.c350 struct aw_table *temp_data = &monitor->temp_trace.aw_table; in aw_monitor_get_cfg() local
353 if (temp_data->ipeak == IPEAK_NONE && vol_data->ipeak == IPEAK_NONE) { in aw_monitor_get_cfg()
354 memcpy(set_table, temp_data, sizeof(struct aw_table)); in aw_monitor_get_cfg()
355 } else if (temp_data->ipeak == IPEAK_NONE) { in aw_monitor_get_cfg()
358 memcpy(set_table, temp_data, sizeof(struct aw_table)); in aw_monitor_get_cfg()
361 set_table->ipeak = (temp_data->ipeak < vol_data->ipeak ? in aw_monitor_get_cfg()
362 temp_data->ipeak : vol_data->ipeak); in aw_monitor_get_cfg()
363 set_table->gain = (temp_data->gain < vol_data->gain ? in aw_monitor_get_cfg()
364 vol_data->gain : temp_data->gain); in aw_monitor_get_cfg()
365 set_table->vmax = (temp_data->vmax < vol_data->vmax ? in aw_monitor_get_cfg()
[all …]
H A Daw883xx.c381 uint16_t temp_data = 0; in aw883xx_dsp_write_32bit() local
390 temp_data = dsp_data & AW883XX_DSP_16_DATA_MASK; in aw883xx_dsp_write_32bit()
391 ret = aw883xx_i2c_write(aw883xx, desc->dsp_mdat_reg, temp_data); in aw883xx_dsp_write_32bit()
397 temp_data = dsp_data >> 16; in aw883xx_dsp_write_32bit()
398 ret = aw883xx_i2c_write(aw883xx, desc->dsp_mdat_reg, temp_data); in aw883xx_dsp_write_32bit()
455 uint16_t temp_data = 0; in aw883xx_dsp_read_16bit() local
464 ret = aw883xx_i2c_read(aw883xx, desc->dsp_mdat_reg, &temp_data); in aw883xx_dsp_read_16bit()
470 *dsp_data = temp_data; in aw883xx_dsp_read_16bit()
479 uint16_t temp_data = 0; in aw883xx_dsp_read_32bit() local
490 ret = aw883xx_i2c_read(aw883xx, desc->dsp_mdat_reg, &temp_data); in aw883xx_dsp_read_32bit()
[all …]
H A Daw_device.c437 uint8_t temp_data[4] = { 0 }; in aw_dev_modify_dsp_cfg() local
442 temp_data[0] = (uint8_t)(dsp_data & 0x00ff); in aw_dev_modify_dsp_cfg()
443 temp_data[1] = (uint8_t)((dsp_data & 0xff00) >> 8); in aw_dev_modify_dsp_cfg()
446 temp_data[0] = (uint8_t)(dsp_data & 0x000000ff); in aw_dev_modify_dsp_cfg()
447 temp_data[1] = (uint8_t)((dsp_data & 0x0000ff00) >> 8); in aw_dev_modify_dsp_cfg()
448 temp_data[2] = (uint8_t)((dsp_data & 0x00ff0000) >> 16); in aw_dev_modify_dsp_cfg()
449 temp_data[3] = (uint8_t)((dsp_data & 0xff000000) >> 24); in aw_dev_modify_dsp_cfg()
463 memcpy(crc_dsp_cfg->data + addr_offset, temp_data, len); in aw_dev_modify_dsp_cfg()
H A Daw_calib.c2174 uint32_t temp_data[AW_DEV_CH_MAX] = { 0 }; in aw_cali_misc_read() local
2186 ret = aw_cali_svc_get_devs_cali_val(aw_dev, GET_RE_TYPE, temp_data, AW_DEV_CH_MAX); in aw_cali_misc_read()
2192 len += snprintf(local_buf+len, sizeof(local_buf) - len, "dev[%d]:%u ", i, temp_data[i]); in aw_cali_misc_read()
2198 ret = aw_cali_svc_get_devs_r0(aw_dev, temp_data, AW_DEV_CH_MAX); in aw_cali_misc_read()
2205 "dev[%d]:%d ", i, temp_data[i]); in aw_cali_misc_read()
2210 ret = aw_cali_svc_get_devs_cali_val(aw_dev, GET_F0_TYPE, temp_data, AW_DEV_CH_MAX); in aw_cali_misc_read()
2217 "dev[%d]:%d ", i, temp_data[i]); in aw_cali_misc_read()
2223 ret = aw_cali_svc_get_devs_f0(aw_dev, temp_data, AW_DEV_CH_MAX); in aw_cali_misc_read()
2230 "dev[%d]:%d ", i, temp_data[i]); in aw_cali_misc_read()
2236 ret = aw_cali_svc_get_devs_te(aw_dev, temp_data, AW_DEV_CH_MAX); in aw_cali_misc_read()
[all …]
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dmax17042_battery.c588 u16 *temp_data; in max17042_init_model() local
590 temp_data = kcalloc(table_size, sizeof(*temp_data), GFP_KERNEL); in max17042_init_model()
591 if (!temp_data) in max17042_init_model()
597 max17042_read_model_data(chip, MAX17042_MODELChrTbl, temp_data, in max17042_init_model()
603 temp_data, in max17042_init_model()
607 kfree(temp_data); in max17042_init_model()
616 u16 *temp_data; in max17042_verify_model_lock() local
619 temp_data = kcalloc(table_size, sizeof(*temp_data), GFP_KERNEL); in max17042_verify_model_lock()
620 if (!temp_data) in max17042_verify_model_lock()
623 max17042_read_model_data(chip, MAX17042_MODELChrTbl, temp_data, in max17042_verify_model_lock()
[all …]
/OK3568_Linux_fs/kernel/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()
H A Dgslx680_firefly.c415 char temp_data[5] = {0}; local
434 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4);
435 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4);
438 ptr += sprintf(ptr, "%02x", temp_data[3]);
439 ptr += sprintf(ptr, "%02x", temp_data[2]);
440 ptr += sprintf(ptr, "%02x", temp_data[1]);
441 ptr += sprintf(ptr, "%02x};\n", temp_data[0]);
H A Dgsl3673.c510 char temp_data[5] = {0}; in gsl_config_read_proc() local
531 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4); in gsl_config_read_proc()
532 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4); in gsl_config_read_proc()
534 seq_printf(m, "%02d", temp_data[3]); in gsl_config_read_proc()
535 seq_printf(m, "%02d", temp_data[2]); in gsl_config_read_proc()
536 seq_printf(m, "%02d", temp_data[1]); in gsl_config_read_proc()
537 seq_printf(m, "%02d};\n", temp_data[0]); in gsl_config_read_proc()
H A Dgslx680a.c521 char temp_data[5] = {0}; in gsl_config_read_proc() local
542 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4); in gsl_config_read_proc()
543 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4); in gsl_config_read_proc()
546 seq_printf(m, "%02x", temp_data[3]); in gsl_config_read_proc()
547 seq_printf(m, "%02x", temp_data[2]); in gsl_config_read_proc()
548 seq_printf(m, "%02x", temp_data[1]); in gsl_config_read_proc()
549 seq_printf(m, "%02x};\n", temp_data[0]); in gsl_config_read_proc()
H A Dgsl3673_800x1280.c534 char temp_data[5] = {0}; in gsl_config_read_proc() local
555 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4); in gsl_config_read_proc()
556 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4); in gsl_config_read_proc()
558 seq_printf(m, "%02d", temp_data[3]); in gsl_config_read_proc()
559 seq_printf(m, "%02d", temp_data[2]); in gsl_config_read_proc()
560 seq_printf(m, "%02d", temp_data[1]); in gsl_config_read_proc()
561 seq_printf(m, "%02d};\n", temp_data[0]); in gsl_config_read_proc()
H A Dgslx680_pad.c428 char temp_data[5] = {0}; in gsl_config_read_proc() local
451 gsl_read_interface(gsl_client,gsl_data_proc[0],temp_data,4); in gsl_config_read_proc()
453 seq_printf(m,"%02x",temp_data[3]); in gsl_config_read_proc()
454 seq_printf(m,"%02x",temp_data[2]); in gsl_config_read_proc()
455 seq_printf(m,"%02x",temp_data[1]); in gsl_config_read_proc()
456 seq_printf(m,"%02x};\n",temp_data[0]); in gsl_config_read_proc()
H A Dgslx680.c603 char temp_data[5] = { 0 }; in gsl_config_read_proc() local
635 4, temp_data); in gsl_config_read_proc()
638 temp_data); in gsl_config_read_proc()
641 seq_printf(m, "%02x", temp_data[3]); in gsl_config_read_proc()
642 seq_printf(m, "%02x", temp_data[2]); in gsl_config_read_proc()
643 seq_printf(m, "%02x", temp_data[1]); in gsl_config_read_proc()
644 seq_printf(m, "%02x};\n", temp_data[0]); in gsl_config_read_proc()
/OK3568_Linux_fs/u-boot/drivers/rkflash/
H A Dnandc.c428 u32 temp_data; in nandc_xfer_data() local
432 temp_data = master.spare_buf[i * spare_sz / 4]; in nandc_xfer_data()
433 *p_spare_temp++ = (u8)temp_data; in nandc_xfer_data()
434 *p_spare_temp++ = (u8)(temp_data >> 8); in nandc_xfer_data()
435 *p_spare_temp++ = (u8)(temp_data >> 16); in nandc_xfer_data()
436 *p_spare_temp++ = (u8)(temp_data >> 24); in nandc_xfer_data()
/OK3568_Linux_fs/kernel/drivers/rkflash/
H A Dnandc.c453 u32 temp_data; in nandc_xfer_data() local
457 temp_data = master.spare_buf[i * spare_sz / 4]; in nandc_xfer_data()
458 *p_spare_temp++ = (u8)temp_data; in nandc_xfer_data()
459 *p_spare_temp++ = (u8)(temp_data >> 8); in nandc_xfer_data()
460 *p_spare_temp++ = (u8)(temp_data >> 16); in nandc_xfer_data()
461 *p_spare_temp++ = (u8)(temp_data >> 24); in nandc_xfer_data()
/OK3568_Linux_fs/kernel/drivers/thermal/st/
H A Dst_thermal.c35 sensor->temp_data = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
40 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
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gt1x/
H A Dgt1x_generic.c109 char temp_data[GTP_CONFIG_MAX_LENGTH] = { 0 }; in gt1x_debug_read_proc() local
127 i = gt1x_i2c_read(GTP_REG_CONFIG_DATA, temp_data, GTP_CONFIG_MAX_LENGTH); in gt1x_debug_read_proc()
130 ptr += sprintf(ptr, "0x%02X,", temp_data[i]); in gt1x_debug_read_proc()
140 gt1x_i2c_read(GTP_REG_VERSION, temp_data, 12); in gt1x_debug_read_proc()
141 …ptr += sprintf(ptr, "ProductID: GT%c%c%c%c\n", temp_data[0], temp_data[1], temp_data[2], temp_data in gt1x_debug_read_proc()
142 ptr += sprintf(ptr, "PatchID: %02X%02X\n", temp_data[4], temp_data[5]); in gt1x_debug_read_proc()
143 ptr += sprintf(ptr, "MaskID: %02X%02X\n", temp_data[7], temp_data[8]); in gt1x_debug_read_proc()
144 ptr += sprintf(ptr, "SensorID: %02X\n", temp_data[10] & 0x0F); in gt1x_debug_read_proc()
/OK3568_Linux_fs/kernel/scripts/
H A Dbmpconvert111 temp_data = self.bmp_data
117 self.get_16bit_bgr_bf(temp_data[height][width])
176 temp_data = self.bmp_data
182 self.get_16bit_bgr(temp_data[height][width])
/OK3568_Linux_fs/kernel/drivers/thermal/
H A Dimx_thermal.c100 u32 temp_data; member
129 .temp_data = IMX6_TEMPSENSE0,
150 .temp_data = IMX6_TEMPSENSE0,
179 .temp_data = IMX7_TEMPSENSE1,
264 regmap_read(map, soc_data->temp_data, &val); in imx_get_temp()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/
H A Drga_dma_buf.c364 int temp_data = 0; in rga_virtual_memory_check() local
377 temp_data = w * (h - 1) * bits >> 3; in rga_virtual_memory_check()
380 memcpy(one_line, (char *)vaddr + temp_data, w * bits >> 3); in rga_virtual_memory_check()
384 memcpy((void *)((char *)vaddr + temp_data), one_line, in rga_virtual_memory_check()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gsl3676/
H A Dgsl3676.c502 char temp_data[5] = {0}; in gsl_config_read_proc() local
524 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4); in gsl_config_read_proc()
525 gsl_ts_read(gsl_client, gsl_data_proc[0], temp_data, 4); in gsl_config_read_proc()
527 seq_printf(m, "%02d", temp_data[3]); in gsl_config_read_proc()
528 seq_printf(m, "%02d", temp_data[2]); in gsl_config_read_proc()
529 seq_printf(m, "%02d", temp_data[1]); in gsl_config_read_proc()
530 seq_printf(m, "%02d};\n", temp_data[0]); in gsl_config_read_proc()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gslx680_d708/
H A Drockchip_gslX680.c450 char temp_data[5] = {0}; in gsl_config_read_proc() local
475 i2c_smbus_read_i2c_block_data(gsl_client, gsl_data_proc[0], 4, temp_data); in gsl_config_read_proc()
476 i2c_smbus_read_i2c_block_data(gsl_client, gsl_data_proc[0], 4, temp_data); in gsl_config_read_proc()
484 seq_printf(m, "%02x", temp_data[3]); in gsl_config_read_proc()
485 seq_printf(m, "%02x", temp_data[2]); in gsl_config_read_proc()
486 seq_printf(m, "%02x", temp_data[1]); in gsl_config_read_proc()
487 seq_printf(m, "%02x};\n", temp_data[0]); in gsl_config_read_proc()
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dsun4i-gpadc-iio.c94 int temp_data; member
249 *val = info->temp_data; in sun4i_gpadc_read()
361 if (!regmap_read(info->regmap, SUN4I_GPADC_TEMP_DATA, &info->temp_data)) in sun4i_gpadc_temp_data_irq_handler()

12