Home
last modified time | relevance | path

Searched refs:cxl_afu (Results 1 – 17 of 17) sorted by relevance

/Linux-v4.19/drivers/misc/cxl/
Dcxl.h446 #define to_cxl_afu(d) container_of(d, struct cxl_afu, dev)
469 struct cxl_afu *parent;
479 struct cxl_afu { struct
543 struct cxl_afu *afu; argument
632 int (*afu_regs_init)(struct cxl_afu *afu);
633 int (*sanitise_afu_regs)(struct cxl_afu *afu);
634 int (*register_serr_irq)(struct cxl_afu *afu);
635 void (*release_serr_irq)(struct cxl_afu *afu);
637 irqreturn_t (*fail_irq)(struct cxl_afu *afu, struct cxl_irq_info *irq_info);
638 int (*activate_dedicated_process)(struct cxl_afu *afu);
[all …]
Dvphb.c46 struct cxl_afu *afu; in cxl_pci_enable_device_hook()
50 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook()
102 static inline struct cxl_afu *pci_bus_to_afu(struct pci_bus *bus) in pci_bus_to_afu()
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()
176 struct cxl_afu *afu; in cxl_pcie_write_config()
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()
[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()
266 struct cxl_afu *afu = NULL; in guest_reset()
351 static int guest_register_serr_irq(struct cxl_afu *afu) in guest_register_serr_irq()
368 static void guest_release_serr_irq(struct cxl_afu *afu) in guest_release_serr_irq()
413 static int _guest_afu_cr_readXX(int sz, struct cxl_afu *afu, int cr_idx, in _guest_afu_cr_readXX()
457 static int guest_afu_cr_read32(struct cxl_afu *afu, int cr_idx, u64 offset, in guest_afu_cr_read32()
469 static int guest_afu_cr_read16(struct cxl_afu *afu, int cr_idx, u64 offset, in guest_afu_cr_read16()
[all …]
Dsysfs.c208 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master()
217 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show()
226 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show()
244 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show()
255 struct cxl_afu *afu = to_cxl_afu(device); in reset_store_afu()
278 struct cxl_afu *afu = to_cxl_afu(device); in irqs_min_show()
287 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_show()
296 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_store()
323 struct cxl_afu *afu = to_cxl_afu(device); in modes_supported_show()
337 struct cxl_afu *afu = to_cxl_afu(device); in prefault_mode_show()
[all …]
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 …]
Dbase.c58 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) in cxl_afu_get()
64 void cxl_afu_put(struct cxl_afu *afu) in cxl_afu_put()
Dmain.c39 int cxl_afu_slbia(struct cxl_afu *afu) in cxl_afu_slbia()
81 struct cxl_afu *afu; in cxl_slbia_core()
246 struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice) in cxl_alloc_afu()
248 struct cxl_afu *afu; in cxl_alloc_afu()
250 if (!(afu = kzalloc(sizeof(struct cxl_afu), GFP_KERNEL))) in cxl_alloc_afu()
267 int cxl_afu_select_best_mode(struct cxl_afu *afu) in cxl_afu_select_best_mode()
Ddebugfs.c87 void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl9()
92 void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl8()
103 int cxl_debugfs_afu_add(struct cxl_afu *afu) in cxl_debugfs_afu_add()
129 void cxl_debugfs_afu_remove(struct cxl_afu *afu) in cxl_debugfs_afu_remove()
Dpci.c272 static void dump_afu_descriptor(struct cxl_afu *afu) in dump_afu_descriptor()
641 static int init_implementation_afu_regs_psl9(struct cxl_afu *afu) in init_implementation_afu_regs_psl9()
646 static int init_implementation_afu_regs_psl8(struct cxl_afu *afu) in init_implementation_afu_regs_psl8()
786 static int pci_map_slice_regs(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) in pci_map_slice_regs()
816 static void pci_unmap_slice_regs(struct cxl_afu *afu) in pci_unmap_slice_regs()
834 struct cxl_afu *afu = to_cxl_afu(dev); in cxl_pci_release_afu()
846 static int cxl_read_afu_descriptor(struct cxl_afu *afu) in cxl_read_afu_descriptor()
891 static int cxl_afu_descriptor_looks_ok(struct cxl_afu *afu) in cxl_afu_descriptor_looks_ok()
931 static int sanitise_afu_regs_psl9(struct cxl_afu *afu) in sanitise_afu_regs_psl9()
977 static int sanitise_afu_regs_psl8(struct cxl_afu *afu) in sanitise_afu_regs_psl8()
[all …]
Dfile.c50 struct cxl_afu *afu; in __afu_open()
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()
611 int cxl_chardev_s_afu_add(struct cxl_afu *afu) in cxl_chardev_s_afu_add()
618 void cxl_chardev_afu_remove(struct cxl_afu *afu) in cxl_chardev_afu_remove()
637 int cxl_register_afu(struct cxl_afu *afu) in cxl_register_afu()
Dapi.c111 struct cxl_afu *afu; in cxl_dev_context_init()
514 struct cxl_afu *afu = ctx->afu; in cxl_afu_reset()
525 void cxl_perst_reloads_same_image(struct cxl_afu *afu, in cxl_perst_reloads_same_image()
534 struct cxl_afu *afu = cxl_pci_to_afu(dev); in cxl_read_adapter_vpd()
Dof.c74 struct cxl_afu *afu) in read_phys_addr()
115 static int read_vpd(struct cxl *adapter, struct cxl_afu *afu) in read_vpd()
135 int cxl_of_read_afu_handle(struct cxl_afu *afu, struct device_node *afu_np) in cxl_of_read_afu_handle()
144 int cxl_of_read_afu_properties(struct cxl_afu *afu, struct device_node *np) in cxl_of_read_afu_properties()
Dtrace.h408 TP_PROTO(struct cxl_afu *afu, u64 cmd),
432 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
459 TP_PROTO(struct cxl_afu *afu, u64 cmd),
464 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
469 TP_PROTO(struct cxl_afu *afu, u64 cmd),
480 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
Dcontext.c39 int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master) in cxl_context_init()
301 void cxl_context_detach_all(struct cxl_afu *afu) in cxl_context_detach_all()
Dirq.c426 void cxl_afu_decode_psl_serr(struct cxl_afu *afu, u64 serr) in cxl_afu_decode_psl_serr()
/Linux-v4.19/include/misc/
Dcxl-base.h39 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu);
40 void cxl_afu_put(struct cxl_afu *afu);
46 static inline struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) { return NULL; } in cxl_afu_get()
47 static inline void cxl_afu_put(struct cxl_afu *afu) {} in cxl_afu_put()
Dcxl.h28 struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev);
213 void cxl_perst_reloads_same_image(struct cxl_afu *afu,