Lines Matching refs:iot_cache
1281 GHashTable *iot_cache, hwaddr iova) in riscv_iommu_iot_lookup() argument
1288 return g_hash_table_lookup(iot_cache, &key); in riscv_iommu_iot_lookup()
1293 GHashTable *iot_cache, RISCVIOMMUEntry *iot) in riscv_iommu_iot_update() argument
1299 if (g_hash_table_size(s->iot_cache) >= s->iot_limit) { in riscv_iommu_iot_update()
1300 iot_cache = g_hash_table_new_full(riscv_iommu_iot_hash, in riscv_iommu_iot_update()
1303 g_hash_table_unref(qatomic_xchg(&s->iot_cache, iot_cache)); in riscv_iommu_iot_update()
1305 g_hash_table_add(iot_cache, iot); in riscv_iommu_iot_update()
1311 GHashTable *iot_cache; in riscv_iommu_iot_inval() local
1318 iot_cache = g_hash_table_ref(s->iot_cache); in riscv_iommu_iot_inval()
1319 g_hash_table_foreach(iot_cache, func, &key); in riscv_iommu_iot_inval()
1320 g_hash_table_unref(iot_cache); in riscv_iommu_iot_inval()
1330 GHashTable *iot_cache; in riscv_iommu_translate() local
1333 iot_cache = g_hash_table_ref(s->iot_cache); in riscv_iommu_translate()
1351 iot = riscv_iommu_iot_lookup(ctx, iot_cache, iotlb->iova); in riscv_iommu_translate()
1382 riscv_iommu_iot_update(s, iot_cache, iot); in riscv_iommu_translate()
1386 g_hash_table_unref(iot_cache); in riscv_iommu_translate()
2221 s->iot_cache = g_hash_table_new_full(riscv_iommu_iot_hash, in riscv_iommu_realize()
2234 g_hash_table_unref(s->iot_cache); in riscv_iommu_unrealize()