Lines Matching defs:temp
233 __be32 temp __aligned(IIO_DMA_MINALIGN);
485 u64 temp = ((u64 *)new_custom->table)[index];
488 temp = __convert_to_raw(temp, 1024);
489 else if (has_signed && (s64)temp < 0)
490 temp = __convert_to_raw_sign(temp, resolution);
492 temp = __convert_to_raw(temp, resolution);
494 put_unaligned_be24(temp, new_custom->table + index * 3);
641 struct ltc2983_temp *temp = to_temp(sensor);
645 chan_val = LTC2983_ADC_SINGLE_ENDED(temp->single_ended);
647 ret = __ltc2983_chan_custom_sensor_assign(st, temp->custom, &chan_val);
1067 u32 temp = 0, excitation_current = 0;
1119 fwnode_property_read_u32(child, "adi,ideal-factor-value", &temp);
1122 diode->ideal_factor_value = __convert_to_raw(temp, 1048576);
1133 u32 temp;
1146 ret = fwnode_property_read_u32(child, "adi,rsense-val-milli-ohms", &temp);
1157 rsense->r_sense_val = __convert_to_raw((u64)temp * 1000, 1024);
1195 struct ltc2983_temp *temp;
1197 temp = devm_kzalloc(&st->spi->dev, sizeof(*temp), GFP_KERNEL);
1198 if (!temp)
1202 temp->single_ended = true;
1204 if (!temp->single_ended &&
1206 dev_err(&st->spi->dev, "Invalid chan:%d for differential temp\n",
1211 temp->custom = __ltc2983_custom_sensor_new(st, child, "adi,custom-temp",
1213 if (IS_ERR(temp->custom))
1214 return ERR_CAST(temp->custom);
1217 temp->sensor.assign_chan = ltc2983_temp_assign_chan;
1218 temp->sensor.fault_handler = ltc2983_common_fault_handler;
1220 return &temp->sensor;
1255 &st->temp, sizeof(st->temp));
1259 *val = __be32_to_cpu(st->temp);