Lines Matching refs:tlvs
84 const uint8_t *tlvs, uint8_t mps_macs,
375 const u8 *tlvs, u32 sizeoftlvs) in lane2_assoc_ind() argument
390 end_of_tlvs = tlvs + sizeoftlvs; in lane2_assoc_ind()
391 while (end_of_tlvs - tlvs >= 5) { in lane2_assoc_ind()
392 type = ((tlvs[0] << 24) | (tlvs[1] << 16) | in lane2_assoc_ind()
393 (tlvs[2] << 8) | tlvs[3]); in lane2_assoc_ind()
394 length = tlvs[4]; in lane2_assoc_ind()
395 tlvs += 5; in lane2_assoc_ind()
397 if (tlvs + length > end_of_tlvs) { in lane2_assoc_ind()
409 tlvs += length; in lane2_assoc_ind()
412 mpoa_device_type = *tlvs++; in lane2_assoc_ind()
413 number_of_mps_macs = *tlvs++; in lane2_assoc_ind()
431 tlvs += 20; in lane2_assoc_ind()
446 send_set_mps_ctrl_addr(tlvs, mpc); in lane2_assoc_ind()
448 tlvs = copy_macs(mpc, mac_addr, tlvs, in lane2_assoc_ind()
450 if (tlvs == NULL) in lane2_assoc_ind()
453 if (end_of_tlvs - tlvs != 0) in lane2_assoc_ind()
455 dev->name, end_of_tlvs - tlvs); in lane2_assoc_ind()
465 const uint8_t *tlvs, uint8_t mps_macs, in copy_macs() argument
482 tlvs += 20; if (device_type == MPS_AND_MPC) tlvs += 20; in copy_macs()
484 memcpy(mpc->mps_macs, tlvs, mps_macs*ETH_ALEN); in copy_macs()
485 tlvs += mps_macs*ETH_ALEN; in copy_macs()
488 return tlvs; in copy_macs()