Lines Matching refs:bc
339 * data is the block to be checked. bc is a pointer to the
342 * bc should be a pointer inside data, as the function will
344 * bc does not point inside data, the caller must make sure any inline
348 * bc will be filled with little-endian values and will be ready to go to
352 struct ocfs2_block_check *bc)
357 memset(bc, 0, sizeof(struct ocfs2_block_check));
368 bc->bc_crc32e = cpu_to_le32(crc);
369 bc->bc_ecc = cpu_to_le16((u16)ecc);
374 * the function will take care of zeroing bc before calculating check codes.
375 * If bc is not a pointer inside data, the caller must have zeroed any
381 struct ocfs2_block_check *bc,
391 bc_crc32e = le32_to_cpu(bc->bc_crc32e);
392 bc_ecc = le16_to_cpu(bc->bc_ecc);
394 memset(bc, 0, sizeof(struct ocfs2_block_check));
423 bc->bc_crc32e = cpu_to_le32(bc_crc32e);
424 bc->bc_ecc = cpu_to_le16(bc_ecc);
431 * bhs is the blocks to be checked. bc is a pointer to the
434 * bc should be a pointer inside data, as the function will
436 * bc does not point inside data, the caller must make sure any inline
440 * bc will be filled with little-endian values and will be ready to go to
444 struct ocfs2_block_check *bc)
454 memset(bc, 0, sizeof(struct ocfs2_block_check));
474 bc->bc_crc32e = cpu_to_le32(crc);
475 bc->bc_ecc = cpu_to_le16((u16)ecc);
481 * zeroing bc before calculating check codes. If bc is not a pointer
488 struct ocfs2_block_check *bc,
503 bc_crc32e = le32_to_cpu(bc->bc_crc32e);
504 bc_ecc = le16_to_cpu(bc->bc_ecc);
506 memset(bc, 0, sizeof(struct ocfs2_block_check));
554 bc->bc_crc32e = cpu_to_le32(bc_crc32e);
555 bc->bc_ecc = cpu_to_le16(bc_ecc);
567 struct ocfs2_block_check *bc)
570 ocfs2_block_check_compute(data, sb->s_blocksize, bc);
574 struct ocfs2_block_check *bc)
580 rc = ocfs2_block_check_validate(data, sb->s_blocksize, bc,
588 struct ocfs2_block_check *bc)
591 ocfs2_block_check_compute_bhs(bhs, nr, bc);
596 struct ocfs2_block_check *bc)
602 rc = ocfs2_block_check_validate_bhs(bhs, nr, bc,