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()
127 static ssize_t mmio_size_show_master(struct device *device, in mmio_size_show_master() argument
131 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master()
136 static ssize_t pp_mmio_off_show(struct device *device, in pp_mmio_off_show() argument
140 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show()
145 static ssize_t pp_mmio_len_show(struct device *device, in pp_mmio_len_show() argument
149 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show()
163 static ssize_t mmio_size_show(struct device *device, in mmio_size_show() argument
167 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show()
174 static ssize_t reset_store_afu(struct device *device, in reset_store_afu() argument
178 struct cxl_afu *afu = to_cxl_afu(device); in reset_store_afu()
197 static ssize_t irqs_min_show(struct device *device, in irqs_min_show() argument
201 struct cxl_afu *afu = to_cxl_afu(device); in irqs_min_show()
206 static ssize_t irqs_max_show(struct device *device, in irqs_max_show() argument
210 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_show()
215 static ssize_t irqs_max_store(struct device *device, in irqs_max_store() argument
219 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_store()
237 static ssize_t modes_supported_show(struct device *device, in modes_supported_show() argument
240 struct cxl_afu *afu = to_cxl_afu(device); in modes_supported_show()
250 static ssize_t prefault_mode_show(struct device *device, in prefault_mode_show() argument
254 struct cxl_afu *afu = to_cxl_afu(device); in prefault_mode_show()
266 static ssize_t prefault_mode_store(struct device *device, in prefault_mode_store() argument
270 struct cxl_afu *afu = to_cxl_afu(device); in prefault_mode_store()
287 static ssize_t mode_show(struct device *device, in mode_show() argument
291 struct cxl_afu *afu = to_cxl_afu(device); in mode_show()
300 static ssize_t mode_store(struct device *device, struct device_attribute *attr, in mode_store() argument
303 struct cxl_afu *afu = to_cxl_afu(device); in mode_store()
345 static ssize_t api_version_show(struct device *device, in api_version_show() argument
352 static ssize_t api_version_compatible_show(struct device *device, in api_version_compatible_show() argument
398 u16 device; member
418 return scnprintf(buf, PAGE_SIZE, "0x%.4x\n", cr->device); in device_show()
434 struct cxl_afu *afu = to_cxl_afu(container_of(kobj->parent, struct device, kobj)); in afu_read_config()
455 __ATTR_RO(device);
489 cr->device = cxl_afu_cr_read16(afu, cr_idx, PCI_DEVICE_ID); in cxl_sysfs_afu_new_cr()