Lines Matching refs:debug_info
29 static struct wilco_ec_debugfs *debug_info; variable
98 char *buf = debug_info->formatted_data; in raw_write()
123 memset(debug_info->raw_data, 0, sizeof(debug_info->raw_data)); in raw_write()
124 msg.response_data = debug_info->raw_data; in raw_write()
127 ret = wilco_ec_mailbox(debug_info->ec, &msg); in raw_write()
130 debug_info->response_size = ret; in raw_write()
140 if (debug_info->response_size) { in raw_read()
141 fmt_len = hex_dump_to_buffer(debug_info->raw_data, in raw_read()
142 debug_info->response_size, in raw_read()
143 16, 1, debug_info->formatted_data, in raw_read()
144 sizeof(debug_info->formatted_data), in raw_read()
147 debug_info->response_size = 0; in raw_read()
151 debug_info->formatted_data, fmt_len); in raw_read()
249 debug_info = devm_kzalloc(&pdev->dev, sizeof(*debug_info), GFP_KERNEL); in wilco_ec_debugfs_probe()
250 if (!debug_info) in wilco_ec_debugfs_probe()
252 debug_info->ec = ec; in wilco_ec_debugfs_probe()
253 debug_info->dir = debugfs_create_dir("wilco_ec", NULL); in wilco_ec_debugfs_probe()
254 if (!debug_info->dir) in wilco_ec_debugfs_probe()
256 debugfs_create_file("raw", 0644, debug_info->dir, NULL, &fops_raw); in wilco_ec_debugfs_probe()
257 debugfs_create_file("h1_gpio", 0444, debug_info->dir, ec, in wilco_ec_debugfs_probe()
259 debugfs_create_file("test_event", 0200, debug_info->dir, ec, in wilco_ec_debugfs_probe()
267 debugfs_remove_recursive(debug_info->dir); in wilco_ec_debugfs_remove()