Lines Matching +full:0 +full:xe
25 struct xe_device *xe;
35 struct xe_device *xe = to_xe_device(drm);
36 struct xe_tile *tile = xe_device_get_root_tile(xe);
43 drm_dbg_kms(&xe->drm,
48 xe_pm_runtime_get(xe);
51 drm_dbg_kms(&xe->drm,
62 xe_pm_runtime_put(xe);
67 static int intel_hdcp_gsc_initialize_message(struct xe_device *xe,
72 int ret = 0;
75 bo = xe_bo_create_pin_map(xe, xe_device_get_root_tile(xe), NULL, PAGE_SIZE * 2,
81 drm_err(&xe->drm, "Failed to allocate bo for HDCP streaming command!\n");
88 xe_map_memset(xe, &bo->vmap, 0, 0, bo->size);
93 gsc_context->xe = xe;
101 struct xe_device *xe = to_xe_device(drm);
113 ret = intel_hdcp_gsc_initialize_message(xe, gsc_context);
115 drm_err(&xe->drm, "Could not initialize gsc_context\n");
132 static int xe_gsc_send_sync(struct xe_device *xe,
145 drm_err(&xe->drm, "failed to send gsc HDCP msg (%d)\n", ret);
149 if (xe_gsc_check_and_update_pending(xe, map, 0, map, addr_out_off))
152 ret = xe_gsc_read_out_header(xe, map, addr_out_off,
162 struct xe_device *xe = gsc_context->xe;
166 u32 addr_out_off, addr_in_wr_off = 0;
167 int ret, tries = 0;
179 xe_pm_runtime_get_noresume(xe);
180 addr_in_wr_off = xe_gsc_emit_header(xe, &gsc_context->hdcp_bo->vmap,
183 xe_map_memcpy_to(xe, &gsc_context->hdcp_bo->vmap, addr_in_wr_off,
192 ret = xe_gsc_send_sync(xe, gsc_context, msg_size_in, msg_size_out,
206 xe_map_memcpy_from(xe, msg_out, &gsc_context->hdcp_bo->vmap,
211 xe_pm_runtime_put(xe);