Lines Matching refs:acfg

331 	struct ocxl_afu_config *acfg = &afu->acfg;  in start_context()  local
349 ctx->psn_size = acfg->global_mmio_size; in start_context()
352 ctx->psn_size = acfg->pp_mmio_stride; in start_context()
403 struct ocxl_afu_config *acfg = &afu->acfg; in ocxlflash_stop_context() local
416 rc = ocxl_config_terminate_pasid(pdev, acfg->dvsec_afu_control_pos, in ocxlflash_stop_context()
714 pos = afu->acfg.dvsec_afu_control_pos; in ocxlflash_destroy_afu()
803 struct ocxl_afu_config *acfg = &afu->acfg; in ocxlflash_map_mmio() local
809 rc = pci_request_region(pdev, acfg->global_mmio_bar, "ocxlflash"); in ocxlflash_map_mmio()
815 gmmio = pci_resource_start(pdev, acfg->global_mmio_bar); in ocxlflash_map_mmio()
816 gmmio += acfg->global_mmio_offset; in ocxlflash_map_mmio()
818 rc = pci_request_region(pdev, acfg->pp_mmio_bar, "ocxlflash"); in ocxlflash_map_mmio()
824 ppmmio = pci_resource_start(pdev, acfg->pp_mmio_bar); in ocxlflash_map_mmio()
825 ppmmio += acfg->pp_mmio_offset; in ocxlflash_map_mmio()
827 afu->gmmio_virt = ioremap(gmmio, acfg->global_mmio_size); in ocxlflash_map_mmio()
839 pci_release_region(pdev, acfg->pp_mmio_bar); in ocxlflash_map_mmio()
841 pci_release_region(pdev, acfg->global_mmio_bar); in ocxlflash_map_mmio()
856 struct ocxl_afu_config *acfg = &afu->acfg; in ocxlflash_config_afu() local
869 rc = ocxl_config_read_afu(pdev, fcfg, acfg, 0); in ocxlflash_config_afu()
878 count = min_t(int, acfg->actag_supported, afu->fn_actag_enabled); in ocxlflash_config_afu()
879 pos = acfg->dvsec_afu_control_pos; in ocxlflash_config_afu()
885 afu->max_pasid = 1 << acfg->pasid_supported_log; in ocxlflash_config_afu()
887 ocxl_config_set_afu_pasid(pdev, pos, 0, acfg->pasid_supported_log); in ocxlflash_config_afu()
897 ocxl_config_set_afu_state(pdev, acfg->dvsec_afu_control_pos, 1); in ocxlflash_config_afu()