Lines Matching defs:adapter
21 struct cxl *adapter = to_cxl_adapter(device);
23 return scnprintf(buf, PAGE_SIZE, "%i.%i\n", adapter->caia_major,
24 adapter->caia_minor);
31 struct cxl *adapter = to_cxl_adapter(device);
33 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->psl_rev);
40 struct cxl *adapter = to_cxl_adapter(device);
42 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->base_image);
49 struct cxl *adapter = to_cxl_adapter(device);
51 if (adapter->user_image_loaded)
60 struct cxl *adapter = to_cxl_adapter(device);
65 psl_tb = adapter->native->sl_ops->timebase_read(adapter);
69 adapter->psl_timebase_synced = (tb_to_ns(delta) < 16000) ? true : false;
74 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->psl_timebase_synced);
81 struct cxl *adapter = to_cxl_adapter(device);
83 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->tunneled_ops_supported);
90 struct cxl *adapter = to_cxl_adapter(device);
100 * when there are no contexts attached to the adapter. Once
104 rc = cxl_adapter_context_lock(adapter);
108 rc = cxl_ops->adapter_reset(adapter);
111 cxl_adapter_context_unlock(adapter);
114 /* Perform a forced adapter reset */
115 rc = cxl_ops->adapter_reset(adapter);
126 struct cxl *adapter = to_cxl_adapter(device);
128 if (!adapter->perst_loads_image)
131 if (adapter->perst_select_user)
140 struct cxl *adapter = to_cxl_adapter(device);
144 adapter->perst_loads_image = false;
146 adapter->perst_select_user = true;
147 adapter->perst_loads_image = true;
149 adapter->perst_select_user = false;
150 adapter->perst_loads_image = true;
154 if ((rc = cxl_update_image_control(adapter)))
164 struct cxl *adapter = to_cxl_adapter(device);
166 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->perst_same_image);
173 struct cxl *adapter = to_cxl_adapter(device);
181 adapter->perst_same_image = (val == 1 ? true : false);
206 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size);
244 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size);
304 if (irqs_max > afu->adapter->user_irqs)
467 int cxl_sysfs_adapter_add(struct cxl *adapter)
476 if ((rc = device_create_file(&adapter->dev, dev_attr)))
486 device_remove_file(&adapter->dev, dev_attr);
491 void cxl_sysfs_adapter_remove(struct cxl *adapter)
500 device_remove_file(&adapter->dev, dev_attr);