Searched refs:sum (Results 1 – 4 of 4) sorted by relevance
19 u32 sum = 0; in checksum_block() local22 sum += be32_to_cpu(*m++); in checksum_block()23 return sum; in checksum_block()
335 unsigned long sum; in valid_ics_sector() local338 for (i = 0, sum = 0x50617274; i < 508; i++) in valid_ics_sector()339 sum += data[i]; in valid_ics_sector()341 sum -= le32_to_cpu(*(__le32 *)(&data[508])); in valid_ics_sector()343 return sum == 0; in valid_ics_sector()
635 u64 sum; in blkg_stat_recursive_sum() local639 sum = blkg_stat_read((void *)pd + off); in blkg_stat_recursive_sum()647 sum += blkg_stat_read(stat); in blkg_stat_recursive_sum()651 return sum; in blkg_stat_recursive_sum()670 struct blkg_rwstat sum; in blkg_rwstat_recursive_sum() local675 sum = blkg_rwstat_read((void *)pd + off); in blkg_rwstat_recursive_sum()689 sum.cnt[i] += tmp.cnt[i]; in blkg_rwstat_recursive_sum()693 return sum; in blkg_rwstat_recursive_sum()
1538 u64 sum = 0; in cfqg_stat_pd_recursive_sum() local1540 sum += blkg_stat_recursive_sum(pd, off); in cfqg_stat_pd_recursive_sum()1541 sum += blkg_stat_recursive_sum(pd, off + dead_stats_off_delta); in cfqg_stat_pd_recursive_sum()1542 return sum; in cfqg_stat_pd_recursive_sum()1763 u64 sum = cfqg_stat_pd_recursive_sum(pd, off); in cfqg_prfill_stat_recursive() local1765 return __blkg_prfill_u64(sf, pd, sum); in cfqg_prfill_stat_recursive()1771 struct blkg_rwstat sum = cfqg_rwstat_pd_recursive_sum(pd, off); in cfqg_prfill_rwstat_recursive() local1773 return __blkg_prfill_rwstat(sf, pd, &sum); in cfqg_prfill_rwstat_recursive()