struct intel_timeline_hwsp {
struct intel_gt *gt;
- struct i915_gt_timelines *gt_timelines;
+ struct intel_gt_timelines *gt_timelines;
struct list_head free_link;
struct i915_vma *vma;
u64 free_bitmap;
static struct i915_vma *
hwsp_alloc(struct intel_timeline *timeline, unsigned int *cacheline)
{
- struct i915_gt_timelines *gt = &timeline->gt->timelines;
+ struct intel_gt_timelines *gt = &timeline->gt->timelines;
struct intel_timeline_hwsp *hwsp;
BUILD_BUG_ON(BITS_PER_TYPE(u64) * CACHELINE_BYTES > PAGE_SIZE);
static void __idle_hwsp_free(struct intel_timeline_hwsp *hwsp, int cacheline)
{
- struct i915_gt_timelines *gt = hwsp->gt_timelines;
+ struct intel_gt_timelines *gt = hwsp->gt_timelines;
unsigned long flags;
spin_lock_irqsave(>->hwsp_lock, flags);
static void timelines_init(struct intel_gt *gt)
{
- struct i915_gt_timelines *timelines = >->timelines;
+ struct intel_gt_timelines *timelines = >->timelines;
mutex_init(&timelines->mutex);
INIT_LIST_HEAD(&timelines->active_list);
static void timeline_add_to_active(struct intel_timeline *tl)
{
- struct i915_gt_timelines *gt = &tl->gt->timelines;
+ struct intel_gt_timelines *gt = &tl->gt->timelines;
mutex_lock(>->mutex);
list_add(&tl->link, >->active_list);
static void timeline_remove_from_active(struct intel_timeline *tl)
{
- struct i915_gt_timelines *gt = &tl->gt->timelines;
+ struct intel_gt_timelines *gt = &tl->gt->timelines;
mutex_lock(>->mutex);
list_del(&tl->link);
static void timelines_park(struct intel_gt *gt)
{
- struct i915_gt_timelines *timelines = >->timelines;
+ struct intel_gt_timelines *timelines = >->timelines;
struct intel_timeline *timeline;
mutex_lock(&timelines->mutex);
static void timelines_fini(struct intel_gt *gt)
{
- struct i915_gt_timelines *timelines = >->timelines;
+ struct intel_gt_timelines *timelines = >->timelines;
GEM_BUG_ON(!list_empty(&timelines->active_list));
GEM_BUG_ON(!list_empty(&timelines->hwsp_free_list));