Home
last modified time | relevance | path

Searched refs:kern_buf (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/scsi/qedf/
Dqedf_debugfs.c176 void *kern_buf; in qedf_dbg_debug_cmd_write() local
184 kern_buf = memdup_user(buffer, count); in qedf_dbg_debug_cmd_write()
185 if (IS_ERR(kern_buf)) in qedf_dbg_debug_cmd_write()
186 return PTR_ERR(kern_buf); in qedf_dbg_debug_cmd_write()
188 rval = kstrtouint(kern_buf, 10, &val); in qedf_dbg_debug_cmd_write()
189 kfree(kern_buf); in qedf_dbg_debug_cmd_write()
226 void *kern_buf; in qedf_dbg_stop_io_on_error_cmd_write() local
237 kern_buf = memdup_user(buffer, 6); in qedf_dbg_stop_io_on_error_cmd_write()
238 if (IS_ERR(kern_buf)) in qedf_dbg_stop_io_on_error_cmd_write()
239 return PTR_ERR(kern_buf); in qedf_dbg_stop_io_on_error_cmd_write()
[all …]
/Linux-v4.19/drivers/scsi/bfa/
Dbfad_debugfs.c259 void *kern_buf; in bfad_debugfs_write_regrd() local
261 kern_buf = memdup_user(buf, nbytes); in bfad_debugfs_write_regrd()
262 if (IS_ERR(kern_buf)) in bfad_debugfs_write_regrd()
263 return PTR_ERR(kern_buf); in bfad_debugfs_write_regrd()
265 rc = sscanf(kern_buf, "%x:%x", &addr, &len); in bfad_debugfs_write_regrd()
270 kfree(kern_buf); in bfad_debugfs_write_regrd()
274 kfree(kern_buf); in bfad_debugfs_write_regrd()
326 void *kern_buf; in bfad_debugfs_write_regwr() local
328 kern_buf = memdup_user(buf, nbytes); in bfad_debugfs_write_regwr()
329 if (IS_ERR(kern_buf)) in bfad_debugfs_write_regwr()
[all …]
/Linux-v4.19/drivers/net/ethernet/brocade/bna/
Dbnad_debugfs.c320 void *kern_buf; in bnad_debugfs_write_regrd() local
323 kern_buf = memdup_user(buf, nbytes); in bnad_debugfs_write_regrd()
324 if (IS_ERR(kern_buf)) in bnad_debugfs_write_regrd()
325 return PTR_ERR(kern_buf); in bnad_debugfs_write_regrd()
327 rc = sscanf(kern_buf, "%x:%x", &addr, &len); in bnad_debugfs_write_regrd()
330 kfree(kern_buf); in bnad_debugfs_write_regrd()
334 kfree(kern_buf); in bnad_debugfs_write_regrd()
380 void *kern_buf; in bnad_debugfs_write_regwr() local
383 kern_buf = memdup_user(buf, nbytes); in bnad_debugfs_write_regwr()
384 if (IS_ERR(kern_buf)) in bnad_debugfs_write_regwr()
[all …]
/Linux-v4.19/drivers/staging/vme/devices/
Dvme_user.c92 void *kern_buf; /* Buffer address in kernel space */ member
127 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user()
132 if (copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied)) in resource_to_user()
144 if (copy_from_user(image[minor].kern_buf, buf, (unsigned long)count)) in resource_from_user()
147 return vme_master_write(image[minor].resource, image[minor].kern_buf, in resource_from_user()
156 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user()
168 image_ptr = image[minor].kern_buf + *ppos; in buffer_from_user()
535 image[i].kern_buf = NULL; in vme_user_probe()
579 image[i].kern_buf = vme_alloc_consistent(image[i].resource, in vme_user_probe()
582 if (!image[i].kern_buf) { in vme_user_probe()
[all …]