Lines Matching refs:ctrl
28 static int show_ctrl(struct controller *ctrl, char *buf)
36 res = ctrl->mem_head;
43 res = ctrl->p_mem_head;
50 res = ctrl->io_head;
57 res = ctrl->bus_head;
66 static int show_dev(struct controller *ctrl, char *buf)
74 slot = ctrl->slot;
114 static int spew_debug_info(struct controller *ctrl, char *data, int size)
118 used = size - show_ctrl(ctrl, data);
119 used = (size - used) - show_dev(ctrl, &data[used]);
126 struct controller *ctrl;
133 struct controller *ctrl = inode->i_private;
146 dbg->size = spew_debug_info(ctrl, dbg->data, MAX_OUTPUT);
197 void cpqhp_create_debugfs_files(struct controller *ctrl)
199 ctrl->dentry = debugfs_create_file(dev_name(&ctrl->pci_dev->dev),
200 S_IRUGO, root, ctrl, &debug_ops);
203 void cpqhp_remove_debugfs_files(struct controller *ctrl)
205 debugfs_remove(ctrl->dentry);
206 ctrl->dentry = NULL;