Lines Matching refs:debug
31 * fnic_debugfs_init - Initialize debugfs for fnic debug logging
426 * to debug structure to retrieve later for while performing other
434 struct stats_debug_info *debug;
436 debug = kzalloc(sizeof(struct stats_debug_info), GFP_KERNEL);
437 if (!debug)
440 debug->i_private = inode->i_private;
442 file->private_data = debug;
466 struct stats_debug_info *debug = file->private_data;
467 struct fnic *fnic = (struct fnic *)debug->i_private;
494 struct stats_debug_info *debug = file->private_data;
495 struct fnic *fnic = (struct fnic *)debug->i_private;
557 struct stats_debug_info *debug = file->private_data;
558 kfree(debug);
580 struct stats_debug_info *debug;
583 debug = kzalloc(sizeof(struct stats_debug_info), GFP_KERNEL);
584 if (!debug)
587 debug->debug_buffer = vmalloc(buf_size);
588 if (!debug->debug_buffer) {
589 kfree(debug);
593 debug->buf_size = buf_size;
594 memset((void *)debug->debug_buffer, 0, buf_size);
595 debug->buffer_len = fnic_get_stats_data(debug, fnic_stats);
597 file->private_data = debug;
623 struct stats_debug_info *debug = file->private_data;
626 debug->debug_buffer,
627 debug->buffer_len);
647 struct stats_debug_info *debug = file->private_data;
648 vfree(debug->debug_buffer);
649 kfree(debug);