Lines Matching refs:tlvs
85 const uint8_t *tlvs, uint8_t mps_macs,
376 const u8 *tlvs, u32 sizeoftlvs) in lane2_assoc_ind() argument
391 end_of_tlvs = tlvs + sizeoftlvs; in lane2_assoc_ind()
392 while (end_of_tlvs - tlvs >= 5) { in lane2_assoc_ind()
393 type = ((tlvs[0] << 24) | (tlvs[1] << 16) | in lane2_assoc_ind()
394 (tlvs[2] << 8) | tlvs[3]); in lane2_assoc_ind()
395 length = tlvs[4]; in lane2_assoc_ind()
396 tlvs += 5; in lane2_assoc_ind()
398 if (tlvs + length > end_of_tlvs) { in lane2_assoc_ind()
410 tlvs += length; in lane2_assoc_ind()
413 mpoa_device_type = *tlvs++; in lane2_assoc_ind()
414 number_of_mps_macs = *tlvs++; in lane2_assoc_ind()
432 tlvs += 20; in lane2_assoc_ind()
447 send_set_mps_ctrl_addr(tlvs, mpc); in lane2_assoc_ind()
449 tlvs = copy_macs(mpc, mac_addr, tlvs, in lane2_assoc_ind()
451 if (tlvs == NULL) in lane2_assoc_ind()
454 if (end_of_tlvs - tlvs != 0) in lane2_assoc_ind()
456 dev->name, end_of_tlvs - tlvs); in lane2_assoc_ind()
466 const uint8_t *tlvs, uint8_t mps_macs, in copy_macs() argument
483 tlvs += 20; if (device_type == MPS_AND_MPC) tlvs += 20; 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()
489 return tlvs; in copy_macs()