Searched refs:va_block (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/drivers/misc/habanalabs/common/ |
D | command_buffer.c | 20 struct hl_vm_va_block *va_block, *tmp; in cb_map_mem() local 53 va_block = kzalloc(sizeof(*va_block), GFP_KERNEL); in cb_map_mem() 54 if (!va_block) { in cb_map_mem() 60 va_block->start = virt_addr; in cb_map_mem() 61 va_block->end = virt_addr + page_size; in cb_map_mem() 62 va_block->size = page_size; in cb_map_mem() 63 list_add_tail(&va_block->node, &cb->va_block_list); in cb_map_mem() 70 list_for_each_entry(va_block, &cb->va_block_list, node) { in cb_map_mem() 71 rc = hl_mmu_map(ctx, va_block->start, bus_addr, va_block->size, in cb_map_mem() 72 list_is_last(&va_block->node, in cb_map_mem() [all …]
|
D | memory.c | 358 struct hl_vm_va_block *va_block, *tmp; in clear_va_list_locked() local 360 list_for_each_entry_safe(va_block, tmp, va_list, node) { in clear_va_list_locked() 361 list_del(&va_block->node); in clear_va_list_locked() 362 kfree(va_block); in clear_va_list_locked() 381 struct hl_vm_va_block *va_block; in print_va_list_locked() local 385 list_for_each_entry(va_block, va_list, node) in print_va_list_locked() 388 va_block->start, va_block->end, va_block->size); in print_va_list_locked() 406 struct list_head *va_list, struct hl_vm_va_block *va_block) in merge_va_blocks_locked() argument 410 prev = list_prev_entry(va_block, node); in merge_va_blocks_locked() 411 if (&prev->node != va_list && prev->end + 1 == va_block->start) { in merge_va_blocks_locked() [all …]
|