Lines Matching refs:buf
38 ssize_t pm_show_wakelocks(char *buf, bool show_active) in pm_show_wakelocks() argument
49 len += sysfs_emit_at(buf, len, "%s ", wl->name); in pm_show_wakelocks()
52 len += sysfs_emit_at(buf, len, "\n"); in pm_show_wakelocks()
203 int pm_wake_lock(const char *buf) in pm_wake_lock() argument
205 const char *str = buf; in pm_wake_lock()
217 len = str - buf; in pm_wake_lock()
230 wl = wakelock_lookup_add(buf, len, true); in pm_wake_lock()
251 int pm_wake_unlock(const char *buf) in pm_wake_unlock() argument
260 len = strlen(buf); in pm_wake_unlock()
264 if (buf[len-1] == '\n') in pm_wake_unlock()
272 wl = wakelock_lookup_add(buf, len, false); in pm_wake_unlock()