/linux-master/fs/romfs/ |
H A D | super.c | 446 __u32 sum; local 448 sum = 0; 451 sum += be32_to_cpu(*ptr++); 454 return sum;
|
/linux-master/arch/x86/pci/ |
H A D | irq.c | 78 u8 sum; local 87 sum = 0; 89 sum += addr[i]; 90 if (!sum) { 132 u8 sum; local 159 sum = 0; 161 sum += addr[i]; 162 rt->checksum = -sum;
|
/linux-master/lib/ |
H A D | bch.c | 608 * let u = sum(li.a^i) i=0..m-1; then compute r = sum(li.xi): 609 * r^2+r = sum(li.(xi^2+xi)) = sum(li.(a^i+Tr(a^i).a^k)) = 610 * u + sum(li.Tr(a^i).a^k) = u+a^k.Tr(sum(li.a^i)) = u+a^k.Tr(u) 1026 uint32_t sum; local 1047 for (i = 0, sum = 0; i < (int)ecc_words; i++) { 1049 sum |= bch->ecc_buf[i]; 1051 if (!sum) 1152 unsigned int sum, x, y, remaining, ak = 0, xi[BCH_MAX_M]; local [all...] |
H A D | checksum_kunit.c | 451 #define full_csum(buff, len, sum) csum_fold(csum_partial(buff, len, sum)) 485 __wsum sum; local 497 sum = to_wsum(random_init_sum); 498 result = full_csum(&tmp_buf[align], len, sum); 511 __wsum sum; local 520 * All carries from input and initial sum. 522 sum = to_wsum(0xffffffff); 523 result = full_csum(&tmp_buf[align], len, sum); 530 sum 551 __wsum sum; local [all...] |
/linux-master/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-recheck.sh | 102 if test -f "$rd/kcsan.sum" 111 elif test -s "$rd/kcsan.sum" 113 echo KCSAN summary in $rd/kcsan.sum
|
/linux-master/block/ |
H A D | bfq-cgroup.c | 1168 struct blkg_rwstat_sample sum; local 1170 blkg_rwstat_recursive_sum(pd_to_blkg(pd), &blkcg_policy_bfq, off, &sum); local 1171 return __blkg_prfill_rwstat(sf, pd, &sum); 1196 u64 sum = 0; local 1208 sum += bfq_stat_read(stat) + atomic64_read(&stat->aux_cnt); 1212 return __blkg_prfill_u64(sf, pd, sum); 1227 u64 sum = blkg_rwstat_total(&bfqg->stats.bytes); local 1229 return __blkg_prfill_u64(sf, pd, sum >> 9);
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | custom_multipath_hash.sh | 267 local sum=$((d_rp11 + d_rp12)) 269 local pct=$(echo "$diff / $sum * 100" | bc -l)
|
/linux-master/arch/powerpc/crypto/ |
H A D | aes-gcm-p10.S | 256 # sum hash and reduction with H Poly 278 # sum hash and reduction with H Poly 313 # sum hash and reduction with H Poly 337 # sum hash and reduction with H Poly 362 # sum hash and reduction with H Poly 386 # sum hash and reduction with H Poly
|
/linux-master/tools/perf/scripts/python/ |
H A D | task-analyzer.py | 224 return sum(sorted(numbers)[index - 1 : index + 1]) / 2 228 return sum(numbers) / len(numbers) 330 fmt = " {{:^{}}}".format(sum(db["task_info"].values())) 332 sum(db["runtime_info"].values()) - 2 * decimal_precision 338 sum(db["inter_times"].values()) - 4 * decimal_precision 426 # The size of the decimal after sum,mean and median varies, thus we cut 429 time_sum = round(sum(runtimes), 3)
|
/linux-master/kernel/irq/ |
H A D | irqdesc.c | 963 * Returns the sum of interrupt counts on @cpu since boot for 983 unsigned int sum = 0; local 994 sum += data_race(*per_cpu_ptr(desc->kstat_irqs, cpu)); 995 return sum; 1002 * Returns the sum of interrupt counts on all cpus since boot for @irq. 1010 unsigned int sum; local 1013 sum = kstat_irqs(irq); 1015 return sum;
|
/linux-master/fs/f2fs/ |
H A D | recovery.c | 501 struct f2fs_summary sum; local 519 sum = curseg->sum_blk->entries[blkoff]; 528 sum = sum_node->entries[blkoff]; 532 nid = le32_to_cpu(sum.nid); 533 ofs_in_node = le16_to_cpu(sum.ofs_in_node); 582 le16_to_cpu(sum.ofs_in_node);
|
/linux-master/drivers/staging/gdm724x/ |
H A D | gdm_lte.c | 177 __wsum sum = 0; local 200 sum = csum_add(sum, csum_unfold((__force __sum16)pa)); 205 sum = csum_add(sum, csum_unfold((__force __sum16)*w++)); 209 return csum_fold(sum);
|
/linux-master/include/trace/events/ |
H A D | rxrpc.h | 1560 __field_struct(struct rxrpc_ack_summary, sum) 1570 memcpy(&__entry->sum, summary, sizeof(__entry->sum)); 1576 __print_symbolic(__entry->sum.ack_reason, rxrpc_ack_names), 1578 __print_symbolic(__entry->sum.mode, rxrpc_congest_modes), 1579 __entry->sum.cwnd, 1580 __entry->sum.ssthresh, 1581 __entry->sum.nr_acks, __entry->sum.nr_retained_nacks, 1582 __entry->sum [all...] |
/linux-master/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_minidump.c | 1084 uint64_t sum = 0; local 1087 sum += *temp_buffer++; 1088 while (sum >> 32) 1089 sum = (sum & 0xFFFFFFFF) + (sum >> 32); 1090 return ~sum;
|
/linux-master/drivers/scsi/qla4xxx/ |
H A D | ql4_83xx.c | 746 uint32_t sum = 0; local 752 sum += *buff++; 754 while (sum >> 16) 755 sum = (sum & 0xFFFF) + (sum >> 16); 758 if (~sum) {
|
/linux-master/kernel/time/ |
H A D | posix-cpu-timers.c | 255 struct task_cputime *sum) 257 __update_gt_cputime(&cputime_atomic->utime, sum->utime); 258 __update_gt_cputime(&cputime_atomic->stime, sum->stime); 259 __update_gt_cputime(&cputime_atomic->sum_exec_runtime, sum->sum_exec_runtime); 304 struct task_cputime sum; local 311 thread_group_cputime(tsk, &sum); 312 update_gt_cputime(&cputimer->cputime_atomic, &sum); 254 update_gt_cputime(struct task_cputime_atomic *cputime_atomic, struct task_cputime *sum) argument
|
/linux-master/sound/pci/ctxfi/ |
H A D | ctatc.c | 597 err = sum_mgr->get_sum(sum_mgr, &sum_dsc, (struct sum **)&apcm->mono); 649 struct sum *mono; 1437 (struct sum **)&atc->pcm[i]); 1491 struct sum *sum; local 1537 sum = atc->pcm[j]; 1538 mixer->set_input_left(mixer, i, &sum->rsc); 1539 sum = atc->pcm[j+1]; 1540 mixer->set_input_right(mixer, i, &sum->rsc);
|
/linux-master/drivers/input/touchscreen/ |
H A D | ili210x.c | 137 s16 sum = 0; local 151 sum = (sum + data[i]) & 0xff; 153 if ((-sum & 0xff) != data[ILI211X_DATA_SIZE - 1]) { 156 sum, data[ILI211X_DATA_SIZE - 1]);
|
/linux-master/kernel/trace/ |
H A D | tracing_map.c | 30 * tracing_map_update_sum - Add a value to a tracing_map_elt's sum field 32 * @i: The index of the given sum associated with the tracing_map_elt 33 * @n: The value to add to the sum 35 * Add n to sum i associated with the specified tracing_map_elt 41 atomic64_add(n, &elt->fields[i].sum); 45 * tracing_map_read_sum - Return the value of a tracing_map_elt's sum field 47 * @i: The index of the given sum associated with the tracing_map_elt 49 * Retrieve the value of the sum i associated with the specified 54 * Return: The sum associated with field i for elt. 58 return (u64)atomic64_read(&elt->fields[i].sum); [all...] |
/linux-master/drivers/md/bcache/ |
H A D | sysfs.c | 1059 uint64_t sum = 0; local 1098 sum += INITIAL_PRIO - cached[i]; 1101 sum = div64_u64(sum, n); 1120 meta * 100 / (size_t) ca->sb.nbuckets, sum,
|
/linux-master/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-stats.c | 265 af->window[0].sum = rkisp1_read(rkisp1, RKISP1_CIF_ISP_AFM_SUM_A); 267 af->window[1].sum = rkisp1_read(rkisp1, RKISP1_CIF_ISP_AFM_SUM_B); 269 af->window[2].sum = rkisp1_read(rkisp1, RKISP1_CIF_ISP_AFM_SUM_C);
|
/linux-master/drivers/net/ethernet/netronome/nfp/nic/ |
H A D | dcb.c | 214 int sum = 0; local 217 /* For ets mode, check bw percentage sum. */ 220 sum += ets->tc_tx_bw[i]; 227 if (ets_exists && sum != 100) { 228 nfp_warn(app->cpp, "Failed to validate ETS BW: sum must be 100.");
|
/linux-master/drivers/platform/x86/dell/ |
H A D | dcdbas.c | 511 u8 sum = 0; local 515 sum += *buffer++; 516 return sum;
|
/linux-master/fs/ |
H A D | dcache.c | 152 long sum = 0; local 154 sum += per_cpu(nr_dentry, i); 155 return sum < 0 ? 0 : sum; 161 long sum = 0; local 163 sum += per_cpu(nr_dentry_unused, i); 164 return sum < 0 ? 0 : sum; 170 long sum = 0; local 173 sum [all...] |
/linux-master/arch/x86/kernel/ |
H A D | mpparse.c | 43 int sum = 0; local 46 sum += *mp++; 48 return sum & 0xFF;
|