Lines Matching full:rb
17 struct mmu_rb_node rb; member
74 return node->rb.handler->mn.mm; in mm_from_sdma_node()
111 return container_of(rb_node, struct sdma_mmu_node, rb); in find_system_node()
151 node->rb.addr = start_address; in pin_system_pages()
152 node->rb.len = length; in pin_system_pages()
181 kref_init(&node->rb.refcount); in add_system_pinning()
184 kref_get(&node->rb.refcount); in add_system_pinning()
189 ret = hfi1_mmu_rb_insert(pq->handler, &node->rb); in add_system_pinning()
239 if (node->rb.addr <= start) { in get_system_cache_entry()
248 SDMA_DBG(req, "prepend: node->rb.addr %lx, node->rb.refcount %d", in get_system_cache_entry()
249 node->rb.addr, kref_read(&node->rb.refcount)); in get_system_cache_entry()
250 prepend_len = node->rb.addr - start; in get_system_cache_entry()
256 kref_put(&node->rb.refcount, hfi1_mmu_rb_release); in get_system_cache_entry()
279 kref_put(&node->rb.refcount, hfi1_mmu_rb_release); in sdma_mmu_rb_node_put()
301 page_index = PFN_DOWN(start - cache_entry->rb.addr); in add_mapping_to_sdma_packet()
366 from_this_cache_entry = cache_entry->rb.len - (start - cache_entry->rb.addr); in add_system_iovec_to_sdma_packet()
378 kref_put(&cache_entry->rb.refcount, hfi1_mmu_rb_release); in add_system_iovec_to_sdma_packet()
447 * Return 1 to remove the node from the rb tree and call the remove op.
449 * Called with the rb tree lock held.
455 container_of(mnode, struct sdma_mmu_node, rb); in sdma_rb_evict()
471 container_of(mnode, struct sdma_mmu_node, rb); in sdma_rb_remove()