Lines Matching refs:kern_buff
361 char *kern_buff; in xilinx_dpdma_debugfs_read() local
367 kern_buff = kzalloc(XILINX_DPDMA_DEBUGFS_READ_MAX_SIZE, GFP_KERNEL); in xilinx_dpdma_debugfs_read()
368 if (!kern_buff) { in xilinx_dpdma_debugfs_read()
375 ret = dpdma_debugfs_reqs[testcase].read(kern_buff); in xilinx_dpdma_debugfs_read()
379 strscpy(kern_buff, "No testcase executed", in xilinx_dpdma_debugfs_read()
383 size = min(size, strlen(kern_buff)); in xilinx_dpdma_debugfs_read()
384 if (copy_to_user(buf, kern_buff, size)) in xilinx_dpdma_debugfs_read()
388 kfree(kern_buff); in xilinx_dpdma_debugfs_read()
400 char *kern_buff, *kern_buff_start; in xilinx_dpdma_debugfs_write() local
412 kern_buff = kzalloc(size, GFP_KERNEL); in xilinx_dpdma_debugfs_write()
413 if (!kern_buff) in xilinx_dpdma_debugfs_write()
415 kern_buff_start = kern_buff; in xilinx_dpdma_debugfs_write()
417 ret = strncpy_from_user(kern_buff, buf, size); in xilinx_dpdma_debugfs_write()
422 testcase = strsep(&kern_buff, " "); in xilinx_dpdma_debugfs_write()
434 ret = dpdma_debugfs_reqs[i].write(kern_buff); in xilinx_dpdma_debugfs_write()