Lines Matching defs:bc

337  * data is the block to be checked.  bc is a pointer to the
340 * bc should be a pointer inside data, as the function will
342 * bc does not point inside data, the caller must make sure any inline
346 * bc will be filled with little-endian values and will be ready to go to
350 struct ocfs2_block_check *bc)
355 memset(bc, 0, sizeof(struct ocfs2_block_check));
366 bc->bc_crc32e = cpu_to_le32(crc);
367 bc->bc_ecc = cpu_to_le16((u16)ecc);
372 * the function will take care of zeroing bc before calculating check codes.
373 * If bc is not a pointer inside data, the caller must have zeroed any
379 struct ocfs2_block_check *bc,
389 bc_crc32e = le32_to_cpu(bc->bc_crc32e);
390 bc_ecc = le16_to_cpu(bc->bc_ecc);
392 memset(bc, 0, sizeof(struct ocfs2_block_check));
421 bc->bc_crc32e = cpu_to_le32(bc_crc32e);
422 bc->bc_ecc = cpu_to_le16(bc_ecc);
429 * bhs is the blocks to be checked. bc is a pointer to the
432 * bc should be a pointer inside data, as the function will
434 * bc does not point inside data, the caller must make sure any inline
438 * bc will be filled with little-endian values and will be ready to go to
442 struct ocfs2_block_check *bc)
452 memset(bc, 0, sizeof(struct ocfs2_block_check));
472 bc->bc_crc32e = cpu_to_le32(crc);
473 bc->bc_ecc = cpu_to_le16((u16)ecc);
479 * zeroing bc before calculating check codes. If bc is not a pointer
486 struct ocfs2_block_check *bc,
501 bc_crc32e = le32_to_cpu(bc->bc_crc32e);
502 bc_ecc = le16_to_cpu(bc->bc_ecc);
504 memset(bc, 0, sizeof(struct ocfs2_block_check));
552 bc->bc_crc32e = cpu_to_le32(bc_crc32e);
553 bc->bc_ecc = cpu_to_le16(bc_ecc);
565 struct ocfs2_block_check *bc)
568 ocfs2_block_check_compute(data, sb->s_blocksize, bc);
572 struct ocfs2_block_check *bc)
578 rc = ocfs2_block_check_validate(data, sb->s_blocksize, bc,
586 struct ocfs2_block_check *bc)
589 ocfs2_block_check_compute_bhs(bhs, nr, bc);
594 struct ocfs2_block_check *bc)
600 rc = ocfs2_block_check_validate_bhs(bhs, nr, bc,