Lines Matching refs:cacheline

49 hwsp_alloc(struct intel_timeline *timeline, unsigned int *cacheline)  in hwsp_alloc()  argument
89 *cacheline = __ffs64(hwsp->free_bitmap); in hwsp_alloc()
90 hwsp->free_bitmap &= ~BIT_ULL(*cacheline); in hwsp_alloc()
100 static void __idle_hwsp_free(struct intel_timeline_hwsp *hwsp, int cacheline) in __idle_hwsp_free() argument
111 GEM_BUG_ON(cacheline >= BITS_PER_TYPE(hwsp->free_bitmap)); in __idle_hwsp_free()
112 hwsp->free_bitmap |= BIT_ULL(cacheline); in __idle_hwsp_free()
165 cacheline_alloc(struct intel_timeline_hwsp *hwsp, unsigned int cacheline) in cacheline_alloc() argument
170 GEM_BUG_ON(cacheline >= BIT(CACHELINE_BITS)); in cacheline_alloc()
184 cl->vaddr = page_pack_bits(vaddr, cacheline); in cacheline_alloc()
237 unsigned int cacheline; in intel_timeline_init() local
239 hwsp = hwsp_alloc(timeline, &cacheline); in intel_timeline_init()
243 cl = cacheline_alloc(hwsp->private, cacheline); in intel_timeline_init()
245 __idle_hwsp_free(hwsp->private, cacheline); in intel_timeline_init()
250 timeline->hwsp_offset = cacheline * CACHELINE_BYTES; in intel_timeline_init()
447 unsigned int cacheline; in __intel_timeline_get_seqno() local
474 vma = hwsp_alloc(tl, &cacheline); in __intel_timeline_get_seqno()
482 __idle_hwsp_free(vma->private, cacheline); in __intel_timeline_get_seqno()
486 cl = cacheline_alloc(vma->private, cacheline); in __intel_timeline_get_seqno()
489 __idle_hwsp_free(vma->private, cacheline); in __intel_timeline_get_seqno()
514 tl->hwsp_offset = cacheline * CACHELINE_BYTES; in __intel_timeline_get_seqno()