Lines Matching refs:debug
1940 struct lpfc_debug *debug; in lpfc_debugfs_disc_trc_open() local
1949 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_disc_trc_open()
1950 if (!debug) in lpfc_debugfs_disc_trc_open()
1957 debug->buffer = kmalloc(size, GFP_KERNEL); in lpfc_debugfs_disc_trc_open()
1958 if (!debug->buffer) { in lpfc_debugfs_disc_trc_open()
1959 kfree(debug); in lpfc_debugfs_disc_trc_open()
1963 debug->len = lpfc_debugfs_disc_trc_data(vport, debug->buffer, size); in lpfc_debugfs_disc_trc_open()
1964 file->private_data = debug; in lpfc_debugfs_disc_trc_open()
1990 struct lpfc_debug *debug; in lpfc_debugfs_slow_ring_trc_open() local
1999 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_slow_ring_trc_open()
2000 if (!debug) in lpfc_debugfs_slow_ring_trc_open()
2007 debug->buffer = kmalloc(size, GFP_KERNEL); in lpfc_debugfs_slow_ring_trc_open()
2008 if (!debug->buffer) { in lpfc_debugfs_slow_ring_trc_open()
2009 kfree(debug); in lpfc_debugfs_slow_ring_trc_open()
2013 debug->len = lpfc_debugfs_slow_ring_trc_data(phba, debug->buffer, size); in lpfc_debugfs_slow_ring_trc_open()
2014 file->private_data = debug; in lpfc_debugfs_slow_ring_trc_open()
2040 struct lpfc_debug *debug; in lpfc_debugfs_hbqinfo_open() local
2043 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_hbqinfo_open()
2044 if (!debug) in lpfc_debugfs_hbqinfo_open()
2048 debug->buffer = kmalloc(LPFC_HBQINFO_SIZE, GFP_KERNEL); in lpfc_debugfs_hbqinfo_open()
2049 if (!debug->buffer) { in lpfc_debugfs_hbqinfo_open()
2050 kfree(debug); in lpfc_debugfs_hbqinfo_open()
2054 debug->len = lpfc_debugfs_hbqinfo_data(phba, debug->buffer, in lpfc_debugfs_hbqinfo_open()
2056 file->private_data = debug; in lpfc_debugfs_hbqinfo_open()
2082 struct lpfc_debug *debug; in lpfc_debugfs_multixripools_open() local
2085 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_multixripools_open()
2086 if (!debug) in lpfc_debugfs_multixripools_open()
2090 debug->buffer = kzalloc(LPFC_DUMP_MULTIXRIPOOL_SIZE, GFP_KERNEL); in lpfc_debugfs_multixripools_open()
2091 if (!debug->buffer) { in lpfc_debugfs_multixripools_open()
2092 kfree(debug); in lpfc_debugfs_multixripools_open()
2096 debug->len = lpfc_debugfs_multixripools_data( in lpfc_debugfs_multixripools_open()
2097 phba, debug->buffer, LPFC_DUMP_MULTIXRIPOOL_SIZE); in lpfc_debugfs_multixripools_open()
2099 debug->i_private = inode->i_private; in lpfc_debugfs_multixripools_open()
2100 file->private_data = debug; in lpfc_debugfs_multixripools_open()
2127 struct lpfc_debug *debug; in lpfc_debugfs_lockstat_open() local
2130 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_lockstat_open()
2131 if (!debug) in lpfc_debugfs_lockstat_open()
2135 debug->buffer = kmalloc(LPFC_HDWQINFO_SIZE, GFP_KERNEL); in lpfc_debugfs_lockstat_open()
2136 if (!debug->buffer) { in lpfc_debugfs_lockstat_open()
2137 kfree(debug); in lpfc_debugfs_lockstat_open()
2141 debug->len = lpfc_debugfs_lockstat_data(phba, debug->buffer, in lpfc_debugfs_lockstat_open()
2143 file->private_data = debug; in lpfc_debugfs_lockstat_open()
2154 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_lockstat_write() local
2155 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_debugfs_lockstat_write()
2224 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_ras_log_release() local
2226 vfree(debug->buffer); in lpfc_debugfs_ras_log_release()
2227 kfree(debug); in lpfc_debugfs_ras_log_release()
2251 struct lpfc_debug *debug; in lpfc_debugfs_ras_log_open() local
2262 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_ras_log_open()
2263 if (!debug) in lpfc_debugfs_ras_log_open()
2267 debug->buffer = vmalloc(size); in lpfc_debugfs_ras_log_open()
2268 if (!debug->buffer) in lpfc_debugfs_ras_log_open()
2271 debug->len = lpfc_debugfs_ras_log_data(phba, debug->buffer, size); in lpfc_debugfs_ras_log_open()
2272 if (debug->len < 0) { in lpfc_debugfs_ras_log_open()
2276 file->private_data = debug; in lpfc_debugfs_ras_log_open()
2281 vfree(debug->buffer); in lpfc_debugfs_ras_log_open()
2283 kfree(debug); in lpfc_debugfs_ras_log_open()
2307 struct lpfc_debug *debug; in lpfc_debugfs_dumpHBASlim_open() local
2310 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_dumpHBASlim_open()
2311 if (!debug) in lpfc_debugfs_dumpHBASlim_open()
2315 debug->buffer = kmalloc(LPFC_DUMPHBASLIM_SIZE, GFP_KERNEL); in lpfc_debugfs_dumpHBASlim_open()
2316 if (!debug->buffer) { in lpfc_debugfs_dumpHBASlim_open()
2317 kfree(debug); in lpfc_debugfs_dumpHBASlim_open()
2321 debug->len = lpfc_debugfs_dumpHBASlim_data(phba, debug->buffer, in lpfc_debugfs_dumpHBASlim_open()
2323 file->private_data = debug; in lpfc_debugfs_dumpHBASlim_open()
2349 struct lpfc_debug *debug; in lpfc_debugfs_dumpHostSlim_open() local
2352 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_dumpHostSlim_open()
2353 if (!debug) in lpfc_debugfs_dumpHostSlim_open()
2357 debug->buffer = kmalloc(LPFC_DUMPHOSTSLIM_SIZE, GFP_KERNEL); in lpfc_debugfs_dumpHostSlim_open()
2358 if (!debug->buffer) { in lpfc_debugfs_dumpHostSlim_open()
2359 kfree(debug); in lpfc_debugfs_dumpHostSlim_open()
2363 debug->len = lpfc_debugfs_dumpHostSlim_data(phba, debug->buffer, in lpfc_debugfs_dumpHostSlim_open()
2365 file->private_data = debug; in lpfc_debugfs_dumpHostSlim_open()
2489 struct lpfc_debug *debug; in lpfc_debugfs_nodelist_open() local
2492 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_nodelist_open()
2493 if (!debug) in lpfc_debugfs_nodelist_open()
2497 debug->buffer = kmalloc(LPFC_NODELIST_SIZE, GFP_KERNEL); in lpfc_debugfs_nodelist_open()
2498 if (!debug->buffer) { in lpfc_debugfs_nodelist_open()
2499 kfree(debug); in lpfc_debugfs_nodelist_open()
2503 debug->len = lpfc_debugfs_nodelist_data(vport, debug->buffer, in lpfc_debugfs_nodelist_open()
2505 file->private_data = debug; in lpfc_debugfs_nodelist_open()
2532 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_lseek() local
2533 return fixed_size_llseek(file, off, whence, debug->len); in lpfc_debugfs_lseek()
2556 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_read() local
2558 return simple_read_from_buffer(buf, nbytes, ppos, debug->buffer, in lpfc_debugfs_read()
2559 debug->len); in lpfc_debugfs_read()
2577 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_release() local
2579 kfree(debug->buffer); in lpfc_debugfs_release()
2580 kfree(debug); in lpfc_debugfs_release()
2604 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_multixripools_write() local
2605 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_debugfs_multixripools_write()
2655 struct lpfc_debug *debug; in lpfc_debugfs_nvmestat_open() local
2658 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_nvmestat_open()
2659 if (!debug) in lpfc_debugfs_nvmestat_open()
2663 debug->buffer = kmalloc(LPFC_NVMESTAT_SIZE, GFP_KERNEL); in lpfc_debugfs_nvmestat_open()
2664 if (!debug->buffer) { in lpfc_debugfs_nvmestat_open()
2665 kfree(debug); in lpfc_debugfs_nvmestat_open()
2669 debug->len = lpfc_debugfs_nvmestat_data(vport, debug->buffer, in lpfc_debugfs_nvmestat_open()
2672 debug->i_private = inode->i_private; in lpfc_debugfs_nvmestat_open()
2673 file->private_data = debug; in lpfc_debugfs_nvmestat_open()
2684 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_nvmestat_write() local
2685 struct lpfc_vport *vport = (struct lpfc_vport *)debug->i_private; in lpfc_debugfs_nvmestat_write()
2743 struct lpfc_debug *debug; in lpfc_debugfs_scsistat_open() local
2746 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_scsistat_open()
2747 if (!debug) in lpfc_debugfs_scsistat_open()
2751 debug->buffer = kzalloc(LPFC_SCSISTAT_SIZE, GFP_KERNEL); in lpfc_debugfs_scsistat_open()
2752 if (!debug->buffer) { in lpfc_debugfs_scsistat_open()
2753 kfree(debug); in lpfc_debugfs_scsistat_open()
2757 debug->len = lpfc_debugfs_scsistat_data(vport, debug->buffer, in lpfc_debugfs_scsistat_open()
2760 debug->i_private = inode->i_private; in lpfc_debugfs_scsistat_open()
2761 file->private_data = debug; in lpfc_debugfs_scsistat_open()
2772 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_scsistat_write() local
2773 struct lpfc_vport *vport = (struct lpfc_vport *)debug->i_private; in lpfc_debugfs_scsistat_write()
2797 struct lpfc_debug *debug; in lpfc_debugfs_ioktime_open() local
2800 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_ioktime_open()
2801 if (!debug) in lpfc_debugfs_ioktime_open()
2805 debug->buffer = kmalloc(LPFC_IOKTIME_SIZE, GFP_KERNEL); in lpfc_debugfs_ioktime_open()
2806 if (!debug->buffer) { in lpfc_debugfs_ioktime_open()
2807 kfree(debug); in lpfc_debugfs_ioktime_open()
2811 debug->len = lpfc_debugfs_ioktime_data(vport, debug->buffer, in lpfc_debugfs_ioktime_open()
2814 debug->i_private = inode->i_private; in lpfc_debugfs_ioktime_open()
2815 file->private_data = debug; in lpfc_debugfs_ioktime_open()
2826 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_ioktime_write() local
2827 struct lpfc_vport *vport = (struct lpfc_vport *)debug->i_private; in lpfc_debugfs_ioktime_write()
2924 struct lpfc_debug *debug; in lpfc_debugfs_nvmeio_trc_open() local
2927 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_nvmeio_trc_open()
2928 if (!debug) in lpfc_debugfs_nvmeio_trc_open()
2932 debug->buffer = kmalloc(LPFC_NVMEIO_TRC_SIZE, GFP_KERNEL); in lpfc_debugfs_nvmeio_trc_open()
2933 if (!debug->buffer) { in lpfc_debugfs_nvmeio_trc_open()
2934 kfree(debug); in lpfc_debugfs_nvmeio_trc_open()
2938 debug->len = lpfc_debugfs_nvmeio_trc_data(phba, debug->buffer, in lpfc_debugfs_nvmeio_trc_open()
2941 debug->i_private = inode->i_private; in lpfc_debugfs_nvmeio_trc_open()
2942 file->private_data = debug; in lpfc_debugfs_nvmeio_trc_open()
2953 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_nvmeio_trc_write() local
2954 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_debugfs_nvmeio_trc_write()
3029 struct lpfc_debug *debug; in lpfc_debugfs_hdwqstat_open() local
3032 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_hdwqstat_open()
3033 if (!debug) in lpfc_debugfs_hdwqstat_open()
3037 debug->buffer = kcalloc(1, LPFC_SCSISTAT_SIZE, GFP_KERNEL); in lpfc_debugfs_hdwqstat_open()
3038 if (!debug->buffer) { in lpfc_debugfs_hdwqstat_open()
3039 kfree(debug); in lpfc_debugfs_hdwqstat_open()
3043 debug->len = lpfc_debugfs_hdwqstat_data(vport, debug->buffer, in lpfc_debugfs_hdwqstat_open()
3046 debug->i_private = inode->i_private; in lpfc_debugfs_hdwqstat_open()
3047 file->private_data = debug; in lpfc_debugfs_hdwqstat_open()
3058 struct lpfc_debug *debug = file->private_data; in lpfc_debugfs_hdwqstat_write() local
3059 struct lpfc_vport *vport = (struct lpfc_vport *)debug->i_private; in lpfc_debugfs_hdwqstat_write()
3194 struct lpfc_debug *debug; in lpfc_idiag_open() local
3196 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_idiag_open()
3197 if (!debug) in lpfc_idiag_open()
3200 debug->i_private = inode->i_private; in lpfc_idiag_open()
3201 debug->buffer = NULL; in lpfc_idiag_open()
3202 file->private_data = debug; in lpfc_idiag_open()
3223 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_release() local
3226 kfree(debug->buffer); in lpfc_idiag_release()
3227 kfree(debug); in lpfc_idiag_release()
3248 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_cmd_release() local
3250 if (debug->op == LPFC_IDIAG_OP_WR) { in lpfc_idiag_cmd_release()
3266 kfree(debug->buffer); in lpfc_idiag_cmd_release()
3267 kfree(debug); in lpfc_idiag_cmd_release()
3294 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_pcicfg_read() local
3295 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_pcicfg_read()
3309 debug->op = LPFC_IDIAG_OP_RD; in lpfc_idiag_pcicfg_read()
3311 if (!debug->buffer) in lpfc_idiag_pcicfg_read()
3312 debug->buffer = kmalloc(LPFC_PCI_CFG_SIZE, GFP_KERNEL); in lpfc_idiag_pcicfg_read()
3313 if (!debug->buffer) in lpfc_idiag_pcicfg_read()
3315 pbuffer = debug->buffer; in lpfc_idiag_pcicfg_read()
3415 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_pcicfg_write() local
3416 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_pcicfg_write()
3429 debug->op = LPFC_IDIAG_OP_WR; in lpfc_idiag_pcicfg_write()
3589 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_baracc_read() local
3590 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_baracc_read()
3604 debug->op = LPFC_IDIAG_OP_RD; in lpfc_idiag_baracc_read()
3606 if (!debug->buffer) in lpfc_idiag_baracc_read()
3607 debug->buffer = kmalloc(LPFC_PCI_BAR_RD_BUF_SIZE, GFP_KERNEL); in lpfc_idiag_baracc_read()
3608 if (!debug->buffer) in lpfc_idiag_baracc_read()
3610 pbuffer = debug->buffer; in lpfc_idiag_baracc_read()
3740 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_baracc_write() local
3741 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_baracc_write()
3754 debug->op = LPFC_IDIAG_OP_WR; in lpfc_idiag_baracc_write()
4045 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_queinfo_read() local
4046 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_queinfo_read()
4051 if (!debug->buffer) in lpfc_idiag_queinfo_read()
4052 debug->buffer = kmalloc(LPFC_QUE_INFO_GET_BUF_SIZE, GFP_KERNEL); in lpfc_idiag_queinfo_read()
4053 if (!debug->buffer) in lpfc_idiag_queinfo_read()
4055 pbuffer = debug->buffer; in lpfc_idiag_queinfo_read()
4254 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_queacc_read() local
4261 debug->op = LPFC_IDIAG_OP_RD; in lpfc_idiag_queacc_read()
4263 if (!debug->buffer) in lpfc_idiag_queacc_read()
4264 debug->buffer = kmalloc(LPFC_QUE_ACC_BUF_SIZE, GFP_KERNEL); in lpfc_idiag_queacc_read()
4265 if (!debug->buffer) in lpfc_idiag_queacc_read()
4267 pbuffer = debug->buffer; in lpfc_idiag_queacc_read()
4331 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_queacc_write() local
4332 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_queacc_write()
4339 debug->op = LPFC_IDIAG_OP_WR; in lpfc_idiag_queacc_write()
4628 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_drbacc_read() local
4629 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_drbacc_read()
4635 debug->op = LPFC_IDIAG_OP_RD; in lpfc_idiag_drbacc_read()
4637 if (!debug->buffer) in lpfc_idiag_drbacc_read()
4638 debug->buffer = kmalloc(LPFC_DRB_ACC_BUF_SIZE, GFP_KERNEL); in lpfc_idiag_drbacc_read()
4639 if (!debug->buffer) in lpfc_idiag_drbacc_read()
4641 pbuffer = debug->buffer; in lpfc_idiag_drbacc_read()
4684 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_drbacc_write() local
4685 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_drbacc_write()
4691 debug->op = LPFC_IDIAG_OP_WR; in lpfc_idiag_drbacc_write()
4846 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_ctlacc_read() local
4847 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_ctlacc_read()
4853 debug->op = LPFC_IDIAG_OP_RD; in lpfc_idiag_ctlacc_read()
4855 if (!debug->buffer) in lpfc_idiag_ctlacc_read()
4856 debug->buffer = kmalloc(LPFC_CTL_ACC_BUF_SIZE, GFP_KERNEL); in lpfc_idiag_ctlacc_read()
4857 if (!debug->buffer) in lpfc_idiag_ctlacc_read()
4859 pbuffer = debug->buffer; in lpfc_idiag_ctlacc_read()
4899 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_ctlacc_write() local
4900 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_ctlacc_write()
4906 debug->op = LPFC_IDIAG_OP_WR; in lpfc_idiag_ctlacc_write()
5040 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_mbxacc_read() local
5041 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_mbxacc_read()
5046 debug->op = LPFC_IDIAG_OP_RD; in lpfc_idiag_mbxacc_read()
5048 if (!debug->buffer) in lpfc_idiag_mbxacc_read()
5049 debug->buffer = kmalloc(LPFC_MBX_ACC_BUF_SIZE, GFP_KERNEL); in lpfc_idiag_mbxacc_read()
5050 if (!debug->buffer) in lpfc_idiag_mbxacc_read()
5052 pbuffer = debug->buffer; in lpfc_idiag_mbxacc_read()
5085 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_mbxacc_write() local
5090 debug->op = LPFC_IDIAG_OP_WR; in lpfc_idiag_mbxacc_write()
5359 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_extacc_write() local
5364 debug->op = LPFC_IDIAG_OP_WR; in lpfc_idiag_extacc_write()
5405 struct lpfc_debug *debug = file->private_data; in lpfc_idiag_extacc_read() local
5406 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_idiag_extacc_read()
5412 debug->op = LPFC_IDIAG_OP_RD; in lpfc_idiag_extacc_read()
5414 if (!debug->buffer) in lpfc_idiag_extacc_read()
5415 debug->buffer = kmalloc(LPFC_EXT_ACC_BUF_SIZE, GFP_KERNEL); in lpfc_idiag_extacc_read()
5416 if (!debug->buffer) in lpfc_idiag_extacc_read()
5418 pbuffer = debug->buffer; in lpfc_idiag_extacc_read()
5438 struct lpfc_debug *debug; in lpfc_cgn_buffer_open() local
5441 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_cgn_buffer_open()
5442 if (!debug) in lpfc_cgn_buffer_open()
5445 debug->buffer = vmalloc(LPFC_CGN_BUF_SIZE); in lpfc_cgn_buffer_open()
5446 if (!debug->buffer) { in lpfc_cgn_buffer_open()
5447 kfree(debug); in lpfc_cgn_buffer_open()
5451 debug->i_private = inode->i_private; in lpfc_cgn_buffer_open()
5452 file->private_data = debug; in lpfc_cgn_buffer_open()
5463 struct lpfc_debug *debug = file->private_data; in lpfc_cgn_buffer_read() local
5464 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_cgn_buffer_read()
5465 char *buffer = debug->buffer; in lpfc_cgn_buffer_read()
5519 struct lpfc_debug *debug = file->private_data; in lpfc_cgn_buffer_release() local
5521 vfree(debug->buffer); in lpfc_cgn_buffer_release()
5522 kfree(debug); in lpfc_cgn_buffer_release()
5530 struct lpfc_rx_monitor_debug *debug; in lpfc_rx_monitor_open() local
5533 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_rx_monitor_open()
5534 if (!debug) in lpfc_rx_monitor_open()
5537 debug->buffer = vmalloc(MAX_DEBUGFS_RX_INFO_SIZE); in lpfc_rx_monitor_open()
5538 if (!debug->buffer) { in lpfc_rx_monitor_open()
5539 kfree(debug); in lpfc_rx_monitor_open()
5543 debug->i_private = inode->i_private; in lpfc_rx_monitor_open()
5544 file->private_data = debug; in lpfc_rx_monitor_open()
5555 struct lpfc_rx_monitor_debug *debug = file->private_data; in lpfc_rx_monitor_read() local
5556 struct lpfc_hba *phba = (struct lpfc_hba *)debug->i_private; in lpfc_rx_monitor_read()
5557 char *buffer = debug->buffer; in lpfc_rx_monitor_read()
5575 struct lpfc_rx_monitor_debug *debug = file->private_data; in lpfc_rx_monitor_release() local
5577 vfree(debug->buffer); in lpfc_rx_monitor_release()
5578 kfree(debug); in lpfc_rx_monitor_release()