• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/

Lines Matching refs:bc

379  * data is the block to be checked.  bc is a pointer to the
382 * bc should be a pointer inside data, as the function will
384 * bc does not point inside data, the caller must make sure any inline
388 * bc will be filled with little-endian values and will be ready to go to
392 struct ocfs2_block_check *bc)
397 memset(bc, 0, sizeof(struct ocfs2_block_check));
408 bc->bc_crc32e = cpu_to_le32(crc);
409 bc->bc_ecc = cpu_to_le16((u16)ecc);
414 * the function will take care of zeroing bc before calculating check codes.
415 * If bc is not a pointer inside data, the caller must have zeroed any
421 struct ocfs2_block_check *bc,
430 check.bc_crc32e = le32_to_cpu(bc->bc_crc32e);
431 check.bc_ecc = le16_to_cpu(bc->bc_ecc);
433 memset(bc, 0, sizeof(struct ocfs2_block_check));
462 bc->bc_crc32e = cpu_to_le32(check.bc_crc32e);
463 bc->bc_ecc = cpu_to_le16(check.bc_ecc);
470 * bhs is the blocks to be checked. bc is a pointer to the
473 * bc should be a pointer inside data, as the function will
475 * bc does not point inside data, the caller must make sure any inline
479 * bc will be filled with little-endian values and will be ready to go to
483 struct ocfs2_block_check *bc)
493 memset(bc, 0, sizeof(struct ocfs2_block_check));
513 bc->bc_crc32e = cpu_to_le32(crc);
514 bc->bc_ecc = cpu_to_le16((u16)ecc);
520 * zeroing bc before calculating check codes. If bc is not a pointer
527 struct ocfs2_block_check *bc,
541 check.bc_crc32e = le32_to_cpu(bc->bc_crc32e);
542 check.bc_ecc = le16_to_cpu(bc->bc_ecc);
544 memset(bc, 0, sizeof(struct ocfs2_block_check));
592 bc->bc_crc32e = cpu_to_le32(check.bc_crc32e);
593 bc->bc_ecc = cpu_to_le16(check.bc_ecc);
605 struct ocfs2_block_check *bc)
608 ocfs2_block_check_compute(data, sb->s_blocksize, bc);
612 struct ocfs2_block_check *bc)
618 rc = ocfs2_block_check_validate(data, sb->s_blocksize, bc,
626 struct ocfs2_block_check *bc)
629 ocfs2_block_check_compute_bhs(bhs, nr, bc);
634 struct ocfs2_block_check *bc)
640 rc = ocfs2_block_check_validate_bhs(bhs, nr, bc,