Home
last modified time | relevance | path

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

/block/
Dblk-cgroup-rwstat.c104 int off, struct blkg_rwstat_sample *sum) in blkg_rwstat_recursive_sum() argument
112 memset(sum, 0, sizeof(*sum)); in blkg_rwstat_recursive_sum()
126 sum->cnt[i] += blkg_rwstat_read_counter(rwstat, i); in blkg_rwstat_recursive_sum()
Dblk-cgroup-rwstat.h49 int off, struct blkg_rwstat_sample *sum);
139 u64 sum[BLKG_RWSTAT_NR]; in blkg_rwstat_add_aux() local
143 sum[i] = percpu_counter_sum_positive(&from->cpu_cnt[i]); in blkg_rwstat_add_aux()
146 atomic64_add(sum[i] + atomic64_read(&from->aux_cnt[i]), in blkg_rwstat_add_aux()
Dbfq-cgroup.c1156 struct blkg_rwstat_sample sum; in bfqg_prfill_rwstat_recursive() local
1158 blkg_rwstat_recursive_sum(pd_to_blkg(pd), &blkcg_policy_bfq, off, &sum); in bfqg_prfill_rwstat_recursive()
1159 return __blkg_prfill_rwstat(sf, pd, &sum); in bfqg_prfill_rwstat_recursive()
1184 u64 sum = 0; in bfqg_prfill_stat_recursive() local
1196 sum += bfq_stat_read(stat) + atomic64_read(&stat->aux_cnt); in bfqg_prfill_stat_recursive()
1200 return __blkg_prfill_u64(sf, pd, sum); in bfqg_prfill_stat_recursive()
1215 u64 sum = blkg_rwstat_total(&bfqg->stats.bytes); in bfqg_prfill_sectors() local
1217 return __blkg_prfill_u64(sf, pd, sum >> 9); in bfqg_prfill_sectors()
Dblk-iolatency.c208 struct latency_stat *sum, in latency_stat_sum() argument
212 sum->ps.total += stat->ps.total; in latency_stat_sum()
213 sum->ps.missed += stat->ps.missed; in latency_stat_sum()
215 blk_rq_stat_sum(&sum->rqs, &stat->rqs); in latency_stat_sum()
Dsed-opal.c293 const struct d0_single_user_mode *sum = data; in check_sum() local
294 u32 nlo = be32_to_cpu(sum->num_locking_objects); in check_sum()
1505 if (session->sum) in start_auth_opal_session()
1508 else if (session->who != OPAL_ADMIN1 && !session->sum) in start_auth_opal_session()
1691 if (usr->sum) in set_new_pw()
1894 if (opal_act->sum) { in activate_lsp()
2340 if (lk_unlk->session.sum) { in opal_add_user_to_lr()
2402 if (lk_unlk->session.sum) in __opal_lock_unlock()
2569 suspend->unlk.session.sum); in opal_unlock_from_suspend()
Dblk-throttle.c1521 struct blkg_rwstat_sample sum; in tg_prfill_rwstat_recursive() local
1524 &sum); in tg_prfill_rwstat_recursive()
1525 return __blkg_prfill_rwstat(sf, pd, &sum); in tg_prfill_rwstat_recursive()
/block/partitions/
Dacorn.c329 unsigned long sum; in valid_ics_sector() local
332 for (i = 0, sum = 0x50617274; i < 508; i++) in valid_ics_sector()
333 sum += data[i]; in valid_ics_sector()
335 sum -= le32_to_cpu(*(__le32 *)(&data[508])); in valid_ics_sector()
337 return sum == 0; in valid_ics_sector()
Damiga.c29 u32 sum = 0; in checksum_block() local
32 sum += be32_to_cpu(*m++); in checksum_block()
33 return sum; in checksum_block()