Lines Matching defs:xe

58 size_t xe_lrc_size(struct xe_device *xe, enum xe_engine_class class)
62 if (GRAPHICS_VER(xe) >= 20)
68 if (GRAPHICS_VER(xe) >= 20)
516 static const u8 *reg_offsets(struct xe_device *xe, enum xe_engine_class class)
519 if (GRAPHICS_VER(xe) >= 20)
521 else if (GRAPHICS_VERx100(xe) >= 1270)
523 else if (GRAPHICS_VERx100(xe) >= 1255)
525 else if (GRAPHICS_VERx100(xe) >= 1250)
530 if (GRAPHICS_VER(xe) >= 20)
535 if (GRAPHICS_VER(xe) >= 20)
537 else if (GRAPHICS_VERx100(xe) >= 1255)
555 struct xe_device *xe = gt_to_xe(hwe->gt);
557 if (!IS_SRIOV_VF(xe) || !xe_device_has_memirq(xe))
575 struct xe_device *xe = gt_to_xe(hwe->gt);
577 if (GRAPHICS_VERx100(xe) >= 1250)
610 static size_t lrc_reg_size(struct xe_device *xe)
612 if (GRAPHICS_VERx100(xe) >= 1250)
618 size_t xe_lrc_skip_size(struct xe_device *xe)
620 return LRC_PPHWSP_SIZE + lrc_reg_size(xe);
676 struct xe_device *xe = lrc_to_xe(lrc);
681 return xe_map_read32(xe, &map);
686 struct xe_device *xe = lrc_to_xe(lrc);
691 xe_map_write32(xe, &map, val);
696 struct xe_device *xe = gt_to_xe(hwe->gt);
700 data = kzalloc(xe_lrc_size(xe, hwe->class), GFP_KERNEL);
706 set_offsets(regs, reg_offsets(xe, hwe->class), hwe);
730 struct xe_device *xe = gt_to_xe(gt);
742 lrc->bo = xe_bo_create_pin_map(xe, tile, vm,
743 ring_size + xe_lrc_size(xe, hwe->class),
772 xe_map_memset(xe, &map, 0, 0, LRC_PPHWSP_SIZE); /* PPHWSP */
773 xe_map_memcpy_to(xe, &map, LRC_PPHWSP_SIZE,
775 xe_lrc_size(xe, hwe->class) - LRC_PPHWSP_SIZE);
777 xe_map_memcpy_to(xe, &map, 0, init_data,
778 xe_lrc_size(xe, hwe->class));
794 if (xe->info.has_asid && vm)
807 if (GRAPHICS_VERx100(xe) < 1250) {
859 struct xe_device *xe = lrc_to_xe(lrc);
862 xe_map_memcpy_to(xe, &ring, 0, data, size);
868 struct xe_device *xe = lrc_to_xe(lrc);
873 xe_assert(xe, IS_ALIGNED(size, 4));
878 xe_assert(xe, lrc->ring.tail < lrc->ring.size);
1299 struct xe_device *xe = gt_to_xe(gt);
1310 switch (GRAPHICS_VERx100(xe)) {
1318 GRAPHICS_VER(xe), GRAPHICS_VERx100(xe) % 100);
1338 if (GRAPHICS_VER(xe) >= 20 &&