• Home
  • Raw
  • Download

Lines Matching refs:pfdev

16277 -	struct panfrost_device *pfdev;
16344 panfrost_priv->pfdev = pfdev;
16347 - panfrost_priv->mmu = panfrost_mmu_ctx_create(pfdev);
16459 - cfg = panfrost_mmu_as_get(pfdev, job->file_priv->mmu);
16460 + cfg = panfrost_mmu_as_get(pfdev, &job->file_priv->mmu);
16462 job_write(pfdev, JS_HEAD_NEXT_LO(js), jc_head & 0xFFFFFFFF);
16463 job_write(pfdev, JS_HEAD_NEXT_HI(js), jc_head >> 32);
16466 pfdev->jobs[j] = NULL;
16468 - panfrost_mmu_as_put(pfdev, job->file_priv->mmu);
16469 + panfrost_mmu_as_put(pfdev, &job->file_priv->mmu);
16470 panfrost_devfreq_record_idle(&pfdev->pfdevfreq);
16486 @@ -55,16 +52,25 @@ static int write_cmd(struct panfrost_device *pfdev, u32 as_nr, u32 cmd)
16489 static void lock_region(struct panfrost_device *pfdev, u32 as_nr,
16518 @@ -75,7 +81,7 @@ static void lock_region(struct panfrost_device *pfdev, u32 as_nr,
16521 static int mmu_hw_do_operation_locked(struct panfrost_device *pfdev, int as_nr,
16527 @@ -92,7 +98,7 @@ static int mmu_hw_do_operation_locked(struct panfrost_device *pfdev, int as_nr,
16529 static int mmu_hw_do_operation(struct panfrost_device *pfdev,
16536 @@ -109,7 +115,7 @@ static void panfrost_mmu_enable(struct panfrost_device *pfdev, struct panfrost_m
16540 - mmu_hw_do_operation_locked(pfdev, as_nr, 0, ~0ULL, AS_COMMAND_FLUSH_MEM);
16541 + mmu_hw_do_operation_locked(pfdev, as_nr, 0, ~0UL, AS_COMMAND_FLUSH_MEM);
16543 mmu_write(pfdev, AS_TRANSTAB_LO(as_nr), transtab & 0xffffffffUL);
16544 mmu_write(pfdev, AS_TRANSTAB_HI(as_nr), transtab >> 32);
16545 @@ -125,7 +131,7 @@ static void panfrost_mmu_enable(struct panfrost_device *pfdev, struct panfrost_m
16547 static void panfrost_mmu_disable(struct panfrost_device *pfdev, u32 as_nr)
16549 - mmu_hw_do_operation_locked(pfdev, as_nr, 0, ~0ULL, AS_COMMAND_FLUSH_MEM);
16550 + mmu_hw_do_operation_locked(pfdev, as_nr, 0, ~0UL, AS_COMMAND_FLUSH_MEM);
16552 mmu_write(pfdev, AS_TRANSTAB_LO(as_nr), 0);
16553 mmu_write(pfdev, AS_TRANSTAB_HI(as_nr), 0);
16556 static void panfrost_mmu_flush_range(struct panfrost_device *pfdev,
16568 + //struct panfrost_device *pfdev = cookie;
16591 + struct panfrost_device *pfdev = priv->pfdev;
16598 + .ias = FIELD_GET(0xff, pfdev->features.mmu_features),
16599 + .oas = FIELD_GET(0xff00, pfdev->features.mmu_features),
16600 + .coherent_walk = pfdev->coherent,
16602 + .iommu_dev = pfdev->dev,
16615 + struct panfrost_device *pfdev = priv->pfdev;
16618 + spin_lock(&pfdev->as_lock);
16620 + pm_runtime_get_noresume(pfdev->dev);
16621 + if (pm_runtime_active(pfdev->dev))
16622 + panfrost_mmu_disable(pfdev, mmu->as);
16623 + pm_runtime_put_autosuspend(pfdev->dev);
16625 + clear_bit(mmu->as, &pfdev->as_alloc_mask);
16626 + clear_bit(mmu->as, &pfdev->as_in_use_mask);
16629 + spin_unlock(&pfdev->as_lock);
16635 addr_to_mapping(struct panfrost_device *pfdev, int as, u64 addr)
16642 @@ -369,10 +415,11 @@ addr_to_mapping(struct panfrost_device *pfdev, int as, u64 addr)
16656 @@ -382,7 +429,7 @@ addr_to_mapping(struct panfrost_device *pfdev, int as, u64 addr)
16663 spin_unlock(&pfdev->as_lock);
16665 @@ -495,107 +542,6 @@ static int panfrost_mmu_map_fault_addr(struct panfrost_device *pfdev, int as,
16673 - struct panfrost_device *pfdev = mmu->pfdev;
16675 - spin_lock(&pfdev->as_lock);
16677 - pm_runtime_get_noresume(pfdev->dev);
16678 - if (pm_runtime_active(pfdev->dev))
16679 - panfrost_mmu_disable(pfdev, mmu->as);
16680 - pm_runtime_put_autosuspend(pfdev->dev);
16682 - clear_bit(mmu->as, &pfdev->as_alloc_mask);
16683 - clear_bit(mmu->as, &pfdev->as_in_use_mask);
16686 - spin_unlock(&pfdev->as_lock);
16731 -struct panfrost_mmu *panfrost_mmu_ctx_create(struct panfrost_device *pfdev)
16739 - mmu->pfdev = pfdev;
16751 - .ias = FIELD_GET(0xff, pfdev->features.mmu_features),
16752 - .oas = FIELD_GET(0xff00, pfdev->features.mmu_features),
16753 - .coherent_walk = pfdev->coherent,
16755 - .iommu_dev = pfdev->dev,
16770 static const char *access_type_name(struct panfrost_device *pfdev,
16777 @@ -18,8 +18,7 @@ void panfrost_mmu_reset(struct panfrost_device *pfdev);
16778 u32 panfrost_mmu_as_get(struct panfrost_device *pfdev, struct panfrost_mmu *mmu);
16779 void panfrost_mmu_as_put(struct panfrost_device *pfdev, struct panfrost_mmu *mmu);
16783 -struct panfrost_mmu *panfrost_mmu_ctx_create(struct panfrost_device *pfdev);