Lines Matching refs:temp
160 unsigned long temp; in store_amb_min() local
161 int ret = kstrtoul(buf, 10, &temp); in store_amb_min()
165 temp = temp / 500; in store_amb_min()
166 if (temp > 255) in store_amb_min()
167 temp = 255; in store_amb_min()
169 amb_write_byte(data, amb_reg_temp_min(attr->index), temp); in store_amb_min()
180 unsigned long temp; in store_amb_mid() local
181 int ret = kstrtoul(buf, 10, &temp); in store_amb_mid()
185 temp = temp / 500; in store_amb_mid()
186 if (temp > 255) in store_amb_mid()
187 temp = 255; in store_amb_mid()
189 amb_write_byte(data, amb_reg_temp_mid(attr->index), temp); in store_amb_mid()
200 unsigned long temp; in store_amb_max() local
201 int ret = kstrtoul(buf, 10, &temp); in store_amb_max()
205 temp = temp / 500; in store_amb_max()
206 if (temp > 255) in store_amb_max()
207 temp = 255; in store_amb_max()
209 amb_write_byte(data, amb_reg_temp_max(attr->index), temp); in store_amb_max()