Lines Matching refs:debug
45 * fnic_debugfs_init - Initialize debugfs for fnic debug logging
446 * to debug structure to retrieve later for while performing other
454 struct stats_debug_info *debug;
456 debug = kzalloc(sizeof(struct stats_debug_info), GFP_KERNEL);
457 if (!debug)
460 debug->i_private = inode->i_private;
462 file->private_data = debug;
486 struct stats_debug_info *debug = file->private_data;
487 struct fnic *fnic = (struct fnic *)debug->i_private;
514 struct stats_debug_info *debug = file->private_data;
515 struct fnic *fnic = (struct fnic *)debug->i_private;
577 struct stats_debug_info *debug = file->private_data;
578 kfree(debug);
600 struct stats_debug_info *debug;
603 debug = kzalloc(sizeof(struct stats_debug_info), GFP_KERNEL);
604 if (!debug)
607 debug->debug_buffer = vmalloc(buf_size);
608 if (!debug->debug_buffer) {
609 kfree(debug);
613 debug->buf_size = buf_size;
614 memset((void *)debug->debug_buffer, 0, buf_size);
615 debug->buffer_len = fnic_get_stats_data(debug, fnic_stats);
617 file->private_data = debug;
643 struct stats_debug_info *debug = file->private_data;
646 debug->debug_buffer,
647 debug->buffer_len);
667 struct stats_debug_info *debug = file->private_data;
668 vfree(debug->debug_buffer);
669 kfree(debug);