Lines Matching refs:blkaddr
71 int blkaddr; in rvu_nix_af_rvu_intr_handler() local
75 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_nix_af_rvu_intr_handler()
76 if (blkaddr < 0) in rvu_nix_af_rvu_intr_handler()
80 intr = rvu_read64(rvu, blkaddr, NIX_AF_RVU_INT); in rvu_nix_af_rvu_intr_handler()
84 rvu_write64(rvu, blkaddr, NIX_AF_RVU_INT, intr); in rvu_nix_af_rvu_intr_handler()
85 rvu_write64(rvu, blkaddr, NIX_AF_RVU_INT_ENA_W1C, ~0ULL); in rvu_nix_af_rvu_intr_handler()
106 int blkaddr; in rvu_nix_af_rvu_gen_handler() local
110 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_nix_af_rvu_gen_handler()
111 if (blkaddr < 0) in rvu_nix_af_rvu_gen_handler()
115 intr = rvu_read64(rvu, blkaddr, NIX_AF_GEN_INT); in rvu_nix_af_rvu_gen_handler()
119 rvu_write64(rvu, blkaddr, NIX_AF_GEN_INT, intr); in rvu_nix_af_rvu_gen_handler()
120 rvu_write64(rvu, blkaddr, NIX_AF_GEN_INT_ENA_W1C, ~0ULL); in rvu_nix_af_rvu_gen_handler()
141 int blkaddr; in rvu_nix_af_rvu_err_handler() local
145 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_nix_af_rvu_err_handler()
146 if (blkaddr < 0) in rvu_nix_af_rvu_err_handler()
150 intr = rvu_read64(rvu, blkaddr, NIX_AF_ERR_INT); in rvu_nix_af_rvu_err_handler()
154 rvu_write64(rvu, blkaddr, NIX_AF_ERR_INT, intr); in rvu_nix_af_rvu_err_handler()
155 rvu_write64(rvu, blkaddr, NIX_AF_ERR_INT_ENA_W1C, ~0ULL); in rvu_nix_af_rvu_err_handler()
176 int blkaddr; in rvu_nix_af_rvu_ras_handler() local
180 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_nix_af_rvu_ras_handler()
181 if (blkaddr < 0) in rvu_nix_af_rvu_ras_handler()
185 intr = rvu_read64(rvu, blkaddr, NIX_AF_ERR_INT); in rvu_nix_af_rvu_ras_handler()
189 rvu_write64(rvu, blkaddr, NIX_AF_RAS, intr); in rvu_nix_af_rvu_ras_handler()
190 rvu_write64(rvu, blkaddr, NIX_AF_RAS_ENA_W1C, ~0ULL); in rvu_nix_af_rvu_ras_handler()
199 int offs, i, blkaddr; in rvu_nix_unregister_interrupts() local
201 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_nix_unregister_interrupts()
202 if (blkaddr < 0) in rvu_nix_unregister_interrupts()
205 offs = rvu_read64(rvu, blkaddr, NIX_PRIV_AF_INT_CFG) & 0x3ff; in rvu_nix_unregister_interrupts()
209 rvu_write64(rvu, blkaddr, NIX_AF_RVU_INT_ENA_W1C, ~0ULL); in rvu_nix_unregister_interrupts()
210 rvu_write64(rvu, blkaddr, NIX_AF_GEN_INT_ENA_W1C, ~0ULL); in rvu_nix_unregister_interrupts()
211 rvu_write64(rvu, blkaddr, NIX_AF_ERR_INT_ENA_W1C, ~0ULL); in rvu_nix_unregister_interrupts()
212 rvu_write64(rvu, blkaddr, NIX_AF_RAS_ENA_W1C, ~0ULL); in rvu_nix_unregister_interrupts()
229 int blkaddr, base; in rvu_nix_register_interrupts() local
232 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_nix_register_interrupts()
233 if (blkaddr < 0) in rvu_nix_register_interrupts()
234 return blkaddr; in rvu_nix_register_interrupts()
237 base = rvu_read64(rvu, blkaddr, NIX_PRIV_AF_INT_CFG) & 0x3ff; in rvu_nix_register_interrupts()
241 blkaddr - BLKADDR_NIX0); in rvu_nix_register_interrupts()
250 rvu_write64(rvu, blkaddr, NIX_AF_RVU_INT_ENA_W1S, ~0ULL); in rvu_nix_register_interrupts()
258 rvu_write64(rvu, blkaddr, NIX_AF_GEN_INT_ENA_W1S, ~0ULL); in rvu_nix_register_interrupts()
266 rvu_write64(rvu, blkaddr, NIX_AF_ERR_INT_ENA_W1S, ~0ULL); in rvu_nix_register_interrupts()
274 rvu_write64(rvu, blkaddr, NIX_AF_RAS_ENA_W1S, ~0ULL); in rvu_nix_register_interrupts()
483 int blkaddr; in rvu_hw_nix_intr_recover() local
485 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_hw_nix_intr_recover()
486 if (blkaddr < 0) in rvu_hw_nix_intr_recover()
487 return blkaddr; in rvu_hw_nix_intr_recover()
490 rvu_write64(rvu, blkaddr, NIX_AF_RVU_INT_ENA_W1S, ~0ULL); in rvu_hw_nix_intr_recover()
514 int blkaddr; in rvu_hw_nix_gen_recover() local
516 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_hw_nix_gen_recover()
517 if (blkaddr < 0) in rvu_hw_nix_gen_recover()
518 return blkaddr; in rvu_hw_nix_gen_recover()
521 rvu_write64(rvu, blkaddr, NIX_AF_GEN_INT_ENA_W1S, ~0ULL); in rvu_hw_nix_gen_recover()
545 int blkaddr; in rvu_hw_nix_err_recover() local
547 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_hw_nix_err_recover()
548 if (blkaddr < 0) in rvu_hw_nix_err_recover()
549 return blkaddr; in rvu_hw_nix_err_recover()
552 rvu_write64(rvu, blkaddr, NIX_AF_ERR_INT_ENA_W1S, ~0ULL); in rvu_hw_nix_err_recover()
576 int blkaddr; in rvu_hw_nix_ras_recover() local
578 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_hw_nix_ras_recover()
579 if (blkaddr < 0) in rvu_hw_nix_ras_recover()
580 return blkaddr; in rvu_hw_nix_ras_recover()
583 rvu_write64(rvu, blkaddr, NIX_AF_RAS_ENA_W1S, ~0ULL); in rvu_hw_nix_ras_recover()
712 int blkaddr; in rvu_npa_af_rvu_intr_handler() local
716 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_npa_af_rvu_intr_handler()
717 if (blkaddr < 0) in rvu_npa_af_rvu_intr_handler()
721 intr = rvu_read64(rvu, blkaddr, NPA_AF_RVU_INT); in rvu_npa_af_rvu_intr_handler()
725 rvu_write64(rvu, blkaddr, NPA_AF_RVU_INT, intr); in rvu_npa_af_rvu_intr_handler()
726 rvu_write64(rvu, blkaddr, NPA_AF_RVU_INT_ENA_W1C, ~0ULL); in rvu_npa_af_rvu_intr_handler()
747 int blkaddr; in rvu_npa_af_gen_intr_handler() local
751 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_npa_af_gen_intr_handler()
752 if (blkaddr < 0) in rvu_npa_af_gen_intr_handler()
756 intr = rvu_read64(rvu, blkaddr, NPA_AF_GEN_INT); in rvu_npa_af_gen_intr_handler()
760 rvu_write64(rvu, blkaddr, NPA_AF_GEN_INT, intr); in rvu_npa_af_gen_intr_handler()
761 rvu_write64(rvu, blkaddr, NPA_AF_GEN_INT_ENA_W1C, ~0ULL); in rvu_npa_af_gen_intr_handler()
782 int blkaddr; in rvu_npa_af_err_intr_handler() local
786 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_npa_af_err_intr_handler()
787 if (blkaddr < 0) in rvu_npa_af_err_intr_handler()
790 intr = rvu_read64(rvu, blkaddr, NPA_AF_ERR_INT); in rvu_npa_af_err_intr_handler()
794 rvu_write64(rvu, blkaddr, NPA_AF_ERR_INT, intr); in rvu_npa_af_err_intr_handler()
795 rvu_write64(rvu, blkaddr, NPA_AF_ERR_INT_ENA_W1C, ~0ULL); in rvu_npa_af_err_intr_handler()
816 int blkaddr; in rvu_npa_af_ras_intr_handler() local
820 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_npa_af_ras_intr_handler()
821 if (blkaddr < 0) in rvu_npa_af_ras_intr_handler()
825 intr = rvu_read64(rvu, blkaddr, NPA_AF_RAS); in rvu_npa_af_ras_intr_handler()
829 rvu_write64(rvu, blkaddr, NPA_AF_RAS, intr); in rvu_npa_af_ras_intr_handler()
830 rvu_write64(rvu, blkaddr, NPA_AF_RAS_ENA_W1C, ~0ULL); in rvu_npa_af_ras_intr_handler()
839 int i, offs, blkaddr; in rvu_npa_unregister_interrupts() local
842 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_npa_unregister_interrupts()
843 if (blkaddr < 0) in rvu_npa_unregister_interrupts()
846 reg = rvu_read64(rvu, blkaddr, NPA_PRIV_AF_INT_CFG); in rvu_npa_unregister_interrupts()
849 rvu_write64(rvu, blkaddr, NPA_AF_RVU_INT_ENA_W1C, ~0ULL); in rvu_npa_unregister_interrupts()
850 rvu_write64(rvu, blkaddr, NPA_AF_GEN_INT_ENA_W1C, ~0ULL); in rvu_npa_unregister_interrupts()
851 rvu_write64(rvu, blkaddr, NPA_AF_ERR_INT_ENA_W1C, ~0ULL); in rvu_npa_unregister_interrupts()
852 rvu_write64(rvu, blkaddr, NPA_AF_RAS_ENA_W1C, ~0ULL); in rvu_npa_unregister_interrupts()
863 int blkaddr, base; in rvu_npa_register_interrupts() local
866 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_npa_register_interrupts()
867 if (blkaddr < 0) in rvu_npa_register_interrupts()
868 return blkaddr; in rvu_npa_register_interrupts()
871 base = rvu_read64(rvu, blkaddr, NPA_PRIV_AF_INT_CFG) & 0x3ff; in rvu_npa_register_interrupts()
884 rvu_write64(rvu, blkaddr, NPA_AF_RVU_INT_ENA_W1S, ~0ULL); in rvu_npa_register_interrupts()
892 rvu_write64(rvu, blkaddr, NPA_AF_GEN_INT_ENA_W1S, ~0ULL); in rvu_npa_register_interrupts()
900 rvu_write64(rvu, blkaddr, NPA_AF_ERR_INT_ENA_W1S, ~0ULL); in rvu_npa_register_interrupts()
908 rvu_write64(rvu, blkaddr, NPA_AF_RAS_ENA_W1S, ~0ULL); in rvu_npa_register_interrupts()
1123 int blkaddr; in rvu_hw_npa_intr_recover() local
1125 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_hw_npa_intr_recover()
1126 if (blkaddr < 0) in rvu_hw_npa_intr_recover()
1127 return blkaddr; in rvu_hw_npa_intr_recover()
1130 rvu_write64(rvu, blkaddr, NPA_AF_RVU_INT_ENA_W1S, ~0ULL); in rvu_hw_npa_intr_recover()
1154 int blkaddr; in rvu_hw_npa_gen_recover() local
1156 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_hw_npa_gen_recover()
1157 if (blkaddr < 0) in rvu_hw_npa_gen_recover()
1158 return blkaddr; in rvu_hw_npa_gen_recover()
1161 rvu_write64(rvu, blkaddr, NPA_AF_GEN_INT_ENA_W1S, ~0ULL); in rvu_hw_npa_gen_recover()
1185 int blkaddr; in rvu_hw_npa_err_recover() local
1187 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_hw_npa_err_recover()
1188 if (blkaddr < 0) in rvu_hw_npa_err_recover()
1189 return blkaddr; in rvu_hw_npa_err_recover()
1192 rvu_write64(rvu, blkaddr, NPA_AF_ERR_INT_ENA_W1S, ~0ULL); in rvu_hw_npa_err_recover()
1216 int blkaddr; in rvu_hw_npa_ras_recover() local
1218 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_hw_npa_ras_recover()
1219 if (blkaddr < 0) in rvu_hw_npa_ras_recover()
1220 return blkaddr; in rvu_hw_npa_ras_recover()
1223 rvu_write64(rvu, blkaddr, NPA_AF_RAS_ENA_W1S, ~0ULL); in rvu_hw_npa_ras_recover()