Lines Matching refs:kpu
1376 rvu->kpu.mkex = mcam_kex; in npc_load_mkex_profile()
1386 dev_info(rvu->dev, "Using %s mkex profile\n", rvu->kpu.mkex->name); in npc_load_mkex_profile()
1388 npc_program_mkex_profile(rvu, blkaddr, rvu->kpu.mkex); in npc_load_mkex_profile()
1395 int kpu, int entry, bool pkind) in npc_config_kpuaction() argument
1410 reg = NPC_AF_KPUX_ENTRYX_ACTION1(kpu, entry); in npc_config_kpuaction()
1430 reg = NPC_AF_KPUX_ENTRYX_ACTION0(kpu, entry); in npc_config_kpuaction()
1437 int kpu, int entry) in npc_config_kpucam() argument
1453 NPC_AF_KPUX_ENTRYX_CAMX(kpu, entry, 0), *(u64 *)&cam0); in npc_config_kpucam()
1455 NPC_AF_KPUX_ENTRYX_CAMX(kpu, entry, 1), *(u64 *)&cam1); in npc_config_kpucam()
1463 static void npc_program_kpu_profile(struct rvu *rvu, int blkaddr, int kpu, in npc_program_kpu_profile() argument
1472 kpu, profile->cam_entries, profile->action_entries); in npc_program_kpu_profile()
1481 &profile->cam[entry], kpu, entry); in npc_program_kpu_profile()
1487 kpu, entry, false); in npc_program_kpu_profile()
1493 if (!rvu->kpu.custom) in npc_program_kpu_profile()
1496 NPC_AF_KPUX_ENTRY_DISX(kpu, 0), entry_mask); in npc_program_kpu_profile()
1499 NPC_AF_KPUX_ENTRY_DISX(kpu, 1), in npc_program_kpu_profile()
1504 rvu_write64(rvu, blkaddr, NPC_AF_KPUX_CFG(kpu), 0x01); in npc_program_kpu_profile()
1514 profile->kpu = npc_kpu_profiles; in npc_prepare_default_kpu()
1532 u16 kpu, entry; in npc_apply_custom_kpu() local
1577 for (kpu = 0; kpu < fw->kpus; kpu++) { in npc_apply_custom_kpu()
1582 kpu, fw_kpu->entries, KPU_MAX_CST_ENT); in npc_apply_custom_kpu()
1591 kpu + 1); in npc_apply_custom_kpu()
1595 profile->kpu[kpu].cam[entry] = cam[entry]; in npc_apply_custom_kpu()
1596 profile->kpu[kpu].action[entry] = action[entry]; in npc_apply_custom_kpu()
1690 struct npc_kpu_profile_adapter *profile = &rvu->kpu; in npc_load_kpu_profile()
1786 num_pkinds = rvu->kpu.pkinds; in npc_parser_profile_init()
1790 npc_config_kpuaction(rvu, blkaddr, &rvu->kpu.ikpu[idx], 0, idx, true); in npc_parser_profile_init()
1793 num_kpus = rvu->kpu.kpus; in npc_parser_profile_init()
1797 npc_program_kpu_profile(rvu, blkaddr, idx, &rvu->kpu.kpu[idx]); in npc_parser_profile_init()
1970 struct npc_mcam_kex *mkex = rvu->kpu.mkex; in rvu_npc_setup_interfaces()
2039 struct npc_kpu_profile_adapter *kpu = &rvu->kpu; in rvu_npc_init() local
2078 (kpu->lt_def->pck_ol2.lid << 8) | (kpu->lt_def->pck_ol2.ltype_match << 4) | in rvu_npc_init()
2079 kpu->lt_def->pck_ol2.ltype_mask); in rvu_npc_init()
2081 (kpu->lt_def->pck_oip4.lid << 8) | (kpu->lt_def->pck_oip4.ltype_match << 4) | in rvu_npc_init()
2082 kpu->lt_def->pck_oip4.ltype_mask); in rvu_npc_init()
2086 (kpu->lt_def->pck_iip4.lid << 8) | (kpu->lt_def->pck_iip4.ltype_match << 4) | in rvu_npc_init()
2087 kpu->lt_def->pck_iip4.ltype_mask); in rvu_npc_init()