Lines Matching refs:ltr_mode
770 u32 ltr_mode = 0; in lpss_ltr_mode_show() local
774 ret = lpss_reg_read(dev, LPSS_GENERAL, <r_mode); in lpss_ltr_mode_show()
778 outstr = (ltr_mode & LPSS_GENERAL_LTR_MODE_SW) ? "sw" : "auto"; in lpss_ltr_mode_show()
784 static DEVICE_ATTR(ltr_mode, S_IRUSR, lpss_ltr_mode_show, NULL);
801 u32 ltr_mode, ltr_val; in acpi_lpss_set_ltr() local
803 ltr_mode = __lpss_reg_read(pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()
805 if (ltr_mode & LPSS_GENERAL_LTR_MODE_SW) { in acpi_lpss_set_ltr()
806 ltr_mode &= ~LPSS_GENERAL_LTR_MODE_SW; in acpi_lpss_set_ltr()
807 __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()
823 if (!(ltr_mode & LPSS_GENERAL_LTR_MODE_SW)) { in acpi_lpss_set_ltr()
824 ltr_mode |= LPSS_GENERAL_LTR_MODE_SW; in acpi_lpss_set_ltr()
825 __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()