/linux-master/drivers/hwmon/ |
H A D | max6697.c | 87 u8 temp[8][4]; /* [nr][0]=temp [1]=ext [2]=max [3]=crit */ member in struct:max6697_data 205 data->temp[i][MAX6697_TEMP_EXT] = val; 213 data->temp[i][MAX6697_TEMP_INPUT] = val; 220 data->temp[i][MAX6697_TEMP_MAX] = val; 229 data->temp[i][MAX6697_TEMP_CRIT] = val; 256 int temp; local 261 temp = (data->temp[index][MAX6697_TEMP_INPUT] - data->temp_offset) << 3; 262 temp | 273 int temp; local 306 long temp; local 332 long temp; local [all...] |
H A D | tmp103.c | 55 u32 attr, int channel, long *temp) 79 *temp = tmp103_reg_to_mc(regval); 85 u32 attr, int channel, long temp) 101 temp = clamp_val(temp, -55000, 127000); 102 return regmap_write(regmap, reg, tmp103_mc_to_reg(temp)); 125 HWMON_CHANNEL_INFO(temp, 54 tmp103_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *temp) argument 84 tmp103_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long temp) argument
|
/linux-master/net/smc/ |
H A D | smc_cdc.h | 226 union smc_host_cursor temp, old; local 231 temp.count = ntohl(net.count); 232 temp.wrap = ntohs(net.wrap); 233 if ((old.wrap > temp.wrap) && temp.wrap) 235 if ((old.wrap == temp.wrap) && 236 (old.count > temp.count)) 238 smc_curs_copy(local, &temp, conn); 259 union smc_host_cursor temp; local 261 temp [all...] |
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | af9005-fe.c | 95 u8 temp; local 101 fec_vtb_rsd_mon_en_len, &temp); 104 if (temp & 1) { 109 reg_ofsm_read_rbc_en_len, &temp); 112 if ((temp & 1) == 0) 128 u8 temp, temp0, temp1, temp2; local 138 &temp); 141 if (!temp) { 228 u8 temp, temp0, temp1, temp2; local 235 &temp); 431 u8 temp; local 766 u8 temp; local 788 u8 temp = on; local 808 u8 temp, temp0 = 0, temp1 = 0, temp2 = 0; local 1096 u8 temp, temp0, temp1, temp2; local 1222 u8 temp; local [all...] |
/linux-master/drivers/thermal/intel/ |
H A D | intel_soc_dts_iosf.c | 44 int thres_index, int temp) 59 temp_out = (sensors->tj_max - temp) / 1000; 93 if (temp) { 133 int temp) 139 if (temp > sensors->tj_max) 143 status = update_trip_temp(sensors, trip, temp); 150 int *temp) 166 *temp = sensors->tj_max - out * 1000; 296 u8 flags, int temp) 300 trip->temperature = temp; 43 update_trip_temp(struct intel_soc_dts_sensors *sensors, int thres_index, int temp) argument 132 sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp) argument 149 sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) argument 295 set_trip(struct thermal_trip *trip, enum thermal_trip_type type, u8 flags, int temp) argument 330 int temp; local [all...] |
/linux-master/drivers/char/agp/ |
H A D | ati-agp.c | 153 u32 temp; local 157 pci_read_config_dword(agp_bridge->dev, ATI_RS100_APSIZE, &temp); 159 pci_read_config_dword(agp_bridge->dev, ATI_RS300_APSIZE, &temp); 161 temp = (temp & 0x0000000e); 164 if (temp == values[i].size_value) { 185 u32 temp; local 191 pci_read_config_dword(agp_bridge->dev, ATI_RS100_APSIZE, &temp); 192 temp = ((temp 206 u32 temp; local 340 u32 temp; local [all...] |
H A D | generic.c | 287 void *temp; local 289 temp = agp_bridge->current_size; 293 current_size = A_SIZE_8(temp)->size; 296 current_size = A_SIZE_16(temp)->size; 299 current_size = A_SIZE_32(temp)->size; 302 current_size = A_SIZE_LVL2(temp)->size; 305 current_size = A_SIZE_FIX(temp)->size; 322 void *temp; local 324 temp = agp_bridge->current_size; 328 num_entries = A_SIZE_8(temp) 806 u32 bridge_agpstat, temp; local 857 void *temp; local 972 void *temp; local 1030 void *temp; local 1374 u32 temp; local [all...] |
/linux-master/arch/mips/pci/ |
H A D | ops-lantiq.c | 31 u32 temp; local 57 temp = ltq_r32(((u32 *)(cfg_base))); 58 temp = swab32(temp); 61 ltq_w32(temp, ((u32 *)cfg_base));
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | base.c | 43 u8 temp = therm->func->temp_get(therm); local 49 if (temp >= trip[i].temp) 54 if (last_trip && temp <= (last_trip->temp) && 55 temp > (last_trip->temp - last_trip->hysteresis)) 73 u8 temp = therm->func->temp_get(therm); local 77 if (temp < linear_min_temp) 79 else if (temp > linear_max_tem [all...] |
/linux-master/arch/csky/kernel/ |
H A D | module.c | 56 short *temp; local 81 temp = ((short *)location) + 1; 82 *temp = (short) 86 temp = ((short *)location) + 1; 87 *temp = (short)
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_clock.c | 44 u64 timestamp1, timestamp2, temp; local 89 temp = (timestamp2 - timestamp1) * ME_CLK_DIVIDER * 10; 90 temp = DIV_ROUND_CLOSEST_ULL(temp, delta_us); 95 *frequency = temp * (HZ_PER_MHZ / 10);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | timing.c | 88 u32 data = nvbios_timingEe(bios, idx, ver, hdr, cnt, len), temp; local 155 temp = nvbios_rd16(bios, data + 0x2c); 156 p->timing_20_2c_003f = (temp & 0x003f) >> 0; 157 p->timing_20_2c_1fc0 = (temp & 0x1fc0) >> 6; 160 temp = nvbios_rd16(bios, data + 0x31); 161 p->timing_20_31_0007 = (temp & 0x0007) >> 0; 162 p->timing_20_31_0078 = (temp & 0x0078) >> 3; 163 p->timing_20_31_0780 = (temp & 0x0780) >> 7; 164 p->timing_20_31_0800 = (temp & 0x0800) >> 11; 165 p->timing_20_31_7000 = (temp [all...] |
/linux-master/security/integrity/evm/ |
H A D | evm_secfs.c | 42 char temp[80]; local 48 sprintf(temp, "%d", (evm_initialized & ~EVM_SETUP_COMPLETE)); 49 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); 130 char *temp; local 149 temp = kmalloc(size + 1, GFP_KERNEL); 150 if (!temp) { 159 sprintf(temp + offset, "%s\n", xattr->name); 164 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); [all...] |
/linux-master/drivers/nvme/host/ |
H A D | hwmon.c | 20 long *temp) 35 *temp = kelvin_to_millicelsius(status & NVME_TEMP_THRESH_MASK); 41 long temp) 46 temp = millicelsius_to_kelvin(temp); 47 threshold |= clamp_val(temp, 0, NVME_TEMP_THRESH_MASK); 71 int temp; local 98 temp = get_unaligned_le16(log->temperature); 100 temp = le16_to_cpu(log->temp_sensor[channel - 1]); 101 *val = kelvin_to_millicelsius(temp); 19 nvme_get_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, long *temp) argument 40 nvme_set_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, long temp) argument [all...] |
/linux-master/drivers/power/supply/ |
H A D | ab8500_bmdata.c | 10 /* Default: between this temp and AB8500_TEMP_UNDER charging is reduced */ 12 /* Default: between this temp and AB8500_TEMP_OVER charging is reduced */ 14 /* Default: over this temp, charging is stopped */ 52 { .temp = 40, .resistance = 40 /* 120 mOhm */ }, 53 { .temp = 30, .resistance = 45 /* 135 mOhm */ }, 54 { .temp = 20, .resistance = 55 /* 165 mOhm */ }, 55 { .temp = 10, .resistance = 77 /* 230 mOhm */ }, 56 { .temp = 00, .resistance = 108 /* 325 mOhm */ }, 57 { .temp = -10, .resistance = 158 /* 445 mOhm */ }, 58 { .temp [all...] |
/linux-master/tools/lib/thermal/include/ |
H A D | thermal.h | 17 int (*tz_temp)(int tz_id, int temp, void *arg); 25 int (*trip_high)(int tz_id, int trip_id, int temp, void *arg); 26 int (*trip_low)(int tz_id, int trip_id, int temp, void *arg); 27 int (*trip_add)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg); 28 int (*trip_change)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg); 44 int temp; member in struct:thermal_trip 50 int temp; member in struct:thermal_zone
|
/linux-master/drivers/platform/x86/ |
H A D | gigabyte-wmi.c | 71 u64 temp; local 74 ret = gigabyte_wmi_query_integer(wdev, GIGABYTE_WMI_TEMPERATURE_QUERY, &args, &temp); 76 if (temp == 0) 78 *res = (s8)temp * 1000; // value is a signed 8-bit integer 98 HWMON_CHANNEL_INFO(temp, 121 long temp; local 125 if (!gigabyte_wmi_temperature(wdev, i, &temp))
|
/linux-master/drivers/thermal/ |
H A D | thermal-generic-adc.c | 28 int temp, temp_hi, temp_lo, adc_hi, adc_lo; local 40 temp = gti->lookup_table[0]; 42 temp = gti->lookup_table[2 * (gti->nlookup_table - 1)]; 50 temp = temp_hi + mult_frac(temp_lo - temp_hi, val - adc_hi, 54 return temp; 57 static int gadc_thermal_get_temp(struct thermal_zone_device *tz, int *temp) argument 67 *temp = gadc_thermal_adc_to_temp(gti, val);
|
/linux-master/drivers/net/phy/aquantia/ |
H A D | aquantia_hwmon.c | 44 int temp = phy_read_mmd(phydev, MDIO_MMD_VEND1, reg); local 46 if (temp < 0) 47 return temp; 50 *value = (s16)temp * 1000 / 256; 57 int temp; local 62 temp = value * 256 / 1000; 64 /* temp is in s16 range and we're interested in lower 16 bits only */ 65 return phy_write_mmd(phydev, MDIO_MMD_VEND1, reg, (u16)temp);
|
/linux-master/tools/lib/api/ |
H A D | io.h | 149 char *line = NULL, *temp; local 162 temp = realloc(line, line_len + sizeof(buf)); 163 if (!temp) 165 line = temp; 172 temp = realloc(line, line_len + buf_pos + 1); 173 if (!temp) 175 line = temp;
|
/linux-master/arch/alpha/kernel/ |
H A D | core_wildfire.c | 182 unsigned long temp; local 193 temp = fast->qsd_whami.csr; 195 printk(KERN_ERR "fast QSD_WHAMI at base %p is 0x%lx\n", fast, temp); 198 hard_qbb = (temp >> 8) & 7; 199 soft_qbb = (temp >> 4) & 7; 220 temp = qsa->qsa_qbb_id.csr; 222 printk(KERN_ERR "QSA_QBB_ID at base %p is 0x%lx\n", qsa, temp); 225 if (temp & 0x40) /* Is there an HS? */ 228 if (temp & 0x20) { /* Is there a GP? */ 230 temp [all...] |
/linux-master/drivers/i2c/busses/ |
H A D | i2c-viapro.c | 130 int temp; local 137 if ((temp = inb_p(SMBHSTSTS)) & 0x1F) { 139 "Resetting...\n", temp); 141 outb_p(temp, SMBHSTSTS); 142 if ((temp = inb_p(SMBHSTSTS)) & 0x1F) { 144 "(0x%02x)\n", temp); 155 temp = inb_p(SMBHSTSTS); 156 } while ((temp & 0x01) && (++timeout < MAX_TIMEOUT)); 164 if (temp & 0x10) { 170 if (temp 314 unsigned char temp; local [all...] |
/linux-master/drivers/thermal/qcom/ |
H A D | qcom-spmi-temp-alarm.c | 74 long temp; member in struct:qpnp_tm_chip 148 * This function updates the internal temp value based on the 173 chip->temp = qpnp_tm_decode_temp(chip, stage_new) 177 chip->temp = qpnp_tm_decode_temp(chip, stage_new + 1) 186 static int qpnp_tm_get_temp(struct thermal_zone_device *tz, int *temp) argument 191 if (!temp) 195 *temp = DEFAULT_TEMP; 210 chip->temp = mili_celsius; 213 *temp = chip->temp; 218 qpnp_tm_update_critical_trip_temp(struct qpnp_tm_chip *chip, int temp) argument 264 qpnp_tm_set_trip_temp(struct thermal_zone_device *tz, int trip_id, int temp) argument [all...] |
/linux-master/sound/drivers/vx/ |
H A D | vx_mixer.c | 902 struct snd_kcontrol_new temp; local 910 temp = vx_control_output_level; 911 temp.index = i; 912 temp.tlv.p = chip->hw->output_level_db_scale; 913 err = snd_ctl_add(card, snd_ctl_new1(&temp, chip)); 921 temp = vx_control_audio_gain; 922 temp.index = i; 923 temp.name = "PCM Playback Volume"; 924 temp.private_value = val; 925 err = snd_ctl_add(card, snd_ctl_new1(&temp, chi [all...] |
/linux-master/drivers/macintosh/ |
H A D | windfarm_pm72.c | 125 static int cpu_check_overtemp(s32 temp) argument 132 if (temp >= (cpu_all_tmax + LOW_OVER_IMMEDIATE)) { 138 if (temp >= (cpu_all_tmax + HIGH_OVER_IMMEDIATE)) { 154 cpu_thist[i] = temp; 155 cpu_thist_total += temp; 165 cpu_thist[cpu_thist_pt] = temp; 168 cpu_thist_total += temp; 172 FIX32TOPRINT(t_avg), FIX32TOPRINT(t_old), FIX32TOPRINT(temp)); 200 (temp < (cpu_all_tmax + LOW_OVER_CLEAR))) { 208 static int read_one_cpu_vals(int cpu, s32 *temp, s3 argument 254 s32 intake, temp, power, t_max = 0; local 310 s32 temp, power, intake, pump; local 465 s32 temp; local 545 s32 temp; local [all...] |