Lines Matching full:cam0
234 u64 *cam0, u64 *cam1) in npc_get_keyword() argument
309 *cam0 = ~*cam1 & kw_mask; in npc_get_keyword()
313 u64 cam0, u64 cam1) in npc_fill_entryword() argument
321 entry->kw_mask[0] = cam1 ^ cam0; in npc_fill_entryword()
325 entry->kw_mask[1] = cam1 ^ cam0; in npc_fill_entryword()
330 entry->kw_mask[1] |= ((cam1 ^ cam0) & CAM_MASK(16)) << 48; in npc_fill_entryword()
331 entry->kw_mask[2] = ((cam1 ^ cam0) >> 16) & CAM_MASK(48); in npc_fill_entryword()
336 entry->kw_mask[2] |= ((cam1 ^ cam0) & CAM_MASK(16)) << 48; in npc_fill_entryword()
337 entry->kw_mask[3] = ((cam1 ^ cam0) >> 16) & CAM_MASK(32); in npc_fill_entryword()
342 entry->kw_mask[3] |= ((cam1 ^ cam0) & CAM_MASK(32)) << 32; in npc_fill_entryword()
343 entry->kw_mask[4] = ((cam1 ^ cam0) >> 32) & CAM_MASK(32); in npc_fill_entryword()
348 entry->kw_mask[4] |= ((cam1 ^ cam0) & CAM_MASK(32)) << 32; in npc_fill_entryword()
349 entry->kw_mask[5] = ((cam1 ^ cam0) >> 32) & CAM_MASK(16); in npc_fill_entryword()
354 entry->kw_mask[5] |= ((cam1 ^ cam0) & CAM_MASK(48)) << 16; in npc_fill_entryword()
355 entry->kw_mask[6] = ((cam1 ^ cam0) >> 48) & CAM_MASK(16); in npc_fill_entryword()
359 entry->kw_mask[6] |= ((cam1 ^ cam0) & CAM_MASK(48)) << 16; in npc_fill_entryword()
437 u64 cam0, cam1; in npc_config_mcam_entry() local
450 * CAM0 specifies match for a bit in key being '0' or '1' or 'dontcare'. in npc_config_mcam_entry()
451 * CAM1<n> = 0 & CAM0<n> = 1 => match if key<n> = 0 in npc_config_mcam_entry()
452 * CAM1<n> = 1 & CAM0<n> = 0 => match if key<n> = 1 in npc_config_mcam_entry()
453 * CAM1<n> = 0 & CAM0<n> = 0 => always match i.e dontcare. in npc_config_mcam_entry()
474 npc_get_keyword(entry, kw, &cam0, &cam1); in npc_config_mcam_entry()
478 NPC_AF_MCAMEX_BANKX_CAMX_W0(index, bank, 0), cam0); in npc_config_mcam_entry()
480 npc_get_keyword(entry, kw + 1, &cam0, &cam1); in npc_config_mcam_entry()
484 NPC_AF_MCAMEX_BANKX_CAMX_W1(index, bank, 0), cam0); in npc_config_mcam_entry()
510 u64 cam0, cam1; in npc_read_mcam_entry() local
518 cam0 = rvu_read64(rvu, blkaddr, in npc_read_mcam_entry()
520 npc_fill_entryword(entry, kw, cam0, cam1); in npc_read_mcam_entry()
524 cam0 = rvu_read64(rvu, blkaddr, in npc_read_mcam_entry()
526 npc_fill_entryword(entry, kw + 1, cam0, cam1); in npc_read_mcam_entry()
551 /* Copy INTF's, W0's, W1's CAM0 and CAM1 configuration */ in npc_copy_mcam_entry()
1470 struct npc_kpu_cam cam0 = {0}; in npc_config_kpucam() local
1478 cam0.state = ~kpucam->state & kpucam->state_mask; in npc_config_kpucam()
1479 cam0.dp0_data = ~kpucam->dp0 & kpucam->dp0_mask; in npc_config_kpucam()
1480 cam0.dp1_data = ~kpucam->dp1 & kpucam->dp1_mask; in npc_config_kpucam()
1481 cam0.dp2_data = ~kpucam->dp2 & kpucam->dp2_mask; in npc_config_kpucam()
1484 NPC_AF_KPUX_ENTRYX_CAMX(kpu, entry, 0), *(u64 *)&cam0); in npc_config_kpucam()