Searched refs:DIV_ROUND_UP (Results 1 - 10 of 10) sorted by relevance

/systemd/src/test/
H A Dtest-util.c171 assert_se(DIV_ROUND_UP(0, 8) == 0);
172 assert_se(DIV_ROUND_UP(1, 8) == 1);
173 assert_se(DIV_ROUND_UP(8, 8) == 1);
174 assert_se(DIV_ROUND_UP(12, 8) == 2);
175 assert_se(DIV_ROUND_UP(16, 8) == 2);
179 assert_se(DIV_ROUND_UP(div++, 8) == 0 && div == 1);
180 assert_se(DIV_ROUND_UP(++div, 8) == 1 && div == 2);
181 assert_se(DIV_ROUND_UP(8, div++) == 4 && div == 3);
182 assert_se(DIV_ROUND_UP(8, ++div) == 2 && div == 4);
188 assert_se(DIV_ROUND_UP(
[all...]
/systemd/src/basic/
H A Drlimit-util.c124 u = (uint64_t) DIV_ROUND_UP(t, USEC_PER_SEC);
H A Dmacro.h209 #define DIV_ROUND_UP(_x, _y) \ macro
H A Dtime-util.c1115 return DIV_ROUND_UP(u , USEC_PER_SEC / hz);
/systemd/src/libsystemd/sd-bus/
H A Dbus-creds.c681 sz = DIV_ROUND_UP(cap_last_cap(), 32U);
733 max = DIV_ROUND_UP(cap_last_cap(), 32U);
1273 n->capability = memdup(c->capability, DIV_ROUND_UP(cap_last_cap(), 32U) * 4 * 4);
H A Dbus-control.c562 item->size - offsetof(struct kdbus_item, caps.caps) < DIV_ROUND_UP(item->caps.last_cap, 32U) * 4 * 4)
H A Dbus-kernel.c726 d->size - offsetof(struct kdbus_item, caps.caps) < DIV_ROUND_UP(d->caps.last_cap, 32U) * 4 * 4) {
/systemd/src/libsystemd-network/
H A Dsd-dhcp-server.c202 server->default_lease_time = DIV_ROUND_UP(DHCP_DEFAULT_LEASE_TIME_USEC, USEC_PER_SEC);
203 server->max_lease_time = DIV_ROUND_UP(DHCP_MAX_LEASE_TIME_USEC, USEC_PER_SEC);
/systemd/src/shared/
H A Dask-password-api.c153 (unsigned long) DIV_ROUND_UP(KEYRING_TIMEOUT_USEC, USEC_PER_SEC), 0, 0) < 0)
/systemd/src/network/
H A Dnetworkd-link.c886 DIV_ROUND_UP(link->network->dhcp_server_max_lease_time_usec, USEC_PER_SEC));
894 DIV_ROUND_UP(link->network->dhcp_server_default_lease_time_usec, USEC_PER_SEC));

Completed in 3498 milliseconds