Searched refs:mmg (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/common/ |
D | memory_mgr.c | 20 struct hl_mmap_mem_buf *hl_mmap_mem_buf_get(struct hl_mem_mgr *mmg, u64 handle) in hl_mmap_mem_buf_get() argument 24 spin_lock(&mmg->lock); in hl_mmap_mem_buf_get() 25 buf = idr_find(&mmg->handles, lower_32_bits(handle >> PAGE_SHIFT)); in hl_mmap_mem_buf_get() 27 spin_unlock(&mmg->lock); in hl_mmap_mem_buf_get() 28 dev_dbg(mmg->dev, "Buff get failed, no match to handle %#llx\n", handle); in hl_mmap_mem_buf_get() 32 spin_unlock(&mmg->lock); in hl_mmap_mem_buf_get() 66 spin_lock(&buf->mmg->lock); in hl_mmap_mem_buf_release() 67 idr_remove(&buf->mmg->handles, lower_32_bits(buf->handle >> PAGE_SHIFT)); in hl_mmap_mem_buf_release() 68 spin_unlock(&buf->mmg->lock); in hl_mmap_mem_buf_release() 86 idr_remove(&buf->mmg->handles, lower_32_bits(buf->handle >> PAGE_SHIFT)); in hl_mmap_mem_buf_remove_idr_locked() [all …]
|
D | command_buffer.c | 266 int hl_cb_create(struct hl_device *hdev, struct hl_mem_mgr *mmg, in hl_cb_create() argument 293 mmg, &cb_behavior, in hl_cb_create() 303 int hl_cb_destroy(struct hl_mem_mgr *mmg, u64 cb_handle) in hl_cb_destroy() argument 308 cb = hl_cb_get(mmg, cb_handle); in hl_cb_destroy() 310 dev_dbg(mmg->dev, "CB destroy failed, no CB was found for handle %#llx\n", in hl_cb_destroy() 319 dev_dbg(mmg->dev, "CB destroy failed, handle %#llx was already destroyed\n", in hl_cb_destroy() 324 rc = hl_mmap_mem_buf_put_handle(mmg, cb_handle); in hl_cb_destroy() 329 dev_dbg(mmg->dev, "CB 0x%llx is destroyed while still in use\n", cb_handle); in hl_cb_destroy() 334 static int hl_cb_info(struct hl_mem_mgr *mmg, in hl_cb_info() argument 340 cb = hl_cb_get(mmg, handle); in hl_cb_info() [all …]
|
D | habanalabs.h | 953 struct hl_mem_mgr *mmg; member 3818 int hl_cb_create(struct hl_device *hdev, struct hl_mem_mgr *mmg, 3821 int hl_cb_destroy(struct hl_mem_mgr *mmg, u64 cb_handle); 3823 struct hl_cb *hl_cb_get(struct hl_mem_mgr *mmg, u64 handle); 4063 void hl_mem_mgr_init(struct device *dev, struct hl_mem_mgr *mmg); 4064 void hl_mem_mgr_fini(struct hl_mem_mgr *mmg, struct hl_mem_mgr_fini_stats *stats); 4065 void hl_mem_mgr_idr_destroy(struct hl_mem_mgr *mmg); 4066 int hl_mem_mgr_mmap(struct hl_mem_mgr *mmg, struct vm_area_struct *vma, 4068 struct hl_mmap_mem_buf *hl_mmap_mem_buf_get(struct hl_mem_mgr *mmg, 4070 int hl_mmap_mem_buf_put_handle(struct hl_mem_mgr *mmg, u64 handle); [all …]
|
D | command_submission.c | 42 struct hl_mem_mgr *mmg; member 1275 struct hl_mem_mgr *mmg, in get_cb_from_cs_chunk() argument 1280 cb = hl_cb_get(mmg, chunk->cb_handle); in get_cb_from_cs_chunk() 3280 rc = validate_and_get_ts_record(data->buf->mmg->dev, ts_buff, data->ts_offset, in ts_get_and_handle_kernel_record() 3329 data->cq_cb = hl_cb_get(data->mmg, data->cq_handle); in _hl_interrupt_ts_reg_ioctl() 3342 data->buf = hl_mmap_mem_buf_get(data->mmg, data->ts_handle); in _hl_interrupt_ts_reg_ioctl() 3402 data->cq_cb = hl_cb_get(data->mmg, data->cq_handle); in _hl_interrupt_wait_ioctl() 3676 wait_intr_data.mmg = &hpriv->mem_mgr; in hl_interrupt_wait_ioctl()
|
D | memory.c | 2180 struct hl_mem_mgr *mmg = &hpriv->mem_mgr; in allocate_timestamps_buffers() local 2184 dev_err(mmg->dev, "Num of elements exceeds Max allowed number (0x%x > 0x%x)\n", in allocate_timestamps_buffers() 2189 buf = hl_mmap_mem_buf_alloc(mmg, &hl_ts_behavior, GFP_KERNEL, &args->num_of_elements); in allocate_timestamps_buffers()
|