/linux-master/arch/x86/xen/ |
H A D | p2m.c | 735 unmap[0].handle = map_ops[i].handle; 736 map_ops[i].handle = INVALID_GRANT_HANDLE; 745 unmap[1].handle = kmap_ops[i].handle; 746 kmap_ops[i].handle = INVALID_GRANT_HANDLE;
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | command_buffer.c | 268 bool map_cb, u64 *handle) 298 *handle = buf->handle; 310 dev_dbg(mmg->dev, "CB destroy failed, no CB was found for handle %#llx\n", 315 /* Make sure that CB handle isn't destroyed more than once */ 319 dev_dbg(mmg->dev, "CB destroy failed, handle %#llx was already destroyed\n", 326 return rc; /* Invalid handle */ 335 u64 handle, u32 flags, u32 *usage_cnt, u64 *device_va) 340 cb = hl_cb_get(mmg, handle); 343 "CB info failed, no match to handle 266 hl_cb_create(struct hl_device *hdev, struct hl_mem_mgr *mmg, struct hl_ctx *ctx, u32 cb_size, bool internal_cb, bool map_cb, u64 *handle) argument 334 hl_cb_info(struct hl_mem_mgr *mmg, u64 handle, u32 flags, u32 *usage_cnt, u64 *device_va) argument 369 u64 handle = 0, device_va = 0; local 428 hl_cb_get(struct hl_mem_mgr *mmg, u64 handle) argument [all...] |
H A D | command_submission.c | 515 /* We need to handle tdr only once for the complete staged submission. 760 /* decrement refcount to handle when first staged cs 781 * to handle hw_sob for signal/wait 1048 struct hl_cs_encaps_sig_handle *handle; local 1057 idr_for_each_entry(&mgr->handles, handle, id) 1058 if (handle->cs_seq == ULLONG_MAX) 1059 kref_put(&handle->refcount, hl_encaps_release_handle_and_put_sob_ctx); 1282 dev_err(hdev->dev, "CB handle 0x%llx invalid\n", chunk->cb_handle); 1789 * hl_cs_signal_sob_wraparound_handler: handle SOB value wrapaound case. 1988 hl_cb_destroy(&hdev->kernel_mem_mgr, cb->buf->handle); 2011 struct hl_cs_encaps_sig_handle *handle; local [all...] |
H A D | context.c | 12 static void encaps_handle_do_release(struct hl_cs_encaps_sig_handle *handle, bool put_hw_sob, argument 15 struct hl_encaps_signals_mgr *mgr = &handle->ctx->sig_mgr; 18 hw_sob_put(handle->hw_sob); 21 idr_remove(&mgr->handles, handle->id); 25 hl_ctx_put(handle->ctx); 27 kfree(handle); 32 struct hl_cs_encaps_sig_handle *handle = local 35 encaps_handle_do_release(handle, false, true); 40 struct hl_cs_encaps_sig_handle *handle = local 43 encaps_handle_do_release(handle, tru 48 struct hl_cs_encaps_sig_handle *handle = local 62 struct hl_cs_encaps_sig_handle *handle; local [all...] |
H A D | debugfs.c | 127 cb->buf->handle, cb->ctx->asid, cb->size, 265 seq_puts(s, " virtual address size handle\n"); 281 phys_pg_pack->handle); 313 seq_printf(s, "\nhandle: %u\n", phys_pg_pack->handle);
|
H A D | habanalabs.h | 443 * a CB handle can be provided for jobs on this queue. 907 * @mem_id: memory type identifier, embedded in the handle and used to identify 908 * the memory type by handle. 934 * @handle: the buffer id in mmg handles store 944 u64 handle; member in struct:hl_mmap_mem_buf 960 * @is_handle_destroyed: atomic boolean indicating whether or not the CB handle was destroyed. 1193 * @timestamp_kernel_addr: timestamp handle address, where to set timestamp 1542 * @handle_eqe: handle event queue entry (IRQ) from CPU-CP. 1890 * @sig_mgr: encaps signals handle manager. 1907 * @handle 1935 u32 handle; member in struct:hl_ctx 2169 u64 handle; member in struct:hl_vm_hash_node 2220 u32 handle; member in struct:hl_vm_phys_pg_pack [all...] |
H A D | hw_queue.c | 454 struct hl_cs_encaps_sig_handle *handle = cs->encaps_sig_hdl; local 457 cs_cmpl->hw_sob = handle->hw_sob; 471 cs_cmpl->sob_val = handle->pre_sob_val + offset; 490 /* use the encaps signal handle stored earlier in the flow 492 * signals handle 496 dev_dbg(hdev->dev, "Wait for encaps signals handle, qidx(%u), CS sequence(%llu), sob val: 0x%x, offset: %u\n", 599 /* store the handle and set encaps signal indication, 622 dev_err(hdev->dev, "encaps handle id(%u) wasn't found!\n",
|
H A D | memory.c | 27 struct hl_mem_in *args, u64 *handle); 81 * @ret_handle: result handle. 85 * - Return unique handle for later map/unmap/free. 96 int handle, rc; local 174 handle = idr_alloc(&vm->phys_pg_pack_handles, phys_pg_pack, 1, 0, 178 if (handle < 0) { 179 dev_err(hdev->dev, "Failed to get handle for page\n"); 187 phys_pg_pack->handle = handle; 192 *ret_handle = handle; 358 u32 handle = args->free.handle; local 1055 u32 handle = 0, va_block_align; local 1408 map_block(struct hl_device *hdev, u64 address, u64 *handle, u32 *size) argument 2178 allocate_timestamps_buffers(struct hl_fpriv *hpriv, struct hl_mem_in *args, u64 *handle) argument 2206 u32 handle = 0, block_size; local [all...] |
H A D | memory_mgr.c | 15 * @handle: requested buffer handle 20 struct hl_mmap_mem_buf *hl_mmap_mem_buf_get(struct hl_mem_mgr *mmg, u64 handle) argument 25 buf = idr_find(&mmg->handles, lower_32_bits(handle >> PAGE_SHIFT)); 28 dev_dbg(mmg->dev, "Buff get failed, no match to handle %#llx\n", handle); 67 idr_remove(&buf->mmg->handles, lower_32_bits(buf->handle >> PAGE_SHIFT)); 74 * hl_mmap_mem_buf_remove_idr_locked - remove handle from idr 78 * Internal function, used for kref put by handle. Assumes mmg lock is taken. 86 idr_remove(&buf->mmg->handles, lower_32_bits(buf->handle >> PAGE_SHIF 113 hl_mmap_mem_buf_put_handle(struct hl_mem_mgr *mmg, u64 handle) argument 235 u64 handle; local [all...] |
/linux-master/drivers/accel/habanalabs/gaudi/ |
H A D | gaudi.c | 1037 hl_cb_destroy(&hdev->kernel_mem_mgr, cb->buf->handle); 1271 /* use the encaps signal handle store earlier in the flow 1273 * signals handle 1314 struct hl_cs_encaps_sig_handle *handle = cs->encaps_sig_hdl; local 1328 cs_cmpl->hw_sob = handle->hw_sob; 1509 hl_cb_destroy(&hdev->kernel_mem_mgr, cb->buf->handle); 4037 /* Set device to handle FLR by H/W as we will put the device CPU to 5340 u64 handle; local 5359 &handle); 5368 parser->patched_cb = hl_cb_get(&hdev->kernel_mem_mgr, handle); 5425 u64 handle; local [all...] |
/linux-master/drivers/accel/habanalabs/goya/ |
H A D | goya.c | 3986 u64 handle; local 4001 &handle); 4010 parser->patched_cb = hl_cb_get(&hdev->kernel_mem_mgr, handle); 4013 dev_crit(hdev->dev, "DMA CB handle invalid 0x%llx\n", handle); 4053 hl_cb_destroy(&hdev->kernel_mem_mgr, handle); 4061 u64 handle; local 4071 &handle); 4078 parser->patched_cb = hl_cb_get(&hdev->kernel_mem_mgr, handle); 4081 dev_crit(hdev->dev, "DMA CB handle invali [all...] |
/linux-master/drivers/accel/ivpu/ |
H A D | ivpu_gem.c | 281 ret = drm_gem_handle_create(file, &bo->base.base, &args->handle); 361 obj = drm_gem_object_lookup(file, args->handle); 387 obj = drm_gem_object_lookup(file, args->handle);
|
/linux-master/drivers/accel/qaic/ |
H A D | qaic.h | 48 int handle; member in struct:qaic_user 82 * Request ID of next memory handle that goes in request queue. One 83 * memory handle can enqueue more than one request elements, all 84 * this requests that belong to same memory handle have same request ID 94 /* Head of list where each node is a memory handle queued in request queue */ 203 u32 handle; member in struct:qaic_bo 255 /* Pointer to the parent BO handle */
|
H A D | qaic_control.c | 58 __le32 handle; /* unique id to track the resources consumed */ member in struct:wire_msg_hdr 142 __le32 handle; member in struct:wire_trans_terminate_to_dev 888 * expected behaviour, user is expected to handle this situation. 1212 msg->hdr.handle = cpu_to_le32(usr->handle); 1215 msg->hdr.handle = 0; 1520 trans->handle = cpu_to_le32(usr->handle); 1528 msg->hdr.handle = cpu_to_le32(usr->handle); [all...] |
H A D | qaic_data.c | 67 * A request ID is assigned to each memory handle going in DMA queue. 68 * As a single memory handle can enqueue multiple elements in DMA queue 138 /* Request ID of the memory handle whose DMA transaction is completed */ 478 * multiple times. Use SG table to handle multiple allocated pages. 725 ret = drm_gem_handle_create(file_priv, obj, &args->handle); 729 bo->handle = args->handle; 768 obj = drm_gem_object_lookup(file_priv, args->handle); 995 obj = drm_gem_object_lookup(file_priv, args->hdr.handle); 1185 is_partial ? pexec[i].handle [all...] |
H A D | qaic_drv.c | 99 ida_free(&qaic_usrs, usr->handle); 123 usr->handle = ida_alloc(&qaic_usrs, GFP_KERNEL); 124 if (usr->handle < 0) { 125 ret = usr->handle; 147 ida_free(&qaic_usrs, usr->handle); 172 if (qdev->dbc[i].usr && qdev->dbc[i].usr->handle == usr->handle)
|
/linux-master/drivers/acpi/ |
H A D | ac.c | 39 static void acpi_ac_notify(acpi_handle handle, u32 event, void *data); 78 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, 81 acpi_handle_info(ac->device->handle, 120 static void acpi_ac_notify(acpi_handle handle, u32 event, void *data) argument 127 acpi_handle_debug(adev->handle, "Unsupported event [0x%x]\n",
|
H A D | acpi_extlog.c | 196 acpi_handle handle; local 201 if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle))) 203 if (!acpi_check_dsm(handle, &guid, EXTLOG_DSM_REV, 1 << EXTLOG_FN_ADDR)) 205 obj = acpi_evaluate_dsm_typed(handle, &guid, EXTLOG_DSM_REV,
|
H A D | acpi_ipmi.c | 36 acpi_handle handle; member in struct:acpi_ipmi_device 55 * handle set. IPMI messages passed from the ACPI codes are sent 114 ipmi_dev_alloc(int iface, struct device *dev, acpi_handle handle) argument 128 ipmi_device->handle = handle; 442 acpi_handle handle; local 450 handle = smi_data.addr_info.acpi_info.acpi_handle; 451 if (!handle) 454 ipmi_device = ipmi_dev_alloc(iface, smi_data.dev, handle); 463 * if the corresponding ACPI handle i [all...] |
H A D | acpi_memhotplug.c | 115 status = acpi_walk_resources(mem_device->device->handle, METHOD_NAME__CRS, 130 if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, 172 acpi_handle handle = mem_device->device->handle; local 179 node = acpi_get_node(handle);
|
H A D | acpi_pad.c | 353 static int acpi_pad_pur(acpi_handle handle) argument 359 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_PUR", NULL, &buffer))) 377 static void acpi_pad_handle_notify(acpi_handle handle) argument 387 num_cpus = acpi_pad_pur(handle); 394 acpi_evaluate_ost(handle, ACPI_PROCESSOR_AGGREGATOR_NOTIFY, 0, ¶m); 398 static void acpi_pad_notify(acpi_handle handle, u32 event, argument 405 acpi_pad_handle_notify(handle); 423 status = acpi_install_notify_handler(adev->handle, 440 acpi_remove_notify_handler(adev->handle,
|
H A D | acpi_platform.c | 131 acpi_walk_resources(adev->handle, METHOD_NAME__CRS, 182 set_dev_node(&pdev->dev, acpi_get_node(adev->handle));
|
H A D | acpi_processor.c | 172 acpi_handle handle; local 174 status = acpi_get_handle(NULL, "\\_SB", &handle); 178 if (acpi_has_method(handle, "PCCH")) 196 status = acpi_evaluate_integer(pr->handle, "_STA", NULL, &sta); 203 ret = acpi_map_cpu(pr->handle, pr->phys_id, pr->acpi_id, &pr->id); 257 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); 270 status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID, 293 pr->phys_id = acpi_get_phys_id(pr->handle, device_declaration, 313 if (acpi_has_method(pr->handle, "_PCT")) 362 status = acpi_evaluate_integer(pr->handle, "_SU 502 processor_physically_present(acpi_handle handle) argument 552 acpi_processor_osc(acpi_handle handle, u32 lvl, void *context, void **rv) argument 699 acpi_processor_ids_walk(acpi_handle handle, u32 lvl, void *context, void **rv) argument 813 acpi_processor_evaluate_cst(acpi_handle handle, u32 cpu, struct acpi_processor_power *info) argument [all...] |
H A D | acpi_tad.c | 71 acpi_handle handle = ACPI_HANDLE(dev); local 94 status = acpi_evaluate_integer(handle, "_SRT", &arg_list, &retval); 106 acpi_handle handle = ACPI_HANDLE(dev); local 115 status = acpi_evaluate_object(handle, "_GRT", NULL, &output); 253 acpi_handle handle = ACPI_HANDLE(dev); local 270 status = acpi_evaluate_integer(handle, method, &arg_list, &retval); 303 acpi_handle handle = ACPI_HANDLE(dev); local 318 status = acpi_evaluate_integer(handle, method, &arg_list, &retval); 359 acpi_handle handle = ACPI_HANDLE(dev); local 374 status = acpi_evaluate_integer(handle, "_CW 400 acpi_handle handle = ACPI_HANDLE(dev); local 560 acpi_handle handle = ACPI_HANDLE(dev); local 587 acpi_handle handle = ACPI_HANDLE(dev); local [all...] |
H A D | acpi_video.c | 80 static void acpi_video_bus_notify(acpi_handle handle, u32 event, void *data); 207 static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data); 308 acpi_video_device_lcd_query_levels(acpi_handle handle, argument 318 status = acpi_evaluate_object(handle, "_BCL", NULL, &buffer); 323 acpi_handle_info(handle, "Invalid _BCL data\n"); 344 status = acpi_execute_simple_method(device->dev->handle, 347 acpi_handle_info(device->dev->handle, "_BCM evaluation failed\n"); 361 acpi_handle_info(device->dev->handle, "Current brightness invalid\n"); 567 status = acpi_evaluate_integer(device->dev->handle, buf, 591 acpi_handle_info(device->dev->handle, 1528 acpi_video_bus_notify(acpi_handle handle, u32 event, void *data) argument 1591 acpi_video_device_notify(acpi_handle handle, u32 event, void *data) argument 1681 acpi_video_bus_match(acpi_handle handle, u32 level, void *context, void **return_value) argument [all...] |