Lines Matching refs:cacheline

54 hwsp_alloc(struct intel_timeline *timeline, unsigned int *cacheline)  in hwsp_alloc()  argument
92 *cacheline = __ffs64(hwsp->free_bitmap); in hwsp_alloc()
93 hwsp->free_bitmap &= ~BIT_ULL(*cacheline); in hwsp_alloc()
103 static void __idle_hwsp_free(struct intel_timeline_hwsp *hwsp, int cacheline) in __idle_hwsp_free() argument
114 GEM_BUG_ON(cacheline >= BITS_PER_TYPE(hwsp->free_bitmap)); in __idle_hwsp_free()
115 hwsp->free_bitmap |= BIT_ULL(cacheline); in __idle_hwsp_free()
159 cacheline_alloc(struct intel_timeline_hwsp *hwsp, unsigned int cacheline) in cacheline_alloc() argument
164 GEM_BUG_ON(cacheline >= BIT(CACHELINE_BITS)); in cacheline_alloc()
178 cl->vaddr = page_pack_bits(vaddr, cacheline); in cacheline_alloc()
223 unsigned int cacheline; in intel_timeline_init() local
225 hwsp = hwsp_alloc(timeline, &cacheline); in intel_timeline_init()
229 cl = cacheline_alloc(hwsp->private, cacheline); in intel_timeline_init()
231 __idle_hwsp_free(hwsp->private, cacheline); in intel_timeline_init()
236 timeline->hwsp_offset = cacheline * CACHELINE_BYTES; in intel_timeline_init()
396 unsigned int cacheline; in __intel_timeline_get_seqno() local
420 vma = hwsp_alloc(tl, &cacheline); in __intel_timeline_get_seqno()
428 __idle_hwsp_free(vma->private, cacheline); in __intel_timeline_get_seqno()
432 cl = cacheline_alloc(vma->private, cacheline); in __intel_timeline_get_seqno()
435 __idle_hwsp_free(vma->private, cacheline); in __intel_timeline_get_seqno()
458 tl->hwsp_offset = cacheline * CACHELINE_BYTES; in __intel_timeline_get_seqno()