Lines Matching defs:chunk
1381 srpt_mr_t *chunk;
1397 chunk = srpt_vmem_chunk_alloc(result, chunksize);
1399 avl_add(&result->svp_mr_list, chunk);
1403 (void*)(uintptr_t)chunk->mr_va,
1404 (size_t)chunk->mr_len, SRPT_MR_QUANTSIZE,
1413 srpt_mr_t *chunk;
1419 chunk = avl_first(&vm_pool->svp_mr_list);
1421 while (chunk != NULL) {
1422 next = AVL_NEXT(&vm_pool->svp_mr_list, chunk);
1423 avl_remove(&vm_pool->svp_mr_list, chunk);
1424 srpt_vmem_chunk_free(vm_pool, chunk);
1425 chunk = next;
1470 * Note that the size of the chunk we got
1472 * length returned in the chunk itself.
1503 srpt_mr_t chunk;
1510 chunk.mr_va = mrva;
1511 nearest = avl_find(&vm_pool->svp_mr_list, &chunk, &where);
1519 /* Verify this chunk contains the specified address range */
1540 void *chunk = NULL;
1543 while ((chunk == NULL) && (chunksize >= SRPT_MIN_CHUNKSIZE)) {
1544 chunk = kmem_alloc(chunksize, KM_NOSLEEP);
1545 if (chunk == NULL) {
1547 "failed to alloc chunk of %d, trying %d",
1553 if (chunk != NULL) {
1554 result = srpt_reg_mem(vm_pool, (ib_vaddr_t)(uintptr_t)chunk,
1558 "chunk registration failed");
1559 kmem_free(chunk, chunksize);
1569 void *chunk = (void *)(uintptr_t)mr->mr_va;
1573 kmem_free(chunk, chunksize);