Searched refs:kern_buf (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/scsi/bfa/ |
H A D | bfad_debugfs.c | 251 void *kern_buf; in bfad_debugfs_write_regrd() local 253 kern_buf = memdup_user_nul(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_nul(buf, nbytes); in bfad_debugfs_write_regwr() 321 if (IS_ERR(kern_buf)) in bfad_debugfs_write_regwr() [all …]
|
/linux/drivers/scsi/qedf/ |
H A D | qedf_debugfs.c | 165 void *kern_buf; in qedf_dbg_debug_cmd_write() local 173 kern_buf = memdup_user_nul(buffer, count); in qedf_dbg_debug_cmd_write() 174 if (IS_ERR(kern_buf)) in qedf_dbg_debug_cmd_write() 175 return PTR_ERR(kern_buf); in qedf_dbg_debug_cmd_write() 177 rval = kstrtouint(kern_buf, 10, &val); in qedf_dbg_debug_cmd_write() 178 kfree(kern_buf); in qedf_dbg_debug_cmd_write() 214 void *kern_buf; in qedf_dbg_stop_io_on_error_cmd_write() local 225 kern_buf = memdup_user(buffer, 6); in qedf_dbg_stop_io_on_error_cmd_write() 226 if (IS_ERR(kern_buf)) in qedf_dbg_stop_io_on_error_cmd_write() 227 return PTR_ERR(kern_buf); in qedf_dbg_stop_io_on_error_cmd_write() [all …]
|
/linux/drivers/staging/vme_user/ |
H A D | vme_user.c | 92 void *kern_buf; /* Buffer address in kernel space */ member 130 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user() 135 if (copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied)) in resource_to_user() 147 if (copy_from_user(image[minor].kern_buf, buf, (unsigned long)count)) in resource_from_user() 150 return vme_master_write(image[minor].resource, image[minor].kern_buf, in resource_from_user() 159 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user() 171 image_ptr = image[minor].kern_buf + *ppos; in buffer_from_user() 538 image[i].kern_buf = NULL; in vme_user_probe() 581 image[i].kern_buf = vme_alloc_consistent(image[i].resource, in vme_user_probe() 584 if (!image[i].kern_buf) { in vme_user_probe() [all …]
|
/linux/drivers/scsi/mpi3mr/ |
H A D | mpi3mr_app.c | 1673 drv_bufs->kern_buf) in mpi3mr_total_num_ioctl_sges() 1726 sgl = (u8 *)drv_buf_iter->kern_buf + in mpi3mr_bsg_build_sgl() 2536 drv_buf_iter->kern_buf = in mpi3mr_bsg_process_mpt_cmds() 2542 memset(drv_buf_iter->kern_buf, 0, in mpi3mr_bsg_process_mpt_cmds() 2547 memcpy(drv_buf_iter->kern_buf, drv_buf_iter->bsg_buf, tmplen); in mpi3mr_bsg_process_mpt_cmds() 2551 drv_buf_iter->kern_buf = in mpi3mr_bsg_process_mpt_cmds() 2557 memset(drv_buf_iter->kern_buf, 0, in mpi3mr_bsg_process_mpt_cmds() 2677 dprint_dump(drv_buf_iter->kern_buf, in mpi3mr_bsg_process_mpt_cmds() 2714 dprint_dump(drv_buf_iter->kern_buf, in mpi3mr_bsg_process_mpt_cmds() 2795 drv_buf_iter->kern_buf, in mpi3mr_bsg_process_mpt_cmds()
|
H A D | mpi3mr.h | 276 void *kern_buf; member
|