Searched refs:paace (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/iommu/
H A Dfsl_pamu.c42 static struct paace *ppaact;
43 static struct paace *spaact;
96 static struct paace *pamu_get_ppaace(int liodn) pamu_get_ppaace()
114 struct paace *ppaace; pamu_enable_liodn()
118 pr_debug("Invalid primary paace entry\n"); pamu_enable_liodn()
144 struct paace *ppaace; pamu_disable_liodn()
148 pr_debug("Invalid primary paace entry\n"); pamu_disable_liodn()
179 static void pamu_init_ppaace(struct paace *ppaace) pamu_init_ppaace()
191 static void pamu_init_spaace(struct paace *spaace) pamu_init_spaace()
202 static struct paace *pamu_get_spaace(struct paace *paace, u32 wnum) pamu_get_spaace() argument
205 struct paace *spaace = NULL; pamu_get_spaace()
207 subwin_cnt = 1UL << (get_bf(paace->impl_attr, PAACE_IA_WCE) + 1); pamu_get_spaace()
210 spaace = &spaact[paace->fspi + wnum]; pamu_get_spaace()
212 pr_debug("secondary paace out of bounds\n"); pamu_get_spaace()
238 spaace_addr = gen_pool_alloc(spaace_pool, subwin_cnt * sizeof(struct paace)); pamu_get_fspi_and_allocate()
242 return (spaace_addr - (unsigned long)spaact) / (sizeof(struct paace)); pamu_get_fspi_and_allocate()
248 struct paace *ppaace; pamu_free_subwins()
259 size = (subwin_cnt - 1) * sizeof(struct paace); pamu_free_subwins()
271 struct paace *paace; pamu_update_paace_stash() local
273 paace = pamu_get_ppaace(liodn); pamu_update_paace_stash()
274 if (!paace) { pamu_update_paace_stash()
279 paace = pamu_get_spaace(paace, subwin - 1); pamu_update_paace_stash()
280 if (!paace) pamu_update_paace_stash()
283 set_bf(paace->impl_attr, PAACE_IA_CID, value); pamu_update_paace_stash()
293 struct paace *paace; pamu_disable_spaace() local
295 paace = pamu_get_ppaace(liodn); pamu_disable_spaace()
296 if (!paace) { pamu_disable_spaace()
301 paace = pamu_get_spaace(paace, subwin - 1); pamu_disable_spaace()
302 if (!paace) pamu_disable_spaace()
304 set_bf(paace->addr_bitfields, PAACE_AF_V, PAACE_V_INVALID); pamu_disable_spaace()
306 set_bf(paace->addr_bitfields, PAACE_AF_AP, pamu_disable_spaace()
336 struct paace *ppaace; pamu_config_ppaace()
428 struct paace *paace; pamu_config_spaace() local
436 paace = pamu_get_ppaace(liodn); pamu_config_spaace()
437 if (subwin > 0 && subwin < subwin_cnt && paace) { pamu_config_spaace()
438 paace = pamu_get_spaace(paace, subwin - 1); pamu_config_spaace()
440 if (paace && !(paace->addr_bitfields & PAACE_V_VALID)) { pamu_config_spaace()
441 pamu_init_spaace(paace); pamu_config_spaace()
442 set_bf(paace->addr_bitfields, SPAACE_AF_LIODN, liodn); pamu_config_spaace()
446 if (!paace) { pamu_config_spaace()
462 set_bf(paace->win_bitfields, PAACE_WIN_SWSE, pamu_config_spaace()
465 set_bf(paace->impl_attr, PAACE_IA_ATM, PAACE_ATM_WINDOW_XLATE); pamu_config_spaace()
466 paace->twbah = rpn >> 20; pamu_config_spaace()
467 set_bf(paace->win_bitfields, PAACE_WIN_TWBAL, rpn); pamu_config_spaace()
468 set_bf(paace->addr_bitfields, PAACE_AF_AP, prot); pamu_config_spaace()
472 paace->domain_attr.to_host.snpid = snoopid; pamu_config_spaace()
476 set_bf(paace->impl_attr, PAACE_IA_OTM, PAACE_OTM_INDEXED); pamu_config_spaace()
477 paace->op_encode.index_ot.omi = omi; pamu_config_spaace()
484 set_bf(paace->impl_attr, PAACE_IA_CID, stashid); pamu_config_spaace()
489 set_bf(paace->addr_bitfields, PAACE_AF_V, PAACE_V_VALID); pamu_config_spaace()
601 static void setup_qbman_paace(struct paace *ppaace, int paace_type) setup_qbman_paace()
725 struct paace *ppaace; setup_liodns()
775 struct paace *paace; pamu_av_isr() local
794 u32 *paace = phys_to_virt(phys); pamu_av_isr() local
799 j, in_be32(paace + j)); pamu_av_isr()
804 paace = pamu_get_ppaace(avs1 >> PAMU_AVS1_LIODN_SHIFT); pamu_av_isr()
805 BUG_ON(!paace); pamu_av_isr()
807 if (!get_bf(paace->addr_bitfields, PAACE_AF_V)) { pamu_av_isr()
1141 spaace_pool = gen_pool_create(ilog2(sizeof(struct paace)), -1); fsl_pamu_probe()
H A Dfsl_pamu.h271 struct paace { struct
306 /* first secondary paace entry */
338 #define PAACT_SIZE (sizeof(struct paace) * PAACE_NUMBER_ENTRIES)
339 #define SPAACT_SIZE (sizeof(struct paace) * SPAACE_NUMBER_ENTRIES)

Completed in 80 milliseconds