Lines Matching defs:buf
54 char *buf;
57 buf = kzalloc(AVS_FW_REGS_SIZE, GFP_KERNEL);
58 if (!buf)
61 memcpy_fromio(buf, avs_sram_addr(adev, AVS_FW_REGS_WINDOW), AVS_FW_REGS_SIZE);
63 ret = simple_read_from_buffer(to, count, ppos, buf, AVS_FW_REGS_SIZE);
64 kfree(buf);
78 char *buf;
82 buf = kzalloc(size, GFP_KERNEL);
83 if (!buf)
86 memcpy_fromio(buf, avs_sram_addr(adev, AVS_DEBUG_WINDOW), size);
88 ret = simple_read_from_buffer(to, count, ppos, buf, size);
89 kfree(buf);
104 char *buf;
111 buf = kzalloc(PAGE_SIZE, GFP_KERNEL);
112 if (!buf)
122 ret = snprintf(buf + len, PAGE_SIZE - len,
130 ret = simple_read_from_buffer(to, count, ppos, buf, len);
134 kfree(buf);
353 char buf[64];
356 len = snprintf(buf, sizeof(buf), "0x%08x\n", adev->logged_resources);
358 return simple_read_from_buffer(to, count, ppos, buf, len);