Home
last modified time | relevance | path

Searched refs:cxl_afu (Results 1 – 15 of 15) sorted by relevance

/linux-4.4.14/drivers/misc/cxl/
Dcxl.h345 #define to_cxl_afu(d) container_of(d, struct cxl_afu, dev)
347 struct cxl_afu { struct
417 struct cxl_afu *afu; argument
482 struct cxl_afu *afu[CXL_MAX_SLICES];
571 static inline void __iomem *_cxl_p1n_addr(struct cxl_afu *afu, cxl_p1n_reg_t reg) in _cxl_p1n_addr()
577 static inline void cxl_p1n_write(struct cxl_afu *afu, cxl_p1n_reg_t reg, u64 val) in cxl_p1n_write()
583 static inline u64 cxl_p1n_read(struct cxl_afu *afu, cxl_p1n_reg_t reg) in cxl_p1n_read()
591 static inline void __iomem *_cxl_p2n_addr(struct cxl_afu *afu, cxl_p2n_reg_t reg) in _cxl_p2n_addr()
596 static inline void cxl_p2n_write(struct cxl_afu *afu, cxl_p2n_reg_t reg, u64 val) in cxl_p2n_write()
602 static inline u64 cxl_p2n_read(struct cxl_afu *afu, cxl_p2n_reg_t reg) in cxl_p2n_read()
[all …]
Dvphb.c46 struct cxl_afu *afu; in cxl_pci_enable_device_hook()
50 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook()
117 struct cxl_afu *afu; in cxl_pcie_config_info()
123 afu = (struct cxl_afu *)phb->private_data; in cxl_pcie_config_info()
151 struct cxl_afu *afu; in cxl_config_link_ok()
163 afu = (struct cxl_afu *)phb->private_data; in cxl_config_link_ok()
232 int cxl_pci_vphb_add(struct cxl_afu *afu) in cxl_pci_vphb_add()
275 void cxl_pci_vphb_reconfigure(struct cxl_afu *afu) in cxl_pci_vphb_reconfigure()
284 void cxl_pci_vphb_remove(struct cxl_afu *afu) in cxl_pci_vphb_remove()
299 struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev) in cxl_pci_to_afu()
[all …]
Dsysfs.c157 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master()
166 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show()
175 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show()
193 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show()
204 struct cxl_afu *afu = to_cxl_afu(device); in reset_store_afu()
227 struct cxl_afu *afu = to_cxl_afu(device); in irqs_min_show()
236 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_show()
245 struct cxl_afu *afu = to_cxl_afu(device); in irqs_max_store()
266 struct cxl_afu *afu = to_cxl_afu(device); in modes_supported_show()
280 struct cxl_afu *afu = to_cxl_afu(device); in prefault_mode_show()
[all …]
Dnative.c23 static int afu_control(struct cxl_afu *afu, u64 command, in afu_control()
65 static int afu_enable(struct cxl_afu *afu) in afu_enable()
74 int cxl_afu_disable(struct cxl_afu *afu) in cxl_afu_disable()
83 int __cxl_afu_reset(struct cxl_afu *afu) in __cxl_afu_reset()
93 int cxl_afu_check_and_enable(struct cxl_afu *afu) in cxl_afu_check_and_enable()
104 int cxl_psl_purge(struct cxl_afu *afu) in cxl_psl_purge()
186 int cxl_alloc_spa(struct cxl_afu *afu) in cxl_alloc_spa()
209 static void attach_spa(struct cxl_afu *afu) in attach_spa()
223 static inline void detach_spa(struct cxl_afu *afu) in detach_spa()
228 void cxl_release_spa(struct cxl_afu *afu) in cxl_release_spa()
[all …]
Dpci.c119 u16 cxl_afu_cr_read16(struct cxl_afu *afu, int cr, u64 off) in cxl_afu_cr_read16()
128 u8 cxl_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off) in cxl_afu_cr_read8()
289 static void dump_afu_descriptor(struct cxl_afu *afu) in dump_afu_descriptor()
422 static int init_implementation_afu_regs(struct cxl_afu *afu) in init_implementation_afu_regs()
560 static int cxl_map_slice_regs(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) in cxl_map_slice_regs()
590 static void cxl_unmap_slice_regs(struct cxl_afu *afu) in cxl_unmap_slice_regs()
608 struct cxl_afu *afu = to_cxl_afu(dev); in cxl_release_afu()
618 static struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice) in cxl_alloc_afu()
620 struct cxl_afu *afu; in cxl_alloc_afu()
622 if (!(afu = kzalloc(sizeof(struct cxl_afu), GFP_KERNEL))) in cxl_alloc_afu()
[all …]
Dapi.c22 struct cxl_afu *afu; in cxl_dev_context_init()
77 struct cxl_afu *afu; in cxl_get_phys_dev()
332 struct cxl_afu *afu = ctx->afu; in cxl_psa_map()
353 struct cxl_afu *afu = ctx->afu; in cxl_afu_reset()
364 void cxl_perst_reloads_same_image(struct cxl_afu *afu, in cxl_perst_reloads_same_image()
Dfile.c51 struct cxl_afu *afu; in __afu_open()
453 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev()
482 int cxl_chardev_d_afu_add(struct cxl_afu *afu) in cxl_chardev_d_afu_add()
489 int cxl_chardev_m_afu_add(struct cxl_afu *afu) in cxl_chardev_m_afu_add()
496 int cxl_chardev_s_afu_add(struct cxl_afu *afu) in cxl_chardev_s_afu_add()
503 void cxl_chardev_afu_remove(struct cxl_afu *afu) in cxl_chardev_afu_remove()
522 int cxl_register_afu(struct cxl_afu *afu) in cxl_register_afu()
Dirq.c48 struct cxl_afu *afu = data; in cxl_slice_irq_err()
182 static irqreturn_t fail_psl_irq(struct cxl_afu *afu, struct cxl_irq_info *irq_info) in fail_psl_irq()
194 struct cxl_afu *afu = data; in cxl_irq_multiplexed()
352 int cxl_register_serr_irq(struct cxl_afu *afu) in cxl_register_serr_irq()
377 void cxl_release_serr_irq(struct cxl_afu *afu) in cxl_release_serr_irq()
388 int cxl_register_psl_irq(struct cxl_afu *afu) in cxl_register_psl_irq()
406 void cxl_release_psl_irq(struct cxl_afu *afu) in cxl_release_psl_irq()
Dtrace.h365 TP_PROTO(struct cxl_afu *afu, u64 cmd),
389 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
416 TP_PROTO(struct cxl_afu *afu, u64 cmd),
421 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
426 TP_PROTO(struct cxl_afu *afu, u64 cmd),
437 TP_PROTO(struct cxl_afu *afu, u64 cmd, int rc),
Ddebugfs.c83 int cxl_debugfs_afu_add(struct cxl_afu *afu) in cxl_debugfs_afu_add()
113 void cxl_debugfs_afu_remove(struct cxl_afu *afu) in cxl_debugfs_afu_remove()
Dmain.c64 struct cxl_afu *afu; in cxl_slbia_core()
177 int cxl_afu_select_best_mode(struct cxl_afu *afu) in cxl_afu_select_best_mode()
Dcontext.c37 int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master, in cxl_context_init()
240 void cxl_context_detach_all(struct cxl_afu *afu) in cxl_context_detach_all()
/linux-4.4.14/include/misc/
Dcxl.h28 struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev);
210 void cxl_perst_reloads_same_image(struct cxl_afu *afu,
/linux-4.4.14/drivers/scsi/cxlflash/
Dcommon.h108 struct cxl_afu *cxl_afu; member
Dmain.c1718 cxl_perst_reloads_same_image(cfg->cxl_afu, true); in init_afu()
2435 cfg->cxl_afu = cxl_pci_to_afu(pdev); in cxlflash_probe()