Home
last modified time | relevance | path

Searched refs:zbits (Results 1 – 2 of 2) sorted by relevance

/drivers/hwmon/
Dds1621.c118 u8 zbits; /* Resolution encoded as number of member
134 static inline u16 DS1621_TEMP_TO_REG(long temp, u8 zbits) in DS1621_TEMP_TO_REG() argument
137 temp = DIV_ROUND_CLOSEST(temp * (1 << (8 - zbits)), 1000) << zbits; in DS1621_TEMP_TO_REG()
162 data->zbits = 7; in ds1621_init_client()
171 data->zbits = 7 - resol; in ds1621_init_client()
176 data->zbits = 7; in ds1621_init_client()
246 data->temp[attr->index] = DS1621_TEMP_TO_REG(val, data->zbits); in temp_store()
300 data->zbits = 7 - resol; in update_interval_store()
Dtmp401.c166 static u16 tmp401_temp_to_register(long temp, u8 config, int zbits) in tmp401_temp_to_register() argument
174 return DIV_ROUND_CLOSEST(temp * (1 << (8 - zbits)), 1000) << zbits; in tmp401_temp_to_register()