Lines Matching refs:kbd_info
1161 struct kbd_info { struct
1195 static struct kbd_info kbd_info; variable
1223 static int kbd_get_info(struct kbd_info *info) in kbd_get_info()
1258 if (kbd_info.levels != 0) in kbd_get_max_level()
1259 return kbd_info.levels; in kbd_get_max_level()
1269 if (kbd_info.levels != 0) in kbd_get_level()
1284 if (kbd_info.levels != 0) { in kbd_set_level()
1436 ret = kbd_get_info(&kbd_info); in kbd_init_info()
1451 if (kbd_info.seconds > 63) in kbd_init_info()
1452 kbd_info.seconds = 63; in kbd_init_info()
1453 if (kbd_info.minutes > 63) in kbd_init_info()
1454 kbd_info.minutes = 63; in kbd_init_info()
1455 if (kbd_info.hours > 63) in kbd_init_info()
1456 kbd_info.hours = 63; in kbd_init_info()
1457 if (kbd_info.days > 63) in kbd_init_info()
1458 kbd_info.days = 63; in kbd_init_info()
1463 kbd_info.modes &= ~BIT(KBD_MODE_BIT_ON); in kbd_init_info()
1473 ffs(kbd_info.modes & ~BIT(KBD_MODE_BIT_OFF)); in kbd_init_info()
1478 if (kbd_info.modes & (BIT(KBD_MODE_BIT_ALS) | in kbd_init_info()
1482 if (kbd_info.modes & ( in kbd_init_info()
1491 if (kbd_is_level_mode_bit(i) && (BIT(i) & kbd_info.modes)) in kbd_init_info()
1501 if (BIT(i) & kbd_info.modes) { in kbd_init_info()
1535 if ((ret == 0 && (kbd_info.levels != 0 || kbd_mode_levels_count >= 2)) in kbd_init()
1566 if (value > kbd_info.seconds) in kbd_led_timeout_store()
1571 if (value > kbd_info.minutes) in kbd_led_timeout_store()
1576 if (value > kbd_info.hours) in kbd_led_timeout_store()
1581 if (value > kbd_info.days) in kbd_led_timeout_store()
1615 if (value <= kbd_info.seconds && kbd_info.seconds) { in kbd_led_timeout_store()
1617 } else if (value / 60 <= kbd_info.minutes && kbd_info.minutes) { in kbd_led_timeout_store()
1620 } else if (value / (60 * 60) <= kbd_info.hours && kbd_info.hours) { in kbd_led_timeout_store()
1623 } else if (value / (60 * 60 * 24) <= kbd_info.days && kbd_info.days) { in kbd_led_timeout_store()
1735 if (!(kbd_info.triggers & BIT(i))) in kbd_led_triggers_store()
1774 if ((kbd_info.triggers & new_state.triggers) != in kbd_led_triggers_store()
1785 if (!(kbd_info.modes & BIT(new_state.mode_bit))) { in kbd_led_triggers_store()
1818 if (!(kbd_info.triggers & BIT(i))) in kbd_led_triggers_show()
1883 if (!(kbd_info.modes & BIT(new_state.mode_bit))) { in kbd_led_als_enabled_store()