Searched defs:sum (Results 1 - 10 of 10) sorted by relevance

/systemd/src/libsystemd/sd-bus/
H A Dbus-gvariant.c26 int sum = 0, r; local
47 sum = ALIGN_TO(sum, r);
54 sum += 1;
59 sum += 2;
65 sum += 4;
71 sum += 8;
90 sum += r;
112 return ALIGN_TO(sum, r);
H A Dbus-socket.c830 uint64_t sum; local
871 sum = (uint64_t) sizeof(struct bus_header) + (uint64_t) ALIGN_TO(b, 8) + (uint64_t) a;
872 if (sum >= BUS_MESSAGE_SIZE_MAX)
875 *need = (size_t) sum;
/systemd/src/libsystemd-network/
H A Ddhcp-packet.c59 uint64_t sum = 0; local
64 sum += *buf_64;
65 if (sum < *buf_64)
67 sum++;
79 sum += buf_tail;
80 if (sum < buf_tail)
82 sum++;
85 while (sum >> 16)
86 sum = (sum
[all...]
/systemd/src/coredump/
H A Dcoredump-vacuum.c87 static bool vacuum_necessary(int fd, uint64_t sum, uint64_t keep_free, uint64_t max_use) { argument
113 if (max_use > 0 && sum > max_use)
165 uint64_t sum = 0; local
244 sum += st.st_blocks * 512;
250 r = vacuum_necessary(dirfd(d), sum, keep_free, max_use);
/systemd/src/journal/
H A Djournal-vacuum.c157 uint64_t sum = 0, freed = 0; local
308 sum += size;
319 (max_use <= 0 || sum <= max_use) &&
327 if (list[i].usage < sum)
328 sum -= list[i].usage;
330 sum = 0;
H A Djournald-server.c98 uint64_t sum = 0, ss_avail, avail; local
145 sum += (uint64_t) st.st_blocks * 512UL;
156 metrics->min_use = MAX(metrics->min_use, sum);
161 s->cached_space_limit = MIN(MAX(sum + avail, metrics->min_use), metrics->max_use);
162 s->cached_space_available = LESS_BY(s->cached_space_limit, sum);
168 format_bytes(fb1, sizeof(fb1), sum);
180 "CURRENT_USE=%"PRIu64, sum,
H A Dsd-journal.c2387 uint64_t sum = 0; local
2399 sum += (uint64_t) st.st_blocks * 512ULL;
2402 *bytes = sum;
/systemd/src/resolve/
H A Dresolved-dns-dnssec.c53 uint32_t sum, f; local
66 sum = f + ((((uint32_t) dnskey->dnskey.protocol) << 8) + (uint32_t) dnskey->dnskey.algorithm);
71 sum += (i & 1) == 0 ? (uint32_t) p[i] << 8 : (uint32_t) p[i];
73 sum += (sum >> 16) & UINT32_C(0xFFFF);
75 return sum & UINT32_C(0xFFFF);
/systemd/src/core/
H A Dload-fragment.c1049 uint64_t sum = 0, initial = 0; local
1088 sum |= ((uint64_t) UINT64_C(1)) << (uint64_t) cap;
1091 sum = invert ? ~sum : sum;
1093 if (sum == 0 || *capability_set == initial)
1095 *capability_set = sum;
1098 *capability_set |= sum;
H A Dmanager.c2617 char userspace[FORMAT_TIMESPAN_MAX], initrd[FORMAT_TIMESPAN_MAX], kernel[FORMAT_TIMESPAN_MAX], sum[FORMAT_TIMESPAN_MAX]; local
2649 format_timespan(sum, sizeof(sum), total_usec, USEC_PER_MSEC)),
2662 format_timespan(sum, sizeof(sum), total_usec, USEC_PER_MSEC)),
2673 format_timespan(sum, sizeof(sum), total_usec, USEC_PER_MSEC)),
2682 format_timespan(sum, sizeof(sum), total_usec, USEC_PER_MSEC));

Completed in 76 milliseconds