Lines Matching refs:timeout
73 u64 timeout = (u64)n * USEC_PER_SEC; in bt1_apb_n_to_timeout_us() local
75 do_div(timeout, apb->rate); in bt1_apb_n_to_timeout_us()
77 return timeout; in bt1_apb_n_to_timeout_us()
82 unsigned long timeout) in bt1_apb_timeout_to_n_us() argument
84 u64 n = (u64)timeout * apb->rate; in bt1_apb_timeout_to_n_us()
276 unsigned long timeout; in timeout_show() local
284 timeout = bt1_apb_n_to_timeout_us(apb, n); in timeout_show()
286 return scnprintf(buf, PAGE_SIZE, "%lu\n", timeout); in timeout_show()
294 unsigned long timeout; in timeout_store() local
298 if (kstrtoul(buf, 0, &timeout) < 0) in timeout_store()
301 n = bt1_apb_timeout_to_n_us(apb, timeout); in timeout_store()
308 static DEVICE_ATTR_RW(timeout);