Lines Matching defs:adapter

36 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir)
38 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR1));
40 _cxl_p1_addr(adapter, CXL_PSL9_FIR_MASK));
41 debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR_CNTL));
42 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_TRACECFG));
44 _cxl_p1_addr(adapter, CXL_PSL9_DEBUG));
46 _cxl_p1_addr(adapter, CXL_XSL9_DBG));
49 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir)
51 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR1));
52 debugfs_create_io_x64("fir2", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR2));
53 debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR_CNTL));
54 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_TRACE));
57 void cxl_debugfs_adapter_add(struct cxl *adapter)
65 snprintf(buf, 32, "card%i", adapter->adapter_num);
67 adapter->debugfs = dir;
69 debugfs_create_io_x64("err_ivte", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_ErrIVTE));
71 if (adapter->native->sl_ops->debugfs_add_adapter_regs)
72 adapter->native->sl_ops->debugfs_add_adapter_regs(adapter, dir);
75 void cxl_debugfs_adapter_remove(struct cxl *adapter)
77 debugfs_remove_recursive(adapter->debugfs);
101 if (!afu->adapter->debugfs)
104 snprintf(buf, 32, "psl%i.%i", afu->adapter->adapter_num, afu->slice);
105 dir = debugfs_create_dir(buf, afu->adapter->debugfs);
114 if (afu->adapter->native->sl_ops->debugfs_add_afu_regs)
115 afu->adapter->native->sl_ops->debugfs_add_afu_regs(afu, dir);