Lines Matching refs:ltr_mode
760 u32 ltr_mode = 0; in lpss_ltr_mode_show() local
764 ret = lpss_reg_read(dev, LPSS_GENERAL, <r_mode); in lpss_ltr_mode_show()
768 outstr = (ltr_mode & LPSS_GENERAL_LTR_MODE_SW) ? "sw" : "auto"; in lpss_ltr_mode_show()
774 static DEVICE_ATTR(ltr_mode, S_IRUSR, lpss_ltr_mode_show, NULL);
791 u32 ltr_mode, ltr_val; in acpi_lpss_set_ltr() local
793 ltr_mode = __lpss_reg_read(pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()
795 if (ltr_mode & LPSS_GENERAL_LTR_MODE_SW) { in acpi_lpss_set_ltr()
796 ltr_mode &= ~LPSS_GENERAL_LTR_MODE_SW; in acpi_lpss_set_ltr()
797 __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()
813 if (!(ltr_mode & LPSS_GENERAL_LTR_MODE_SW)) { in acpi_lpss_set_ltr()
814 ltr_mode |= LPSS_GENERAL_LTR_MODE_SW; in acpi_lpss_set_ltr()
815 __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()