Lines Matching refs:ctrl
42 static int show_ctrl (struct controller *ctrl, char *buf) in show_ctrl() argument
50 res = ctrl->mem_head; in show_ctrl()
57 res = ctrl->p_mem_head; in show_ctrl()
64 res = ctrl->io_head; in show_ctrl()
71 res = ctrl->bus_head; in show_ctrl()
80 static int show_dev (struct controller *ctrl, char *buf) in show_dev() argument
88 slot = ctrl->slot; in show_dev()
128 static int spew_debug_info(struct controller *ctrl, char *data, int size) in spew_debug_info() argument
132 used = size - show_ctrl(ctrl, data); in spew_debug_info()
133 used = (size - used) - show_dev(ctrl, &data[used]); in spew_debug_info()
140 struct controller *ctrl; member
147 struct controller *ctrl = inode->i_private; in open() local
160 dbg->size = spew_debug_info(ctrl, dbg->data, MAX_OUTPUT); in open()
211 void cpqhp_create_debugfs_files(struct controller *ctrl) in cpqhp_create_debugfs_files() argument
213 ctrl->dentry = debugfs_create_file(dev_name(&ctrl->pci_dev->dev), in cpqhp_create_debugfs_files()
214 S_IRUGO, root, ctrl, &debug_ops); in cpqhp_create_debugfs_files()
217 void cpqhp_remove_debugfs_files(struct controller *ctrl) in cpqhp_remove_debugfs_files() argument
219 debugfs_remove(ctrl->dentry); in cpqhp_remove_debugfs_files()
220 ctrl->dentry = NULL; in cpqhp_remove_debugfs_files()