/systemd-251/src/libsystemd-network/ |
D | dhcp-packet.c | 67 uint64_t sum = 0; in dhcp_packet_checksum() local 72 sum += *buf_64; in dhcp_packet_checksum() 73 if (sum < *buf_64) in dhcp_packet_checksum() 75 sum++; in dhcp_packet_checksum() 87 sum += buf_tail; in dhcp_packet_checksum() 88 if (sum < buf_tail) in dhcp_packet_checksum() 90 sum++; in dhcp_packet_checksum() 93 while (sum >> 16) in dhcp_packet_checksum() 94 sum = (sum & 0xffff) + (sum >> 16); in dhcp_packet_checksum() 96 return ~sum; in dhcp_packet_checksum()
|
D | sd-dhcp-server.c | 1255 size_t sum = 0; in relay_agent_information_length() local 1257 sum += 2 + strlen(agent_circuit_id); in relay_agent_information_length() 1259 sum += 2 + strlen(agent_remote_id); in relay_agent_information_length() 1260 return sum; in relay_agent_information_length()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-gvariant.c | 14 int sum = 0, r; in bus_gvariant_get_size() local 35 sum = ALIGN_TO(sum, r); in bus_gvariant_get_size() 42 sum += 1; in bus_gvariant_get_size() 47 sum += 2; in bus_gvariant_get_size() 53 sum += 4; in bus_gvariant_get_size() 59 sum += 8; in bus_gvariant_get_size() 78 sum += r; in bus_gvariant_get_size() 100 return ALIGN_TO(sum, r); in bus_gvariant_get_size()
|
D | bus-socket.c | 1086 uint64_t sum; in bus_socket_read_message_need() local 1127 sum = (uint64_t) sizeof(struct bus_header) + (uint64_t) ALIGN_TO(b, 8) + (uint64_t) a; in bus_socket_read_message_need() 1128 if (sum >= BUS_MESSAGE_SIZE_MAX) in bus_socket_read_message_need() 1131 *need = (size_t) sum; in bus_socket_read_message_need()
|
/systemd-251/src/coredump/ |
D | coredump-vacuum.c | 69 static bool vacuum_necessary(int fd, uint64_t sum, uint64_t keep_free, uint64_t max_use) { in vacuum_necessary() argument 95 if (max_use > 0 && sum > max_use) in vacuum_necessary() 146 uint64_t sum = 0; in coredump_vacuum() local 222 sum += st.st_blocks * 512; in coredump_vacuum() 228 r = vacuum_necessary(dirfd(d), sum, keep_free, max_use); in coredump_vacuum()
|
/systemd-251/src/libsystemd/sd-journal/ |
D | journal-vacuum.c | 125 uint64_t sum = 0, freed = 0, n_active_files = 0; in journal_directory_vacuum() local 275 sum += size; in journal_directory_vacuum() 286 (max_use <= 0 || sum <= max_use) && in journal_directory_vacuum() 296 if (list[i].usage < sum) in journal_directory_vacuum() 297 sum -= list[i].usage; in journal_directory_vacuum() 299 sum = 0; in journal_directory_vacuum()
|
D | sd-journal.c | 2859 uint64_t sum = 0; in sd_journal_get_usage() local 2877 if (sum > UINT64_MAX - b) in sd_journal_get_usage() 2879 sum += b; in sd_journal_get_usage() 2882 *ret = sum; in sd_journal_get_usage()
|
/systemd-251/tools/ |
D | gdb-sd_dump_hashmaps.py | 49 … s = sum(dib*count for (dib, count) in histogram.items() if dib != 255) / n_entries 72 print("sum block lens: {}".format(sum(b[1] for b in blocks))) 73 print("mean block len: {}".format(sum(b[1] for b in blocks) / len(blocks)))
|
D | update-dbus-docs.py | 331 total = sum((item['stats'] for item in stats.values()), collections.Counter())
|
/systemd-251/src/test/ |
D | test-sleep.c | 25 _cleanup_free_ char *sum, *sus, *him, *his, *hym, *hys; in TEST() local 27 sum = strv_join(sleep_config->modes[SLEEP_SUSPEND], ", "); in TEST() 37 log_debug(" suspend modes: %s", sum); in TEST()
|
D | test-varlink.c | 60 JsonVariant *sum; in reply() local 62 sum = json_variant_by_key(parameters, "sum"); in reply() 64 assert_se(json_variant_integer(sum) == 7+22); in reply()
|
/systemd-251/src/basic/ |
D | procfs-util.c | 135 uint64_t sum, gcd, a, b; in procfs_cpu_get_usage() local 164 sum = (uint64_t) user_ticks + (uint64_t) nice_ticks + (uint64_t) system_ticks + in procfs_cpu_get_usage() 174 *ret = DIV_ROUND_UP((nsec_t) sum * (nsec_t) a, (nsec_t) b); in procfs_cpu_get_usage()
|
D | process-util.c | 884 size_t l, sum = 0; in getenv_for_pid() local 923 if (sum > ENVIRONMENT_BLOCK_MAX) /* Give up searching eventually */ in getenv_for_pid() 932 sum += r; in getenv_for_pid()
|
/systemd-251/hwdb.d/ |
D | parse_hwdb.py | 214 matches = sum((group[0] for group in groups), []) 307 n_matches = sum(len(matches) for matches, props in groups) 308 n_props = sum(len(props) for matches, props in groups)
|
/systemd-251/src/udev/dmi_memory_id/ |
D | dmi_memory_id.c | 81 uint8_t sum = 0; in verify_checksum() local 84 sum += buf[a]; in verify_checksum() 85 return sum == 0; in verify_checksum()
|
/systemd-251/src/resolve/ |
D | resolved-dns-dnssec.c | 46 uint32_t sum, f; in dnssec_keytag() local 58 … sum = f + ((((uint32_t) dnskey->dnskey.protocol) << 8) + (uint32_t) dnskey->dnskey.algorithm); in dnssec_keytag() 63 sum += (i & 1) == 0 ? (uint32_t) p[i] << 8 : (uint32_t) p[i]; in dnssec_keytag() 65 sum += (sum >> 16) & UINT32_C(0xFFFF); in dnssec_keytag() 67 return sum & UINT32_C(0xFFFF); in dnssec_keytag()
|
/systemd-251/src/shared/ |
D | bus-unit-util.c | 1314 uint64_t sum = 0; in bus_append_execute_property() local 1323 r = capability_set_from_string(p, &sum); in bus_append_execute_property() 1327 sum = invert ? ~sum : sum; in bus_append_execute_property() 1329 r = sd_bus_message_append(m, "(sv)", field, "t", sum); in bus_append_execute_property()
|
/systemd-251/src/partition/ |
D | repart.c | 4776 uint64_t sum; in determine_auto_size() local 4780 sum = round_up_size(GPT_METADATA_SIZE, 4096); in determine_auto_size() 4789 if (m > UINT64_MAX - sum) in determine_auto_size() 4792 sum += m; in determine_auto_size() 4798 FORMAT_BYTES(sum), FORMAT_BYTES(c->total)); in determine_auto_size() 4802 FORMAT_BYTES(sum)); in determine_auto_size() 4804 arg_size = sum; in determine_auto_size()
|
/systemd-251/src/core/ |
D | load-fragment.c | 1887 uint64_t sum = 0, initial = 0; in config_parse_capability_set() local 1905 r = capability_set_from_string(rvalue, &sum); in config_parse_capability_set() 1911 if (sum == 0 || *capability_set == initial) in config_parse_capability_set() 1913 *capability_set = invert ? ~sum : sum; in config_parse_capability_set() 1917 *capability_set &= ~sum; in config_parse_capability_set() 1919 *capability_set |= sum; in config_parse_capability_set()
|
/systemd-251/src/home/ |
D | homework-luks.c | 2873 uint64_t used, avail, sum; in get_largest_image_size() local 2897 sum = UINT64_MAX; in get_largest_image_size() 2899 sum = avail + used; in get_largest_image_size() 2901 *ret = DISK_SIZE_ROUND_DOWN(MIN(sum, USER_DISK_SIZE_MAX)); in get_largest_image_size()
|
/systemd-251/docs/ |
D | JOURNAL_FILE_FORMAT.md | 421 number of ENTRY objects that reference this object, i.e. the sum of all
|
/systemd-251/ |
D | TODO | 310 optionally checking its hash sum. idea would be: combine this "sd-http" stub 311 binary with some minimal info about an URL + hash sum, plus .osrel data, and
|
D | NEWS | 9403 CPU time of a service (the sum of what each process of the
|