Searched refs:vpd_length (Results 1 – 5 of 5) sorted by relevance
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | siena_vpd.c | 50 unsigned int vpd_length; in siena_vpd_get_static() local 85 vpd_length = EFX_DWORD_FIELD(scfg->static_vpd_length, EFX_DWORD_0); in siena_vpd_get_static() 88 if (hdr_length > size || vpd_offset > size || vpd_length > size || in siena_vpd_get_static() 89 vpd_length + vpd_offset > size) { in siena_vpd_get_static() 95 region = vpd_offset + vpd_length; in siena_vpd_get_static() 112 if (vpd_length == 0) in siena_vpd_get_static() 116 EFSYS_KMEM_ALLOC(enp->en_esip, vpd_length, svpd); in siena_vpd_get_static() 121 (void) memcpy(svpd, (caddr_t)scfg + vpd_offset, vpd_length); in siena_vpd_get_static() 127 *sizep = vpd_length; in siena_vpd_get_static() 240 unsigned int vpd_length; in siena_vpd_read() local [all …]
|
H A D | siena_nvram.c | 310 unsigned int vpd_length; in siena_nvram_get_dynamic_cfg() local 348 vpd_length = EFX_DWORD_FIELD(dcfg->dynamic_vpd_length, EFX_DWORD_0); in siena_nvram_get_dynamic_cfg() 351 if (hdr_length > size || vpd_offset > size || vpd_length > size || in siena_nvram_get_dynamic_cfg() 352 vpd_length + vpd_offset > size) in siena_nvram_get_dynamic_cfg() 365 region = vpd ? vpd_offset + vpd_length : hdr_length; in siena_nvram_get_dynamic_cfg() 605 unsigned int vpd_length; variable 631 vpd_length = EFX_DWORD_FIELD(dcfg->dynamic_vpd_length, EFX_DWORD_0); 639 if (required_hdr_length + vpd_length > length) { 646 (caddr_t)dcfg + vpd_offset, vpd_length); 691 (caddr_t)dcfg, vpd_offset + vpd_length)) != 0)
|
H A D | ef10_vpd.c | 405 size_t vpd_length; in ef10_vpd_write() local 421 if ((rc = efx_vpd_hunk_length(data, size, &vpd_length)) != 0) in ef10_vpd_write() 427 tag, data, vpd_length, B_TRUE)) != 0) { in ef10_vpd_write()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_nvram.c | 526 chksum_len = ((vpd_header->vpd_length[1] << 8) | in pmcs_validate_vpd() 527 (vpd_header->vpd_length[0])) - 15; in pmcs_validate_vpd()
|
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
H A D | pmcs_iomb.h | 346 uint8_t vpd_length[2]; /* # bytes that follow, little-endian */ member
|