Searched refs:timeres (Results 1 – 1 of 1) sorted by relevance
93 static int dht11_decode(struct dht11 *dht11, int offset, int timeres) in dht11_decode() argument98 threshold = DHT11_DATA_BIT_HIGH / timeres; in dht11_decode()99 if (DHT11_DATA_BIT_LOW / timeres + 1 >= threshold) in dht11_decode()108 timing[i] = t / timeres; in dht11_decode()164 int ret, timeres; in dht11_read_raw() local168 timeres = ktime_get_resolution_ns(); in dht11_read_raw()169 if (DHT11_DATA_BIT_HIGH < 2 * timeres) { in dht11_read_raw()171 timeres); in dht11_read_raw()215 timeres); in dht11_read_raw()