Home
last modified time | relevance | path

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

/linux/drivers/misc/sgi-gru/
H A 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)))
H A Dgru.h34 #define GRU_GSEG_PAGESIZE (256 * 1024UL) /* ZZZ 2MB ??? */ macro
H A 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()
H A Dgrutables.h385 #define TSID(a, v) (((a) - (v)->vm_start) / GRU_GSEG_PAGESIZE)
387 (gts)->ts_tsid * GRU_GSEG_PAGESIZE)
H A Dgrufile.c100 if (vma->vm_start & (GRU_GSEG_PAGESIZE - 1) || in gru_file_mmap()
101 vma->vm_end & (GRU_GSEG_PAGESIZE - 1)) in gru_file_mmap()
H A Dgru_instructions.h694 return (void *)((unsigned long)p & ~(GRU_GSEG_PAGESIZE - 1)); in gru_get_gseg_pointer()
724 return ((unsigned long)vaddr & (GRU_GSEG_PAGESIZE - 1)) - GRU_DS_BASE; in gru_get_tri()
H A Dgrumain.c545 zap_vma_ptes(gts->ts_vma, UGRUADDR(gts), GRU_GSEG_PAGESIZE); in gru_unload_context()
960 remap_pfn_range(vma, vaddr & ~(GRU_GSEG_PAGESIZE - 1), in gru_fault()
961 paddr >> PAGE_SHIFT, GRU_GSEG_PAGESIZE, in gru_fault()