Searched refs:cksum_offset (Results 1 – 2 of 2) sorted by relevance
/fs/xfs/libxfs/ |
D | xfs_cksum.h | 14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument 20 crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset); in xfs_start_cksum_safe() 26 return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], in xfs_start_cksum_safe() 27 length - (cksum_offset + sizeof(__be32))); in xfs_start_cksum_safe() 35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument 38 *(__le32 *)(buffer + cksum_offset) = 0; in xfs_start_cksum_update() 64 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_update_cksum() argument 66 uint32_t crc = xfs_start_cksum_update(buffer, length, cksum_offset); in xfs_update_cksum() 68 *(__le32 *)(buffer + cksum_offset) = xfs_end_cksum(crc); in xfs_update_cksum() 75 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_verify_cksum() argument [all …]
|
/fs/xfs/ |
D | xfs_buf.h | 330 xfs_buf_verify_cksum(struct xfs_buf *bp, unsigned long cksum_offset) in xfs_buf_verify_cksum() argument 333 cksum_offset); in xfs_buf_verify_cksum() 337 xfs_buf_update_cksum(struct xfs_buf *bp, unsigned long cksum_offset) in xfs_buf_update_cksum() argument 340 cksum_offset); in xfs_buf_update_cksum()
|