Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/scsi/bfa/
Dbfad_debugfs.c251 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()
[all …]
/linux-6.1.9/drivers/scsi/qedf/
Dqedf_debugfs.c157 void *kern_buf; in qedf_dbg_debug_cmd_write() local
165 kern_buf = memdup_user(buffer, count); in qedf_dbg_debug_cmd_write()
166 if (IS_ERR(kern_buf)) in qedf_dbg_debug_cmd_write()
167 return PTR_ERR(kern_buf); in qedf_dbg_debug_cmd_write()
169 rval = kstrtouint(kern_buf, 10, &val); in qedf_dbg_debug_cmd_write()
170 kfree(kern_buf); in qedf_dbg_debug_cmd_write()
207 void *kern_buf; in qedf_dbg_stop_io_on_error_cmd_write() local
218 kern_buf = memdup_user(buffer, 6); in qedf_dbg_stop_io_on_error_cmd_write()
219 if (IS_ERR(kern_buf)) in qedf_dbg_stop_io_on_error_cmd_write()
220 return PTR_ERR(kern_buf); in qedf_dbg_stop_io_on_error_cmd_write()
[all …]
/linux-6.1.9/drivers/net/ethernet/brocade/bna/
Dbnad_debugfs.c312 void *kern_buf; in bnad_debugfs_write_regrd() local
315 kern_buf = memdup_user(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(buf, nbytes); in bnad_debugfs_write_regwr()
376 if (IS_ERR(kern_buf)) in bnad_debugfs_write_regwr()
[all …]
/linux-6.1.9/drivers/staging/vme_user/
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 …]
/linux-6.1.9/drivers/scsi/mpi3mr/
Dmpi3mr_app.c591 sgl = (u8 *)drv_buf_iter->kern_buf + drv_buf_iter->bsg_buf_len; in mpi3mr_bsg_build_sgl()
1149 drv_buf_iter->kern_buf = dma_alloc_coherent(&mrioc->pdev->dev, in mpi3mr_bsg_process_mpt_cmds()
1152 if (!drv_buf_iter->kern_buf) { in mpi3mr_bsg_process_mpt_cmds()
1159 memcpy(drv_buf_iter->kern_buf, drv_buf_iter->bsg_buf, tmplen); in mpi3mr_bsg_process_mpt_cmds()
1266 dprint_dump(drv_buf_iter->kern_buf, in mpi3mr_bsg_process_mpt_cmds()
1301 dprint_dump(drv_buf_iter->kern_buf, in mpi3mr_bsg_process_mpt_cmds()
1380 drv_buf_iter->kern_buf, tmplen); in mpi3mr_bsg_process_mpt_cmds()
1403 if (drv_buf_iter->kern_buf && drv_buf_iter->kern_buf_dma) in mpi3mr_bsg_process_mpt_cmds()
1406 drv_buf_iter->kern_buf, in mpi3mr_bsg_process_mpt_cmds()
Dmpi3mr.h242 void *kern_buf; member