Searched refs:vpd_length (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/dev/sfxge/common/ |
H A D | siena_vpd.c | 53 unsigned int vpd_length; in siena_vpd_get_static() local 93 vpd_length = EFX_DWORD_FIELD(scfg->static_vpd_length, EFX_DWORD_0); in siena_vpd_get_static() 96 if (hdr_length > size || vpd_offset > size || vpd_length > size || in siena_vpd_get_static() 97 vpd_length + vpd_offset > size) { in siena_vpd_get_static() 103 region = vpd_offset + vpd_length; in siena_vpd_get_static() 120 if (vpd_length == 0) in siena_vpd_get_static() 124 EFSYS_KMEM_ALLOC(enp->en_esip, vpd_length, svpd); in siena_vpd_get_static() 129 memcpy(svpd, (caddr_t)scfg + vpd_offset, vpd_length); in siena_vpd_get_static() 135 *sizep = vpd_length; in siena_vpd_get_static() 250 unsigned int vpd_length; in siena_vpd_read() local [all …]
|
H A D | siena_nvram.c | 315 unsigned int vpd_length; in siena_nvram_get_dynamic_cfg() local 358 vpd_length = EFX_DWORD_FIELD(dcfg->dynamic_vpd_length, EFX_DWORD_0); in siena_nvram_get_dynamic_cfg() 361 if (hdr_length > size || vpd_offset > size || vpd_length > size || in siena_nvram_get_dynamic_cfg() 362 vpd_length + vpd_offset > size) in siena_nvram_get_dynamic_cfg() 375 region = vpd ? vpd_offset + vpd_length : hdr_length; in siena_nvram_get_dynamic_cfg() 627 unsigned int vpd_length; variable 653 vpd_length = EFX_DWORD_FIELD(dcfg->dynamic_vpd_length, EFX_DWORD_0); 661 if (required_hdr_length + vpd_length > length) { 668 (caddr_t)dcfg + vpd_offset, vpd_length); 713 (caddr_t)dcfg, vpd_offset + vpd_length)) != 0)
|
H A D | ef10_vpd.c | 417 size_t vpd_length; in ef10_vpd_write() local 434 if ((rc = efx_vpd_hunk_length(data, size, &vpd_length)) != 0) in ef10_vpd_write() 440 tag, data, vpd_length, B_TRUE)) != 0) { in ef10_vpd_write()
|