Lines Matching refs:vpd
303 struct vpd_cache *vpd = (struct vpd_cache *)userdata; in vpd_callback() local
307 vpd->product_id = data[0]; in vpd_callback()
312 vpd->has |= VPD_HAS_MAC1; in vpd_callback()
313 memcpy(vpd->mac1, data, VPD_MAC_ADDRESS_LENGTH); in vpd_callback()
320 static void process_vpd(struct vpd_cache *vpd) in process_vpd() argument
324 if (vpd->product_id == VPD_PRODUCT_PPD) in process_vpd()
327 if (fec_index >= 0 && (vpd->has & VPD_HAS_MAC1)) in process_vpd()
328 eth_env_set_enetaddr("ethaddr", vpd->mac1); in process_vpd()
333 struct vpd_cache vpd; in read_vpd() local
349 memset(&vpd, 0, sizeof(vpd)); in read_vpd()
350 vpd_reader(size, data, &vpd, vpd_callback); in read_vpd()
351 process_vpd(&vpd); in read_vpd()