Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/misc/cxl/
Dirq.c54 return cxl_ops->handle_psl_slice_error(ctx, dsisr, in cxl_irq_psl9()
78 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_A, 0); in cxl_irq_psl9()
139 return cxl_ops->handle_psl_slice_error(ctx, dsisr, in cxl_irq_psl8()
164 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_A, 0); in cxl_irq_psl8()
240 if (cxl_ops->setup_irq) in cxl_map_irq()
241 cxl_ops->setup_irq(adapter, hwirq, virq); in cxl_map_irq()
268 if ((hwirq = cxl_ops->alloc_one_irq(adapter)) < 0) in cxl_register_one_irq()
280 cxl_ops->release_one_irq(adapter, hwirq); in cxl_register_one_irq()
314 if ((rc = cxl_ops->alloc_irq_ranges(&ctx->irqs, ctx->afu->adapter, in afu_allocate_irqs()
355 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); in afu_allocate_irqs()
[all …]
Dvphb.c52 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_pci_enable_device_hook()
69 return (cxl_ops->afu_check_and_enable(afu) == 0); in cxl_pci_enable_device_hook()
152 rc = cxl_ops->afu_cr_read8(afu, record, offset, &val8); in cxl_pcie_read_config()
156 rc = cxl_ops->afu_cr_read16(afu, record, offset, &val16); in cxl_pcie_read_config()
160 rc = cxl_ops->afu_cr_read32(afu, record, offset, &val32); in cxl_pcie_read_config()
189 rc = cxl_ops->afu_cr_write8(afu, record, offset, val & 0xff); in cxl_pcie_write_config()
192 rc = cxl_ops->afu_cr_write16(afu, record, offset, val & 0xffff); in cxl_pcie_write_config()
195 rc = cxl_ops->afu_cr_write32(afu, record, offset, val); in cxl_pcie_write_config()
Dsysfs.c112 rc = cxl_ops->adapter_reset(adapter); in reset_adapter_store()
119 rc = cxl_ops->adapter_reset(adapter); in reset_adapter_store()
265 if ((rc = cxl_ops->afu_reset(afu))) in reset_store_afu()
425 if ((rc = cxl_ops->afu_deactivate_mode(afu, old_mode))) in mode_store()
427 if ((rc = cxl_ops->afu_activate_mode(afu, mode))) in mode_store()
456 return cxl_ops->afu_read_err_buffer(afu, buf, off, count); in afu_eb_read()
478 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_adapter_add()
488 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_adapter_add()
502 if (cxl_ops->support_attributes(dev_attr->attr.name, in cxl_sysfs_adapter_remove()
554 rc = cxl_ops->afu_cr_read64(afu, cr->cr, off & ~0x7, &val); in afu_read_config()
[all …]
Dmain.c37 const struct cxl_backend_ops *cxl_ops; variable
53 if (!cxl_ops->link_ok(afu->adapter, afu)) in cxl_afu_slbia()
255 afu->dev.release = cxl_ops->release_afu; in cxl_alloc_afu()
270 return cxl_ops->afu_activate_mode(afu, CXL_MODE_DIRECTED); in cxl_afu_select_best_mode()
273 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.c48 if (!cxl_ops->link_ok(afu->adapter, afu)) { in afu_control()
125 if (!cxl_ops->link_ok(afu->adapter, afu)) { in native_afu_check_and_enable()
153 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge()
175 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge()
312 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl9()
333 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8()
344 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8()
378 if (!cxl_ops->link_ok(adapter, NULL)) { in cxl_data_cache_flush()
425 if (!cxl_ops->link_ok(adapter, NULL)) in slb_invalid()
456 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in do_process_element_cmd()
[all …]
Dapi.c208 cxl_map_irq(ctx->afu->adapter, hwirq, cxl_ops->psl_interrupt, ctx, "psl"); in cxl_allocate_afu_irqs()
212 if (cxl_ops->update_ivtes) in cxl_allocate_afu_irqs()
213 cxl_ops->update_ivtes(ctx); in cxl_allocate_afu_irqs()
235 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); in cxl_free_afu_irqs()
321 if ((rc = cxl_ops->attach_process(ctx, kernel, wed, 0))) { in cxl_start_context()
517 rc = cxl_ops->afu_reset(afu); in cxl_afu_reset()
521 return cxl_ops->afu_check_and_enable(afu); in cxl_afu_reset()
538 return cxl_ops->read_adapter_vpd(afu->adapter, buf, count); in cxl_read_adapter_vpd()
Dcontext.c252 WARN_ON(cxl_ops->detach_process(ctx) && in __detach_context()
253 cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)); in __detach_context()
260 if (cxl_ops->irq_wait) in __detach_context()
261 cxl_ops->irq_wait(ctx); in __detach_context()
Dfile.c81 if (!cxl_ops->link_ok(adapter, afu)) { in __afu_open()
257 if ((rc = cxl_ops->attach_process(ctx, false, work.work_element_descriptor, in afu_ioctl_start_work()
321 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_ioctl()
351 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_mmap()
438 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_read()
451 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in afu_read()
Dfault.c105 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_AE, 0); in cxl_ack_ae()
129 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_R, 0); in cxl_handle_segment_miss()
194 cxl_ops->ack_irq(ctx, CXL_PSL_TFC_An_R, 0); in cxl_handle_page_fault()
Dguest.c65 return cxl_ops->ack_irq(ctx, 0, errstat); in guest_handle_psl_slice_error()
373 cxl_ops->release_one_irq(afu->adapter, afu->serr_hwirq); in guest_release_serr_irq()
651 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in guest_detach_process()
786 cxl_ops->afu_reset(afu); in deactivate_afu_directed()
848 if ((rc = cxl_ops->afu_reset(afu))) in afu_update_state()
946 if ((rc = cxl_ops->afu_reset(afu))) in cxl_guest_init_afu()
1040 cxl_ops->afu_deactivate_mode(afu, afu->current_mode); in cxl_guest_remove_afu()
Dof.c224 rc = cxl_ops->afu_cr_read16(afu, i, PCI_DEVICE_ID, in cxl_of_read_afu_properties()
229 rc = cxl_ops->afu_cr_read16(afu, i, PCI_VENDOR_ID, in cxl_of_read_afu_properties()
234 rc = cxl_ops->afu_cr_read32(afu, i, PCI_CLASS_REVISION, in cxl_of_read_afu_properties()
Dpci.c907 rc = cxl_ops->afu_cr_read32(afu, i, 0, &val); in cxl_afu_descriptor_looks_ok()
944 if (cxl_ops->afu_reset(afu)) in sanitise_afu_regs_psl9()
990 if (cxl_ops->afu_reset(afu)) in sanitise_afu_regs_psl8()
1091 if ((rc = cxl_ops->afu_reset(afu))) in pci_configure_afu()
1216 cxl_ops->afu_deactivate_mode(afu, afu->current_mode); in cxl_pci_remove_afu()
1957 cxl_ops->afu_deactivate_mode(afu, afu->current_mode); in cxl_pci_error_detected()
2031 if (cxl_ops->afu_check_and_enable(afu)) in cxl_pci_slot_reset()
Dcxl.h1110 extern const struct cxl_backend_ops *cxl_ops;