Home
last modified time | relevance | path

Searched refs:DIV_ROUND_UP (Results 1 – 25 of 50) sorted by relevance

12

/systemd-251/src/test/
Dtest-cpu-set-util.c17 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 …]
Dtest-macro.c166 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/
Ddiv-round-up.cocci6 + 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/
Dnetworkd-can.c102 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()
Dnetworkd-dhcp-server.c405DIV_ROUND_UP(link->network->dhcp_server_max_lease_time_usec, USEC_PER_SEC)); in dhcp4_server_configure()
412DIV_ROUND_UP(link->network->dhcp_server_default_lease_time_usec, USEC_PER_SEC)); in dhcp4_server_configure()
Dnetworkd-radv.c232 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/
Dethtool-util.c591 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()
Dnuma-util.c53 out = new0(unsigned long, DIV_ROUND_UP(policy->nodes.allocated, sizeof(unsigned long))); in numa_policy_to_mempolicy()
Dwatchdog.c39 usec_t t = DIV_ROUND_UP(val, USEC_PER_SEC); in saturated_usec_to_sec()
Dselinux-util.c134 DIV_ROUND_UP(l, 1024)); in open_label_db()
Dexec-util.c119 alarm(DIV_ROUND_UP(timeout, USEC_PER_SEC)); in do_execute()
/systemd-251/src/udev/
Dudev-event.h82 return DIV_ROUND_UP(timeout_usec, 3); in udev_warn_timeout()
/systemd-251/src/integritysetup/
Dintegritysetup.c165 .journal_commit_time = DIV_ROUND_UP(arg_commit_time, USEC_PER_SEC), in run()
/systemd-251/src/boot/efi/
Ddevicetree.c12 UINTN pages = DIV_ROUND_UP(size, EFI_PAGE_SIZE); in devicetree_allocate()
/systemd-251/src/login/
Duser-runtime-dir.c45 *inodes = DIV_ROUND_UP(*size, 4096); in acquire_runtime_dir_properties()
/systemd-251/src/network/netdev/
Dbatadv.c151 …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/
Dprocfs-util.c174 *ret = DIV_ROUND_UP((nsec_t) sum * (nsec_t) a, (nsec_t) b); in procfs_cpu_get_usage()
Drlimit-util.c146 u = (uint64_t) DIV_ROUND_UP(t, USEC_PER_SEC); in rlimit_parse_sec()
Dtime-util.c1533 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()
Dparse-util.c719 f = DIV_ROUND_UP((f << LOADAVG_PRECISION_BITS), 100); in store_loadavg_fixed_point()
/systemd-251/src/libsystemd/sd-bus/
Dbus-creds.c666 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/
Dsd-radv.c195 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()
Dsd-lldp-tx.c38 #define LLDP_TX_TTL ((uint16_t) DIV_ROUND_UP(LLDP_TX_INTERVAL_USEC * LLDP_TX_HOLD + 1, USEC_PER_SEC…
/systemd-251/src/analyze/
Danalyze-security.c1795 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/
Dmacro-fundamental.h213 #define DIV_ROUND_UP(x, y) __DIV_ROUND_UP(UNIQ, (x), UNIQ, (y)) macro

12