Searched refs:sum (Results 76 - 100 of 396) sorted by relevance

1234567891011>>

/linux-master/drivers/platform/chrome/
H A Dcros_ec_i2c.c61 u8 sum; local
162 sum = 0;
164 sum += ((u8 *)ec_response)[i];
170 sum += msg->data[i];
172 /* All bytes should sum to zero */
173 if (sum) {
198 u8 sum; local
233 sum = out_buf[0] + out_buf[1] + out_buf[2];
236 sum += out_buf[3 + i];
238 out_buf[3 + msg->outsize] = sum;
[all...]
H A Dcros_ec_lpc_mec.c78 u8 sum = 0; local
109 sum += buf[i++];
139 return sum;
/linux-master/net/psample/
H A Dpsample.c315 int sum = nla_total_size(0); /* PSAMPLE_ATTR_TUNNEL */ local
318 sum += nla_total_size_64bit(sizeof(u64));
321 sum += nla_total_size(0);
326 sum += nla_total_size(sizeof(u32));
328 sum += nla_total_size(sizeof(u32));
332 sum += nla_total_size(sizeof(struct in6_addr));
334 sum += nla_total_size(sizeof(struct in6_addr));
338 sum += nla_total_size(sizeof(u8));
339 sum += nla_total_size(sizeof(u8)); /* TTL */
341 sum
[all...]
/linux-master/sound/pci/ctxfi/
H A Dctmixer.c812 struct sum *sum_c;
839 struct sum *sum; local
847 /* Allocate sum resources for mixer obj */
851 err = sum_mgr->get_sum(sum_mgr, &sum_desc, &sum);
854 "Failed to get sum resources for front output!\n");
857 mixer->sums[i] = sum;
890 sum_mgr->put_sum(sum_mgr, (struct sum *)mixer->sums[i]);
934 struct sum *sum; local
[all...]
/linux-master/drivers/input/misc/
H A Dibm-panel.c29 u16 sum = 0; local
33 sum += panel->command[i];
34 if (sum & 0xff00) {
35 sum &= 0xff;
36 sum++;
40 chksum = sum & 0xff;
/linux-master/include/drm/
H A Ddrm_fixed.h197 s64 sum = DRM_FIXED_ONE, term, y = x;
206 sum = sum + term;
212 sum = drm_fixp_div(DRM_FIXED_ONE, sum);
214 return sum;
/linux-master/net/rds/
H A Dstats.c117 uint64_t *sum; local
131 sum = (uint64_t *)&stats;
133 *(sum++) += *(src++);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Drdonly_maps.c7 unsigned sum; member in struct:bss
80 if (CHECK(bss.sum != t->exp_sum, "check_sum",
81 "prog '%s' sum: %d, expected: %d\n",
82 t->prog_name, bss.sum, t->exp_sum))
/linux-master/kernel/locking/
H A Dlock_events.c66 u64 sum = 0; local
77 sum += per_cpu(lockevents[id], cpu);
78 len = snprintf(buf, sizeof(buf) - 1, "%llu\n", sum);
/linux-master/drivers/clk/bcm/
H A Dclk-bcm53573-ilp.c49 int sum = 0, num = 0, loop_num = 0; local
70 sum += cur_val;
76 sum += cur_val;
87 avg = sum / num;
/linux-master/fs/f2fs/
H A Dhash.c27 __u32 sum = 0; local
33 sum += DELTA;
34 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b);
35 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d);
/linux-master/block/
H A Dblk-cgroup-rwstat.h49 int off, struct blkg_rwstat_sample *sum);
139 u64 sum[BLKG_RWSTAT_NR]; local
143 sum[i] = percpu_counter_sum_positive(&from->cpu_cnt[i]);
146 atomic64_add(sum[i] + atomic64_read(&from->aux_cnt[i]),
/linux-master/drivers/scsi/isci/
H A Dprobe_roms.c49 u8 *tmp, sum; local
81 for (j = 0, sum = 0; j < sizeof(oem_hdr); j++, tmp++)
82 sum += *tmp;
86 sum += *tmp;
88 if (sum != 0) {
172 u8 *tmp, sum; local
213 for (j = 0, sum = 0; j < (sizeof(*oem_hdr) + sizeof(*rom)); j++, tmp++)
214 sum += *tmp;
216 if (sum != 0) {
/linux-master/tools/testing/selftests/net/
H A Dtap.c234 uint32_t sum = 0; local
238 sum += *sbuf++;
243 sum += *(uint8_t *)sbuf;
245 return sum;
248 static uint16_t finish_ip_csum(uint32_t sum) argument
250 uint16_t lo = sum & 0xffff;
251 uint16_t hi = sum >> 16;
258 uint32_t sum)
260 sum += add_csum(buf, len);
261 return finish_ip_csum(sum);
257 build_ip_csum(const uint8_t *buf, int len, uint32_t sum) argument
287 uint32_t sum = 0; local
[all...]
H A Dpsock_snd.c56 unsigned long sum = 0; local
60 sum += start[i];
62 return sum;
66 unsigned long sum)
68 sum += add_csum_hword(start, num_u16);
70 while (sum >> 16)
71 sum = (sum & 0xffff) + (sum >> 16);
73 return ~sum;
65 build_ip_csum(const uint16_t *start, int num_u16, unsigned long sum) argument
[all...]
/linux-master/fs/befs/
H A Ddatastream.c239 * keeps a count of the number of blocks searched so far (sum),
241 * across it. Adds sum to *count before returning (this is so
256 befs_blocknr_t sum; local
260 for (i = 0, sum = 0; i < BEFS_NUM_DIRECT_BLOCKS;
261 sum += array[i].len, i++) {
262 if (blockno >= sum && blockno < sum + (array[i].len)) {
263 int offset = blockno - sum;
311 befs_blocknr_t sum = 0; local
342 if (search_blk >= sum
[all...]
/linux-master/arch/powerpc/kernel/
H A Dirq.c167 u64 sum = per_cpu(irq_stat, cpu).timer_irqs_event; local
169 sum += per_cpu(irq_stat, cpu).broadcast_irqs_event;
170 sum += per_cpu(irq_stat, cpu).pmu_irqs;
171 sum += per_cpu(irq_stat, cpu).mce_exceptions;
172 sum += per_cpu(irq_stat, cpu).spurious_irqs;
173 sum += per_cpu(irq_stat, cpu).timer_irqs_others;
175 sum += paca_ptrs[cpu]->hmi_irqs;
177 sum += per_cpu(irq_stat, cpu).sreset_irqs;
179 sum += per_cpu(irq_stat, cpu).soft_nmi_irqs;
182 sum
[all...]
/linux-master/arch/m68k/atari/
H A Dnvram.c58 unsigned char sum = 0; local
61 sum += __nvram_read_byte(i);
62 return (__nvram_read_byte(ATARI_CKS_LOC) == (~sum & 0xff)) &&
63 (__nvram_read_byte(ATARI_CKS_LOC + 1) == (sum & 0xff));
69 unsigned char sum = 0; local
72 sum += __nvram_read_byte(i);
73 __nvram_write_byte(~sum, ATARI_CKS_LOC);
74 __nvram_write_byte(sum, ATARI_CKS_LOC + 1);
/linux-master/include/net/sctp/
H A Dchecksum.h31 static inline __wsum sctp_csum_update(const void *buff, int len, __wsum sum) argument
36 return (__force __wsum)crc32c((__force __u32)sum, buff, len);
/linux-master/net/core/
H A Dutils.c425 void inet_proto_csum_replace4(__sum16 *sum, struct sk_buff *skb, argument
429 csum_replace4(sum, from, to);
435 *sum = ~csum_fold(csum_add(csum_sub(csum_unfold(*sum),
443 * @sum: Layer 4 header checksum field
458 void inet_proto_csum_replace16(__sum16 *sum, struct sk_buff *skb, argument
467 *sum = csum_fold(csum_partial(diff, sizeof(diff),
468 ~csum_unfold(*sum)));
470 *sum = ~csum_fold(csum_partial(diff, sizeof(diff),
471 csum_unfold(*sum)));
475 inet_proto_csum_replace_by_diff(__sum16 *sum, struct sk_buff *skb, __wsum diff, bool pseudohdr) argument
[all...]
/linux-master/fs/nilfs2/
H A Drecovery.c86 * @sum: place to store result
93 struct buffer_head *bhs, u32 *sum,
119 *sum = crc;
178 * @sum: pointer to return segment summary structure
182 struct nilfs_segment_summary **sum)
188 *sum = (struct nilfs_segment_summary *)bh_sum->b_data;
197 * @sum: segment summary struct
201 struct nilfs_segment_summary *sum)
208 if (le32_to_cpu(sum->ss_magic) != NILFS_SEGSUM_MAGIC)
212 if (le64_to_cpu(sum
92 nilfs_compute_checksum(struct the_nilfs *nilfs, struct buffer_head *bhs, u32 *sum, unsigned long offset, u64 check_bytes, sector_t start, unsigned long nblock) argument
181 nilfs_read_log_header(struct the_nilfs *nilfs, sector_t start_blocknr, struct nilfs_segment_summary **sum) argument
199 nilfs_validate_log(struct the_nilfs *nilfs, u64 seg_seq, struct buffer_head *bh_sum, struct nilfs_segment_summary *sum) argument
304 nilfs_scan_dsync_log(struct the_nilfs *nilfs, sector_t start_blocknr, struct nilfs_segment_summary *sum, struct list_head *head) argument
574 struct nilfs_segment_summary *sum = NULL; local
802 struct nilfs_segment_summary *sum = NULL; local
[all...]
/linux-master/drivers/net/ethernet/intel/e1000e/
H A Dmanage.c17 u8 sum = 0; local
23 sum += buffer[i];
25 return (u8)(0 - sum);
175 * @sum: sum of the data (not checksum)
179 * way. Also fills up the sum of the buffer in *buffer parameter.
182 u16 length, u16 offset, u8 *sum)
189 /* sum = only sum of the data and it is not checksum */
202 *sum
181 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer, u16 length, u16 offset, u8 *sum) argument
[all...]
/linux-master/tools/testing/selftests/rseq/
H A Dbasic_percpu_ops_test.c149 uint64_t sum; local
163 sum = 0;
165 sum += data.c[i].count;
167 assert(sum == (uint64_t)data.reps * num_threads);
277 uint64_t sum = 0, expected_sum = 0; local
316 sum += node->data;
326 assert(sum == expected_sum);
/linux-master/arch/alpha/include/asm/
H A Dhwrpb.h213 unsigned long sum = 0, *l; local
215 sum += *l;
216 h->chksum = sum;
/linux-master/include/linux/
H A Dkernel_stat.h74 unsigned int sum = 0; local
77 sum += kstat_softirqs_cpu(i, cpu);
79 return sum;

Completed in 341 milliseconds

1234567891011>>