/linux-master/drivers/misc/cxl/ |
H A D | base.c | 55 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) argument 57 return (get_device(&afu->dev) == NULL) ? NULL : afu; 61 void cxl_afu_put(struct cxl_afu *afu) argument 63 put_device(&afu->dev);
|
H A D | api.c | 103 struct cxl_afu *afu; local 107 afu = cxl_pci_to_afu(dev); 108 if (IS_ERR(afu)) 109 return ERR_CAST(afu); 118 rc = cxl_context_init(ctx, afu, false); 189 num = ctx->afu->pp_irqs; 200 cxl_map_irq(ctx->afu->adapter, hwirq, cxl_ops->psl_interrupt, ctx, "psl"); 227 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); 243 return cxl_map_irq(ctx->afu->adapter, hwirq, handler, cookie, name); 282 rc = cxl_adapter_context_get(ctx->afu 506 struct cxl_afu *afu = ctx->afu; local 517 cxl_perst_reloads_same_image(struct cxl_afu *afu, bool perst_reloads_same_image) argument 526 struct cxl_afu *afu = cxl_pci_to_afu(dev); local [all...] |
H A D | irq.c | 43 pr_devel("CXL interrupt %i for afu pe: %i DSISR: %#llx DAR: %#llx\n", irq, ctx->pe, dsisr, dar); 64 dev_err_ratelimited(&ctx->afu->dev, "CXL AFU Error undelivered to pe %i: 0x%016llx\n", 94 pr_devel("CXL interrupt %i for afu pe: %i DSISR: %#llx DAR: %#llx\n", irq, ctx->pe, dsisr, dar); 149 dev_err_ratelimited(&ctx->afu->dev, "CXL AFU Error " 311 if ((rc = cxl_ops->alloc_irq_ranges(&ctx->irqs, ctx->afu->adapter, 317 ctx->irqs.offset[0] = ctx->afu->native->psl_hwirq; 337 dev_name(&ctx->afu->dev), 351 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); 383 cxl_map_irq(ctx->afu->adapter, hwirq, handler, ctx, 418 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu 423 cxl_afu_decode_psl_serr(struct cxl_afu *afu, u64 serr) argument [all...] |
H A D | fault.c | 237 if (cxl_p2n_read(ctx->afu, CXL_PSL_DSISR_An) != dsisr || 238 cxl_p2n_read(ctx->afu, CXL_PSL_DAR_An) != dar || 239 cxl_p2n_read(ctx->afu, CXL_PSL_PEHandle_An) != ctx->pe) { 244 dev_notice(&ctx->afu->dev, "cxl_handle_fault: Translation fault regs changed\n"); 255 pr_devel("CXL BOTTOM HALF handling fault for afu pe: %i. " 329 switch (ctx->afu->prefault_mode) {
|
H A D | flash.c | 327 int afu; local 348 pr_devel("remove current afu\n"); 349 for (afu = 0; afu < adapter->slices; afu++) 350 cxl_guest_remove_afu(adapter->afu[afu]);
|
/linux-master/drivers/fpga/ |
H A D | Makefile | 47 obj-$(CONFIG_FPGA_DFL_AFU) += dfl-afu.o 51 dfl-afu-objs := dfl-afu-main.o dfl-afu-region.o dfl-afu-dma-region.o 52 dfl-afu-objs += dfl-afu-error.o
|
H A D | dfl-afu-dma-region.c | 17 #include "dfl-afu.h" 21 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); local 23 afu->dma_regions = RB_ROOT; 146 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); local 152 new = &afu->dma_regions.rb_node; 173 rb_insert_color(®ion->node, &afu->dma_regions); 188 struct dfl_afu *afu; local 193 afu = dfl_fpga_pdata_get_private(pdata); 194 rb_erase(®ion->node, &afu->dma_regions); 205 struct dfl_afu *afu local 247 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); local [all...] |
H A D | dfl-afu-main.c | 22 #include "dfl-afu.h" 654 struct dfl_afu *afu; local 666 afu = dfl_fpga_pdata_get_private(pdata); 668 info.num_regions = afu->num_regions; 669 info.num_umsgs = afu->num_umsgs; 855 struct dfl_afu *afu; local 857 afu = devm_kzalloc(&pdev->dev, sizeof(*afu), GFP_KERNEL); 858 if (!afu) 861 afu [all...] |
/linux-master/drivers/misc/ocxl/ |
H A D | file.c | 61 rc = ocxl_context_alloc(&ctx, info->afu, inode->i_mapping); 99 arg.afu_version_major = ctx->afu->config.version_major; 100 arg.afu_version_minor = ctx->afu->config.version_minor; 102 arg.pp_mmio_size = ctx->afu->config.pp_mmio_stride; 103 arg.global_mmio_size = ctx->afu->config.global_mmio_size; 137 int rc = ocxl_link_update_pe(ctx->afu->fn->link, 488 ocxl_afu_put(info->afu); 499 dev_err(&info->dev, "Unable to add afu char device: %d\n", rc); 521 int ocxl_file_register_afu(struct ocxl_afu *afu) argument 526 struct ocxl_fn *fn = afu 583 ocxl_file_unregister_afu(struct ocxl_afu *afu) argument [all...] |
H A D | afu_irq.c | 22 return (offset - ctx->afu->irq_base_offset) >> PAGE_SHIFT; 27 return ctx->afu->irq_base_offset + (irq_id << PAGE_SHIFT); 81 irq->name = kasprintf(GFP_KERNEL, "ocxl-afu-%u", irq->virq); 115 * We limit the number of afu irqs per context and per link to 128 rc = ocxl_link_irq_alloc(ctx->afu->fn->link, &irq->hw_irq); 144 ocxl_link_free_irq(ctx->afu->fn->link, irq->hw_irq); 164 ocxl_link_free_irq(ctx->afu->fn->link, irq->hw_irq);
|
/linux-master/drivers/scsi/cxlflash/ |
H A D | superpipe.c | 264 struct afu *afu = cfg->afu; local 267 struct hwq *hwq = get_hwq(afu, PRIMARY_HWQ); 283 if (afu_is_ocxl_lisn(afu)) { 638 struct afu *afu = cfg->afu; local 711 rcr = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_HW_SYNC); 754 struct afu *af local 830 struct afu *afu = cfg->afu; local 1322 struct afu *afu = cfg->afu; local 1544 struct afu *afu = cfg->afu; local 1657 struct afu *afu = cfg->afu; local 1965 struct afu *afu = cfg->afu; local 2100 struct afu *afu = cfg->afu; local [all...] |
H A D | vlun.c | 485 * @afu: AFU associated with the host. 500 static int grow_lxt(struct afu *afu, argument 594 rc = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_LW_SYNC); 609 * @afu: AFU associated with the host. 618 static int shrink_lxt(struct afu *afu, argument 676 rc = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_HW_SYNC); 737 struct afu *afu local 1091 clone_lxt(struct afu *afu, struct blka *blka, ctx_hndl_t ctxid, res_hndl_t rhndl, struct sisl_rht_entry *rhte, struct sisl_rht_entry *rhte_src) argument 1198 struct afu *afu = cfg->afu; local [all...] |
H A D | cxl_hw.c | 115 static void cxlflash_destroy_afu(void *afu) argument
|
/linux-master/include/misc/ |
H A D | cxl.h | 209 void cxl_perst_reloads_same_image(struct cxl_afu *afu,
|