Lines Matching full:pm
146 struct mt76_connac_pm *pm = &dev->pm; in mt7921_pm_set() local
153 if (val == pm->enable_user) in mt7921_pm_set()
156 if (!pm->enable_user) { in mt7921_pm_set()
157 pm->stats.last_wake_event = jiffies; in mt7921_pm_set()
158 pm->stats.last_doze_event = jiffies; in mt7921_pm_set()
163 pm->enable = false; in mt7921_pm_set()
164 mt76_connac_pm_wake(&dev->mphy, pm); in mt7921_pm_set()
166 pm->enable_user = val; in mt7921_pm_set()
168 mt76_connac_power_save_sched(&dev->mphy, pm); in mt7921_pm_set()
180 *val = dev->pm.enable_user; in mt7921_pm_get()
191 struct mt76_connac_pm *pm = &dev->pm; in mt7921_deep_sleep_set() local
199 if (pm->ds_enable_user == enable) in mt7921_deep_sleep_set()
202 pm->ds_enable_user = enable; in mt7921_deep_sleep_set()
203 pm->ds_enable = enable && !monitor; in mt7921_deep_sleep_set()
204 mt76_connac_mcu_set_deep_sleep(&dev->mt76, pm->ds_enable); in mt7921_deep_sleep_set()
216 *val = dev->pm.ds_enable_user; in mt7921_deep_sleep_get()
285 debugfs_create_file("runtime-pm", 0600, dir, dev, &fops_pm); in mt7921_init_debugfs()