Lines Matching full:cam1

234 			    u64 *cam0, u64 *cam1)  in npc_get_keyword()  argument
248 *cam1 = entry->kw[0]; in npc_get_keyword()
253 *cam1 = entry->kw[1] & CAM_MASK(48); in npc_get_keyword()
260 *cam1 = (entry->kw[1] >> 48) & CAM_MASK(16); in npc_get_keyword()
261 *cam1 |= ((entry->kw[2] & CAM_MASK(48)) << 16); in npc_get_keyword()
269 *cam1 = (entry->kw[2] >> 48) & CAM_MASK(16); in npc_get_keyword()
270 *cam1 |= ((entry->kw[3] & CAM_MASK(32)) << 16); in npc_get_keyword()
278 *cam1 = (entry->kw[3] >> 32) & CAM_MASK(32); in npc_get_keyword()
279 *cam1 |= ((entry->kw[4] & CAM_MASK(32)) << 32); in npc_get_keyword()
287 *cam1 = (entry->kw[4] >> 32) & CAM_MASK(32); in npc_get_keyword()
288 *cam1 |= ((entry->kw[5] & CAM_MASK(16)) << 32); in npc_get_keyword()
296 *cam1 = (entry->kw[5] >> 16) & CAM_MASK(48); in npc_get_keyword()
297 *cam1 |= ((entry->kw[6] & CAM_MASK(16)) << 48); in npc_get_keyword()
303 *cam1 = (entry->kw[6] >> 16) & CAM_MASK(48); in npc_get_keyword()
308 *cam1 &= kw_mask; in npc_get_keyword()
309 *cam0 = ~*cam1 & kw_mask; in npc_get_keyword()
313 u64 cam0, u64 cam1) in npc_fill_entryword() argument
320 entry->kw[0] = cam1; in npc_fill_entryword()
321 entry->kw_mask[0] = cam1 ^ cam0; in npc_fill_entryword()
324 entry->kw[1] = cam1; in npc_fill_entryword()
325 entry->kw_mask[1] = cam1 ^ cam0; in npc_fill_entryword()
328 entry->kw[1] |= (cam1 & CAM_MASK(16)) << 48; in npc_fill_entryword()
329 entry->kw[2] = (cam1 >> 16) & CAM_MASK(48); 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()
334 entry->kw[2] |= (cam1 & CAM_MASK(16)) << 48; in npc_fill_entryword()
335 entry->kw[3] = (cam1 >> 16) & CAM_MASK(32); 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()
340 entry->kw[3] |= (cam1 & CAM_MASK(32)) << 32; in npc_fill_entryword()
341 entry->kw[4] = (cam1 >> 32) & 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()
346 entry->kw[4] |= (cam1 & CAM_MASK(32)) << 32; in npc_fill_entryword()
347 entry->kw[5] = (cam1 >> 32) & CAM_MASK(16); 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()
352 entry->kw[5] |= (cam1 & CAM_MASK(48)) << 16; in npc_fill_entryword()
353 entry->kw[6] = (cam1 >> 48) & 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()
358 entry->kw[6] |= (cam1 & CAM_MASK(48)) << 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
449 /* CAM1 takes the comparison value and 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()
476 NPC_AF_MCAMEX_BANKX_CAMX_W0(index, bank, 1), cam1); in npc_config_mcam_entry()
480 npc_get_keyword(entry, kw + 1, &cam0, &cam1); in npc_config_mcam_entry()
482 NPC_AF_MCAMEX_BANKX_CAMX_W1(index, bank, 1), cam1); in npc_config_mcam_entry()
510 u64 cam0, cam1; in npc_read_mcam_entry() local
516 cam1 = rvu_read64(rvu, blkaddr, in npc_read_mcam_entry()
520 npc_fill_entryword(entry, kw, cam0, cam1); in npc_read_mcam_entry()
522 cam1 = 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()
1471 struct npc_kpu_cam cam1 = {0}; in npc_config_kpucam() local
1473 cam1.state = kpucam->state & kpucam->state_mask; in npc_config_kpucam()
1474 cam1.dp0_data = kpucam->dp0 & kpucam->dp0_mask; in npc_config_kpucam()
1475 cam1.dp1_data = kpucam->dp1 & kpucam->dp1_mask; in npc_config_kpucam()
1476 cam1.dp2_data = kpucam->dp2 & kpucam->dp2_mask; in npc_config_kpucam()
1486 NPC_AF_KPUX_ENTRYX_CAMX(kpu, entry, 1), *(u64 *)&cam1); in npc_config_kpucam()