Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/misc/cxl/
Dirq.c50 return cxl_ops->handle_psl_slice_error(ctx, dsisr, in cxl_irq_psl9()
74 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_A, 0); in cxl_irq_psl9()
135 return cxl_ops->handle_psl_slice_error(ctx, dsisr, in cxl_irq_psl8()
160 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_A, 0); in cxl_irq_psl8()
236 if (cxl_ops->setup_irq) in cxl_map_irq()
237 cxl_ops->setup_irq(adapter, hwirq, virq); in cxl_map_irq()
264 if ((hwirq = cxl_ops->alloc_one_irq(adapter)) < 0) in cxl_register_one_irq()
276 cxl_ops->release_one_irq(adapter, hwirq); in cxl_register_one_irq()
310 if ((rc = cxl_ops->alloc_irq_ranges(&ctx->irqs, ctx->afu->adapter, in afu_allocate_irqs()
351 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); in afu_allocate_irqs()
[all …]
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()
136 rc = cxl_ops->afu_cr_read8(afu, record, offset, &val8); in cxl_pcie_read_config()
140 rc = cxl_ops->afu_cr_read16(afu, record, offset, &val16); in cxl_pcie_read_config()
144 rc = cxl_ops->afu_cr_read32(afu, record, offset, &val32); in cxl_pcie_read_config()
173 rc = cxl_ops->afu_cr_write8(afu, record, offset, val & 0xff); in cxl_pcie_write_config()
176 rc = cxl_ops->afu_cr_write16(afu, record, offset, val & 0xffff); in cxl_pcie_write_config()
179 rc = cxl_ops->afu_cr_write32(afu, record, offset, val); in cxl_pcie_write_config()
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()
421 if ((rc = cxl_ops->afu_deactivate_mode(afu, old_mode))) in mode_store()
423 if ((rc = cxl_ops->afu_activate_mode(afu, mode))) in mode_store()
452 return cxl_ops->afu_read_err_buffer(afu, buf, off, count); in afu_eb_read()
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()
550 rc = cxl_ops->afu_cr_read64(afu, cr->cr, off & ~0x7, &val); in afu_read_config()
[all …]
Dmain.c34 const struct cxl_backend_ops *cxl_ops; variable
50 if (!cxl_ops->link_ok(afu->adapter, afu)) in cxl_afu_slbia()
252 afu->dev.release = cxl_ops->release_afu; in cxl_alloc_afu()
267 return cxl_ops->afu_activate_mode(afu, CXL_MODE_DIRECTED); in cxl_afu_select_best_mode()
270 return cxl_ops->afu_activate_mode(afu, CXL_MODE_DEDICATED); in cxl_afu_select_best_mode()
338 cxl_ops = &cxl_native_ops; in init_cxl()
343 cxl_ops = &cxl_guest_ops; in init_cxl()
Dnative.c44 if (!cxl_ops->link_ok(afu->adapter, afu)) { in afu_control()
121 if (!cxl_ops->link_ok(afu->adapter, afu)) { in native_afu_check_and_enable()
149 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge()
171 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge()
308 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl9()
329 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8()
340 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8()
374 if (!cxl_ops->link_ok(adapter, NULL)) { in cxl_data_cache_flush()
421 if (!cxl_ops->link_ok(adapter, NULL)) in slb_invalid()
452 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in do_process_element_cmd()
[all …]
Dapi.c199 cxl_map_irq(ctx->afu->adapter, hwirq, cxl_ops->psl_interrupt, ctx, "psl"); in cxl_allocate_afu_irqs()
203 if (cxl_ops->update_ivtes) in cxl_allocate_afu_irqs()
204 cxl_ops->update_ivtes(ctx); in cxl_allocate_afu_irqs()
226 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); in cxl_free_afu_irqs()
312 if ((rc = cxl_ops->attach_process(ctx, kernel, wed, 0))) { in cxl_start_context()
508 rc = cxl_ops->afu_reset(afu); in cxl_afu_reset()
512 return cxl_ops->afu_check_and_enable(afu); in cxl_afu_reset()
529 return cxl_ops->read_adapter_vpd(afu->adapter, buf, count); in cxl_read_adapter_vpd()
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()
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()
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()
Dguest.c61 return cxl_ops->ack_irq(ctx, 0, errstat); in guest_handle_psl_slice_error()
369 cxl_ops->release_one_irq(afu->adapter, afu->serr_hwirq); in guest_release_serr_irq()
647 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in guest_detach_process()
782 cxl_ops->afu_reset(afu); in deactivate_afu_directed()
844 if ((rc = cxl_ops->afu_reset(afu))) in afu_update_state()
942 if ((rc = cxl_ops->afu_reset(afu))) in cxl_guest_init_afu()
1034 cxl_ops->afu_deactivate_mode(afu, afu->current_mode); in cxl_guest_remove_afu()
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()
Dpci.c902 rc = cxl_ops->afu_cr_read32(afu, i, 0, &val); in cxl_afu_descriptor_looks_ok()
939 if (cxl_ops->afu_reset(afu)) in sanitise_afu_regs_psl9()
985 if (cxl_ops->afu_reset(afu)) in sanitise_afu_regs_psl8()
1086 if ((rc = cxl_ops->afu_reset(afu))) in pci_configure_afu()
1209 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()
2020 if (cxl_ops->afu_check_and_enable(afu)) in cxl_pci_slot_reset()
Dcxl.h1103 extern const struct cxl_backend_ops *cxl_ops;