Lines Matching refs:device
21 static ssize_t caia_version_show(struct device *device, in caia_version_show() argument
25 struct cxl *adapter = to_cxl_adapter(device); in caia_version_show()
31 static ssize_t psl_revision_show(struct device *device, in psl_revision_show() argument
35 struct cxl *adapter = to_cxl_adapter(device); in psl_revision_show()
40 static ssize_t base_image_show(struct device *device, in base_image_show() argument
44 struct cxl *adapter = to_cxl_adapter(device); in base_image_show()
49 static ssize_t image_loaded_show(struct device *device, in image_loaded_show() argument
53 struct cxl *adapter = to_cxl_adapter(device); in image_loaded_show()
60 static ssize_t reset_adapter_store(struct device *device, in reset_adapter_store() argument
64 struct cxl *adapter = to_cxl_adapter(device); in reset_adapter_store()
77 static ssize_t load_image_on_perst_show(struct device *device, in load_image_on_perst_show() argument
81 struct cxl *adapter = to_cxl_adapter(device); in load_image_on_perst_show()
91 static ssize_t load_image_on_perst_store(struct device *device, in load_image_on_perst_store() argument
95 struct cxl *adapter = to_cxl_adapter(device); in load_image_on_perst_store()
115 static ssize_t perst_reloads_same_image_show(struct device *device, in perst_reloads_same_image_show() argument
119 struct cxl *adapter = to_cxl_adapter(device); in perst_reloads_same_image_show()
124 static ssize_t perst_reloads_same_image_store(struct device *device, in perst_reloads_same_image_store() argument
128 struct cxl *adapter = to_cxl_adapter(device); in perst_reloads_same_image_store()
153 static ssize_t mmio_size_show_master(struct device *device, in mmio_size_show_master() argument
157 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master()
162 static ssize_t pp_mmio_off_show(struct device *device, in pp_mmio_off_show() argument
166 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show()
171 static ssize_t pp_mmio_len_show(struct device *device, in pp_mmio_len_show() argument
175 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show()
189 static ssize_t mmio_size_show(struct device *device, in mmio_size_show() argument
193 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show()
200 static ssize_t reset_store_afu(struct device *device, in reset_store_afu() argument
204 struct cxl_afu *afu = to_cxl_afu(device); in reset_store_afu()
223 static ssize_t irqs_min_show(struct device *device, in irqs_min_show() argument
227 struct cxl_afu *afu = to_cxl_afu(device); in irqs_min_show()
232 static ssize_t irqs_max_show(struct device *device, in irqs_max_show() argument
236 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_show()
241 static ssize_t irqs_max_store(struct device *device, in irqs_max_store() argument
245 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_store()
263 static ssize_t modes_supported_show(struct device *device, in modes_supported_show() argument
266 struct cxl_afu *afu = to_cxl_afu(device); in modes_supported_show()
276 static ssize_t prefault_mode_show(struct device *device, in prefault_mode_show() argument
280 struct cxl_afu *afu = to_cxl_afu(device); in prefault_mode_show()
292 static ssize_t prefault_mode_store(struct device *device, in prefault_mode_store() argument
296 struct cxl_afu *afu = to_cxl_afu(device); in prefault_mode_store()
313 static ssize_t mode_show(struct device *device, in mode_show() argument
317 struct cxl_afu *afu = to_cxl_afu(device); in mode_show()
326 static ssize_t mode_store(struct device *device, struct device_attribute *attr, in mode_store() argument
329 struct cxl_afu *afu = to_cxl_afu(device); in mode_store()
371 static ssize_t api_version_show(struct device *device, in api_version_show() argument
378 static ssize_t api_version_compatible_show(struct device *device, in api_version_compatible_show() argument
390 struct device, kobj)); in afu_eb_read()
434 u16 device; member
454 return scnprintf(buf, PAGE_SIZE, "0x%.4x\n", cr->device); in device_show()
470 struct cxl_afu *afu = to_cxl_afu(container_of(kobj->parent, struct device, kobj)); in afu_read_config()
486 __ATTR_RO(device);
520 cr->device = cxl_afu_cr_read16(afu, cr_idx, PCI_DEVICE_ID); in cxl_sysfs_afu_new_cr()