Home
last modified time | relevance | path

Searched refs:cxl_ops (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/misc/cxl/
H A Dvphb.c37 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_pci_enable_device_hook()
53 return (cxl_ops->afu_check_and_enable(afu) == 0); in cxl_pci_enable_device_hook()
130 rc = cxl_ops->afu_cr_read8(afu, record, offset, &val8); in cxl_pcie_read_config()
134 rc = cxl_ops->afu_cr_read16(afu, record, offset, &val16); in cxl_pcie_read_config()
138 rc = cxl_ops->afu_cr_read32(afu, record, offset, &val32); in cxl_pcie_read_config()
167 rc = cxl_ops->afu_cr_write8(afu, record, offset, val & 0xff); in cxl_pcie_write_config()
170 rc = cxl_ops->afu_cr_write16(afu, record, offset, val & 0xffff); in cxl_pcie_write_config()
173 rc = cxl_ops->afu_cr_write32(afu, record, offset, val); in cxl_pcie_write_config()
H A Dirq.c51 return cxl_ops->handle_psl_slice_error(ctx, dsisr, in cxl_irq_psl9()
75 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_A, 0); in cxl_irq_psl9()
136 return cxl_ops->handle_psl_slice_error(ctx, dsisr, in cxl_irq_psl8()
161 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_A, 0); in cxl_irq_psl8()
237 if (cxl_ops->setup_irq) in cxl_map_irq()
238 cxl_ops->setup_irq(adapter, hwirq, virq); in cxl_map_irq()
265 if ((hwirq = cxl_ops->alloc_one_irq(adapter)) < 0) in cxl_register_one_irq()
277 cxl_ops->release_one_irq(adapter, hwirq); in cxl_register_one_irq()
351 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); in afu_allocate_irqs()
380 handler = cxl_ops->psl_interrupt; in afu_register_hwirqs()
[all …]
H A Dsysfs.c108 rc = cxl_ops->adapter_reset(adapter); in reset_adapter_store()
115 rc = cxl_ops->adapter_reset(adapter); in reset_adapter_store()
261 if ((rc = cxl_ops->afu_reset(afu))) in reset_store_afu()
423 if ((rc = cxl_ops->afu_activate_mode(afu, mode))) in mode_store()
474 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_adapter_add()
484 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_adapter_add()
498 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_adapter_remove()
661 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_afu_remove()
682 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_afu_add()
727 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_afu_add()
[all …]
H A Dnative.c45 if (!cxl_ops->link_ok(afu->adapter, afu)) { in afu_control()
122 if (!cxl_ops->link_ok(afu->adapter, afu)) { in native_afu_check_and_enable()
304 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl9()
325 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8()
336 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8()
370 if (!cxl_ops->link_ok(adapter, NULL)) { in cxl_data_cache_flush()
417 if (!cxl_ops->link_ok(adapter, NULL)) in slb_invalid()
818 cxl_ops->afu_reset(afu); in deactivate_afu_directed()
921 result = cxl_ops->afu_reset(afu); in cxl_attach_dedicated_process_psl9()
954 if ((rc = cxl_ops->afu_reset(afu))) in cxl_attach_dedicated_process_psl8()
[all …]
H A Dmain.c35 const struct cxl_backend_ops *cxl_ops; variable
51 if (!cxl_ops->link_ok(afu->adapter, afu)) in cxl_afu_slbia()
253 afu->dev.release = cxl_ops->release_afu; in cxl_alloc_afu()
268 return cxl_ops->afu_activate_mode(afu, CXL_MODE_DIRECTED); in cxl_afu_select_best_mode()
271 return cxl_ops->afu_activate_mode(afu, CXL_MODE_DEDICATED); in cxl_afu_select_best_mode()
339 cxl_ops = &cxl_native_ops; in init_cxl()
344 cxl_ops = &cxl_guest_ops; in init_cxl()
H A Dapi.c200 cxl_map_irq(ctx->afu->adapter, hwirq, cxl_ops->psl_interrupt, ctx, "psl"); in cxl_allocate_afu_irqs()
204 if (cxl_ops->update_ivtes) in cxl_allocate_afu_irqs()
205 cxl_ops->update_ivtes(ctx); in cxl_allocate_afu_irqs()
227 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); in cxl_free_afu_irqs()
313 if ((rc = cxl_ops->attach_process(ctx, kernel, wed, 0))) { in cxl_start_context()
509 rc = cxl_ops->afu_reset(afu); in cxl_afu_reset()
513 return cxl_ops->afu_check_and_enable(afu); in cxl_afu_reset()
530 return cxl_ops->read_adapter_vpd(afu->adapter, buf, count); in cxl_read_adapter_vpd()
H A Dcontext.c248 WARN_ON(cxl_ops->detach_process(ctx) && in __detach_context()
249 cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)); in __detach_context()
256 if (cxl_ops->irq_wait) in __detach_context()
257 cxl_ops->irq_wait(ctx); in __detach_context()
H A Dfile.c77 if (!cxl_ops->link_ok(adapter, afu)) { in __afu_open()
253 if ((rc = cxl_ops->attach_process(ctx, false, work.work_element_descriptor, in afu_ioctl_start_work()
317 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_ioctl()
347 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_mmap()
434 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_read()
447 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in afu_read()
H A Dfault.c101 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_AE, 0); in cxl_ack_ae()
125 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_R, 0); in cxl_handle_segment_miss()
190 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_R, 0); in cxl_handle_page_fault()
H A Dguest.c67 return cxl_ops->ack_irq(ctx, 0, errstat); in guest_handle_psl_slice_error()
375 cxl_ops->release_one_irq(afu->adapter, afu->serr_hwirq); in guest_release_serr_irq()
653 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in guest_detach_process()
788 cxl_ops->afu_reset(afu); in deactivate_afu_directed()
850 if ((rc = cxl_ops->afu_reset(afu))) in afu_update_state()
948 if ((rc = cxl_ops->afu_reset(afu))) in cxl_guest_init_afu()
1042 cxl_ops->afu_deactivate_mode(afu, afu->current_mode); in cxl_guest_remove_afu()
H A Dof.c220 rc = cxl_ops->afu_cr_read16(afu, i, PCI_DEVICE_ID, in cxl_of_read_afu_properties()
225 rc = cxl_ops->afu_cr_read16(afu, i, PCI_VENDOR_ID, in cxl_of_read_afu_properties()
230 rc = cxl_ops->afu_cr_read32(afu, i, PCI_CLASS_REVISION, in cxl_of_read_afu_properties()
H A Dpci.c894 rc = cxl_ops->afu_cr_read32(afu, i, 0, &val); in cxl_afu_descriptor_looks_ok()
931 if (cxl_ops->afu_reset(afu)) in sanitise_afu_regs_psl9()
977 if (cxl_ops->afu_reset(afu)) in sanitise_afu_regs_psl8()
1078 if ((rc = cxl_ops->afu_reset(afu))) in pci_configure_afu()
1203 cxl_ops->afu_deactivate_mode(afu, afu->current_mode); in cxl_pci_remove_afu()
1946 cxl_ops->afu_deactivate_mode(afu, afu->current_mode); in cxl_pci_error_detected()
2022 if (cxl_ops->afu_check_and_enable(afu)) in cxl_pci_slot_reset()
H A Dcxl.h1105 extern const struct cxl_backend_ops *cxl_ops;