Lines Matching refs:kpu

1407 				rvu->kpu.mkex = mcam_kex;  in npc_load_mkex_profile()
1417 dev_info(rvu->dev, "Using %s mkex profile\n", rvu->kpu.mkex->name); in npc_load_mkex_profile()
1419 npc_program_mkex_profile(rvu, blkaddr, rvu->kpu.mkex); in npc_load_mkex_profile()
1426 int kpu, int entry, bool pkind) in npc_config_kpuaction() argument
1441 reg = NPC_AF_KPUX_ENTRYX_ACTION1(kpu, entry); in npc_config_kpuaction()
1461 reg = NPC_AF_KPUX_ENTRYX_ACTION0(kpu, entry); in npc_config_kpuaction()
1468 int kpu, int entry) in npc_config_kpucam() argument
1484 NPC_AF_KPUX_ENTRYX_CAMX(kpu, entry, 0), *(u64 *)&cam0); in npc_config_kpucam()
1486 NPC_AF_KPUX_ENTRYX_CAMX(kpu, entry, 1), *(u64 *)&cam1); in npc_config_kpucam()
1494 static void npc_program_kpu_profile(struct rvu *rvu, int blkaddr, int kpu, in npc_program_kpu_profile() argument
1503 kpu, profile->cam_entries, profile->action_entries); in npc_program_kpu_profile()
1512 &profile->cam[entry], kpu, entry); in npc_program_kpu_profile()
1518 kpu, entry, false); in npc_program_kpu_profile()
1524 if (!rvu->kpu.custom) in npc_program_kpu_profile()
1527 NPC_AF_KPUX_ENTRY_DISX(kpu, 0), entry_mask); in npc_program_kpu_profile()
1530 NPC_AF_KPUX_ENTRY_DISX(kpu, 1), in npc_program_kpu_profile()
1535 rvu_write64(rvu, blkaddr, NPC_AF_KPUX_CFG(kpu), 0x01); in npc_program_kpu_profile()
1545 profile->kpu = npc_kpu_profiles; in npc_prepare_default_kpu()
1563 u16 kpu, entry; in npc_apply_custom_kpu() local
1608 for (kpu = 0; kpu < fw->kpus; kpu++) { in npc_apply_custom_kpu()
1613 kpu, fw_kpu->entries, KPU_MAX_CST_ENT); in npc_apply_custom_kpu()
1622 kpu + 1); in npc_apply_custom_kpu()
1626 profile->kpu[kpu].cam[entry] = cam[entry]; in npc_apply_custom_kpu()
1627 profile->kpu[kpu].action[entry] = action[entry]; in npc_apply_custom_kpu()
1721 struct npc_kpu_profile_adapter *profile = &rvu->kpu; in npc_load_kpu_profile()
1817 num_pkinds = rvu->kpu.pkinds; in npc_parser_profile_init()
1821 npc_config_kpuaction(rvu, blkaddr, &rvu->kpu.ikpu[idx], 0, idx, true); in npc_parser_profile_init()
1824 num_kpus = rvu->kpu.kpus; in npc_parser_profile_init()
1828 npc_program_kpu_profile(rvu, blkaddr, idx, &rvu->kpu.kpu[idx]); in npc_parser_profile_init()
2026 struct npc_mcam_kex *mkex = rvu->kpu.mkex; in rvu_npc_setup_interfaces()
2095 struct npc_kpu_profile_adapter *kpu = &rvu->kpu; in rvu_npc_init() local
2134 (kpu->lt_def->pck_ol2.lid << 8) | (kpu->lt_def->pck_ol2.ltype_match << 4) | in rvu_npc_init()
2135 kpu->lt_def->pck_ol2.ltype_mask); in rvu_npc_init()
2137 (kpu->lt_def->pck_oip4.lid << 8) | (kpu->lt_def->pck_oip4.ltype_match << 4) | in rvu_npc_init()
2138 kpu->lt_def->pck_oip4.ltype_mask); in rvu_npc_init()
2142 (kpu->lt_def->pck_iip4.lid << 8) | (kpu->lt_def->pck_iip4.ltype_match << 4) | in rvu_npc_init()
2143 kpu->lt_def->pck_iip4.ltype_mask); in rvu_npc_init()