Lines Matching refs:vpd
43 int vpd_decode(s_vpd * vpd) in vpd_decode() argument
49 memset(&vpd->base_address, 0, sizeof(vpd->base_address)); in vpd_decode()
50 memset(&vpd->bios_build_id, 0, sizeof(vpd->bios_build_id)); in vpd_decode()
51 memset(&vpd->box_serial_number, 0, sizeof(vpd->box_serial_number)); in vpd_decode()
52 memset(&vpd->motherboard_serial_number, 0, in vpd_decode()
53 sizeof(vpd->motherboard_serial_number)); in vpd_decode()
54 memset(&vpd->machine_type_model, 0, sizeof(vpd->machine_type_model)); in vpd_decode()
55 memset(&vpd->bios_release_date, 0, sizeof(vpd->bios_release_date)); in vpd_decode()
56 memset(&vpd->default_flash_filename, 0, in vpd_decode()
57 sizeof(vpd->default_flash_filename)); in vpd_decode()
58 memset(&vpd->bios_version, 0, sizeof(vpd->bios_version)); in vpd_decode()
61 vpd->filled = false; in vpd_decode()
67 snprintf(vpd->base_address, sizeof(vpd->base_address), "%p", q); in vpd_decode()
71 vpd->filled = true; in vpd_decode()
84 strlcpy(vpd->bios_build_id, q + 0x0D, 9); in vpd_decode()
85 strlcpy(vpd->box_serial_number, q + 0x16, 7); in vpd_decode()
86 strlcpy(vpd->motherboard_serial_number, q + 0x1D, 11); in vpd_decode()
87 strlcpy(vpd->machine_type_model, q + 0x28, 7); in vpd_decode()
92 strlcpy(vpd->bios_release_date, q + 0x30, 8); in vpd_decode()
93 strlcpy(vpd->default_flash_filename, q + 0x38, 12); in vpd_decode()
96 strlcpy(vpd->bios_version, q + 0x44, 255); in vpd_decode()