Lines Matching refs:kern_buf
251 void *kern_buf; in bfad_debugfs_write_regrd() local
253 kern_buf = memdup_user(buf, nbytes); in bfad_debugfs_write_regrd()
254 if (IS_ERR(kern_buf)) in bfad_debugfs_write_regrd()
255 return PTR_ERR(kern_buf); in bfad_debugfs_write_regrd()
257 rc = sscanf(kern_buf, "%x:%x", &addr, &len); in bfad_debugfs_write_regrd()
262 kfree(kern_buf); in bfad_debugfs_write_regrd()
266 kfree(kern_buf); in bfad_debugfs_write_regrd()
318 void *kern_buf; in bfad_debugfs_write_regwr() local
320 kern_buf = memdup_user(buf, nbytes); in bfad_debugfs_write_regwr()
321 if (IS_ERR(kern_buf)) in bfad_debugfs_write_regwr()
322 return PTR_ERR(kern_buf); in bfad_debugfs_write_regwr()
324 rc = sscanf(kern_buf, "%x:%x", &addr, &val); in bfad_debugfs_write_regwr()
329 kfree(kern_buf); in bfad_debugfs_write_regwr()
332 kfree(kern_buf); in bfad_debugfs_write_regwr()