Home
last modified time | relevance | path

Searched refs:asid_bitmap (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/misc/habanalabs/common/
Dasid.c14 hdev->asid_bitmap = kcalloc(BITS_TO_LONGS(hdev->asic_prop.max_asid), in hl_asid_init()
15 sizeof(*hdev->asid_bitmap), GFP_KERNEL); in hl_asid_init()
16 if (!hdev->asid_bitmap) in hl_asid_init()
22 set_bit(0, hdev->asid_bitmap); in hl_asid_init()
30 kfree(hdev->asid_bitmap); in hl_asid_fini()
39 found = find_first_zero_bit(hdev->asid_bitmap, in hl_asid_alloc()
44 set_bit(found, hdev->asid_bitmap); in hl_asid_alloc()
56 clear_bit(asid, hdev->asid_bitmap); in hl_asid_free()
Dhabanalabs.h1622 unsigned long *asid_bitmap; member