/kernel/linux/linux-5.10/drivers/hwmon/ |
D | smsc47m192.c | 98 s8 temp_offset[3]; /* Register value */ member 135 data->temp_offset[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device() 142 data->temp_offset[0] = data->temp_offset[1]; in smsc47m192_update_device() 143 data->temp_offset[1] = 0; in smsc47m192_update_device() 145 data->temp_offset[0] = 0; in smsc47m192_update_device() 345 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in temp_offset_show() 365 data->temp_offset[nr] = TEMP_TO_REG(val); in temp_offset_store() 368 SMSC47M192_REG_TEMP_OFFSET(nr), data->temp_offset[nr]); in temp_offset_store() 369 else if (data->temp_offset[nr] != 0) { in temp_offset_store() 376 data->temp_offset[1-nr] = 0; in temp_offset_store() [all …]
|
D | k8temp.c | 30 u32 temp_offset; member 111 *val = TEMP_FROM_REG(temp) + data->temp_offset; in k8temp_read() 169 data->temp_offset = 21000; in k8temp_probe()
|
D | max6697.c | 81 int temp_offset; /* in degrees C */ member 262 temp = (data->temp[index][MAX6697_TEMP_INPUT] - data->temp_offset) << 3; in temp_input_show() 280 temp -= data->temp_offset; in temp_show() 315 temp = DIV_ROUND_CLOSEST(temp, 1000) + data->temp_offset; in temp_store() 614 data->temp_offset = 64; in max6697_init_chip() 641 data->temp_offset = 64; in max6697_init_chip()
|
D | k10temp.c | 102 int temp_offset; member 223 *val = get_raw_temp(data) - data->temp_offset; in k10temp_read_temp() 465 data->temp_offset = entry->offset; in k10temp_probe()
|
D | adm1031.c | 90 s8 temp_offset[3]; member 148 data->temp_offset[chan] = in adm1031_update_device() 683 TEMP_OFFSET_FROM_REG(data->temp_offset[nr])); in temp_offset_show() 722 data->temp_offset[nr] = TEMP_OFFSET_TO_REG(val); in temp_offset_store() 724 data->temp_offset[nr]); in temp_offset_store() 796 static SENSOR_DEVICE_ATTR_RW(temp1_offset, temp_offset, 0); 801 static SENSOR_DEVICE_ATTR_RW(temp2_offset, temp_offset, 1); 806 static SENSOR_DEVICE_ATTR_RW(temp3_offset, temp_offset, 2);
|
D | adm1026.c | 274 s8 temp_offset[3]; /* Register value */ member 412 data->temp_offset[i] = adm1026_read_value(client, in adm1026_update_device() 876 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in temp_offset_show() 894 data->temp_offset[nr] = TEMP_TO_REG(val); in temp_offset_store() 896 data->temp_offset[nr]); in temp_offset_store() 901 static SENSOR_DEVICE_ATTR_RW(temp1_offset, temp_offset, 0); 902 static SENSOR_DEVICE_ATTR_RW(temp2_offset, temp_offset, 1); 903 static SENSOR_DEVICE_ATTR_RW(temp3_offset, temp_offset, 2);
|
D | w83627ehf.c | 338 s8 temp_offset[3]; member 677 data->temp_offset[i] in w83627ehf_update_device() 811 data->temp_offset[channel] = val; in store_temp_offset() 1446 *val = data->temp_offset[channel] * 1000; in w83627ehf_do_read_temp() 2030 data->temp_offset[i]); in w83627ehf_resume()
|
D | dme1737.c | 223 s8 temp_offset[3]; member 649 data->temp_offset[ix] = dme1737_read(data, in dme1737_update_device() 898 res = TEMP_FROM_REG(data->temp_offset[ix], 8); in show_temp() 942 data->temp_offset[ix] = TEMP_TO_REG(val); in set_temp() 944 data->temp_offset[ix]); in set_temp()
|
D | nct6775.c | 1160 s8 temp_offset[NUM_TEMP_FIXED]; member 1835 data->temp_offset[i] in nct6775_update_device() 2360 return sprintf(buf, "%d\n", data->temp_offset[sattr->index] * 1000); in show_temp_offset() 2380 data->temp_offset[nr] = val; in store_temp_offset() 2489 SENSOR_TEMPLATE(temp_offset, "temp%d_offset", S_IRUGO | S_IWUSR,
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | sun4i-ts.c | 113 int temp_offset; member 190 *temp = ts->temp_data * ts->temp_step - ts->temp_offset; in sun4i_get_temp() 256 ts->temp_offset = 271000; in sun4i_ts_probe() 265 ts->temp_offset = 257000; in sun4i_ts_probe() 279 ts->temp_offset = 144700; in sun4i_ts_probe()
|
/kernel/linux/linux-5.10/drivers/iio/imu/ |
D | adis16400.c | 165 int temp_offset; member 605 *val = st->variant->temp_offset; in adis16400_read_raw() 1018 .temp_offset = 25000000 / 140000, /* 25 C = 0x00 */ 1031 .temp_offset = 25000000 / 67850, /* 25 C = 0x00 */ 1042 .temp_offset = 25000000 / 145300, /* 25 C = 0x00 */ 1056 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */ 1069 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */ 1082 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */ 1095 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */ 1107 .temp_offset = 25000000 / 140000, /* 25 C = 0x00 */ [all …]
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | sun4i-gpadc-iio.c | 50 int temp_offset; member 59 .temp_offset = -1932, 68 .temp_offset = -1447, 77 .temp_offset = -1623, 86 .temp_offset = -1662, 292 *val = info->data->temp_offset; in sun4i_gpadc_temp_offset()
|
/kernel/linux/linux-5.10/drivers/iio/accel/ |
D | bma180.c | 54 int temp_offset; member 599 *val = data->part_info->temp_offset; in bma180_read_raw() 796 .temp_offset = 0, 824 .temp_offset = -60, /* 0 LSB @ -30 degree C */ 852 .temp_offset = 48, /* 0 LSB @ 24 degree C */ 879 .temp_offset = 48, /* 0 LSB @ 24 degree C */ 909 .temp_offset = 46, /* 0 LSB @ 23 degree C */
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x0/ |
D | eeprom.c | 88 dev->cal.rx.temp_offset = mt76x02_sign_extend(val, 8); in mt76x0_set_temp_offset() 90 dev->cal.rx.temp_offset = -10; in mt76x0_set_temp_offset()
|
D | phy.c | 1036 val = (35 * (val - dev->cal.rx.temp_offset)) / 10 + 25; in mt76x0_phy_temp_sensor()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02.h | 33 s16 temp_offset; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_lcn.c | 3193 u32 temp_offset[128]; in wlc_lcnphy_clear_papd_comptable() local 3194 tab.tbl_ptr = temp_offset; in wlc_lcnphy_clear_papd_comptable() 3200 memset(temp_offset, 0, sizeof(temp_offset)); in wlc_lcnphy_clear_papd_comptable() 3202 temp_offset[j] = 0x80000; in wlc_lcnphy_clear_papd_comptable()
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_init.c | 12926 uint32_t offset = 0, temp_offset = 0; in lpfc_write_firmware() local 12967 temp_offset = offset; in lpfc_write_firmware() 12969 if (temp_offset + SLI4_PAGE_SIZE > fw->size) { in lpfc_write_firmware() 12971 fw->data + temp_offset, in lpfc_write_firmware() 12972 fw->size - temp_offset); in lpfc_write_firmware() 12973 temp_offset = fw->size; in lpfc_write_firmware() 12976 memcpy(dmabuf->virt, fw->data + temp_offset, in lpfc_write_firmware() 12978 temp_offset += SLI4_PAGE_SIZE; in lpfc_write_firmware()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | cifssmb.c | 3813 __u32 temp_offset; in smb_init_nttransact() local 3827 temp_offset = offsetof(struct smb_com_ntransact_req, Parms) + in smb_init_nttransact() 3829 pSMB->ParameterOffset = cpu_to_le32(temp_offset); in smb_init_nttransact() 3830 pSMB->DataOffset = cpu_to_le32(temp_offset + parm_len); in smb_init_nttransact()
|