Lines Matching refs:afu

406 	struct cxl_afu *afu;  member
466 struct cxl_afu *afu[CXL_MAX_SLICES]; member
537 static inline void __iomem *_cxl_p1n_addr(struct cxl_afu *afu, cxl_p1n_reg_t reg) in _cxl_p1n_addr() argument
540 return afu->p1n_mmio + cxl_reg_off(reg); in _cxl_p1n_addr()
543 #define cxl_p1n_write(afu, reg, val) \ argument
544 out_be64(_cxl_p1n_addr(afu, reg), val)
545 #define cxl_p1n_read(afu, reg) \ argument
546 in_be64(_cxl_p1n_addr(afu, reg))
548 static inline void __iomem *_cxl_p2n_addr(struct cxl_afu *afu, cxl_p2n_reg_t reg) in _cxl_p2n_addr() argument
550 return afu->p2n_mmio + cxl_reg_off(reg); in _cxl_p2n_addr()
553 #define cxl_p2n_write(afu, reg, val) \ argument
554 out_be64(_cxl_p2n_addr(afu, reg), val)
555 #define cxl_p2n_read(afu, reg) \ argument
556 in_be64(_cxl_p2n_addr(afu, reg))
559 #define cxl_afu_cr_read64(afu, cr, off) \ argument
560 in_le64((afu)->afu_desc_mmio + (afu)->crs_offset + ((cr) * (afu)->crs_len) + (off))
561 #define cxl_afu_cr_read32(afu, cr, off) \ argument
562 in_le32((afu)->afu_desc_mmio + (afu)->crs_offset + ((cr) * (afu)->crs_len) + (off))
563 u16 cxl_afu_cr_read16(struct cxl_afu *afu, int cr, u64 off);
564 u8 cxl_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off);
580 int cxl_register_afu(struct cxl_afu *afu);
581 int cxl_chardev_d_afu_add(struct cxl_afu *afu);
582 int cxl_chardev_m_afu_add(struct cxl_afu *afu);
583 int cxl_chardev_s_afu_add(struct cxl_afu *afu);
584 void cxl_chardev_afu_remove(struct cxl_afu *afu);
586 void cxl_context_detach_all(struct cxl_afu *afu);
592 int cxl_sysfs_afu_add(struct cxl_afu *afu);
593 void cxl_sysfs_afu_remove(struct cxl_afu *afu);
594 int cxl_sysfs_afu_m_add(struct cxl_afu *afu);
595 void cxl_sysfs_afu_m_remove(struct cxl_afu *afu);
597 int cxl_afu_activate_mode(struct cxl_afu *afu, int mode);
598 int _cxl_afu_deactivate_mode(struct cxl_afu *afu, int mode);
599 int cxl_afu_deactivate_mode(struct cxl_afu *afu);
600 int cxl_afu_select_best_mode(struct cxl_afu *afu);
602 int cxl_register_psl_irq(struct cxl_afu *afu);
603 void cxl_release_psl_irq(struct cxl_afu *afu);
606 int cxl_register_serr_irq(struct cxl_afu *afu);
607 void cxl_release_serr_irq(struct cxl_afu *afu);
616 int cxl_debugfs_afu_add(struct cxl_afu *afu);
617 void cxl_debugfs_afu_remove(struct cxl_afu *afu);
628 int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master,
649 int cxl_get_irq(struct cxl_afu *afu, struct cxl_irq_info *info);
652 int cxl_check_error(struct cxl_afu *afu);
653 int cxl_afu_slbia(struct cxl_afu *afu);
655 int cxl_afu_disable(struct cxl_afu *afu);
656 int cxl_afu_reset(struct cxl_afu *afu);
657 int cxl_psl_purge(struct cxl_afu *afu);