Lines Matching defs:sector_length
139 size_t sector_length;
142 rc = efx_nvram_size(enp, EFX_NVRAM_BOOTROM_CFG, §or_length);
152 if (sector_length > BOOTCFG_MAX_SIZE)
153 sector_length = BOOTCFG_MAX_SIZE;
154 if (sector_length > size) {
155 EFSYS_KMEM_ALLOC(enp->en_esip, sector_length, payload);
167 (caddr_t)payload, sector_length);
175 rc = efx_bootcfg_verify(enp, (caddr_t)payload, sector_length,
184 EFSYS_ASSERT(used_bytes <= sector_length);
193 if (used_bytes + 1 > sector_length) {
210 if (sector_length > size) {
212 EFSYS_KMEM_FREE(enp->en_esip, sector_length, payload);
234 if (sector_length > size)
235 EFSYS_KMEM_FREE(enp->en_esip, sector_length, payload);
252 size_t sector_length;
259 rc = efx_nvram_size(enp, EFX_NVRAM_BOOTROM_CFG, §or_length);
263 if (sector_length > BOOTCFG_MAX_SIZE)
264 sector_length = BOOTCFG_MAX_SIZE;
277 if (used_bytes > MIN(sector_length, BOOTCFG_MAX_SIZE)) {
296 * Write the entire sector_length bytes of data in chunks. Zero out
300 for (offset = 0; offset < sector_length; offset += remaining) {
301 remaining = MIN(chunk_length, sector_length - offset);