Lines Matching refs:kern_buf
312 void *kern_buf; in bnad_debugfs_write_regrd() local
315 kern_buf = memdup_user_nul(buf, nbytes); in bnad_debugfs_write_regrd()
316 if (IS_ERR(kern_buf)) in bnad_debugfs_write_regrd()
317 return PTR_ERR(kern_buf); in bnad_debugfs_write_regrd()
319 rc = sscanf(kern_buf, "%x:%x", &addr, &len); in bnad_debugfs_write_regrd()
322 kfree(kern_buf); in bnad_debugfs_write_regrd()
326 kfree(kern_buf); in bnad_debugfs_write_regrd()
372 void *kern_buf; in bnad_debugfs_write_regwr() local
375 kern_buf = memdup_user_nul(buf, nbytes); in bnad_debugfs_write_regwr()
376 if (IS_ERR(kern_buf)) in bnad_debugfs_write_regwr()
377 return PTR_ERR(kern_buf); in bnad_debugfs_write_regwr()
379 rc = sscanf(kern_buf, "%x:%x", &addr, &val); in bnad_debugfs_write_regwr()
382 kfree(kern_buf); in bnad_debugfs_write_regwr()
385 kfree(kern_buf); in bnad_debugfs_write_regwr()