/linux/drivers/misc/ocxl/ |
H A D | core.c | 18 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 …]
|
H A D | mmio.c | 7 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()
|
H A D | pci.c | 20 struct ocxl_afu *afu, *tmp; in ocxl_probe() local 47 struct ocxl_afu *afu; in ocxl_remove() local
|
H A D | config.c | 423 struct ocxl_afu_config *afu) in read_afu_name() 441 struct ocxl_afu_config *afu) in read_afu_mmio() 487 static int read_afu_control(struct pci_dev *dev, struct ocxl_afu_config *afu) in read_afu_control() 525 static int validate_afu(struct pci_dev *dev, struct ocxl_afu_config *afu) in validate_afu() 566 struct ocxl_afu_config *afu) in read_afu_lpc_memory_info() 653 struct ocxl_afu_config *afu, u8 afu_idx) in ocxl_config_read_afu()
|
H A D | context.c | 7 int ocxl_context_alloc(struct ocxl_context **context, struct ocxl_afu *afu, in ocxl_context_alloc() 260 void ocxl_context_detach_all(struct ocxl_afu *afu) in ocxl_context_detach_all()
|
/linux/drivers/misc/cxl/ |
H A D | native.c | 22 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 *afu, u64 sstp0, u64 sstp1) in cxl_write_sstp() [all …]
|
H A D | guest.c | 20 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() local 268 struct cxl_afu *afu = NULL; in guest_reset() local 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 *afu, int cr_idx, u64 offset, in guest_afu_cr_read16() [all …]
|
H A D | file.c | 28 #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 44 struct cxl_afu *afu; in __afu_open() local 565 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev() 595 int cxl_chardev_d_afu_add(struct cxl_afu *afu) in cxl_chardev_d_afu_add() 602 int cxl_chardev_m_afu_add(struct cxl_afu *afu) in cxl_chardev_m_afu_add() [all …]
|
H A D | sysfs.c | 204 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); reset_store_afu() local 274 struct cxl_afu *afu = to_cxl_afu(device); irqs_min_show() local 283 struct cxl_afu *afu = to_cxl_afu(device); irqs_max_show() local 292 struct cxl_afu *afu = to_cxl_afu(device); irqs_max_store() local 319 struct cxl_afu *afu = to_cxl_afu(device); modes_supported_show() local 333 struct cxl_afu *afu = to_cxl_afu(device); prefault_mode_show() local 349 struct cxl_afu *afu = to_cxl_afu(device); prefault_mode_store() local 378 struct cxl_afu *afu = to_cxl_afu(device); mode_show() local 390 struct cxl_afu *afu = to_cxl_afu(device); mode_store() local 450 struct cxl_afu *afu = to_cxl_afu(kobj_to_dev(kobj)); afu_eb_read() local 545 struct cxl_afu *afu = to_cxl_afu(kobj_to_dev(kobj->parent)); afu_read_config() local 588 cxl_sysfs_afu_new_cr(struct cxl_afu * afu,int cr_idx) cxl_sysfs_afu_new_cr() argument 649 cxl_sysfs_afu_remove(struct cxl_afu * afu) cxl_sysfs_afu_remove() argument 672 cxl_sysfs_afu_add(struct cxl_afu * afu) cxl_sysfs_afu_add() argument 734 cxl_sysfs_afu_m_add(struct cxl_afu * afu) cxl_sysfs_afu_m_add() argument 760 cxl_sysfs_afu_m_remove(struct cxl_afu * afu) cxl_sysfs_afu_m_remove() argument [all...] |
H A D | vphb.c | 31 struct cxl_afu *afu; in cxl_pci_enable_device_hook() local 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() local 154 struct cxl_afu *afu; in cxl_pcie_write_config() local 202 int cxl_pci_vphb_add(struct cxl_afu *afu) in cxl_pci_vphb_add() 268 void cxl_pci_vphb_remove(struct cxl_afu *afu) in cxl_pci_vphb_remove()
|
H A D | of.c | 17 struct cxl_afu *afu) in read_phys_addr() 55 static int read_vpd(struct cxl *adapter, struct cxl_afu *afu) in read_vpd() 75 int cxl_of_read_afu_handle(struct cxl_afu *afu, struct device_node *afu_np) in cxl_of_read_afu_handle() 80 int cxl_of_read_afu_properties(struct cxl_afu *afu, struct device_node *np) in cxl_of_read_afu_properties() 276 int afu; in cxl_of_remove() local
|
H A D | debugfs.c | 80 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 D | main.c | 37 int cxl_afu_slbia(struct cxl_afu *afu) in cxl_afu_slbia() 79 struct cxl_afu *afu; in cxl_slbia_core() local 246 struct cxl_afu *afu; in cxl_alloc_afu() local 265 int cxl_afu_select_best_mode(struct cxl_afu *afu) in cxl_afu_select_best_mode()
|
H A D | base.c | 55 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 D | api.c | 103 struct cxl_afu *afu; in cxl_dev_context_init() local 506 struct cxl_afu *afu = ctx->afu; in cxl_afu_reset() local 517 void cxl_perst_reloads_same_image(struct cxl_afu *afu, in cxl_perst_reloads_same_image() 526 struct cxl_afu *afu = cxl_pci_to_afu(dev); in cxl_read_adapter_vpd() local
|
H A D | context.c | 35 int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master) in cxl_context_init() 297 void cxl_context_detach_all(struct cxl_afu *afu) in cxl_context_detach_all()
|
H A D | cxl.h | 541 struct cxl_afu *afu; member 682 struct cxl_afu *afu[CXL_MAX_SLICES]; member 765 static inline bool cxl_adapter_link_ok(struct cxl *cxl, struct cxl_afu *afu) in cxl_adapter_link_ok() 796 static inline void __iomem *_cxl_p1n_addr(struct cxl_afu *afu, cxl_p1n_reg_t reg) in _cxl_p1n_addr() 802 static inline void cxl_p1n_write(struct cxl_afu *afu, cxl_p1n_reg_t reg, u64 val) in cxl_p1n_write() 808 static inline u64 cxl_p1n_read(struct cxl_afu *afu, cxl_p1n_reg_t reg) in cxl_p1n_read() 816 static inline void __iomem *_cxl_p2n_addr(struct cxl_afu *afu, cxl_p2n_reg_t reg) in _cxl_p2n_addr() 821 static inline void cxl_p2n_write(struct cxl_afu *afu, cxl_p2n_reg_t reg, u64 val) in cxl_p2n_write() 827 static inline u64 cxl_p2n_read(struct cxl_afu *afu, cxl_p2n_reg_t reg) in cxl_p2n_read() 943 static inline void cxl_debugfs_afu_add(struct cxl_afu *afu) in cxl_debugfs_afu_add() [all …]
|
/linux/drivers/scsi/cxlflash/ |
H A D | common.h | 113 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 …]
|
H A D | main.c | 49 struct afu *afu = cmd->parent; in process_cmd_err() local 161 struct afu *afu = cmd->parent; in cmd_complete() local 305 static int send_cmd_ioarrin(struct afu *afu, struct afu_cmd *cmd) in send_cmd_ioarrin() 349 static int send_cmd_sq(struct afu *afu, struct afu_cmd *cmd) in send_cmd_sq() 394 static int wait_resp(struct afu *afu, struct afu_cmd *cmd) in wait_resp() 428 struct afu *afu) in cmd_to_target_hwq() 466 struct afu *afu = cfg->afu; in send_tmf() local 568 struct afu *afu = cfg->afu; in cxlflash_queuecommand() local 664 struct afu *afu = cfg->afu; in free_mem() local 697 struct afu *afu = cfg->afu; in stop_afu() local [all …]
|
H A D | ocxl_hw.c | 182 struct ocxl_hw_afu *afu = ctx->hw_afu; in afu_map_irq() local 254 struct ocxl_hw_afu *afu = ctx->hw_afu; in afu_unmap_irq() local 330 struct ocxl_hw_afu *afu = ctx->hw_afu; in start_context() local 402 struct ocxl_hw_afu *afu = ctx->hw_afu; in ocxlflash_stop_context() local 472 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_get_context() local 486 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_dev_context_init() local 567 struct ocxl_hw_afu *afu = afu_cookie; in ocxlflash_perst_reloads_same_image() local 592 struct ocxl_hw_afu *afu = ctx->hw_afu; in free_afu_irqs() local 617 struct ocxl_hw_afu *afu = ctx->hw_afu; in alloc_afu_irqs() local 690 static void ocxlflash_unconfig_afu(struct ocxl_hw_afu *afu) in ocxlflash_unconfig_afu() [all …]
|
H A D | superpipe.c | 264 struct afu *afu = cfg->afu; in afu_attach() local 638 struct afu *afu = cfg->afu; in _cxlflash_disk_release() local 753 struct afu *af in destroy_context() local 829 struct afu *afu = cfg->afu; init_context() local 1320 struct afu *afu = cfg->afu; cxlflash_disk_attach() local 1542 struct afu *afu = cfg->afu; recover_context() local 1655 struct afu *afu = cfg->afu; cxlflash_afu_recover() local 1963 struct afu *afu = cfg->afu; cxlflash_disk_direct_open() local 2098 struct afu *afu = cfg->afu; cxlflash_ioctl() local [all...] |
H A D | vlun.c | 500 static int grow_lxt(struct afu *afu, in grow_lxt() 618 static int shrink_lxt(struct afu *afu, in shrink_lxt() 737 struct afu *afu = cfg->afu; in _cxlflash_vlun_resize() local 1090 static int clone_lxt(struct afu *afu, in clone_lxt() 1197 struct afu *afu = cfg->afu; in cxlflash_disk_clone() local
|
/linux/drivers/fpga/ |
H A D | dfl-afu-region.c | 19 struct dfl_afu *afu = dfl_fpga_fdata_get_private(fdata); 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() argument 54 struct dfl_afu *afu; afu_mmio_region_add() local 98 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); afu_mmio_region_destroy() local 118 struct dfl_afu *afu; afu_mmio_region_get_by_index() local 152 struct dfl_afu *afu; afu_mmio_region_get_by_offset() local [all...] |
H A D | dfl-afu-dma-region.c | 21 struct dfl_afu *afu = dfl_fpga_fdata_get_private(fdata); in afu_dma_region_init() local 146 struct dfl_afu *afu = dfl_fpga_fdata_get_private(fdata); in afu_dma_region_add() local 188 struct dfl_afu *afu; in afu_dma_region_remove() local 205 struct dfl_afu *afu in afu_dma_region_destroy() local 247 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); afu_dma_region_find() local [all...] |
/linux/include/misc/ |
H A D | cxl-base.h | 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()
|