Lines Matching +full:base +full:- +full:64

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
18 #define GRU_MCS_BASE (64 * 1024 * 1024)
36 #define GRU_HANDLE_BYTES 64
39 /* Base addresses of handles */
48 #define GSEG_BASE(a) ((a) & ~(GRU_GSEG_PAGESIZE - 1))
76 #define GSEGPOFF(h) ((h) & (GRU_SIZE - 1))
79 #define GRUBASE(h) ((void *)((unsigned long)(h) & ~(GRU_SIZE - 1)))
84 (((h) & (GRU_HANDLE_STRIDE - 1)) == 0))
88 static inline void *get_gseg_base_address(void *base, int ctxnum) in get_gseg_base_address() argument
90 return (void *)(base + GRU_GSEG0_BASE + GRU_GSEG_STRIDE * ctxnum); in get_gseg_base_address()
93 static inline void *get_gseg_base_address_cb(void *base, int ctxnum, int line) in get_gseg_base_address_cb() argument
95 return (void *)(get_gseg_base_address(base, ctxnum) + in get_gseg_base_address_cb()
99 static inline void *get_gseg_base_address_ds(void *base, int ctxnum, int line) in get_gseg_base_address_ds() argument
101 return (void *)(get_gseg_base_address(base, ctxnum) + GRU_DS_BASE + in get_gseg_base_address_ds()
105 static inline struct gru_tlb_fault_map *get_tfm(void *base, int ctxnum) in get_tfm() argument
107 return (struct gru_tlb_fault_map *)(base + GRU_TFM_BASE + in get_tfm()
111 static inline struct gru_tlb_global_handle *get_tgh(void *base, int ctxnum) in get_tgh() argument
113 return (struct gru_tlb_global_handle *)(base + GRU_TGH_BASE + in get_tgh()
117 static inline struct gru_control_block_extended *get_cbe(void *base, int ctxnum) in get_cbe() argument
119 return (struct gru_control_block_extended *)(base + GRU_CBE_BASE + in get_cbe()
123 static inline struct gru_tlb_fault_handle *get_tfh(void *base, int ctxnum) in get_tfh() argument
125 return (struct gru_tlb_fault_handle *)(base + GRU_TFH_BASE + in get_tfh()
129 static inline struct gru_context_configuration_handle *get_cch(void *base, in get_cch() argument
132 return (struct gru_context_configuration_handle *)(base + in get_cch()
138 return (((unsigned long)cb - GRU_CB_BASE) % GRU_GSEG_PAGESIZE) / in get_cb_number()
159 cbe = (unsigned long)tfh - GRU_TFH_BASE + GRU_CBE_BASE; in gru_tfh_to_cbe()
179 * TGH - TLB Global Handle
199 unsigned long vaddr:64; /* DW 1 */
254 * TFH - TLB Global Handle
259 unsigned int cmd:1; /* DW 0 - low 32*/
274 unsigned int indexway:12; /* DW 0 - high 32 */
280 unsigned long missvaddr:64; /* DW 1 */
294 unsigned long fillvaddr:64; /* DW 4 */
375 unsigned int asid[8]; /* DW 2 - 5 */
376 unsigned short sizeavail[8]; /* DW 6 - 7 */
416 * CBE - Control Block Extended
421 unsigned int reserved0:1; /* DW 0 - low */
431 unsigned int idef2cpy:22; /* DW 0 - high */
439 unsigned long idef1upd:64; /* DW 2 */
441 unsigned long idef5cpy:64; /* DW 3 */
443 unsigned long idef6cpy:64; /* DW 4 */
445 unsigned long idef3upd:64; /* DW 5 */
447 unsigned long idef5upd:64; /* DW 6 */
478 /* CBE cbrexecstatus bits - defined in gru_instructions.h*/
479 /* CBE ecause bits - defined in gru_instructions.h */
487 * 64k 16 2
493 * 64m 26 8
496 #define GRU_PAGESIZE(sh) ((((sh) > 20 ? (sh) + 2 : (sh)) >> 1) - 6)