Lines Matching refs:reg_value
1826 u8 reg_value; in ab8500_fg_check_hw_failure_work() local
1837 ®_value); in ab8500_fg_check_hw_failure_work()
1842 if ((reg_value & BATT_OVV) == BATT_OVV) { in ab8500_fg_check_hw_failure_work()
2559 u8 reg_value; in ab8505_powercut_flagtime_read() local
2564 AB8505_RTC_PCUT_FLAG_TIME_REG, ®_value); in ab8505_powercut_flagtime_read()
2571 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_flagtime_read()
2582 int reg_value; in ab8505_powercut_flagtime_write() local
2586 if (kstrtoint(buf, 10, ®_value)) in ab8505_powercut_flagtime_write()
2589 if (reg_value > 0x7F) { in ab8505_powercut_flagtime_write()
2595 AB8505_RTC_PCUT_FLAG_TIME_REG, (u8)reg_value); in ab8505_powercut_flagtime_write()
2609 u8 reg_value; in ab8505_powercut_maxtime_read() local
2614 AB8505_RTC_PCUT_MAX_TIME_REG, ®_value); in ab8505_powercut_maxtime_read()
2621 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_maxtime_read()
2633 int reg_value; in ab8505_powercut_maxtime_write() local
2637 if (kstrtoint(buf, 10, ®_value)) in ab8505_powercut_maxtime_write()
2640 if (reg_value > 0x7F) { in ab8505_powercut_maxtime_write()
2646 AB8505_RTC_PCUT_MAX_TIME_REG, (u8)reg_value); in ab8505_powercut_maxtime_write()
2660 u8 reg_value; in ab8505_powercut_restart_read() local
2665 AB8505_RTC_PCUT_RESTART_REG, ®_value); in ab8505_powercut_restart_read()
2672 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0xF)); in ab8505_powercut_restart_read()
2683 int reg_value; in ab8505_powercut_restart_write() local
2687 if (kstrtoint(buf, 10, ®_value)) in ab8505_powercut_restart_write()
2690 if (reg_value > 0xF) { in ab8505_powercut_restart_write()
2696 AB8505_RTC_PCUT_RESTART_REG, (u8)reg_value); in ab8505_powercut_restart_write()
2711 u8 reg_value; in ab8505_powercut_timer_read() local
2716 AB8505_RTC_PCUT_TIME_REG, ®_value); in ab8505_powercut_timer_read()
2723 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_timer_read()
2734 u8 reg_value; in ab8505_powercut_restart_counter_read() local
2739 AB8505_RTC_PCUT_RESTART_REG, ®_value); in ab8505_powercut_restart_counter_read()
2746 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0xF0) >> 4); in ab8505_powercut_restart_counter_read()
2757 u8 reg_value; in ab8505_powercut_read() local
2762 AB8505_RTC_PCUT_CTL_STATUS_REG, ®_value); in ab8505_powercut_read()
2767 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x1)); in ab8505_powercut_read()
2778 int reg_value; in ab8505_powercut_write() local
2782 if (kstrtoint(buf, 10, ®_value)) in ab8505_powercut_write()
2785 if (reg_value > 0x1) { in ab8505_powercut_write()
2791 AB8505_RTC_PCUT_CTL_STATUS_REG, (u8)reg_value); in ab8505_powercut_write()
2806 u8 reg_value; in ab8505_powercut_flag_read() local
2811 AB8505_RTC_PCUT_CTL_STATUS_REG, ®_value); in ab8505_powercut_flag_read()
2818 return scnprintf(buf, PAGE_SIZE, "%d\n", ((reg_value & 0x10) >> 4)); in ab8505_powercut_flag_read()
2829 u8 reg_value; in ab8505_powercut_debounce_read() local
2834 AB8505_RTC_PCUT_DEBOUNCE_REG, ®_value); in ab8505_powercut_debounce_read()
2841 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7)); in ab8505_powercut_debounce_read()
2852 int reg_value; in ab8505_powercut_debounce_write() local
2856 if (kstrtoint(buf, 10, ®_value)) in ab8505_powercut_debounce_write()
2859 if (reg_value > 0x7) { in ab8505_powercut_debounce_write()
2865 AB8505_RTC_PCUT_DEBOUNCE_REG, (u8)reg_value); in ab8505_powercut_debounce_write()
2879 u8 reg_value; in ab8505_powercut_enable_status_read() local
2884 AB8505_RTC_PCUT_CTL_STATUS_REG, ®_value); in ab8505_powercut_enable_status_read()
2891 return scnprintf(buf, PAGE_SIZE, "%d\n", ((reg_value & 0x20) >> 5)); in ab8505_powercut_enable_status_read()