/linux-6.1.9/drivers/misc/cxl/ ! |
D | irq.c | 51 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() 311 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 …]
|
D | vphb.c | 37 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()
|
D | sysfs.c | 108 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 …]
|
D | main.c | 35 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()
|
D | native.c | 45 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() 150 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge() 172 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge() 309 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl9() 330 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8() 341 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8() 375 if (!cxl_ops->link_ok(adapter, NULL)) { in cxl_data_cache_flush() 422 if (!cxl_ops->link_ok(adapter, NULL)) in slb_invalid() 453 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in do_process_element_cmd() [all …]
|
D | api.c | 200 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()
|
D | context.c | 248 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()
|
D | file.c | 77 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()
|
D | fault.c | 101 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()
|
D | guest.c | 67 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()
|
D | of.c | 220 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()
|
D | pci.c | 903 rc = cxl_ops->afu_cr_read32(afu, i, 0, &val); in cxl_afu_descriptor_looks_ok() 940 if (cxl_ops->afu_reset(afu)) in sanitise_afu_regs_psl9() 986 if (cxl_ops->afu_reset(afu)) in sanitise_afu_regs_psl8() 1087 if ((rc = cxl_ops->afu_reset(afu))) in pci_configure_afu() 1212 cxl_ops->afu_deactivate_mode(afu, afu->current_mode); in cxl_pci_remove_afu() 1955 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()
|
D | cxl.h | 1105 extern const struct cxl_backend_ops *cxl_ops;
|