Lines Matching refs:kern_buf
165 void *kern_buf; in qedf_dbg_debug_cmd_write() local
173 kern_buf = memdup_user(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()
229 if (strncmp(kern_buf, "false", 5) == 0) in qedf_dbg_stop_io_on_error_cmd_write()
231 else if (strncmp(kern_buf, "true", 4) == 0) in qedf_dbg_stop_io_on_error_cmd_write()
233 else if (strncmp(kern_buf, "now", 3) == 0) in qedf_dbg_stop_io_on_error_cmd_write()
237 kfree(kern_buf); in qedf_dbg_stop_io_on_error_cmd_write()