Lines Matching refs:cfg
151 const struct input_kbd_matrix_common_config *cfg = test_dev->config; in ZTEST() local
156 k_sleep(K_USEC(cfg->debounce_down_us / 2)); in ZTEST()
159 k_sleep(K_USEC(cfg->debounce_down_us)); in ZTEST()
163 k_sleep(K_USEC(cfg->debounce_up_us / 2)); in ZTEST()
166 k_sleep(K_USEC(cfg->debounce_up_us)); in ZTEST()
179 const struct input_kbd_matrix_common_config *cfg = test_dev->config; in ZTEST() local
184 k_sleep(K_USEC(cfg->debounce_down_us / 2)); in ZTEST()
188 k_sleep(K_USEC(cfg->debounce_down_us)); in ZTEST()
198 const struct input_kbd_matrix_common_config *cfg = test_dev->config; in ZTEST() local
203 k_sleep(K_USEC(cfg->debounce_down_us / 2)); in ZTEST()
208 k_sleep(K_USEC(cfg->debounce_down_us / 2)); in ZTEST()
212 k_sleep(K_USEC(cfg->debounce_down_us / 2)); in ZTEST()
216 k_sleep(K_USEC(cfg->debounce_down_us)); in ZTEST()
220 k_sleep(K_USEC(cfg->debounce_up_us / 2)); in ZTEST()
225 k_sleep(K_USEC(cfg->debounce_up_us / 2)); in ZTEST()
229 k_sleep(K_USEC(cfg->debounce_up_us / 2)); in ZTEST()
233 k_sleep(K_USEC(cfg->debounce_up_us)); in ZTEST()
243 const struct input_kbd_matrix_common_config *cfg = test_dev->config; in ZTEST() local
245 if (cfg->ghostkey_check == false) { in ZTEST()
253 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
257 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
262 k_sleep(K_USEC(cfg->debounce_down_us * 10)); in ZTEST()
267 k_sleep(K_USEC(cfg->debounce_down_us * 10)); in ZTEST()
271 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
275 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
285 const struct input_kbd_matrix_common_config *cfg = test_dev->config; in ZTEST() local
287 if (cfg->ghostkey_check == true) { in ZTEST()
295 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
299 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
303 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
307 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
310 k_sleep(K_USEC(cfg->debounce_down_us * 10)); in ZTEST()
314 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
318 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
322 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
326 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
336 const struct input_kbd_matrix_common_config *cfg = test_dev->config; in ZTEST() local
338 if (cfg->actual_key_mask == NULL) { in ZTEST()
346 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
350 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
355 k_sleep(K_USEC(cfg->debounce_down_us * 1.5)); in ZTEST()
359 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
363 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
367 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
371 k_sleep(K_USEC(cfg->debounce_up_us * 1.5)); in ZTEST()
382 const struct input_kbd_matrix_common_config cfg = { in ZTEST() local
388 .config = &cfg, in ZTEST()
418 const struct input_kbd_matrix_common_config *cfg = test_dev->config; in kbd_scan_setup() local
422 cfg->poll_period_us, in kbd_scan_setup()
423 cfg->debounce_down_us, in kbd_scan_setup()
424 cfg->debounce_up_us); in kbd_scan_setup()