Lines Matching refs:fnic_dbg_prt
212 fnic_dbgfs_t *fnic_dbg_prt; in fnic_trace_debugfs_open() local
215 fnic_dbg_prt = kzalloc(sizeof(fnic_dbgfs_t), GFP_KERNEL); in fnic_trace_debugfs_open()
216 if (!fnic_dbg_prt) in fnic_trace_debugfs_open()
220 fnic_dbg_prt->buffer = vmalloc(array3_size(3, trace_max_pages, in fnic_trace_debugfs_open()
222 if (!fnic_dbg_prt->buffer) { in fnic_trace_debugfs_open()
223 kfree(fnic_dbg_prt); in fnic_trace_debugfs_open()
226 memset((void *)fnic_dbg_prt->buffer, 0, in fnic_trace_debugfs_open()
228 fnic_dbg_prt->buffer_len = fnic_get_trace_data(fnic_dbg_prt); in fnic_trace_debugfs_open()
230 fnic_dbg_prt->buffer = in fnic_trace_debugfs_open()
233 if (!fnic_dbg_prt->buffer) { in fnic_trace_debugfs_open()
234 kfree(fnic_dbg_prt); in fnic_trace_debugfs_open()
237 memset((void *)fnic_dbg_prt->buffer, 0, in fnic_trace_debugfs_open()
239 fnic_dbg_prt->buffer_len = in fnic_trace_debugfs_open()
240 fnic_fc_trace_get_data(fnic_dbg_prt, *rdata_ptr); in fnic_trace_debugfs_open()
242 file->private_data = fnic_dbg_prt; in fnic_trace_debugfs_open()
268 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_lseek() local
270 fnic_dbg_prt->buffer_len); in fnic_trace_debugfs_lseek()
294 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_read() local
297 fnic_dbg_prt->buffer, in fnic_trace_debugfs_read()
298 fnic_dbg_prt->buffer_len); in fnic_trace_debugfs_read()
318 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_release() local
320 vfree(fnic_dbg_prt->buffer); in fnic_trace_debugfs_release()
321 kfree(fnic_dbg_prt); in fnic_trace_debugfs_release()