Searched refs:rgn (Results 1 – 4 of 4) sorted by relevance
67 static int ufshpb_is_valid_srgn(struct ufshpb_region *rgn, in ufshpb_is_valid_srgn() argument70 return rgn->rgn_state != HPB_RGN_INACTIVE && in ufshpb_is_valid_srgn()149 struct ufshpb_region *rgn; in ufshpb_iterate_rgn() local156 rgn = hpb->rgn_tbl + rgn_idx; in ufshpb_iterate_rgn()157 srgn = rgn->srgn_tbl + srgn_idx; in ufshpb_iterate_rgn()170 if (rgn->rgn_state != HPB_RGN_INACTIVE) { in ufshpb_iterate_rgn()177 rgn->read_timeout = ktime_add_ms(ktime_get(), in ufshpb_iterate_rgn()178 rgn->hpb->params.read_timeout_ms); in ufshpb_iterate_rgn()179 rgn->read_timeout_expiries = in ufshpb_iterate_rgn()180 rgn->hpb->params.read_timeout_expiries; in ufshpb_iterate_rgn()[all …]
141 #define for_each_sub_region(rgn, i, srgn) \ argument143 ((i) < (rgn)->srgn_cnt) && ((srgn) = &(rgn)->srgn_tbl[i]); \
65 int rgn; in create_bbt() local113 rgn = flexonenand_region(mtd, from); in create_bbt()114 from += mtd->eraseregions[rgn].erasesize; in create_bbt()
332 const struct mtk_iommu_iova_region *rgn = plat_data->iova_region; in mtk_iommu_get_domain_id() local341 for (i = 0; i < plat_data->iova_region_nr; i++, rgn++) { in mtk_iommu_get_domain_id()343 if (dma_rgn->dma_start == rgn->iova_base && in mtk_iommu_get_domain_id()344 dma_end == rgn->iova_base + rgn->size - 1) in mtk_iommu_get_domain_id()347 if (dma_rgn->dma_start >= rgn->iova_base && in mtk_iommu_get_domain_id()348 dma_end < rgn->iova_base + rgn->size) in mtk_iommu_get_domain_id()