Lines Matching defs:adapter
414 #define CXL_CARD_MINOR(adapter) (adapter->adapter_num * CXL_DEV_MINORS)
488 struct cxl *adapter;
628 int (*adapter_regs_init)(struct cxl *adapter, struct pci_dev *dev);
629 int (*invalidate_all)(struct cxl *adapter);
640 void (*debugfs_add_adapter_regs)(struct cxl *adapter, struct dentry *dir);
643 void (*err_irq_dump_registers)(struct cxl *adapter);
644 void (*debugfs_stop_trace)(struct cxl *adapter);
645 void (*write_timebase_ctrl)(struct cxl *adapter);
646 u64 (*timebase_read)(struct cxl *adapter);
714 int cxl_pci_alloc_one_irq(struct cxl *adapter);
715 void cxl_pci_release_one_irq(struct cxl *adapter, int hwirq);
716 int cxl_pci_alloc_irq_ranges(struct cxl_irq_ranges *irqs, struct cxl *adapter, unsigned int num);
717 void cxl_pci_release_irq_ranges(struct cxl_irq_ranges *irqs, struct cxl *adapter);
718 int cxl_pci_setup_irq(struct cxl *adapter, unsigned int hwirq, unsigned int virq);
719 int cxl_update_image_control(struct cxl *adapter);
720 int cxl_pci_reset(struct cxl *adapter);
722 ssize_t cxl_pci_read_adapter_vpd(struct cxl *adapter, void *buf, size_t len);
804 if (likely(cxl_adapter_link_ok(afu->adapter, afu)))
810 if (likely(cxl_adapter_link_ok(afu->adapter, afu)))
823 if (likely(cxl_adapter_link_ok(afu->adapter, afu)))
829 if (likely(cxl_adapter_link_ok(afu->adapter, afu)))
863 void cxl_remove_adapter_nr(struct cxl *adapter);
870 int cxl_register_adapter(struct cxl *adapter);
881 int cxl_sysfs_adapter_add(struct cxl *adapter);
882 void cxl_sysfs_adapter_remove(struct cxl *adapter);
889 struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice);
894 int cxl_native_register_psl_err_irq(struct cxl *adapter);
895 void cxl_native_release_psl_err_irq(struct cxl *adapter);
915 void cxl_debugfs_adapter_add(struct cxl *adapter);
916 void cxl_debugfs_adapter_remove(struct cxl *adapter);
919 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir);
920 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir);
934 static inline void cxl_debugfs_adapter_add(struct cxl *adapter)
938 static inline void cxl_debugfs_adapter_remove(struct cxl *adapter)
950 static inline void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter,
955 static inline void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter,
986 unsigned int cxl_map_irq(struct cxl *adapter, irq_hw_number_t hwirq,
1010 int cxl_invalidate_all_psl9(struct cxl *adapter);
1011 int cxl_invalidate_all_psl8(struct cxl *adapter);
1015 int cxl_register_one_irq(struct cxl *adapter, irq_handler_t handler,
1021 int cxl_data_cache_flush(struct cxl *adapter);
1032 void cxl_native_err_irq_dump_regs_psl8(struct cxl *adapter);
1033 void cxl_native_err_irq_dump_regs_psl9(struct cxl *adapter);
1051 void cxl_guest_remove_adapter(struct cxl *adapter);
1052 int cxl_of_read_adapter_handle(struct cxl *adapter, struct device_node *np);
1053 int cxl_of_read_adapter_properties(struct cxl *adapter, struct device_node *np);
1054 ssize_t cxl_guest_read_adapter_vpd(struct cxl *adapter, void *buf, size_t len);
1056 int cxl_guest_init_afu(struct cxl *adapter, int slice, struct device_node *afu_np);
1060 int cxl_guest_add_chardev(struct cxl *adapter);
1061 void cxl_guest_remove_chardev(struct cxl *adapter);
1062 void cxl_guest_reload_module(struct cxl *adapter);
1067 int (*adapter_reset)(struct cxl *adapter);
1068 int (*alloc_one_irq)(struct cxl *adapter);
1069 void (*release_one_irq)(struct cxl *adapter, int hwirq);
1071 struct cxl *adapter, unsigned int num);
1073 struct cxl *adapter);
1074 int (*setup_irq)(struct cxl *adapter, unsigned int hwirq,
1101 ssize_t (*read_adapter_vpd)(struct cxl *adapter, void *buf, size_t count);
1114 * Increments the number of attached contexts on an adapter.
1117 int cxl_adapter_context_get(struct cxl *adapter);
1119 /* Decrements the number of attached contexts on an adapter */
1120 void cxl_adapter_context_put(struct cxl *adapter);
1123 int cxl_adapter_context_lock(struct cxl *adapter);
1126 void cxl_adapter_context_unlock(struct cxl *adapter);