Lines Matching refs:acfg
330 struct ocxl_afu_config *acfg = &afu->acfg; in start_context() local
347 ctx->psn_size = acfg->global_mmio_size; in start_context()
350 ctx->psn_size = acfg->pp_mmio_stride; in start_context()
400 struct ocxl_afu_config *acfg = &afu->acfg; in ocxlflash_stop_context() local
413 rc = ocxl_config_terminate_pasid(pdev, acfg->dvsec_afu_control_pos, in ocxlflash_stop_context()
711 pos = afu->acfg.dvsec_afu_control_pos; in ocxlflash_destroy_afu()
800 struct ocxl_afu_config *acfg = &afu->acfg; in ocxlflash_map_mmio() local
806 rc = pci_request_region(pdev, acfg->global_mmio_bar, "ocxlflash"); in ocxlflash_map_mmio()
812 gmmio = pci_resource_start(pdev, acfg->global_mmio_bar); in ocxlflash_map_mmio()
813 gmmio += acfg->global_mmio_offset; in ocxlflash_map_mmio()
815 rc = pci_request_region(pdev, acfg->pp_mmio_bar, "ocxlflash"); in ocxlflash_map_mmio()
821 ppmmio = pci_resource_start(pdev, acfg->pp_mmio_bar); in ocxlflash_map_mmio()
822 ppmmio += acfg->pp_mmio_offset; in ocxlflash_map_mmio()
824 afu->gmmio_virt = ioremap(gmmio, acfg->global_mmio_size); in ocxlflash_map_mmio()
836 pci_release_region(pdev, acfg->pp_mmio_bar); in ocxlflash_map_mmio()
838 pci_release_region(pdev, acfg->global_mmio_bar); in ocxlflash_map_mmio()
853 struct ocxl_afu_config *acfg = &afu->acfg; in ocxlflash_config_afu() local
866 rc = ocxl_config_read_afu(pdev, fcfg, acfg, 0); in ocxlflash_config_afu()
875 count = min_t(int, acfg->actag_supported, afu->fn_actag_enabled); in ocxlflash_config_afu()
876 pos = acfg->dvsec_afu_control_pos; in ocxlflash_config_afu()
882 afu->max_pasid = 1 << acfg->pasid_supported_log; in ocxlflash_config_afu()
884 ocxl_config_set_afu_pasid(pdev, pos, 0, acfg->pasid_supported_log); in ocxlflash_config_afu()
894 ocxl_config_set_afu_state(pdev, acfg->dvsec_afu_control_pos, 1); in ocxlflash_config_afu()