Lines Matching defs:partition

40 /* Cursor for TLV partition format */
53 * The full length of the NVRAM partition.
585 __in nvram_partition_t *partition)
593 cursor = &partition->tlv_cursor;
598 ptr = partition->data;
612 nvram_partition_t partition;
618 * We just modified the partition, so the total length may not be
622 partition.data = cursor->block;
623 (void) memcpy(&partition.tlv_cursor, cursor, sizeof (*cursor));
624 header = (struct tlv_partition_header *)partition.data;
630 new_len = tlv_block_length_used(&partition.tlv_cursor);
636 /* Ensure the modified partition always has a new generation count. */
645 checksum_tlv_partition(&partition));
681 /* The partition header must be the first item (at offset zero) */
693 /* Check TLV partition length (includes the END tag) */
700 /* Check partition ends with PARTITION_TRAILER and END tags */
722 /* Verify partition checksum */
811 /* Check that the partition is valid. */
851 // Read past partition header to find start address of the first key
897 // Read to end of partition
1111 * Read and validate a segment from a partition. A segment is a complete
1113 * be multiple segments in a partition, so seg_offset allows segments
1194 * The partition data may have been modified between successive
1197 * The caller must retry to obtain consistent partition data.
1307 /* Read a single TLV item from the first segment in a TLV formatted partition */
1323 /* Allocate sufficient memory for the entire partition */
1339 * Read the first segment in a TLV partition. Retry until consistent
1342 * b) the MC has rebooted while we were reading the partition
1343 * c) the partition has been modified while we were reading it
1614 * dynamic config partition. The first segment is the current active
1654 * this is the first segment in a partition. In this case the caller
1697 * segments in a TLV formatted dynamic config partition. Dynamic config
1699 * each formatted like a partition, with header, trailer and end tags. The first
1736 /* Allocate sufficient memory for the entire partition */
1750 /* Lock the partition */
1784 /* Erase the whole partition in NVRAM */
1788 /* Write new partition contents from the buffer to NVRAM */
1793 /* Unlock the partition */
1823 * Get the size of a NVRAM partition. This is the total size allocated in nvram,
1824 * not the data used by the segments in the partition.
1907 * read the current, active partition.
2040 /* Add or modify partition version TLV item */
2048 /* Write the version number to all segments in the partition */
2073 /* Translate EFX NVRAM types to firmware partition types */
2238 /* Read available partitions from NVRAM partition map */
2252 /* Check if the partition is supported for this port */