Lines Matching refs:ltr_mode
462 u32 ltr_mode = 0; in lpss_ltr_mode_show() local
466 ret = lpss_reg_read(dev, LPSS_GENERAL, <r_mode); in lpss_ltr_mode_show()
470 outstr = (ltr_mode & LPSS_GENERAL_LTR_MODE_SW) ? "sw" : "auto"; in lpss_ltr_mode_show()
476 static DEVICE_ATTR(ltr_mode, S_IRUSR, lpss_ltr_mode_show, NULL);
493 u32 ltr_mode, ltr_val; in acpi_lpss_set_ltr() local
495 ltr_mode = __lpss_reg_read(pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()
497 if (ltr_mode & LPSS_GENERAL_LTR_MODE_SW) { in acpi_lpss_set_ltr()
498 ltr_mode &= ~LPSS_GENERAL_LTR_MODE_SW; in acpi_lpss_set_ltr()
499 __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()
515 if (!(ltr_mode & LPSS_GENERAL_LTR_MODE_SW)) { in acpi_lpss_set_ltr()
516 ltr_mode |= LPSS_GENERAL_LTR_MODE_SW; in acpi_lpss_set_ltr()
517 __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); in acpi_lpss_set_ltr()