Lines Matching refs:buf
61 char *buf; in audmux_read_file() local
77 buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in audmux_read_file()
78 if (!buf) in audmux_read_file()
81 ret = scnprintf(buf, PAGE_SIZE, "PDCR: %08x\nPTCR: %08x\n", in audmux_read_file()
85 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
89 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
93 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
97 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
100 ret += scnprintf(buf + ret, PAGE_SIZE - ret, "\n"); in audmux_read_file()
103 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
107 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
111 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
115 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
119 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
123 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
127 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in audmux_read_file()
129 kfree(buf); in audmux_read_file()
143 char buf[20]; in audmux_debugfs_init() local
148 snprintf(buf, sizeof(buf), "ssi%lu", i); in audmux_debugfs_init()
149 debugfs_create_file(buf, 0444, audmux_debugfs_root, in audmux_debugfs_init()