Lines Matching refs:fw_debug
44 struct bnad_debug_info *fw_debug; in bnad_debugfs_open_fwtrc() local
48 fw_debug = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_fwtrc()
49 if (!fw_debug) in bnad_debugfs_open_fwtrc()
52 fw_debug->buffer_len = BNA_DBG_FWTRC_LEN; in bnad_debugfs_open_fwtrc()
54 fw_debug->debug_buffer = kzalloc(fw_debug->buffer_len, GFP_KERNEL); in bnad_debugfs_open_fwtrc()
55 if (!fw_debug->debug_buffer) { in bnad_debugfs_open_fwtrc()
56 kfree(fw_debug); in bnad_debugfs_open_fwtrc()
57 fw_debug = NULL; in bnad_debugfs_open_fwtrc()
63 fw_debug->debug_buffer, in bnad_debugfs_open_fwtrc()
64 &fw_debug->buffer_len); in bnad_debugfs_open_fwtrc()
67 kfree(fw_debug->debug_buffer); in bnad_debugfs_open_fwtrc()
68 fw_debug->debug_buffer = NULL; in bnad_debugfs_open_fwtrc()
69 kfree(fw_debug); in bnad_debugfs_open_fwtrc()
70 fw_debug = NULL; in bnad_debugfs_open_fwtrc()
75 file->private_data = fw_debug; in bnad_debugfs_open_fwtrc()
84 struct bnad_debug_info *fw_debug; in bnad_debugfs_open_fwsave() local
88 fw_debug = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_fwsave()
89 if (!fw_debug) in bnad_debugfs_open_fwsave()
92 fw_debug->buffer_len = BNA_DBG_FWTRC_LEN; in bnad_debugfs_open_fwsave()
94 fw_debug->debug_buffer = kzalloc(fw_debug->buffer_len, GFP_KERNEL); in bnad_debugfs_open_fwsave()
95 if (!fw_debug->debug_buffer) { in bnad_debugfs_open_fwsave()
96 kfree(fw_debug); in bnad_debugfs_open_fwsave()
97 fw_debug = NULL; in bnad_debugfs_open_fwsave()
103 fw_debug->debug_buffer, in bnad_debugfs_open_fwsave()
104 &fw_debug->buffer_len); in bnad_debugfs_open_fwsave()
107 kfree(fw_debug->debug_buffer); in bnad_debugfs_open_fwsave()
108 fw_debug->debug_buffer = NULL; in bnad_debugfs_open_fwsave()
109 kfree(fw_debug); in bnad_debugfs_open_fwsave()
110 fw_debug = NULL; in bnad_debugfs_open_fwsave()
115 file->private_data = fw_debug; in bnad_debugfs_open_fwsave()