Lines Matching defs:xe

142 	struct xe_device *xe = ct_to_xe(ct);
150 ct->g2h_wq = alloc_ordered_workqueue("xe-g2h-wq", 0);
160 err = drmm_mutex_init(&xe->drm, &ct->lock);
166 bo = xe_managed_bo_create_pin_map(xe, tile, guc_ct_size(),
175 err = drmm_add_action_or_reset(&xe->drm, guc_ct_fini, ct);
192 static void guc_ct_ctb_h2g_init(struct xe_device *xe, struct guc_ctb *h2g,
205 xe_map_memset(xe, &h2g->desc, 0, 0, sizeof(struct guc_ct_buffer_desc));
210 static void guc_ct_ctb_g2h_init(struct xe_device *xe, struct guc_ctb *g2h,
223 xe_map_memset(xe, &g2h->desc, 0, 0, sizeof(struct guc_ct_buffer_desc));
325 struct xe_device *xe = ct_to_xe(ct);
331 guc_ct_ctb_h2g_init(xe, &ct->ctbs.h2g, &ct->bo->vmap);
332 guc_ct_ctb_g2h_init(xe, &ct->ctbs.g2h, &ct->bo->vmap);
468 struct xe_device *xe = ct_to_xe(ct);
485 xe_map_memset(xe, &map, 0, 0,
489 desc_write(xe, h2g, tail, h2g->info.tail);
519 xe_map_memcpy_to(xe, &map, 0, cmd, H2G_CT_HEADERS * sizeof(u32));
520 xe_map_memcpy_to(xe, &map, H2G_CT_HEADERS * sizeof(u32), action, len * sizeof(u32));
521 xe_device_wmb(xe);
528 desc_write(xe, h2g, tail, h2g->info.tail);
531 desc_read(xe, h2g, head), h2g->info.tail);
679 struct xe_device *xe = ct_to_xe(ct);
683 desc_read(xe, g2h, tail),
1087 struct xe_device *xe = ct_to_xe(ct);
1110 tail = desc_read(xe, g2h, tail);
1119 xe_map_memcpy_from(xe, msg, &g2h->cmds, sizeof(u32) * g2h->info.head,
1137 xe_map_memcpy_from(xe, msg + 1,
1140 xe_map_memcpy_from(xe, msg + 1 + avail_til_wrap,
1144 xe_map_memcpy_from(xe, msg + 1,
1167 desc_write(xe, g2h, head, g2h->info.head);
1214 struct xe_device *xe = ct_to_xe(ct);
1231 xe_pm_runtime_put(xe);
1310 static void guc_ctb_snapshot_capture(struct xe_device *xe, struct guc_ctb *ctb,
1316 xe_map_memcpy_from(xe, &snapshot->desc, &ctb->desc, 0,
1324 drm_err(&xe->drm, "Skipping CTB commands snapshot. Only CTB info will be available.\n");
1336 snapshot->cmds[head] = xe_map_rd(xe, &map, 0, u32);
1398 struct xe_device *xe = ct_to_xe(ct);
1405 drm_err(&xe->drm, "Skipping CTB snapshot entirely.\n");
1412 guc_ctb_snapshot_capture(xe, &ct->ctbs.h2g,
1414 guc_ctb_snapshot_capture(xe, &ct->ctbs.g2h,