Lines Matching refs:md
135 int md; in suspend_mode_show() local
137 for (md = PM_SUSPEND_MODE_FIRST; md < ARRAY_SIZE(suspend_modes); md++) in suspend_mode_show()
138 if (suspend_modes[md]) { in suspend_mode_show()
139 if (md == suspend_mode) in suspend_mode_show()
140 s += sprintf(s, "[%s] ", suspend_modes[md]); in suspend_mode_show()
142 s += sprintf(s, "%s ", suspend_modes[md]); in suspend_mode_show()
155 int md, ret = -EINVAL; in suspend_mode_store() local
157 for (md = PM_SUSPEND_MODE_FIRST; md < ARRAY_SIZE(suspend_modes); md++) in suspend_mode_store()
158 if (suspend_modes[md] && in suspend_mode_store()
159 sysfs_streq(suspend_modes[md], buf)) { in suspend_mode_store()
164 if (!ret && md != suspend_mode) { in suspend_mode_store()
165 ret = zynqmp_pm_set_suspend_mode(md); in suspend_mode_store()
167 suspend_mode = md; in suspend_mode_store()