Home
last modified time | relevance | path

Searched refs:rgn (Results 1 – 4 of 4) sorted by relevance

/drivers/ufs/core/
Dufshpb.c67 static int ufshpb_is_valid_srgn(struct ufshpb_region *rgn, in ufshpb_is_valid_srgn() argument
70 return rgn->rgn_state != HPB_RGN_INACTIVE && in ufshpb_is_valid_srgn()
149 struct ufshpb_region *rgn; in ufshpb_iterate_rgn() local
156 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 …]
Dufshpb.h141 #define for_each_sub_region(rgn, i, srgn) \ argument
143 ((i) < (rgn)->srgn_cnt) && ((srgn) = &(rgn)->srgn_tbl[i]); \
/drivers/mtd/nand/onenand/
Donenand_bbt.c65 int rgn; in create_bbt() local
113 rgn = flexonenand_region(mtd, from); in create_bbt()
114 from += mtd->eraseregions[rgn].erasesize; in create_bbt()
/drivers/iommu/
Dmtk_iommu.c332 const struct mtk_iommu_iova_region *rgn = plat_data->iova_region; in mtk_iommu_get_domain_id() local
341 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()