Lines Matching full:behavior
48 if (buf->behavior->release) in hl_mmap_mem_buf_destroy()
49 buf->behavior->release(buf); in hl_mmap_mem_buf_destroy()
141 * @behavior: behavior object describing this buffer polymorphic behavior
143 * @args: additional args passed to behavior->alloc
150 struct hl_mmap_mem_buf_behavior *behavior, gfp_t gfp, in hl_mmap_mem_buf_alloc() argument
166 behavior->topic, rc); in hl_mmap_mem_buf_alloc()
171 buf->behavior = behavior; in hl_mmap_mem_buf_alloc()
172 buf->handle = (((u64)rc | buf->behavior->mem_id) << PAGE_SHIFT); in hl_mmap_mem_buf_alloc()
175 rc = buf->behavior->alloc(buf, gfp, args); in hl_mmap_mem_buf_alloc()
178 behavior->topic, rc); in hl_mmap_mem_buf_alloc()
227 * @args: additional args passed to behavior->mmap
258 buf->behavior->topic, user_mem_size, buf->mappable_size);
271 buf->behavior->topic, vma->vm_start);
280 buf->behavior->topic);
291 rc = buf->behavior->mmap(buf, vma, args);
339 topic = buf->behavior->topic;