Lines Matching refs:mps_macs
85 const uint8_t *tlvs, uint8_t mps_macs,
466 const uint8_t *tlvs, uint8_t mps_macs, in copy_macs() argument
470 num_macs = (mps_macs > 1) ? mps_macs : 1; in copy_macs()
474 kfree(mpc->mps_macs); in copy_macs()
476 mpc->mps_macs = kmalloc_array(ETH_ALEN, num_macs, GFP_KERNEL); in copy_macs()
477 if (mpc->mps_macs == NULL) { in copy_macs()
482 ether_addr_copy(mpc->mps_macs, router_mac); in copy_macs()
484 if (mps_macs > 0) in copy_macs()
485 memcpy(mpc->mps_macs, tlvs, mps_macs*ETH_ALEN); in copy_macs()
486 tlvs += mps_macs*ETH_ALEN; in copy_macs()
595 if (ether_addr_equal(eth->h_dest, mpc->mps_macs + i * ETH_ALEN)) in mpc_send_packet()
1376 kfree(client->mps_macs); in set_mps_mac_addr_rcvd()
1378 client->mps_macs = kmemdup(msg->MPS_ctrl, ETH_ALEN, GFP_KERNEL); in set_mps_mac_addr_rcvd()
1379 if (client->mps_macs == NULL) { in set_mps_mac_addr_rcvd()
1514 kfree(mpc->mps_macs); in atm_mpoa_cleanup()