Home
last modified time | relevance | path

Searched refs:cxl_afu (Results 1 - 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/misc/cxl/
H A Dcxl.h442 #define to_cxl_afu(d) container_of(d, struct cxl_afu, dev)
465 struct cxl_afu *parent;
475 struct cxl_afu { struct
539 struct cxl_afu *afu;
628 int (*afu_regs_init)(struct cxl_afu *afu);
629 int (*sanitise_afu_regs)(struct cxl_afu *afu);
630 int (*register_serr_irq)(struct cxl_afu *afu);
631 void (*release_serr_irq)(struct cxl_afu *afu);
633 irqreturn_t (*fail_irq)(struct cxl_afu *afu, struct cxl_irq_info *irq_info);
634 int (*activate_dedicated_process)(struct cxl_afu *af
[all...]
H A Dvphb.c31 struct cxl_afu *afu; in cxl_pci_enable_device_hook()
35 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook()
86 static inline struct cxl_afu *pci_bus_to_afu(struct pci_bus *bus) in pci_bus_to_afu()
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()
160 struct cxl_afu *afu; in cxl_pcie_write_config()
209 int cxl_pci_vphb_add(struct cxl_afu *afu) in cxl_pci_vphb_add()
275 void cxl_pci_vphb_remove(struct cxl_afu *af
[all...]
H A 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()
262 struct cxl_afu *afu = NULL; in guest_reset()
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 *af
[all...]
H A Dsysfs.c204 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master()
213 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show()
222 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show()
240 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show()
251 struct cxl_afu *afu = to_cxl_afu(device); in reset_store_afu()
274 struct cxl_afu *afu = to_cxl_afu(device); in irqs_min_show()
283 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_show()
292 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_store()
319 struct cxl_afu *afu = to_cxl_afu(device); in modes_supported_show()
333 struct cxl_afu *af in prefault_mode_show()
[all...]
H A 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 *af
[all...]
H A Dbase.c54 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) in cxl_afu_get()
60 void cxl_afu_put(struct cxl_afu *afu) in cxl_afu_put()
H A Ddebugfs.c80 void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl9()
85 void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl8()
96 void cxl_debugfs_afu_add(struct cxl_afu *afu) in cxl_debugfs_afu_add()
118 void cxl_debugfs_afu_remove(struct cxl_afu *afu) in cxl_debugfs_afu_remove()
H A Dmain.c36 int cxl_afu_slbia(struct cxl_afu *afu) in cxl_afu_slbia()
78 struct cxl_afu *afu; in cxl_slbia_core()
243 struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice) in cxl_alloc_afu()
245 struct cxl_afu *afu; in cxl_alloc_afu()
247 if (!(afu = kzalloc(sizeof(struct cxl_afu), GFP_KERNEL))) in cxl_alloc_afu()
264 int cxl_afu_select_best_mode(struct cxl_afu *afu) in cxl_afu_select_best_mode()
H A Dpci.c268 static void dump_afu_descriptor(struct cxl_afu *afu) in dump_afu_descriptor()
638 static int init_implementation_afu_regs_psl9(struct cxl_afu *afu) in init_implementation_afu_regs_psl9()
643 static int init_implementation_afu_regs_psl8(struct cxl_afu *afu) in init_implementation_afu_regs_psl8()
783 static int pci_map_slice_regs(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) in pci_map_slice_regs()
813 static void pci_unmap_slice_regs(struct cxl_afu *afu) in pci_unmap_slice_regs()
831 struct cxl_afu *afu = to_cxl_afu(dev); in cxl_pci_release_afu()
843 static int cxl_read_afu_descriptor(struct cxl_afu *afu) in cxl_read_afu_descriptor()
888 static int cxl_afu_descriptor_looks_ok(struct cxl_afu *afu) in cxl_afu_descriptor_looks_ok()
928 static int sanitise_afu_regs_psl9(struct cxl_afu *afu) in sanitise_afu_regs_psl9()
974 static int sanitise_afu_regs_psl8(struct cxl_afu *af
[all...]
H A Dfile.c46 struct cxl_afu *afu; in __afu_open()
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()
607 int cxl_chardev_s_afu_add(struct cxl_afu *afu) in cxl_chardev_s_afu_add()
614 void cxl_chardev_afu_remove(struct cxl_afu *afu) in cxl_chardev_afu_remove()
633 int cxl_register_afu(struct cxl_afu *afu) in cxl_register_afu()
H A Dtrace.h404 TP_PROTO(struct cxl_afu *afu, u64 cmd),
428 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
455 TP_PROTO(struct cxl_afu *afu, u64 cmd),
460 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
465 TP_PROTO(struct cxl_afu *afu, u64 cmd),
476 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
/kernel/linux/linux-6.6/drivers/misc/cxl/
H A Dcxl.h444 #define to_cxl_afu(d) container_of(d, struct cxl_afu, dev)
467 struct cxl_afu *parent;
477 struct cxl_afu { struct
541 struct cxl_afu *afu;
630 int (*afu_regs_init)(struct cxl_afu *afu);
631 int (*sanitise_afu_regs)(struct cxl_afu *afu);
632 int (*register_serr_irq)(struct cxl_afu *afu);
633 void (*release_serr_irq)(struct cxl_afu *afu);
635 irqreturn_t (*fail_irq)(struct cxl_afu *afu, struct cxl_irq_info *irq_info);
636 int (*activate_dedicated_process)(struct cxl_afu *af
[all...]
H A Dvphb.c31 struct cxl_afu *afu; in cxl_pci_enable_device_hook()
35 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook()
80 static inline struct cxl_afu *pci_bus_to_afu(struct pci_bus *bus) in pci_bus_to_afu()
87 static void cxl_afu_configured_put(struct cxl_afu *afu) in cxl_afu_configured_put()
92 static bool cxl_afu_configured_get(struct cxl_afu *afu) in cxl_afu_configured_get()
98 struct cxl_afu *afu, int *_record) in cxl_pcie_config_info()
114 struct cxl_afu *afu; in cxl_pcie_read_config()
154 struct cxl_afu *afu; in cxl_pcie_write_config()
202 int cxl_pci_vphb_add(struct cxl_afu *afu) in cxl_pci_vphb_add()
268 void cxl_pci_vphb_remove(struct cxl_afu *af
[all...]
H A Dguest.c20 static void pci_error_handlers(struct cxl_afu *afu, in pci_error_handlers()
70 static ssize_t guest_collect_vpd(struct cxl *adapter, struct cxl_afu *afu, in guest_collect_vpd()
178 static int afu_read_error_state(struct cxl_afu *afu, int *state_out) in afu_read_error_state()
199 struct cxl_afu *afu = data; in guest_slice_irq_err()
268 struct cxl_afu *afu = NULL; in guest_reset()
355 static int guest_register_serr_irq(struct cxl_afu *afu) in guest_register_serr_irq()
372 static void guest_release_serr_irq(struct cxl_afu *afu) in guest_release_serr_irq()
417 static int _guest_afu_cr_readXX(int sz, struct cxl_afu *afu, int cr_idx, in _guest_afu_cr_readXX()
461 static int guest_afu_cr_read32(struct cxl_afu *afu, int cr_idx, u64 offset, in guest_afu_cr_read32()
473 static int guest_afu_cr_read16(struct cxl_afu *af
[all...]
H A Dsysfs.c204 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master()
213 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show()
222 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show()
240 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show()
251 struct cxl_afu *afu = to_cxl_afu(device); in reset_store_afu()
274 struct cxl_afu *afu = to_cxl_afu(device); in irqs_min_show()
283 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_show()
292 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_store()
319 struct cxl_afu *afu = to_cxl_afu(device); in modes_supported_show()
333 struct cxl_afu *af in prefault_mode_show()
[all...]
H A Dnative.c22 static int afu_control(struct cxl_afu *afu, u64 command, u64 clear, in afu_control()
75 static int afu_enable(struct cxl_afu *afu) in afu_enable()
84 int cxl_afu_disable(struct cxl_afu *afu) in cxl_afu_disable()
94 static int native_afu_reset(struct cxl_afu *afu) in native_afu_reset()
120 static int native_afu_check_and_enable(struct cxl_afu *afu) in native_afu_check_and_enable()
131 int cxl_psl_purge(struct cxl_afu *afu) in cxl_psl_purge()
223 static int cxl_alloc_spa(struct cxl_afu *afu, int mode) in cxl_alloc_spa()
256 static void attach_spa(struct cxl_afu *afu) in attach_spa()
272 void cxl_release_spa(struct cxl_afu *afu) in cxl_release_spa()
383 static int cxl_write_sstp(struct cxl_afu *af
[all...]
H A Dbase.c55 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) in cxl_afu_get()
61 void cxl_afu_put(struct cxl_afu *afu) in cxl_afu_put()
H A Ddebugfs.c80 void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl9()
85 void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl8()
96 void cxl_debugfs_afu_add(struct cxl_afu *afu) in cxl_debugfs_afu_add()
118 void cxl_debugfs_afu_remove(struct cxl_afu *afu) in cxl_debugfs_afu_remove()
H A Dmain.c37 int cxl_afu_slbia(struct cxl_afu *afu) in cxl_afu_slbia()
79 struct cxl_afu *afu; in cxl_slbia_core()
244 struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice) in cxl_alloc_afu()
246 struct cxl_afu *afu; in cxl_alloc_afu()
248 if (!(afu = kzalloc(sizeof(struct cxl_afu), GFP_KERNEL))) in cxl_alloc_afu()
265 int cxl_afu_select_best_mode(struct cxl_afu *afu) in cxl_afu_select_best_mode()
H A Dpci.c259 static void dump_afu_descriptor(struct cxl_afu *afu) in dump_afu_descriptor()
629 static int init_implementation_afu_regs_psl9(struct cxl_afu *afu) in init_implementation_afu_regs_psl9()
634 static int init_implementation_afu_regs_psl8(struct cxl_afu *afu) in init_implementation_afu_regs_psl8()
774 static int pci_map_slice_regs(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) in pci_map_slice_regs()
804 static void pci_unmap_slice_regs(struct cxl_afu *afu) in pci_unmap_slice_regs()
822 struct cxl_afu *afu = to_cxl_afu(dev); in cxl_pci_release_afu()
834 static int cxl_read_afu_descriptor(struct cxl_afu *afu) in cxl_read_afu_descriptor()
879 static int cxl_afu_descriptor_looks_ok(struct cxl_afu *afu) in cxl_afu_descriptor_looks_ok()
919 static int sanitise_afu_regs_psl9(struct cxl_afu *afu) in sanitise_afu_regs_psl9()
965 static int sanitise_afu_regs_psl8(struct cxl_afu *af
[all...]
H A Dfile.c46 struct cxl_afu *afu; in __afu_open()
564 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev()
594 int cxl_chardev_d_afu_add(struct cxl_afu *afu) in cxl_chardev_d_afu_add()
601 int cxl_chardev_m_afu_add(struct cxl_afu *afu) in cxl_chardev_m_afu_add()
608 int cxl_chardev_s_afu_add(struct cxl_afu *afu) in cxl_chardev_s_afu_add()
615 void cxl_chardev_afu_remove(struct cxl_afu *afu) in cxl_chardev_afu_remove()
634 int cxl_register_afu(struct cxl_afu *afu) in cxl_register_afu()
/kernel/linux/linux-5.10/include/misc/
H A Dcxl-base.h35 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu);
36 void cxl_afu_put(struct cxl_afu *afu);
42 static inline struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) { return NULL; } in cxl_afu_get()
43 static inline void cxl_afu_put(struct cxl_afu *afu) {} in cxl_afu_put()
H A Dcxl.h24 struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev);
209 void cxl_perst_reloads_same_image(struct cxl_afu *afu,
/kernel/linux/linux-6.6/include/misc/
H A Dcxl-base.h35 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu);
36 void cxl_afu_put(struct cxl_afu *afu);
42 static inline struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) { return NULL; } in cxl_afu_get()
43 static inline void cxl_afu_put(struct cxl_afu *afu) {} in cxl_afu_put()
H A Dcxl.h24 struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev);
209 void cxl_perst_reloads_same_image(struct cxl_afu *afu,

Completed in 22 milliseconds

12