Lines Matching refs:arp_index
686 int arp_index; in nes_arp_table() local
690 for (arp_index = 0; (u32) arp_index < nesadapter->arp_table_size; arp_index++) { in nes_arp_table()
691 if (nesadapter->arp_table[arp_index].ip_addr == ip_addr) in nes_arp_table()
696 if (arp_index != nesadapter->arp_table_size) { in nes_arp_table()
700 arp_index = 0; in nes_arp_table()
702 nesadapter->arp_table_size, (u32 *)&arp_index, &nesadapter->next_arp_index, NES_RESOURCE_ARP); in nes_arp_table()
707 nes_debug(NES_DBG_NETDEV, "ADD, arp_index=%d\n", arp_index); in nes_arp_table()
709 nesadapter->arp_table[arp_index].ip_addr = ip_addr; in nes_arp_table()
710 memcpy(nesadapter->arp_table[arp_index].mac_addr, mac_addr, ETH_ALEN); in nes_arp_table()
711 return arp_index; in nes_arp_table()
715 if (arp_index == nesadapter->arp_table_size) { in nes_arp_table()
723 nes_debug(NES_DBG_NETDEV, "RESOLVE, arp_index=%d\n", arp_index); in nes_arp_table()
724 return arp_index; in nes_arp_table()
728 nes_debug(NES_DBG_NETDEV, "DELETE, arp_index=%d\n", arp_index); in nes_arp_table()
729 nesadapter->arp_table[arp_index].ip_addr = 0; in nes_arp_table()
730 memset(nesadapter->arp_table[arp_index].mac_addr, 0x00, ETH_ALEN); in nes_arp_table()
731 nes_free_resource(nesadapter, nesadapter->allocated_arps, arp_index); in nes_arp_table()
732 return arp_index; in nes_arp_table()