Lines Matching full:cam1

256 			    u64 *cam0, u64 *cam1)  in npc_get_keyword()  argument
270 *cam1 = entry->kw[0]; in npc_get_keyword()
275 *cam1 = entry->kw[1] & CAM_MASK(48); in npc_get_keyword()
282 *cam1 = (entry->kw[1] >> 48) & CAM_MASK(16); in npc_get_keyword()
283 *cam1 |= ((entry->kw[2] & CAM_MASK(48)) << 16); in npc_get_keyword()
291 *cam1 = (entry->kw[2] >> 48) & CAM_MASK(16); in npc_get_keyword()
292 *cam1 |= ((entry->kw[3] & CAM_MASK(32)) << 16); in npc_get_keyword()
300 *cam1 = (entry->kw[3] >> 32) & CAM_MASK(32); in npc_get_keyword()
301 *cam1 |= ((entry->kw[4] & CAM_MASK(32)) << 32); in npc_get_keyword()
309 *cam1 = (entry->kw[4] >> 32) & CAM_MASK(32); in npc_get_keyword()
310 *cam1 |= ((entry->kw[5] & CAM_MASK(16)) << 32); in npc_get_keyword()
318 *cam1 = (entry->kw[5] >> 16) & CAM_MASK(48); in npc_get_keyword()
319 *cam1 |= ((entry->kw[6] & CAM_MASK(16)) << 48); in npc_get_keyword()
325 *cam1 = (entry->kw[6] >> 16) & CAM_MASK(48); in npc_get_keyword()
330 *cam1 &= kw_mask; in npc_get_keyword()
331 *cam0 = ~*cam1 & kw_mask; in npc_get_keyword()
335 u64 cam0, u64 cam1) in npc_fill_entryword() argument
342 entry->kw[0] = cam1; in npc_fill_entryword()
343 entry->kw_mask[0] = cam1 ^ cam0; in npc_fill_entryword()
346 entry->kw[1] = cam1; in npc_fill_entryword()
347 entry->kw_mask[1] = cam1 ^ cam0; in npc_fill_entryword()
350 entry->kw[1] |= (cam1 & CAM_MASK(16)) << 48; in npc_fill_entryword()
351 entry->kw[2] = (cam1 >> 16) & CAM_MASK(48); in npc_fill_entryword()
352 entry->kw_mask[1] |= ((cam1 ^ cam0) & CAM_MASK(16)) << 48; in npc_fill_entryword()
353 entry->kw_mask[2] = ((cam1 ^ cam0) >> 16) & CAM_MASK(48); in npc_fill_entryword()
356 entry->kw[2] |= (cam1 & CAM_MASK(16)) << 48; in npc_fill_entryword()
357 entry->kw[3] = (cam1 >> 16) & CAM_MASK(32); in npc_fill_entryword()
358 entry->kw_mask[2] |= ((cam1 ^ cam0) & CAM_MASK(16)) << 48; in npc_fill_entryword()
359 entry->kw_mask[3] = ((cam1 ^ cam0) >> 16) & CAM_MASK(32); in npc_fill_entryword()
362 entry->kw[3] |= (cam1 & CAM_MASK(32)) << 32; in npc_fill_entryword()
363 entry->kw[4] = (cam1 >> 32) & CAM_MASK(32); in npc_fill_entryword()
364 entry->kw_mask[3] |= ((cam1 ^ cam0) & CAM_MASK(32)) << 32; in npc_fill_entryword()
365 entry->kw_mask[4] = ((cam1 ^ cam0) >> 32) & CAM_MASK(32); in npc_fill_entryword()
368 entry->kw[4] |= (cam1 & CAM_MASK(32)) << 32; in npc_fill_entryword()
369 entry->kw[5] = (cam1 >> 32) & CAM_MASK(16); in npc_fill_entryword()
370 entry->kw_mask[4] |= ((cam1 ^ cam0) & CAM_MASK(32)) << 32; in npc_fill_entryword()
371 entry->kw_mask[5] = ((cam1 ^ cam0) >> 32) & CAM_MASK(16); in npc_fill_entryword()
374 entry->kw[5] |= (cam1 & CAM_MASK(48)) << 16; in npc_fill_entryword()
375 entry->kw[6] = (cam1 >> 48) & CAM_MASK(16); in npc_fill_entryword()
376 entry->kw_mask[5] |= ((cam1 ^ cam0) & CAM_MASK(48)) << 16; in npc_fill_entryword()
377 entry->kw_mask[6] = ((cam1 ^ cam0) >> 48) & CAM_MASK(16); in npc_fill_entryword()
380 entry->kw[6] |= (cam1 & CAM_MASK(48)) << 16; in npc_fill_entryword()
381 entry->kw_mask[6] |= ((cam1 ^ cam0) & CAM_MASK(48)) << 16; in npc_fill_entryword()
449 u64 cam0, cam1; in npc_config_mcam_entry() local
461 /* CAM1 takes the comparison value and in npc_config_mcam_entry()
463 * CAM1<n> = 0 & CAM0<n> = 1 => match if key<n> = 0 in npc_config_mcam_entry()
464 * CAM1<n> = 1 & CAM0<n> = 0 => match if key<n> = 1 in npc_config_mcam_entry()
465 * CAM1<n> = 0 & CAM0<n> = 0 => always match i.e dontcare. in npc_config_mcam_entry()
486 npc_get_keyword(entry, kw, &cam0, &cam1); in npc_config_mcam_entry()
488 NPC_AF_MCAMEX_BANKX_CAMX_W0(index, bank, 1), cam1); in npc_config_mcam_entry()
492 npc_get_keyword(entry, kw + 1, &cam0, &cam1); in npc_config_mcam_entry()
494 NPC_AF_MCAMEX_BANKX_CAMX_W1(index, bank, 1), cam1); in npc_config_mcam_entry()
522 u64 cam0, cam1; in npc_read_mcam_entry() local
528 cam1 = rvu_read64(rvu, blkaddr, in npc_read_mcam_entry()
532 npc_fill_entryword(entry, kw, cam0, cam1); in npc_read_mcam_entry()
534 cam1 = rvu_read64(rvu, blkaddr, in npc_read_mcam_entry()
538 npc_fill_entryword(entry, kw + 1, cam0, cam1); in npc_read_mcam_entry()
563 /* Copy INTF's, W0's, W1's CAM0 and CAM1 configuration */ in npc_copy_mcam_entry()
1418 struct npc_kpu_cam cam1 = {0}; in npc_config_kpucam() local
1420 cam1.state = kpucam->state & kpucam->state_mask; in npc_config_kpucam()
1421 cam1.dp0_data = kpucam->dp0 & kpucam->dp0_mask; in npc_config_kpucam()
1422 cam1.dp1_data = kpucam->dp1 & kpucam->dp1_mask; in npc_config_kpucam()
1423 cam1.dp2_data = kpucam->dp2 & kpucam->dp2_mask; in npc_config_kpucam()
1433 NPC_AF_KPUX_ENTRYX_CAMX(kpu, entry, 1), *(u64 *)&cam1); in npc_config_kpucam()