Lines Matching refs:packed

34  * A packed, machine-independent, on-disk representation of a version_number. Both fields are
57 /* A packed, machine-independent, on-disk representation of a component header. */
225 /* The packed, on-disk representation of a recovery journal entry. */
266 /* The packed, on-disk representation of an old format recovery journal entry. */
322 * The packed, on-disk representation of a recovery journal block header. All fields are kept in
397 /* A packed, platform-independent encoding of a struct journal_point. */
400 * The packed representation is the little-endian 64-bit representation of the low-order 48
488 * The packed, on-disk representation of a slab journal block header. All fields are kept in
496 /* Recovery journal point for the last entry, packed into 64 bits */
621 * A packed, machine-independent, on-disk representation of the vdo_config in the VDO component
633 * A packed, machine-independent, on-disk representation of version 41.0 of the VDO component data
736 * vdo_pack_version_number() - Convert a version_number to its packed on-disk representation.
765 * vdo_pack_header() - Convert a component header to its packed on-disk representation.
898 * vdo_pack_recovery_journal_entry() - Return the packed, on-disk representation of a recovery
902 * Return: The packed representation of the journal entry.
951 * @sector: The packed sector to check.
1000 * Return: A packed recovery journal sector.
1011 * vdo_pack_recovery_block_header() - Generate the packed representation of a recovery block
1014 * @packed: The header into which to pack the values.
1017 struct packed_journal_header *packed)
1019 *packed = (struct packed_journal_header) {
1034 * vdo_unpack_recovery_block_header() - Decode the packed representation of a recovery block
1036 * @packed: The packed header to decode.
1041 vdo_unpack_recovery_block_header(const struct packed_journal_header *packed)
1044 .block_map_head = __le64_to_cpu(packed->block_map_head),
1045 .slab_journal_head = __le64_to_cpu(packed->slab_journal_head),
1046 .sequence_number = __le64_to_cpu(packed->sequence_number),
1047 .nonce = __le64_to_cpu(packed->nonce),
1048 .logical_blocks_used = __le64_to_cpu(packed->logical_blocks_used),
1049 .block_map_data_blocks = __le64_to_cpu(packed->block_map_data_blocks),
1050 .entry_count = __le16_to_cpu(packed->entry_count),
1051 .check_byte = packed->check_byte,
1052 .recovery_count = packed->recovery_count,
1053 .metadata_type = packed->metadata_type,
1141 * @packed: The packed output point.
1144 struct packed_journal_point *packed)
1146 packed->encoded_point =
1153 * @packed: The packed input point.
1156 static inline void vdo_unpack_journal_point(const struct packed_journal_point *packed,
1159 u64 native = __le64_to_cpu(packed->encoded_point);
1166 * vdo_pack_slab_journal_block_header() - Generate the packed representation of a slab block
1169 * @packed: The header into which to pack the values.
1173 struct packed_slab_journal_block_header *packed)
1175 packed->head = __cpu_to_le64(header->head);
1176 packed->sequence_number = __cpu_to_le64(header->sequence_number);
1177 packed->nonce = __cpu_to_le64(header->nonce);
1178 packed->entry_count = __cpu_to_le16(header->entry_count);
1179 packed->metadata_type = header->metadata_type;
1180 packed->has_block_map_increments = header->has_block_map_increments;
1182 vdo_pack_journal_point(&header->recovery_point, &packed->recovery_point);
1186 * vdo_unpack_slab_journal_block_header() - Decode the packed representation of a slab block
1188 * @packed: The packed header to decode.
1192 vdo_unpack_slab_journal_block_header(const struct packed_slab_journal_block_header *packed,
1196 .head = __le64_to_cpu(packed->head),
1197 .sequence_number = __le64_to_cpu(packed->sequence_number),
1198 .nonce = __le64_to_cpu(packed->nonce),
1199 .entry_count = __le16_to_cpu(packed->entry_count),
1200 .metadata_type = packed->metadata_type,
1201 .has_block_map_increments = packed->has_block_map_increments,
1203 vdo_unpack_journal_point(&packed->recovery_point, &header->recovery_point);
1207 * vdo_pack_slab_journal_entry() - Generate the packed encoding of a slab journal entry.
1208 * @packed: The entry into which to pack the values.
1212 static inline void vdo_pack_slab_journal_entry(packed_slab_journal_entry *packed,
1215 packed->offset_low8 = (sbn & 0x0000FF);
1216 packed->offset_mid8 = (sbn & 0x00FF00) >> 8;
1217 packed->offset_high7 = (sbn & 0x7F0000) >> 16;
1218 packed->increment = is_increment ? 1 : 0;
1222 * vdo_unpack_slab_journal_entry() - Decode the packed representation of a slab journal entry.
1223 * @packed: The packed entry to decode.
1228 vdo_unpack_slab_journal_entry(const packed_slab_journal_entry *packed)
1232 entry.sbn = packed->offset_high7;
1234 entry.sbn |= packed->offset_mid8;
1236 entry.sbn |= packed->offset_low8;
1238 entry.increment = packed->increment;