Lines Matching refs:afu
10 return info->afu; in to_afu()
17 struct ocxl_afu *afu = to_afu(device); in global_mmio_size_show() local
20 afu->config.global_mmio_size); in global_mmio_size_show()
27 struct ocxl_afu *afu = to_afu(device); in pp_mmio_size_show() local
30 afu->config.pp_mmio_stride); in pp_mmio_size_show()
37 struct ocxl_afu *afu = to_afu(device); in afu_version_show() local
40 afu->config.version_major, in afu_version_show()
41 afu->config.version_minor); in afu_version_show()
48 struct ocxl_afu *afu = to_afu(device); in contexts_show() local
51 afu->pasid_count, afu->pasid_max); in contexts_show()
58 struct ocxl_afu *afu = to_afu(device); in reload_on_reset_show() local
59 struct ocxl_fn *fn = afu->fn; in reload_on_reset_show()
73 struct ocxl_afu *afu = to_afu(device); in reload_on_reset_store() local
74 struct ocxl_fn *fn = afu->fn; in reload_on_reset_store()
100 struct ocxl_afu *afu = to_afu(kobj_to_dev(kobj)); in global_mmio_read() local
103 off >= afu->config.global_mmio_size) in global_mmio_read()
105 memcpy_fromio(buf, afu->global_mmio_ptr + off, count); in global_mmio_read()
112 struct ocxl_afu *afu = vma->vm_private_data; in global_mmio_fault() local
115 if (vmf->pgoff >= (afu->config.global_mmio_size >> PAGE_SHIFT)) in global_mmio_fault()
119 offset += (afu->global_mmio_start >> PAGE_SHIFT); in global_mmio_fault()
131 struct ocxl_afu *afu = to_afu(kobj_to_dev(kobj)); in global_mmio_mmap() local
134 (afu->config.global_mmio_size >> PAGE_SHIFT)) in global_mmio_mmap()
140 vma->vm_private_data = afu; in global_mmio_mmap()
157 info->attr_global_mmio.size = info->afu->config.global_mmio_size; in ocxl_sysfs_register_afu()