Lines Matching refs:iot_cache
1354 GHashTable *iot_cache, hwaddr iova, RISCVIOMMUTransTag transtag) in riscv_iommu_iot_lookup() argument
1362 return g_hash_table_lookup(iot_cache, &key); in riscv_iommu_iot_lookup()
1367 GHashTable *iot_cache, RISCVIOMMUEntry *iot) in riscv_iommu_iot_update() argument
1373 if (g_hash_table_size(s->iot_cache) >= s->iot_limit) { in riscv_iommu_iot_update()
1374 iot_cache = g_hash_table_new_full(riscv_iommu_iot_hash, in riscv_iommu_iot_update()
1377 g_hash_table_unref(qatomic_xchg(&s->iot_cache, iot_cache)); in riscv_iommu_iot_update()
1379 g_hash_table_add(iot_cache, iot); in riscv_iommu_iot_update()
1385 GHashTable *iot_cache; in riscv_iommu_iot_inval() local
1393 iot_cache = g_hash_table_ref(s->iot_cache); in riscv_iommu_iot_inval()
1394 g_hash_table_foreach(iot_cache, func, &key); in riscv_iommu_iot_inval()
1395 g_hash_table_unref(iot_cache); in riscv_iommu_iot_inval()
1420 GHashTable *iot_cache; in riscv_iommu_translate() local
1425 iot_cache = g_hash_table_ref(s->iot_cache); in riscv_iommu_translate()
1444 iot = riscv_iommu_iot_lookup(ctx, iot_cache, iotlb->iova, transtag); in riscv_iommu_translate()
1478 riscv_iommu_iot_update(s, iot_cache, iot); in riscv_iommu_translate()
1482 g_hash_table_unref(iot_cache); in riscv_iommu_translate()
2332 s->iot_cache = g_hash_table_new_full(riscv_iommu_iot_hash, in riscv_iommu_instance_init()
2455 g_hash_table_unref(s->iot_cache); in riscv_iommu_unrealize()
2496 g_hash_table_remove_all(s->iot_cache); in riscv_iommu_reset()