Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 6 of 6) sorted by relevance

/block/partitions/
Damiga.c22 u32 sum = 0; in checksum_block() local
25 sum += be32_to_cpu(*m++); in checksum_block()
26 return sum; in checksum_block()
Dacorn.c335 unsigned long sum; in valid_ics_sector() local
338 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()
/block/
Dbfq-cgroup.c912 u64 sum = blkg_stat_recursive_sum(pd_to_blkg(pd), in bfqg_prfill_stat_recursive() local
914 return __blkg_prfill_u64(sf, pd, sum); in bfqg_prfill_stat_recursive()
920 struct blkg_rwstat sum = blkg_rwstat_recursive_sum(pd_to_blkg(pd), in bfqg_prfill_rwstat_recursive() local
923 return __blkg_prfill_rwstat(sf, pd, &sum); in bfqg_prfill_rwstat_recursive()
945 u64 sum = blkg_rwstat_total(&pd->blkg->stat_bytes); in bfqg_prfill_sectors() local
947 return __blkg_prfill_u64(sf, pd, sum >> 9); in bfqg_prfill_sectors()
962 u64 sum = atomic64_read(&tmp.aux_cnt[BLKG_RWSTAT_READ]) + in bfqg_prfill_sectors_recursive() local
965 return __blkg_prfill_u64(sf, pd, sum >> 9); in bfqg_prfill_sectors_recursive()
Dblk-cgroup.c705 u64 sum = 0; in blkg_stat_recursive_sum() local
721 sum += blkg_stat_read(stat) + atomic64_read(&stat->aux_cnt); in blkg_stat_recursive_sum()
725 return sum; in blkg_stat_recursive_sum()
747 struct blkg_rwstat sum = { }; in blkg_rwstat_recursive_sum() local
767 &sum.aux_cnt[i]); in blkg_rwstat_recursive_sum()
771 return sum; in blkg_rwstat_recursive_sum()
Dsed-opal.c297 const struct d0_single_user_mode *sum = data; in check_sum() local
298 u32 nlo = be32_to_cpu(sum->num_locking_objects); in check_sum()
1345 if (session->sum) { in start_auth_opal_session()
1351 } else if (session->who != OPAL_ADMIN1 && !session->sum) { in start_auth_opal_session()
1571 if (usr->sum) in set_new_pw()
1794 if (opal_act->sum) { in activate_lsp()
2148 if (lk_unlk->session.sum) { in opal_add_user_to_lr()
2204 dev->steps = lk_unlk->session.sum ? unlock_sum_steps : unlock_steps; in __opal_lock_unlock()
2375 suspend->unlk.session.sum); in opal_unlock_from_suspend()
Dcfq-iosched.c1954 u64 sum = blkg_stat_recursive_sum(pd_to_blkg(pd), in cfqg_prfill_stat_recursive() local
1956 return __blkg_prfill_u64(sf, pd, sum); in cfqg_prfill_stat_recursive()
1962 struct blkg_rwstat sum = blkg_rwstat_recursive_sum(pd_to_blkg(pd), in cfqg_prfill_rwstat_recursive() local
1964 return __blkg_prfill_rwstat(sf, pd, &sum); in cfqg_prfill_rwstat_recursive()
1986 u64 sum = blkg_rwstat_total(&pd->blkg->stat_bytes); in cfqg_prfill_sectors() local
1988 return __blkg_prfill_u64(sf, pd, sum >> 9); in cfqg_prfill_sectors()
2003 u64 sum = atomic64_read(&tmp.aux_cnt[BLKG_RWSTAT_READ]) + in cfqg_prfill_sectors_recursive() local
2006 return __blkg_prfill_u64(sf, pd, sum >> 9); in cfqg_prfill_sectors_recursive()