Lines Matching refs:paace
30 static struct paace *ppaact;
31 static struct paace *spaact;
86 static struct paace *pamu_get_ppaace(int liodn) in pamu_get_ppaace()
104 struct paace *ppaace; in pamu_enable_liodn()
134 struct paace *ppaace; in pamu_disable_liodn()
169 static void pamu_init_ppaace(struct paace *ppaace) in pamu_init_ppaace()
181 static void pamu_init_spaace(struct paace *spaace) in pamu_init_spaace()
192 static struct paace *pamu_get_spaace(struct paace *paace, u32 wnum) in pamu_get_spaace() argument
195 struct paace *spaace = NULL; in pamu_get_spaace()
197 subwin_cnt = 1UL << (get_bf(paace->impl_attr, PAACE_IA_WCE) + 1); in pamu_get_spaace()
200 spaace = &spaact[paace->fspi + wnum]; in pamu_get_spaace()
228 spaace_addr = gen_pool_alloc(spaace_pool, subwin_cnt * sizeof(struct paace)); in pamu_get_fspi_and_allocate()
232 return (spaace_addr - (unsigned long)spaact) / (sizeof(struct paace)); in pamu_get_fspi_and_allocate()
238 struct paace *ppaace; in pamu_free_subwins()
249 size = (subwin_cnt - 1) * sizeof(struct paace); in pamu_free_subwins()
261 struct paace *paace; in pamu_update_paace_stash() local
263 paace = pamu_get_ppaace(liodn); in pamu_update_paace_stash()
264 if (!paace) { in pamu_update_paace_stash()
269 paace = pamu_get_spaace(paace, subwin - 1); in pamu_update_paace_stash()
270 if (!paace) in pamu_update_paace_stash()
273 set_bf(paace->impl_attr, PAACE_IA_CID, value); in pamu_update_paace_stash()
283 struct paace *paace; in pamu_disable_spaace() local
285 paace = pamu_get_ppaace(liodn); in pamu_disable_spaace()
286 if (!paace) { in pamu_disable_spaace()
291 paace = pamu_get_spaace(paace, subwin - 1); in pamu_disable_spaace()
292 if (!paace) in pamu_disable_spaace()
294 set_bf(paace->addr_bitfields, PAACE_AF_V, PAACE_V_INVALID); in pamu_disable_spaace()
296 set_bf(paace->addr_bitfields, PAACE_AF_AP, in pamu_disable_spaace()
326 struct paace *ppaace; in pamu_config_ppaace()
418 struct paace *paace; in pamu_config_spaace() local
426 paace = pamu_get_ppaace(liodn); in pamu_config_spaace()
427 if (subwin > 0 && subwin < subwin_cnt && paace) { in pamu_config_spaace()
428 paace = pamu_get_spaace(paace, subwin - 1); in pamu_config_spaace()
430 if (paace && !(paace->addr_bitfields & PAACE_V_VALID)) { in pamu_config_spaace()
431 pamu_init_spaace(paace); in pamu_config_spaace()
432 set_bf(paace->addr_bitfields, SPAACE_AF_LIODN, liodn); in pamu_config_spaace()
436 if (!paace) { in pamu_config_spaace()
452 set_bf(paace->win_bitfields, PAACE_WIN_SWSE, in pamu_config_spaace()
455 set_bf(paace->impl_attr, PAACE_IA_ATM, PAACE_ATM_WINDOW_XLATE); in pamu_config_spaace()
456 paace->twbah = rpn >> 20; in pamu_config_spaace()
457 set_bf(paace->win_bitfields, PAACE_WIN_TWBAL, rpn); in pamu_config_spaace()
458 set_bf(paace->addr_bitfields, PAACE_AF_AP, prot); in pamu_config_spaace()
462 paace->domain_attr.to_host.snpid = snoopid; in pamu_config_spaace()
466 set_bf(paace->impl_attr, PAACE_IA_OTM, PAACE_OTM_INDEXED); in pamu_config_spaace()
467 paace->op_encode.index_ot.omi = omi; in pamu_config_spaace()
474 set_bf(paace->impl_attr, PAACE_IA_CID, stashid); in pamu_config_spaace()
479 set_bf(paace->addr_bitfields, PAACE_AF_V, PAACE_V_VALID); in pamu_config_spaace()
590 static void setup_qbman_paace(struct paace *ppaace, int paace_type) in setup_qbman_paace()
714 struct paace *ppaace; in setup_liodns()
764 struct paace *paace; in pamu_av_isr() local
783 u32 *paace = phys_to_virt(phys); in pamu_av_isr() local
788 j, in_be32(paace + j)); in pamu_av_isr()
793 paace = pamu_get_ppaace(avs1 >> PAMU_AVS1_LIODN_SHIFT); in pamu_av_isr()
794 BUG_ON(!paace); in pamu_av_isr()
796 if (!get_bf(paace->addr_bitfields, PAACE_AF_V)) { in pamu_av_isr()
1132 spaace_pool = gen_pool_create(ilog2(sizeof(struct paace)), -1); in fsl_pamu_probe()