Lines Matching refs:fw_debug
74 struct bfad_debug_info *fw_debug; in bfad_debugfs_open_fwtrc() local
78 fw_debug = kzalloc(sizeof(struct bfad_debug_info), GFP_KERNEL); in bfad_debugfs_open_fwtrc()
79 if (!fw_debug) in bfad_debugfs_open_fwtrc()
82 fw_debug->buffer_len = sizeof(struct bfa_trc_mod_s); in bfad_debugfs_open_fwtrc()
84 fw_debug->debug_buffer = vzalloc(fw_debug->buffer_len); in bfad_debugfs_open_fwtrc()
85 if (!fw_debug->debug_buffer) { in bfad_debugfs_open_fwtrc()
86 kfree(fw_debug); in bfad_debugfs_open_fwtrc()
94 fw_debug->debug_buffer, in bfad_debugfs_open_fwtrc()
95 &fw_debug->buffer_len); in bfad_debugfs_open_fwtrc()
98 vfree(fw_debug->debug_buffer); in bfad_debugfs_open_fwtrc()
99 fw_debug->debug_buffer = NULL; in bfad_debugfs_open_fwtrc()
100 kfree(fw_debug); in bfad_debugfs_open_fwtrc()
106 file->private_data = fw_debug; in bfad_debugfs_open_fwtrc()
116 struct bfad_debug_info *fw_debug; in bfad_debugfs_open_fwsave() local
120 fw_debug = kzalloc(sizeof(struct bfad_debug_info), GFP_KERNEL); in bfad_debugfs_open_fwsave()
121 if (!fw_debug) in bfad_debugfs_open_fwsave()
124 fw_debug->buffer_len = sizeof(struct bfa_trc_mod_s); in bfad_debugfs_open_fwsave()
126 fw_debug->debug_buffer = vzalloc(fw_debug->buffer_len); in bfad_debugfs_open_fwsave()
127 if (!fw_debug->debug_buffer) { in bfad_debugfs_open_fwsave()
128 kfree(fw_debug); in bfad_debugfs_open_fwsave()
136 fw_debug->debug_buffer, in bfad_debugfs_open_fwsave()
137 &fw_debug->buffer_len); in bfad_debugfs_open_fwsave()
140 vfree(fw_debug->debug_buffer); in bfad_debugfs_open_fwsave()
141 fw_debug->debug_buffer = NULL; in bfad_debugfs_open_fwsave()
142 kfree(fw_debug); in bfad_debugfs_open_fwsave()
148 file->private_data = fw_debug; in bfad_debugfs_open_fwsave()
377 struct bfad_debug_info *fw_debug = file->private_data; in bfad_debugfs_release_fwtrc() local
379 if (!fw_debug) in bfad_debugfs_release_fwtrc()
382 if (fw_debug->debug_buffer) in bfad_debugfs_release_fwtrc()
383 vfree(fw_debug->debug_buffer); in bfad_debugfs_release_fwtrc()
386 kfree(fw_debug); in bfad_debugfs_release_fwtrc()