/systemd-251/src/test/ |
D | test-cpu-set-util.c | 17 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 33 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 50 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 68 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 83 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 96 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 113 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 126 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 143 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 149 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() [all …]
|
D | test-macro.c | 166 assert_se(DIV_ROUND_UP(0, 8) == 0); in TEST() 167 assert_se(DIV_ROUND_UP(1, 8) == 1); in TEST() 168 assert_se(DIV_ROUND_UP(8, 8) == 1); in TEST() 169 assert_se(DIV_ROUND_UP(12, 8) == 2); in TEST() 170 assert_se(DIV_ROUND_UP(16, 8) == 2); in TEST() 174 assert_se(DIV_ROUND_UP(div++, 8) == 0 && div == 1); in TEST() 175 assert_se(DIV_ROUND_UP(++div, 8) == 1 && div == 2); in TEST() 176 assert_se(DIV_ROUND_UP(8, div++) == 4 && div == 3); in TEST() 177 assert_se(DIV_ROUND_UP(8, ++div) == 2 && div == 4); in TEST() 183 assert_se(DIV_ROUND_UP(0xfffffffaU, 10U) == 429496729U); in TEST() [all …]
|
/systemd-251/coccinelle/ |
D | div-round-up.cocci | 6 + DIV_ROUND_UP(x, y) 11 + DIV_ROUND_UP(x, y) 16 + DIV_ROUND_UP(x, y) 21 + DIV_ROUND_UP(x, y)
|
/systemd-251/src/network/ |
D | networkd-can.c | 102 restart_ms = DIV_ROUND_UP(link->network->can_restart_us, USEC_PER_MSEC); in can_set_netlink_message() 246 DIV_ROUND_UP(usec, USEC_PER_MSEC) > UINT32_MAX) { in config_parse_can_restart_usec()
|
D | networkd-dhcp-server.c | 405 … DIV_ROUND_UP(link->network->dhcp_server_max_lease_time_usec, USEC_PER_SEC)); in dhcp4_server_configure() 412 … DIV_ROUND_UP(link->network->dhcp_server_default_lease_time_usec, USEC_PER_SEC)); in dhcp4_server_configure()
|
D | networkd-radv.c | 232 t = DIV_ROUND_UP(usec, USEC_PER_SEC); in usec_to_lifetime() 905 if (usec != USEC_INFINITY && DIV_ROUND_UP(usec, USEC_PER_SEC) >= UINT32_MAX) { in config_parse_prefix_lifetime() 1070 if (usec != USEC_INFINITY && DIV_ROUND_UP(usec, USEC_PER_SEC) >= UINT32_MAX) { in config_parse_route_prefix_lifetime()
|
/systemd-251/src/shared/ |
D | ethtool-util.c | 591 DIV_ROUND_UP(n_features, 32U) * sizeof(gfeatures->features[0])); in get_features() 596 gfeatures->size = DIV_ROUND_UP(n_features, 32U); in get_features() 727 DIV_ROUND_UP(strings->len, 32U) * sizeof(sfeatures->features[0])); in ethtool_set_features() 732 sfeatures->size = DIV_ROUND_UP(strings->len, 32U); in ethtool_set_features() 976 UPDATE(u->base.speed, DIV_ROUND_UP(speed, 1000000), changed); in ethtool_set_glinksettings() 1219 …UPDATE(ecmd.rate_sample_interval, DIV_ROUND_UP(coalesce->rate_sample_interval.value, USEC_PER_SEC)… in ethtool_set_nic_coalesce_settings()
|
D | numa-util.c | 53 out = new0(unsigned long, DIV_ROUND_UP(policy->nodes.allocated, sizeof(unsigned long))); in numa_policy_to_mempolicy()
|
D | watchdog.c | 39 usec_t t = DIV_ROUND_UP(val, USEC_PER_SEC); in saturated_usec_to_sec()
|
D | selinux-util.c | 134 DIV_ROUND_UP(l, 1024)); in open_label_db()
|
D | exec-util.c | 119 alarm(DIV_ROUND_UP(timeout, USEC_PER_SEC)); in do_execute()
|
/systemd-251/src/udev/ |
D | udev-event.h | 82 return DIV_ROUND_UP(timeout_usec, 3); in udev_warn_timeout()
|
/systemd-251/src/integritysetup/ |
D | integritysetup.c | 165 .journal_commit_time = DIV_ROUND_UP(arg_commit_time, USEC_PER_SEC), in run()
|
/systemd-251/src/boot/efi/ |
D | devicetree.c | 12 UINTN pages = DIV_ROUND_UP(size, EFI_PAGE_SIZE); in devicetree_allocate()
|
/systemd-251/src/login/ |
D | user-runtime-dir.c | 45 *inodes = DIV_ROUND_UP(*size, 4096); in acquire_runtime_dir_properties()
|
/systemd-251/src/network/netdev/ |
D | batadv.c | 151 …r = sd_netlink_message_append_u32(message, BATADV_ATTR_ORIG_INTERVAL, DIV_ROUND_UP(b->originator_i… in netdev_batadv_post_create_message()
|
/systemd-251/src/basic/ |
D | procfs-util.c | 174 *ret = DIV_ROUND_UP((nsec_t) sum * (nsec_t) a, (nsec_t) b); in procfs_cpu_get_usage()
|
D | rlimit-util.c | 146 u = (uint64_t) DIV_ROUND_UP(t, USEC_PER_SEC); in rlimit_parse_sec()
|
D | time-util.c | 1533 return DIV_ROUND_UP(u, USEC_PER_SEC / hz); in usec_to_jiffies() 1538 return DIV_ROUND_UP(j * USEC_PER_SEC, hz); in jiffies_to_usec()
|
D | parse-util.c | 719 f = DIV_ROUND_UP((f << LOADAVG_PRECISION_BITS), 100); in store_loadavg_fixed_point()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-creds.c | 666 sz = DIV_ROUND_UP(lc+1, 32LU); in has_cap() 718 max = DIV_ROUND_UP(cap_last_cap()+1, 32U); in parse_caps() 1261 n->capability = memdup(c->capability, DIV_ROUND_UP(cap_last_cap()+1, 32U) * 4 * 4); in bus_creds_extend_by_pid()
|
/systemd-251/src/libsystemd-network/ |
D | sd-radv.c | 195 adv.nd_ra_router_lifetime = htobe16(DIV_ROUND_UP(lifetime_usec, USEC_PER_SEC)); in radv_send() 960 .opt.length = DIV_ROUND_UP(sizeof(p->opt), 8), in sd_radv_route_prefix_new()
|
D | sd-lldp-tx.c | 38 #define LLDP_TX_TTL ((uint16_t) DIV_ROUND_UP(LLDP_TX_INTERVAL_USEC * LLDP_TX_HOLD + 1, USEC_PER_SEC…
|
/systemd-251/src/analyze/ |
D | analyze-security.c | 1795 badness_sum += DIV_ROUND_UP(badness * weight, range); in assess() 1872 … x = DIV_ROUND_UP(DIV_ROUND_UP(*badness * *weight * 100U, *range), weight_sum); in assess() 1891 exposure = DIV_ROUND_UP(badness_sum * 100U, weight_sum); in assess()
|
/systemd-251/src/fundamental/ |
D | macro-fundamental.h | 213 #define DIV_ROUND_UP(x, y) __DIV_ROUND_UP(UNIQ, (x), UNIQ, (y)) macro
|