Lines Matching refs:cpu_to_le32

112 #define journal_entry_set_sector(je, x)		do { (je)->u.s.sector_lo = cpu_to_le32(x); smp_wmb(); WRITE_ONCE((je)->u.s.sector_hi, cpu_to_le32((x) >> 32)); } while (0)
115 #define journal_entry_is_unused(je) ((je)->u.s.sector_hi == cpu_to_le32(-1))
116 #define journal_entry_set_unused(je) ((je)->u.s.sector_hi = cpu_to_le32(-1))
117 #define journal_entry_is_inprogress(je) ((je)->u.s.sector_hi == cpu_to_le32(-2))
118 #define journal_entry_set_inprogress(je) ((je)->u.s.sector_hi = cpu_to_le32(-2))
393 if (!(ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) ?
482 if (ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC))
484 else if (ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_PADDING))
486 else if (ic->mode == 'B' || ic->sb->flags & cpu_to_le32(SB_FLAG_DIRTY_BITMAP))
488 else if (ic->meta_dev || ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))
551 if (ic->journal_mac && ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) {
563 if (ic->mode != 'R' && ic->journal_mac && ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) {
794 if (ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) {
1657 if (ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) {
2369 if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING) &&
2943 if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING)) {
3232 ic->sb->flags &= ~cpu_to_le32(SB_FLAG_DIRTY_BITMAP);
3272 if (ic->sb->flags & cpu_to_le32(SB_FLAG_DIRTY_BITMAP)) {
3283 ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
3295 ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
3302 ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
3307 ic->sb->flags &= ~cpu_to_le32(SB_FLAG_DIRTY_BITMAP);
3315 ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
3319 ic->sb->flags |= cpu_to_le32(SB_FLAG_DIRTY_BITMAP);
3328 if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING) &&
3343 if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING)) {
3378 if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))
3392 arg_count += !!(ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING));
3402 arg_count += (ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_PADDING)) != 0;
3403 arg_count += (ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) != 0;
3411 if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))
3428 if ((ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_PADDING)) != 0)
3430 if ((ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) != 0)
3458 DMEMIT(",recalculate=%c", (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING)) ?
3462 ((ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_PADDING)) != 0) ? 'y' : 'n');
3464 ((ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) != 0) ? 'y' : 'n');
3507 if (ic->sb->flags & cpu_to_le32(SB_FLAG_HAVE_JOURNAL_MAC))
3530 ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_PADDING) ?
3591 ic->sb->flags |= cpu_to_le32(SB_FLAG_HAVE_JOURNAL_MAC);
3599 ic->sb->flags |= cpu_to_le32(SB_FLAG_FIXED_HMAC);
3605 ic->sb->flags |= cpu_to_le32(SB_FLAG_FIXED_PADDING);
3606 ic->sb->journal_sections = cpu_to_le32(journal_sections);
3624 ic->sb->journal_sections = cpu_to_le32(0);
3631 ic->sb->journal_sections = cpu_to_le32(test_journal_sections);
3633 ic->sb->journal_sections = cpu_to_le32(prev_journal_sections);
3996 __le32 section_le = cpu_to_le32(i);
4455 if (!!(ic->sb->flags & cpu_to_le32(SB_FLAG_HAVE_JOURNAL_MAC)) != !!ic->journal_mac_alg.alg_string) {
4533 if (ic->recalculate_flag && !(ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))) {
4534 ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
4547 if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING)) {
4554 if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING) &&