Lines Matching refs:ioc
58 struct MPT3SAS_ADAPTER *ioc = inode->i_private; in _debugfs_iocdump_open() local
65 debug->buf = (void *)ioc; in _debugfs_iocdump_open()
119 mpt3sas_setup_debugfs(struct MPT3SAS_ADAPTER *ioc) in mpt3sas_setup_debugfs() argument
123 snprintf(name, sizeof(name), "scsi_host%d", ioc->shost->host_no); in mpt3sas_setup_debugfs()
124 if (!ioc->debugfs_root) { in mpt3sas_setup_debugfs()
125 ioc->debugfs_root = in mpt3sas_setup_debugfs()
127 if (!ioc->debugfs_root) { in mpt3sas_setup_debugfs()
128 dev_err(&ioc->pdev->dev, in mpt3sas_setup_debugfs()
135 ioc->ioc_dump = debugfs_create_file(name, 0444, in mpt3sas_setup_debugfs()
136 ioc->debugfs_root, ioc, &mpt3sas_debugfs_iocdump_fops); in mpt3sas_setup_debugfs()
137 if (!ioc->ioc_dump) { in mpt3sas_setup_debugfs()
138 dev_err(&ioc->pdev->dev, in mpt3sas_setup_debugfs()
140 debugfs_remove(ioc->debugfs_root); in mpt3sas_setup_debugfs()
145 debugfs_create_u8(name, 0444, ioc->debugfs_root, &ioc->shost_recovery); in mpt3sas_setup_debugfs()
153 void mpt3sas_destroy_debugfs(struct MPT3SAS_ADAPTER *ioc) in mpt3sas_destroy_debugfs() argument
155 debugfs_remove_recursive(ioc->debugfs_root); in mpt3sas_destroy_debugfs()