Home
last modified time | relevance | path

Searched defs:afu (Results 1 – 25 of 64) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/misc/ocxl/
Dcore.c18 struct ocxl_afu *afu; in alloc_afu() local
35 struct ocxl_afu *afu = container_of(kref, struct ocxl_afu, kref); in free_afu() local
42 void ocxl_afu_get(struct ocxl_afu *afu) in ocxl_afu_get()
48 void ocxl_afu_put(struct ocxl_afu *afu) in ocxl_afu_put()
54 static int assign_afu_actag(struct ocxl_afu *afu) in assign_afu_actag()
82 static void reclaim_afu_actag(struct ocxl_afu *afu) in reclaim_afu_actag()
92 static int assign_afu_pasid(struct ocxl_afu *afu) in assign_afu_pasid()
121 static void reclaim_afu_pasid(struct ocxl_afu *afu) in reclaim_afu_pasid()
162 static int map_mmio_areas(struct ocxl_afu *afu) in map_mmio_areas()
201 static void unmap_mmio_areas(struct ocxl_afu *afu) in unmap_mmio_areas()
[all …]
Dmmio.c7 int ocxl_global_mmio_read32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read32()
32 int ocxl_global_mmio_read64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read64()
57 int ocxl_global_mmio_write32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_write32()
83 int ocxl_global_mmio_write64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_write64()
109 int ocxl_global_mmio_set32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_set32()
140 int ocxl_global_mmio_set64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_set64()
171 int ocxl_global_mmio_clear32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_clear32()
203 int ocxl_global_mmio_clear64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_clear64()
Dsysfs.c17 struct ocxl_afu *afu = to_afu(device); in global_mmio_size_show() local
27 struct ocxl_afu *afu = to_afu(device); in pp_mmio_size_show() local
37 struct ocxl_afu *afu = to_afu(device); in afu_version_show() local
48 struct ocxl_afu *afu = to_afu(device); in contexts_show() local
58 struct ocxl_afu *afu = to_afu(device); in reload_on_reset_show() local
73 struct ocxl_afu *afu = to_afu(device); in reload_on_reset_store() local
100 struct ocxl_afu *afu = to_afu(kobj_to_dev(kobj)); in global_mmio_read() local
112 struct ocxl_afu *afu = vma->vm_private_data; in global_mmio_fault() local
131 struct ocxl_afu *afu = to_afu(kobj_to_dev(kobj)); in global_mmio_mmap() local
/kernel/linux/linux-5.10/drivers/misc/cxl/
Dnative.c21 static int afu_control(struct cxl_afu *afu, u64 command, u64 clear, in afu_control()
74 static int afu_enable(struct cxl_afu *afu) in afu_enable()
83 int cxl_afu_disable(struct cxl_afu *afu) in cxl_afu_disable()
93 static int native_afu_reset(struct cxl_afu *afu) in native_afu_reset()
119 static int native_afu_check_and_enable(struct cxl_afu *afu) in native_afu_check_and_enable()
130 int cxl_psl_purge(struct cxl_afu *afu) in cxl_psl_purge()
222 static int cxl_alloc_spa(struct cxl_afu *afu, int mode) in cxl_alloc_spa()
255 static void attach_spa(struct cxl_afu *afu) in attach_spa()
271 static inline void detach_spa(struct cxl_afu *afu) in detach_spa()
276 void cxl_release_spa(struct cxl_afu *afu) in cxl_release_spa()
[all …]
Dguest.c18 static void pci_error_handlers(struct cxl_afu *afu, in pci_error_handlers()
64 static ssize_t guest_collect_vpd(struct cxl *adapter, struct cxl_afu *afu, in guest_collect_vpd()
172 static int afu_read_error_state(struct cxl_afu *afu, int *state_out) in afu_read_error_state()
193 struct cxl_afu *afu = data; in guest_slice_irq_err() local
262 struct cxl_afu *afu = NULL; in guest_reset() local
349 static int guest_register_serr_irq(struct cxl_afu *afu) in guest_register_serr_irq()
366 static void guest_release_serr_irq(struct cxl_afu *afu) in guest_release_serr_irq()
411 static int _guest_afu_cr_readXX(int sz, struct cxl_afu *afu, int cr_idx, in _guest_afu_cr_readXX()
455 static int guest_afu_cr_read32(struct cxl_afu *afu, int cr_idx, u64 offset, in guest_afu_cr_read32()
467 static int guest_afu_cr_read16(struct cxl_afu *afu, int cr_idx, u64 offset, in guest_afu_cr_read16()
[all …]
Dfile.c28 #define CXL_AFU_MINOR_D(afu) (CXL_CARD_MINOR(afu->adapter) + 1 + (3 * afu->slice)) argument
29 #define CXL_AFU_MINOR_M(afu) (CXL_AFU_MINOR_D(afu) + 1) argument
30 #define CXL_AFU_MINOR_S(afu) (CXL_AFU_MINOR_D(afu) + 2) argument
31 #define CXL_AFU_MKDEV_D(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_D(afu)) argument
32 #define CXL_AFU_MKDEV_M(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_M(afu)) argument
33 #define CXL_AFU_MKDEV_S(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_S(afu)) argument
46 struct cxl_afu *afu; in __afu_open() local
564 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev()
593 int cxl_chardev_d_afu_add(struct cxl_afu *afu) in cxl_chardev_d_afu_add()
600 int cxl_chardev_m_afu_add(struct cxl_afu *afu) in cxl_chardev_m_afu_add()
[all …]
Dsysfs.c204 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master() local
213 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show() local
222 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show() local
240 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show() local
251 struct cxl_afu *afu = to_cxl_afu(device); in reset_store_afu() local
274 struct cxl_afu *afu = to_cxl_afu(device); in irqs_min_show() local
283 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_show() local
292 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_store() local
319 struct cxl_afu *afu = to_cxl_afu(device); in modes_supported_show() local
333 struct cxl_afu *afu = to_cxl_afu(device); in prefault_mode_show() local
[all …]
Dvphb.c31 struct cxl_afu *afu; in cxl_pci_enable_device_hook() local
93 static void cxl_afu_configured_put(struct cxl_afu *afu) in cxl_afu_configured_put()
98 static bool cxl_afu_configured_get(struct cxl_afu *afu) in cxl_afu_configured_get()
104 struct cxl_afu *afu, int *_record) in cxl_pcie_config_info()
120 struct cxl_afu *afu; in cxl_pcie_read_config() local
160 struct cxl_afu *afu; in cxl_pcie_write_config() local
209 int cxl_pci_vphb_add(struct cxl_afu *afu) in cxl_pci_vphb_add()
275 void cxl_pci_vphb_remove(struct cxl_afu *afu) in cxl_pci_vphb_remove()
Dpci.c89 #define AFUD_READ(afu, off) in_be64(afu->native->afu_desc_mmio + off) argument
90 #define AFUD_READ_LE(afu, off) in_le64(afu->native->afu_desc_mmio + off) argument
94 #define AFUD_READ_INFO(afu) AFUD_READ(afu, 0x0) argument
103 #define AFUD_READ_CR(afu) AFUD_READ(afu, 0x20) argument
105 #define AFUD_READ_CR_OFF(afu) AFUD_READ(afu, 0x28) argument
106 #define AFUD_READ_PPPSA(afu) AFUD_READ(afu, 0x30) argument
110 #define AFUD_READ_PPPSA_OFF(afu) AFUD_READ(afu, 0x38) argument
111 #define AFUD_READ_EB(afu) AFUD_READ(afu, 0x40) argument
113 #define AFUD_READ_EB_OFF(afu) AFUD_READ(afu, 0x48) argument
268 static void dump_afu_descriptor(struct cxl_afu *afu) in dump_afu_descriptor()
[all …]
/kernel/linux/linux-4.19/drivers/misc/cxl/
Dnative.c25 static int afu_control(struct cxl_afu *afu, u64 command, u64 clear, in afu_control()
78 static int afu_enable(struct cxl_afu *afu) in afu_enable()
87 int cxl_afu_disable(struct cxl_afu *afu) in cxl_afu_disable()
97 static int native_afu_reset(struct cxl_afu *afu) in native_afu_reset()
123 static int native_afu_check_and_enable(struct cxl_afu *afu) in native_afu_check_and_enable()
134 int cxl_psl_purge(struct cxl_afu *afu) in cxl_psl_purge()
226 static int cxl_alloc_spa(struct cxl_afu *afu, int mode) in cxl_alloc_spa()
259 static void attach_spa(struct cxl_afu *afu) in attach_spa()
275 static inline void detach_spa(struct cxl_afu *afu) in detach_spa()
280 void cxl_release_spa(struct cxl_afu *afu) in cxl_release_spa()
[all …]
Dguest.c22 static void pci_error_handlers(struct cxl_afu *afu, in pci_error_handlers()
68 static ssize_t guest_collect_vpd(struct cxl *adapter, struct cxl_afu *afu, in guest_collect_vpd()
176 static int afu_read_error_state(struct cxl_afu *afu, int *state_out) in afu_read_error_state()
197 struct cxl_afu *afu = data; in guest_slice_irq_err() local
266 struct cxl_afu *afu = NULL; in guest_reset() local
353 static int guest_register_serr_irq(struct cxl_afu *afu) in guest_register_serr_irq()
370 static void guest_release_serr_irq(struct cxl_afu *afu) in guest_release_serr_irq()
415 static int _guest_afu_cr_readXX(int sz, struct cxl_afu *afu, int cr_idx, in _guest_afu_cr_readXX()
459 static int guest_afu_cr_read32(struct cxl_afu *afu, int cr_idx, u64 offset, in guest_afu_cr_read32()
471 static int guest_afu_cr_read16(struct cxl_afu *afu, int cr_idx, u64 offset, in guest_afu_cr_read16()
[all …]
Dfile.c32 #define CXL_AFU_MINOR_D(afu) (CXL_CARD_MINOR(afu->adapter) + 1 + (3 * afu->slice)) argument
33 #define CXL_AFU_MINOR_M(afu) (CXL_AFU_MINOR_D(afu) + 1) argument
34 #define CXL_AFU_MINOR_S(afu) (CXL_AFU_MINOR_D(afu) + 2) argument
35 #define CXL_AFU_MKDEV_D(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_D(afu)) argument
36 #define CXL_AFU_MKDEV_M(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_M(afu)) argument
37 #define CXL_AFU_MKDEV_S(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_S(afu)) argument
50 struct cxl_afu *afu; in __afu_open() local
568 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev()
597 int cxl_chardev_d_afu_add(struct cxl_afu *afu) in cxl_chardev_d_afu_add()
604 int cxl_chardev_m_afu_add(struct cxl_afu *afu) in cxl_chardev_m_afu_add()
[all …]
Dsysfs.c208 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master() local
217 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show() local
226 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show() local
244 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show() local
255 struct cxl_afu *afu = to_cxl_afu(device); in reset_store_afu() local
278 struct cxl_afu *afu = to_cxl_afu(device); in irqs_min_show() local
287 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_show() local
296 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_store() local
323 struct cxl_afu *afu = to_cxl_afu(device); in modes_supported_show() local
337 struct cxl_afu *afu = to_cxl_afu(device); in prefault_mode_show() local
[all …]
Dvphb.c46 struct cxl_afu *afu; in cxl_pci_enable_device_hook() local
109 static void cxl_afu_configured_put(struct cxl_afu *afu) in cxl_afu_configured_put()
114 static bool cxl_afu_configured_get(struct cxl_afu *afu) in cxl_afu_configured_get()
120 struct cxl_afu *afu, int *_record) in cxl_pcie_config_info()
136 struct cxl_afu *afu; in cxl_pcie_read_config() local
176 struct cxl_afu *afu; in cxl_pcie_write_config() local
226 int cxl_pci_vphb_add(struct cxl_afu *afu) in cxl_pci_vphb_add()
292 void cxl_pci_vphb_remove(struct cxl_afu *afu) in cxl_pci_vphb_remove()
Dpci.c93 #define AFUD_READ(afu, off) in_be64(afu->native->afu_desc_mmio + off) argument
94 #define AFUD_READ_LE(afu, off) in_le64(afu->native->afu_desc_mmio + off) argument
98 #define AFUD_READ_INFO(afu) AFUD_READ(afu, 0x0) argument
107 #define AFUD_READ_CR(afu) AFUD_READ(afu, 0x20) argument
109 #define AFUD_READ_CR_OFF(afu) AFUD_READ(afu, 0x28) argument
110 #define AFUD_READ_PPPSA(afu) AFUD_READ(afu, 0x30) argument
114 #define AFUD_READ_PPPSA_OFF(afu) AFUD_READ(afu, 0x38) argument
115 #define AFUD_READ_EB(afu) AFUD_READ(afu, 0x40) argument
117 #define AFUD_READ_EB_OFF(afu) AFUD_READ(afu, 0x48) argument
272 static void dump_afu_descriptor(struct cxl_afu *afu) in dump_afu_descriptor()
[all …]
/kernel/linux/linux-4.19/drivers/misc/ocxl/
Dpci.c31 struct ocxl_afu *ocxl_afu_get(struct ocxl_afu *afu) in ocxl_afu_get()
36 void ocxl_afu_put(struct ocxl_afu *afu) in ocxl_afu_put()
43 struct ocxl_afu *afu; in alloc_afu() local
57 static void free_afu(struct ocxl_afu *afu) in free_afu()
66 struct ocxl_afu *afu = to_ocxl_afu(dev); in free_afu_dev() local
72 static int set_afu_device(struct ocxl_afu *afu, const char *location) in set_afu_device()
84 static int assign_afu_actag(struct ocxl_afu *afu, struct pci_dev *dev) in assign_afu_actag()
111 static void reclaim_afu_actag(struct ocxl_afu *afu) in reclaim_afu_actag()
121 static int assign_afu_pasid(struct ocxl_afu *afu, struct pci_dev *dev) in assign_afu_pasid()
149 static void reclaim_afu_pasid(struct ocxl_afu *afu) in reclaim_afu_pasid()
[all …]
Dsysfs.c10 struct ocxl_afu *afu = to_ocxl_afu(device); in global_mmio_size_show() local
20 struct ocxl_afu *afu = to_ocxl_afu(device); in pp_mmio_size_show() local
30 struct ocxl_afu *afu = to_ocxl_afu(device); in afu_version_show() local
41 struct ocxl_afu *afu = to_ocxl_afu(device); in contexts_show() local
58 struct ocxl_afu *afu = to_ocxl_afu(kobj_to_dev(kobj)); in global_mmio_read() local
70 struct ocxl_afu *afu = vma->vm_private_data; in global_mmio_fault() local
89 struct ocxl_afu *afu = to_ocxl_afu(kobj_to_dev(kobj)); in global_mmio_mmap() local
102 int ocxl_sysfs_add_afu(struct ocxl_afu *afu) in ocxl_sysfs_add_afu()
134 void ocxl_sysfs_remove_afu(struct ocxl_afu *afu) in ocxl_sysfs_remove_afu()
/kernel/linux/linux-4.19/drivers/scsi/cxlflash/
Dcommon.h117 struct afu *afu; member
208 struct afu *afu; member
234 struct afu { struct
236 int (*send_cmd)(struct afu *afu, struct afu_cmd *cmd); argument
240 struct cxlflash_afu_map __iomem *afu_map; /* entire MMIO map */ argument
259 static inline struct hwq *get_hwq(struct afu *afu, u32 index) in get_hwq()
266 static inline bool afu_is_irqpoll_enabled(struct afu *afu) in afu_is_irqpoll_enabled()
271 static inline bool afu_has_cap(struct afu *afu, u64 cap) in afu_has_cap()
278 static inline bool afu_is_ocxl_lisn(struct afu *afu) in afu_is_ocxl_lisn()
283 static inline bool afu_is_afu_debug(struct afu *afu) in afu_is_afu_debug()
[all …]
Dmain.c48 struct afu *afu = cmd->parent; in process_cmd_err() local
165 struct afu *afu = cmd->parent; in cmd_complete() local
309 static int send_cmd_ioarrin(struct afu *afu, struct afu_cmd *cmd) in send_cmd_ioarrin()
353 static int send_cmd_sq(struct afu *afu, struct afu_cmd *cmd) in send_cmd_sq()
398 static int wait_resp(struct afu *afu, struct afu_cmd *cmd) in wait_resp()
432 struct afu *afu) in cmd_to_target_hwq()
470 struct afu *afu = cfg->afu; in send_tmf() local
572 struct afu *afu = cfg->afu; in cxlflash_queuecommand() local
668 struct afu *afu = cfg->afu; in free_mem() local
701 struct afu *afu = cfg->afu; in stop_afu() local
[all …]
Docxl_hw.c199 struct ocxl_hw_afu *afu = ctx->hw_afu; in afu_map_irq() local
271 struct ocxl_hw_afu *afu = ctx->hw_afu; in afu_unmap_irq() local
349 struct ocxl_hw_afu *afu = ctx->hw_afu; in start_context() local
419 struct ocxl_hw_afu *afu = ctx->hw_afu; in ocxlflash_stop_context() local
489 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_get_context() local
503 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_dev_context_init() local
584 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_perst_reloads_same_image() local
609 struct ocxl_hw_afu *afu = ctx->hw_afu; in free_afu_irqs() local
634 struct ocxl_hw_afu *afu = ctx->hw_afu; in alloc_afu_irqs() local
709 static void ocxlflash_unconfig_afu(struct ocxl_hw_afu *afu) in ocxlflash_unconfig_afu()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/
Dcommon.h113 struct afu *afu; member
204 struct afu *afu; member
230 struct afu { struct
232 int (*send_cmd)(struct afu *afu, struct afu_cmd *cmd); argument
236 struct cxlflash_afu_map __iomem *afu_map; /* entire MMIO map */ argument
255 static inline struct hwq *get_hwq(struct afu *afu, u32 index) in get_hwq()
262 static inline bool afu_is_irqpoll_enabled(struct afu *afu) in afu_is_irqpoll_enabled()
267 static inline bool afu_has_cap(struct afu *afu, u64 cap) in afu_has_cap()
274 static inline bool afu_is_ocxl_lisn(struct afu *afu) in afu_is_ocxl_lisn()
279 static inline bool afu_is_afu_debug(struct afu *afu) in afu_is_afu_debug()
[all …]
Dmain.c44 struct afu *afu = cmd->parent; in process_cmd_err() local
156 struct afu *afu = cmd->parent; in cmd_complete() local
300 static int send_cmd_ioarrin(struct afu *afu, struct afu_cmd *cmd) in send_cmd_ioarrin()
344 static int send_cmd_sq(struct afu *afu, struct afu_cmd *cmd) in send_cmd_sq()
389 static int wait_resp(struct afu *afu, struct afu_cmd *cmd) in wait_resp()
423 struct afu *afu) in cmd_to_target_hwq()
461 struct afu *afu = cfg->afu; in send_tmf() local
563 struct afu *afu = cfg->afu; in cxlflash_queuecommand() local
659 struct afu *afu = cfg->afu; in free_mem() local
692 struct afu *afu = cfg->afu; in stop_afu() local
[all …]
Docxl_hw.c181 struct ocxl_hw_afu *afu = ctx->hw_afu; in afu_map_irq() local
253 struct ocxl_hw_afu *afu = ctx->hw_afu; in afu_unmap_irq() local
329 struct ocxl_hw_afu *afu = ctx->hw_afu; in start_context() local
399 struct ocxl_hw_afu *afu = ctx->hw_afu; in ocxlflash_stop_context() local
469 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_get_context() local
483 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_dev_context_init() local
564 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_perst_reloads_same_image() local
589 struct ocxl_hw_afu *afu = ctx->hw_afu; in free_afu_irqs() local
614 struct ocxl_hw_afu *afu = ctx->hw_afu; in alloc_afu_irqs() local
687 static void ocxlflash_unconfig_afu(struct ocxl_hw_afu *afu) in ocxlflash_unconfig_afu()
[all …]
/kernel/linux/linux-5.10/drivers/fpga/
Ddfl-afu-region.c19 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_init() local
24 #define for_each_region(region, afu) \ argument
27 static struct dfl_afu_mmio_region *get_region_by_index(struct dfl_afu *afu, in get_region_by_index()
53 struct dfl_afu *afu; in afu_mmio_region_add() local
97 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_destroy() local
117 struct dfl_afu *afu; in afu_mmio_region_get_by_index() local
151 struct dfl_afu *afu; in afu_mmio_region_get_by_offset() local
/kernel/linux/linux-4.19/drivers/fpga/
Ddfl-afu-region.c19 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_init() local
24 #define for_each_region(region, afu) \ argument
27 static struct dfl_afu_mmio_region *get_region_by_index(struct dfl_afu *afu, in get_region_by_index()
53 struct dfl_afu *afu; in afu_mmio_region_add() local
97 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_destroy() local
117 struct dfl_afu *afu; in afu_mmio_region_get_by_index() local
151 struct dfl_afu *afu; in afu_mmio_region_get_by_offset() local

123