Lines Matching refs:entry_index
1251 u16 entry_index = DSAF_INVALID_ENTRY_IDX; in hns_dsaf_set_mac_uc_entry() local
1272 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_set_mac_uc_entry()
1273 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_set_mac_uc_entry()
1275 entry_index = hns_dsaf_find_empty_mac_entry(dsaf_dev); in hns_dsaf_set_mac_uc_entry()
1276 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_set_mac_uc_entry()
1289 mac_key.low.val, entry_index); in hns_dsaf_set_mac_uc_entry()
1299 dsaf_dev, entry_index, in hns_dsaf_set_mac_uc_entry()
1303 soft_mac_entry += entry_index; in hns_dsaf_set_mac_uc_entry()
1304 soft_mac_entry->index = entry_index; in hns_dsaf_set_mac_uc_entry()
1320 u16 entry_index = DSAF_INVALID_ENTRY_IDX; in hns_dsaf_set_mac_mc_entry() local
1341 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_set_mac_mc_entry()
1342 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_set_mac_mc_entry()
1344 entry_index = hns_dsaf_find_empty_mac_entry(dsaf_dev); in hns_dsaf_set_mac_mc_entry()
1345 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_set_mac_mc_entry()
1360 dsaf_dev, entry_index, in hns_dsaf_set_mac_mc_entry()
1371 mac_key.low.val, entry_index); in hns_dsaf_set_mac_mc_entry()
1374 dsaf_dev, entry_index, in hns_dsaf_set_mac_mc_entry()
1378 soft_mac_entry += entry_index; in hns_dsaf_set_mac_mc_entry()
1379 soft_mac_entry->index = entry_index; in hns_dsaf_set_mac_mc_entry()
1394 u16 entry_index = DSAF_INVALID_ENTRY_IDX; in hns_dsaf_add_mac_mc_port() local
1418 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_add_mac_mc_port()
1419 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_add_mac_mc_port()
1421 entry_index = hns_dsaf_find_empty_mac_entry(dsaf_dev); in hns_dsaf_add_mac_mc_port()
1422 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_add_mac_mc_port()
1433 dsaf_dev, entry_index, in hns_dsaf_add_mac_mc_port()
1456 mac_key.low.val, entry_index); in hns_dsaf_add_mac_mc_port()
1459 dsaf_dev, entry_index, in hns_dsaf_add_mac_mc_port()
1463 soft_mac_entry += entry_index; in hns_dsaf_add_mac_mc_port()
1464 soft_mac_entry->index = entry_index; in hns_dsaf_add_mac_mc_port()
1481 u16 entry_index = DSAF_INVALID_ENTRY_IDX; in hns_dsaf_del_mac_entry() local
1498 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_del_mac_entry()
1499 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_del_mac_entry()
1510 mac_key.low.val, entry_index); in hns_dsaf_del_mac_entry()
1513 hns_dsaf_tcam_mc_invld(dsaf_dev, entry_index); in hns_dsaf_del_mac_entry()
1516 soft_mac_entry += entry_index; in hns_dsaf_del_mac_entry()
1530 u16 entry_index = DSAF_INVALID_ENTRY_IDX; in hns_dsaf_del_mac_mc_port() local
1564 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_del_mac_mc_port()
1565 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_del_mac_mc_port()
1577 mac_key.low.val, entry_index); in hns_dsaf_del_mac_mc_port()
1581 dsaf_dev, entry_index, in hns_dsaf_del_mac_mc_port()
1602 hns_dsaf_tcam_mc_invld(dsaf_dev, entry_index); in hns_dsaf_del_mac_mc_port()
1605 soft_mac_entry += entry_index; in hns_dsaf_del_mac_mc_port()
1609 dsaf_dev, entry_index, in hns_dsaf_del_mac_mc_port()
1624 u16 entry_index = DSAF_INVALID_ENTRY_IDX; in hns_dsaf_get_mac_uc_entry() local
1642 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_get_mac_uc_entry()
1643 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_get_mac_uc_entry()
1654 mac_key.low.val, entry_index); in hns_dsaf_get_mac_uc_entry()
1657 hns_dsaf_tcam_uc_get(dsaf_dev, entry_index, in hns_dsaf_get_mac_uc_entry()
1672 u16 entry_index = DSAF_INVALID_ENTRY_IDX; in hns_dsaf_get_mac_mc_entry() local
1690 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_get_mac_mc_entry()
1691 if (entry_index == DSAF_INVALID_ENTRY_IDX) { in hns_dsaf_get_mac_mc_entry()
1702 mac_key.low.val, entry_index); in hns_dsaf_get_mac_mc_entry()
1705 hns_dsaf_tcam_mc_get(dsaf_dev, entry_index, in hns_dsaf_get_mac_mc_entry()
1720 u16 entry_index, struct dsaf_drv_mac_multi_dest_entry *mac_entry) in hns_dsaf_get_mac_entry_by_index() argument
1728 if (entry_index >= DSAF_TCAM_SUM) { in hns_dsaf_get_mac_entry_by_index()
1736 hns_dsaf_tcam_mc_get(dsaf_dev, entry_index, in hns_dsaf_get_mac_entry_by_index()
1754 hns_dsaf_tcam_uc_get(dsaf_dev, entry_index, in hns_dsaf_get_mac_entry_by_index()