Home
last modified time | relevance | path

Searched refs:GRU_GSEG_PAGESIZE (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/misc/sgi-gru/
Dgrulib.h62 #define CONTEXT_WINDOW_BYTES(th) (GRU_GSEG_PAGESIZE * (th))
63 #define THREAD_POINTER(p, th) (p + GRU_GSEG_PAGESIZE * (th))
64 #define GSEG_START(cb) ((void *)((unsigned long)(cb) & ~(GRU_GSEG_PAGESIZE - 1)))
Dgru.h34 #define GRU_GSEG_PAGESIZE (256 * 1024UL) macro
36 #define GRU_GSEG_PAGESIZE (256 * 1024UL) /* ZZZ 2MB ??? */ macro
Dgruhandles.h48 #define GSEG_BASE(a) ((a) & ~(GRU_GSEG_PAGESIZE - 1))
138 return (((unsigned long)cb - GRU_CB_BASE) % GRU_GSEG_PAGESIZE) / in get_cb_number()
Dgrutables.h384 #define TSID(a, v) (((a) - (v)->vm_start) / GRU_GSEG_PAGESIZE)
386 (gts)->ts_tsid * GRU_GSEG_PAGESIZE)
Dgru_instructions.h704 return (void *)((unsigned long)p & ~(GRU_GSEG_PAGESIZE - 1)); in gru_get_gseg_pointer()
734 return ((unsigned long)vaddr & (GRU_GSEG_PAGESIZE - 1)) - GRU_DS_BASE; in gru_get_tri()
Dgrufile.c99 if (vma->vm_start & (GRU_GSEG_PAGESIZE - 1) || in gru_file_mmap()
100 vma->vm_end & (GRU_GSEG_PAGESIZE - 1)) in gru_file_mmap()
Dgrumain.c549 zap_vma_ptes(gts->ts_vma, UGRUADDR(gts), GRU_GSEG_PAGESIZE); in gru_unload_context()
953 remap_pfn_range(vma, vaddr & ~(GRU_GSEG_PAGESIZE - 1), in gru_fault()
954 paddr >> PAGE_SHIFT, GRU_GSEG_PAGESIZE, in gru_fault()