cxl               441 drivers/misc/cxl/cxl.h #define to_cxl_adapter(d) container_of(d, struct cxl, dev)
cxl               486 drivers/misc/cxl/cxl.h 	struct cxl *adapter;
cxl               626 drivers/misc/cxl/cxl.h 	int (*adapter_regs_init)(struct cxl *adapter, struct pci_dev *dev);
cxl               627 drivers/misc/cxl/cxl.h 	int (*invalidate_all)(struct cxl *adapter);
cxl               638 drivers/misc/cxl/cxl.h 	void (*debugfs_add_adapter_regs)(struct cxl *adapter, struct dentry *dir);
cxl               641 drivers/misc/cxl/cxl.h 	void (*err_irq_dump_registers)(struct cxl *adapter);
cxl               642 drivers/misc/cxl/cxl.h 	void (*debugfs_stop_trace)(struct cxl *adapter);
cxl               643 drivers/misc/cxl/cxl.h 	void (*write_timebase_ctrl)(struct cxl *adapter);
cxl               644 drivers/misc/cxl/cxl.h 	u64 (*timebase_read)(struct cxl *adapter);
cxl               712 drivers/misc/cxl/cxl.h int cxl_pci_alloc_one_irq(struct cxl *adapter);
cxl               713 drivers/misc/cxl/cxl.h void cxl_pci_release_one_irq(struct cxl *adapter, int hwirq);
cxl               714 drivers/misc/cxl/cxl.h int cxl_pci_alloc_irq_ranges(struct cxl_irq_ranges *irqs, struct cxl *adapter, unsigned int num);
cxl               715 drivers/misc/cxl/cxl.h void cxl_pci_release_irq_ranges(struct cxl_irq_ranges *irqs, struct cxl *adapter);
cxl               716 drivers/misc/cxl/cxl.h int cxl_pci_setup_irq(struct cxl *adapter, unsigned int hwirq, unsigned int virq);
cxl               717 drivers/misc/cxl/cxl.h int cxl_update_image_control(struct cxl *adapter);
cxl               718 drivers/misc/cxl/cxl.h int cxl_pci_reset(struct cxl *adapter);
cxl               720 drivers/misc/cxl/cxl.h ssize_t cxl_pci_read_adapter_vpd(struct cxl *adapter, void *buf, size_t len);
cxl               763 drivers/misc/cxl/cxl.h static inline bool cxl_adapter_link_ok(struct cxl *cxl, struct cxl_afu *afu)
cxl               768 drivers/misc/cxl/cxl.h 		pdev = to_pci_dev(cxl->dev.parent);
cxl               774 drivers/misc/cxl/cxl.h static inline void __iomem *_cxl_p1_addr(struct cxl *cxl, cxl_p1_reg_t reg)
cxl               777 drivers/misc/cxl/cxl.h 	return cxl->native->p1_mmio + cxl_reg_off(reg);
cxl               780 drivers/misc/cxl/cxl.h static inline void cxl_p1_write(struct cxl *cxl, cxl_p1_reg_t reg, u64 val)
cxl               782 drivers/misc/cxl/cxl.h 	if (likely(cxl_adapter_link_ok(cxl, NULL)))
cxl               783 drivers/misc/cxl/cxl.h 		out_be64(_cxl_p1_addr(cxl, reg), val);
cxl               786 drivers/misc/cxl/cxl.h static inline u64 cxl_p1_read(struct cxl *cxl, cxl_p1_reg_t reg)
cxl               788 drivers/misc/cxl/cxl.h 	if (likely(cxl_adapter_link_ok(cxl, NULL)))
cxl               789 drivers/misc/cxl/cxl.h 		return in_be64(_cxl_p1_addr(cxl, reg));
cxl               861 drivers/misc/cxl/cxl.h void cxl_remove_adapter_nr(struct cxl *adapter);
cxl               868 drivers/misc/cxl/cxl.h int cxl_register_adapter(struct cxl *adapter);
cxl               879 drivers/misc/cxl/cxl.h int cxl_sysfs_adapter_add(struct cxl *adapter);
cxl               880 drivers/misc/cxl/cxl.h void cxl_sysfs_adapter_remove(struct cxl *adapter);
cxl               886 drivers/misc/cxl/cxl.h struct cxl *cxl_alloc_adapter(void);
cxl               887 drivers/misc/cxl/cxl.h struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice);
cxl               892 drivers/misc/cxl/cxl.h int cxl_native_register_psl_err_irq(struct cxl *adapter);
cxl               893 drivers/misc/cxl/cxl.h void cxl_native_release_psl_err_irq(struct cxl *adapter);
cxl               913 drivers/misc/cxl/cxl.h void cxl_debugfs_adapter_add(struct cxl *adapter);
cxl               914 drivers/misc/cxl/cxl.h void cxl_debugfs_adapter_remove(struct cxl *adapter);
cxl               917 drivers/misc/cxl/cxl.h void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir);
cxl               918 drivers/misc/cxl/cxl.h void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir);
cxl               932 drivers/misc/cxl/cxl.h static inline void cxl_debugfs_adapter_add(struct cxl *adapter)
cxl               936 drivers/misc/cxl/cxl.h static inline void cxl_debugfs_adapter_remove(struct cxl *adapter)
cxl               948 drivers/misc/cxl/cxl.h static inline void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter,
cxl               953 drivers/misc/cxl/cxl.h static inline void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter,
cxl               972 drivers/misc/cxl/cxl.h struct cxl *get_cxl_adapter(int num);
cxl               984 drivers/misc/cxl/cxl.h unsigned int cxl_map_irq(struct cxl *adapter, irq_hw_number_t hwirq,
cxl              1008 drivers/misc/cxl/cxl.h int cxl_invalidate_all_psl9(struct cxl *adapter);
cxl              1009 drivers/misc/cxl/cxl.h int cxl_invalidate_all_psl8(struct cxl *adapter);
cxl              1013 drivers/misc/cxl/cxl.h int cxl_register_one_irq(struct cxl *adapter, irq_handler_t handler,
cxl              1019 drivers/misc/cxl/cxl.h int cxl_data_cache_flush(struct cxl *adapter);
cxl              1030 drivers/misc/cxl/cxl.h void cxl_native_err_irq_dump_regs_psl8(struct cxl *adapter);
cxl              1031 drivers/misc/cxl/cxl.h void cxl_native_err_irq_dump_regs_psl9(struct cxl *adapter);
cxl              1048 drivers/misc/cxl/cxl.h struct cxl *cxl_guest_init_adapter(struct device_node *np, struct platform_device *dev);
cxl              1049 drivers/misc/cxl/cxl.h void cxl_guest_remove_adapter(struct cxl *adapter);
cxl              1050 drivers/misc/cxl/cxl.h int cxl_of_read_adapter_handle(struct cxl *adapter, struct device_node *np);
cxl              1051 drivers/misc/cxl/cxl.h int cxl_of_read_adapter_properties(struct cxl *adapter, struct device_node *np);
cxl              1052 drivers/misc/cxl/cxl.h ssize_t cxl_guest_read_adapter_vpd(struct cxl *adapter, void *buf, size_t len);
cxl              1054 drivers/misc/cxl/cxl.h int cxl_guest_init_afu(struct cxl *adapter, int slice, struct device_node *afu_np);
cxl              1058 drivers/misc/cxl/cxl.h int cxl_guest_add_chardev(struct cxl *adapter);
cxl              1059 drivers/misc/cxl/cxl.h void cxl_guest_remove_chardev(struct cxl *adapter);
cxl              1060 drivers/misc/cxl/cxl.h void cxl_guest_reload_module(struct cxl *adapter);
cxl              1065 drivers/misc/cxl/cxl.h 	int (*adapter_reset)(struct cxl *adapter);
cxl              1066 drivers/misc/cxl/cxl.h 	int (*alloc_one_irq)(struct cxl *adapter);
cxl              1067 drivers/misc/cxl/cxl.h 	void (*release_one_irq)(struct cxl *adapter, int hwirq);
cxl              1069 drivers/misc/cxl/cxl.h 				struct cxl *adapter, unsigned int num);
cxl              1071 drivers/misc/cxl/cxl.h 				struct cxl *adapter);
cxl              1072 drivers/misc/cxl/cxl.h 	int (*setup_irq)(struct cxl *adapter, unsigned int hwirq,
cxl              1084 drivers/misc/cxl/cxl.h 	bool (*link_ok)(struct cxl *cxl, struct cxl_afu *afu);
cxl              1099 drivers/misc/cxl/cxl.h 	ssize_t (*read_adapter_vpd)(struct cxl *adapter, void *buf, size_t count);
cxl              1115 drivers/misc/cxl/cxl.h int cxl_adapter_context_get(struct cxl *adapter);
cxl              1118 drivers/misc/cxl/cxl.h void cxl_adapter_context_put(struct cxl *adapter);
cxl              1121 drivers/misc/cxl/cxl.h int cxl_adapter_context_lock(struct cxl *adapter);
cxl              1124 drivers/misc/cxl/cxl.h void cxl_adapter_context_unlock(struct cxl *adapter);
cxl                36 drivers/misc/cxl/debugfs.c void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir)
cxl                49 drivers/misc/cxl/debugfs.c void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir)
cxl                57 drivers/misc/cxl/debugfs.c void cxl_debugfs_adapter_add(struct cxl *adapter)
cxl                75 drivers/misc/cxl/debugfs.c void cxl_debugfs_adapter_remove(struct cxl *adapter)
cxl                45 drivers/misc/cxl/file.c 	struct cxl *adapter;
cxl               640 drivers/misc/cxl/file.c int cxl_register_adapter(struct cxl *adapter)
cxl               173 drivers/misc/cxl/flash.c static int update_devicetree(struct cxl *adapter, s32 scope)
cxl               227 drivers/misc/cxl/flash.c static int handle_image(struct cxl *adapter, int operation,
cxl               322 drivers/misc/cxl/flash.c static int transfer_image(struct cxl *adapter, int operation,
cxl               371 drivers/misc/cxl/flash.c static long ioctl_transfer_image(struct cxl *adapter, int operation,
cxl               394 drivers/misc/cxl/flash.c 	struct cxl *adapter;
cxl               460 drivers/misc/cxl/flash.c 	struct cxl *adapter = file->private_data;
cxl               484 drivers/misc/cxl/flash.c 	struct cxl *adapter = file->private_data;
cxl               521 drivers/misc/cxl/flash.c void cxl_guest_remove_chardev(struct cxl *adapter)
cxl               526 drivers/misc/cxl/flash.c int cxl_guest_add_chardev(struct cxl *adapter)
cxl                64 drivers/misc/cxl/guest.c static ssize_t guest_collect_vpd(struct cxl *adapter, struct cxl_afu *afu,
cxl               217 drivers/misc/cxl/guest.c static int irq_alloc_range(struct cxl *adapter, int len, int *irq)
cxl               238 drivers/misc/cxl/guest.c static int irq_free_range(struct cxl *adapter, int irq, int len)
cxl               260 drivers/misc/cxl/guest.c static int guest_reset(struct cxl *adapter)
cxl               287 drivers/misc/cxl/guest.c static int guest_alloc_one_irq(struct cxl *adapter)
cxl               298 drivers/misc/cxl/guest.c static void guest_release_one_irq(struct cxl *adapter, int irq)
cxl               306 drivers/misc/cxl/guest.c 				struct cxl *adapter, unsigned int num)
cxl               339 drivers/misc/cxl/guest.c 				struct cxl *adapter)
cxl               518 drivers/misc/cxl/guest.c 	struct cxl *adapter = ctx->afu->adapter;
cxl               890 drivers/misc/cxl/guest.c static bool guest_link_ok(struct cxl *cxl, struct cxl_afu *afu)
cxl               917 drivers/misc/cxl/guest.c int cxl_guest_init_afu(struct cxl *adapter, int slice, struct device_node *afu_np)
cxl              1041 drivers/misc/cxl/guest.c static void free_adapter(struct cxl *adapter)
cxl              1061 drivers/misc/cxl/guest.c static int properties_look_ok(struct cxl *adapter)
cxl              1075 drivers/misc/cxl/guest.c ssize_t cxl_guest_read_adapter_vpd(struct cxl *adapter, void *buf, size_t len)
cxl              1080 drivers/misc/cxl/guest.c void cxl_guest_remove_adapter(struct cxl *adapter)
cxl              1095 drivers/misc/cxl/guest.c struct cxl *cxl_guest_init_adapter(struct device_node *np, struct platform_device *pdev)
cxl              1097 drivers/misc/cxl/guest.c 	struct cxl *adapter;
cxl              1158 drivers/misc/cxl/guest.c void cxl_guest_reload_module(struct cxl *adapter)
cxl               223 drivers/misc/cxl/irq.c unsigned int cxl_map_irq(struct cxl *adapter, irq_hw_number_t hwirq,
cxl               255 drivers/misc/cxl/irq.c int cxl_register_one_irq(struct cxl *adapter,
cxl                77 drivers/misc/cxl/main.c 	struct cxl *adapter;
cxl               183 drivers/misc/cxl/main.c struct cxl *get_cxl_adapter(int num)
cxl               185 drivers/misc/cxl/main.c 	struct cxl *adapter;
cxl               195 drivers/misc/cxl/main.c static int cxl_alloc_adapter_nr(struct cxl *adapter)
cxl               212 drivers/misc/cxl/main.c void cxl_remove_adapter_nr(struct cxl *adapter)
cxl               217 drivers/misc/cxl/main.c struct cxl *cxl_alloc_adapter(void)
cxl               219 drivers/misc/cxl/main.c 	struct cxl *adapter;
cxl               221 drivers/misc/cxl/main.c 	if (!(adapter = kzalloc(sizeof(struct cxl), GFP_KERNEL)))
cxl               243 drivers/misc/cxl/main.c struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice)
cxl               277 drivers/misc/cxl/main.c int cxl_adapter_context_get(struct cxl *adapter)
cxl               285 drivers/misc/cxl/main.c void cxl_adapter_context_put(struct cxl *adapter)
cxl               290 drivers/misc/cxl/main.c int cxl_adapter_context_lock(struct cxl *adapter)
cxl               298 drivers/misc/cxl/main.c void cxl_adapter_context_unlock(struct cxl *adapter)
cxl               289 drivers/misc/cxl/native.c int cxl_invalidate_all_psl9(struct cxl *adapter)
cxl               315 drivers/misc/cxl/native.c int cxl_invalidate_all_psl8(struct cxl *adapter)
cxl               347 drivers/misc/cxl/native.c int cxl_data_cache_flush(struct cxl *adapter)
cxl               410 drivers/misc/cxl/native.c 	struct cxl *adapter = ctx->afu->adapter;
cxl              1283 drivers/misc/cxl/native.c void cxl_native_err_irq_dump_regs_psl9(struct cxl *adapter)
cxl              1291 drivers/misc/cxl/native.c void cxl_native_err_irq_dump_regs_psl8(struct cxl *adapter)
cxl              1304 drivers/misc/cxl/native.c 	struct cxl *adapter = data;
cxl              1323 drivers/misc/cxl/native.c int cxl_native_register_psl_err_irq(struct cxl *adapter)
cxl              1346 drivers/misc/cxl/native.c void cxl_native_release_psl_err_irq(struct cxl *adapter)
cxl               111 drivers/misc/cxl/of.c static int read_vpd(struct cxl *adapter, struct cxl_afu *afu)
cxl               283 drivers/misc/cxl/of.c static int read_adapter_irq_config(struct cxl *adapter, struct device_node *np)
cxl               336 drivers/misc/cxl/of.c int cxl_of_read_adapter_handle(struct cxl *adapter, struct device_node *np)
cxl               345 drivers/misc/cxl/of.c int cxl_of_read_adapter_properties(struct cxl *adapter, struct device_node *np)
cxl               437 drivers/misc/cxl/of.c 	struct cxl *adapter;
cxl               457 drivers/misc/cxl/of.c 	struct cxl *adapter = NULL;
cxl               482 drivers/misc/cxl/pci.c static int init_implementation_adapter_regs_psl9(struct cxl *adapter,
cxl               550 drivers/misc/cxl/pci.c static int init_implementation_adapter_regs_psl8(struct cxl *adapter, struct pci_dev *dev)
cxl               589 drivers/misc/cxl/pci.c static void write_timebase_ctrl_psl8(struct cxl *adapter)
cxl               595 drivers/misc/cxl/pci.c static u64 timebase_read_psl9(struct cxl *adapter)
cxl               600 drivers/misc/cxl/pci.c static u64 timebase_read_psl8(struct cxl *adapter)
cxl               605 drivers/misc/cxl/pci.c static void cxl_setup_psl_timebase(struct cxl *adapter, struct pci_dev *dev)
cxl               655 drivers/misc/cxl/pci.c int cxl_pci_setup_irq(struct cxl *adapter, unsigned int hwirq,
cxl               663 drivers/misc/cxl/pci.c int cxl_update_image_control(struct cxl *adapter)
cxl               698 drivers/misc/cxl/pci.c int cxl_pci_alloc_one_irq(struct cxl *adapter)
cxl               705 drivers/misc/cxl/pci.c void cxl_pci_release_one_irq(struct cxl *adapter, int hwirq)
cxl               713 drivers/misc/cxl/pci.c 			struct cxl *adapter, unsigned int num)
cxl               721 drivers/misc/cxl/pci.c 				struct cxl *adapter)
cxl               782 drivers/misc/cxl/pci.c static int pci_map_slice_regs(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev)
cxl              1072 drivers/misc/cxl/pci.c static int pci_configure_afu(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev)
cxl              1136 drivers/misc/cxl/pci.c static int pci_init_afu(struct cxl *adapter, int slice, struct pci_dev *dev)
cxl              1215 drivers/misc/cxl/pci.c int cxl_pci_reset(struct cxl *adapter)
cxl              1244 drivers/misc/cxl/pci.c static int cxl_map_adapter_regs(struct cxl *adapter, struct pci_dev *dev)
cxl              1273 drivers/misc/cxl/pci.c static void cxl_unmap_adapter_regs(struct cxl *adapter)
cxl              1287 drivers/misc/cxl/pci.c static int cxl_read_vsec(struct cxl *adapter, struct pci_dev *dev)
cxl              1343 drivers/misc/cxl/pci.c static void cxl_fixup_malformed_tlp(struct cxl *adapter, struct pci_dev *dev)
cxl              1361 drivers/misc/cxl/pci.c static bool cxl_compatible_caia_version(struct cxl *adapter)
cxl              1372 drivers/misc/cxl/pci.c static int cxl_vsec_looks_ok(struct cxl *adapter, struct pci_dev *dev)
cxl              1410 drivers/misc/cxl/pci.c ssize_t cxl_pci_read_adapter_vpd(struct cxl *adapter, void *buf, size_t len)
cxl              1417 drivers/misc/cxl/pci.c 	struct cxl *adapter = to_cxl_adapter(dev);
cxl              1429 drivers/misc/cxl/pci.c static int sanitise_adapter_regs(struct cxl *adapter)
cxl              1449 drivers/misc/cxl/pci.c static int cxl_configure_adapter(struct cxl *adapter, struct pci_dev *dev)
cxl              1523 drivers/misc/cxl/pci.c static void cxl_deconfigure_adapter(struct cxl *adapter)
cxl              1536 drivers/misc/cxl/pci.c static void cxl_stop_trace_psl9(struct cxl *adapter)
cxl              1557 drivers/misc/cxl/pci.c static void cxl_stop_trace_psl8(struct cxl *adapter)
cxl              1621 drivers/misc/cxl/pci.c static void set_sl_ops(struct cxl *adapter, struct pci_dev *dev)
cxl              1633 drivers/misc/cxl/pci.c static struct cxl *cxl_pci_init_adapter(struct pci_dev *dev)
cxl              1635 drivers/misc/cxl/pci.c 	struct cxl *adapter;
cxl              1694 drivers/misc/cxl/pci.c static void cxl_pci_remove_adapter(struct cxl *adapter)
cxl              1735 drivers/misc/cxl/pci.c 	struct cxl *adapter;
cxl              1779 drivers/misc/cxl/pci.c 	struct cxl *adapter = pci_get_drvdata(dev);
cxl              1829 drivers/misc/cxl/pci.c 	struct cxl *adapter = pci_get_drvdata(pdev);
cxl              1971 drivers/misc/cxl/pci.c 	struct cxl *adapter = pci_get_drvdata(pdev);
cxl              2060 drivers/misc/cxl/pci.c 	struct cxl *adapter = pci_get_drvdata(pdev);
cxl                21 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl                31 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl                40 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl                49 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl                60 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl                81 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl                90 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl               126 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl               140 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl               164 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl               173 drivers/misc/cxl/sysfs.c 	struct cxl *adapter = to_cxl_adapter(device);
cxl               467 drivers/misc/cxl/sysfs.c int cxl_sysfs_adapter_add(struct cxl *adapter)
cxl               491 drivers/misc/cxl/sysfs.c void cxl_sysfs_adapter_remove(struct cxl *adapter)
cxl                 7 drivers/misc/cxl/trace.h #define TRACE_SYSTEM cxl
cxl                97 include/misc/cxl.h int cxl_allocate_afu_irqs(struct cxl_context *cxl, int num);
cxl                99 include/misc/cxl.h void cxl_free_afu_irqs(struct cxl_context *cxl);
cxl               106 include/misc/cxl.h int cxl_map_afu_irq(struct cxl_context *cxl, int num,
cxl               109 include/misc/cxl.h void cxl_unmap_afu_irq(struct cxl_context *cxl, int num, void *cookie);