Home
last modified time | relevance | path

Searched refs:UINT32_MAX (Results 1 – 25 of 73) sorted by relevance

123

/systemd-251/src/basic/
Dpercent-util.h21 assert_cc(INT_MAX <= UINT32_MAX); in UINT32_SCALE_FROM_PERCENT()
23 return (uint32_t) (((uint64_t) CLAMP(percent, 0, 100) * UINT32_MAX + 50) / 100U); in UINT32_SCALE_FROM_PERCENT()
27 return (uint32_t) (((uint64_t) CLAMP(permille, 0, 1000) * UINT32_MAX + 500) / 1000U); in UINT32_SCALE_FROM_PERMILLE()
31 return (uint32_t) (((uint64_t) CLAMP(permyriad, 0, 10000) * UINT32_MAX + 5000) / 10000U); in UINT32_SCALE_FROM_PERMYRIAD()
37 u = (uint32_t) ((((uint64_t) scale) * 100U + UINT32_MAX/2) / UINT32_MAX); in UINT32_SCALE_TO_PERCENT()
47 u = (uint32_t) ((((uint64_t) scale) * 1000U + UINT32_MAX/2) / UINT32_MAX); in UINT32_SCALE_TO_PERMILLE()
57 u = (uint32_t) ((((uint64_t) scale) * 10000U + UINT32_MAX/2) / UINT32_MAX); in UINT32_SCALE_TO_PERMYRIAD()
Daudit-util.h8 #define AUDIT_SESSION_INVALID UINT32_MAX
/systemd-251/src/test/
Dtest-util.c198 assert_se(physical_memory_scale(0, UINT32_MAX) == 0); in TEST()
199 assert_se(physical_memory_scale(UINT32_MAX, UINT32_MAX) == p); in TEST()
233 assert_se(system_tasks_max_scale(0, UINT32_MAX) == 0); in TEST()
234 assert_se(system_tasks_max_scale((UINT32_MAX-1)/2, UINT32_MAX-1) == t/2); in TEST()
235 assert_se(system_tasks_max_scale(UINT32_MAX, UINT32_MAX) == t); in TEST()
Dtest-percent-util.c157 assert_se(UINT32_SCALE_FROM_PERCENT(50) == UINT32_MAX/2+1); in TEST()
158 assert_se(UINT32_SCALE_FROM_PERCENT(100) == UINT32_MAX); in TEST()
161 assert_se(UINT32_SCALE_FROM_PERMILLE(500) == UINT32_MAX/2+1); in TEST()
162 assert_se(UINT32_SCALE_FROM_PERMILLE(1000) == UINT32_MAX); in TEST()
165 assert_se(UINT32_SCALE_FROM_PERMYRIAD(5000) == UINT32_MAX/2+1); in TEST()
166 assert_se(UINT32_SCALE_FROM_PERMYRIAD(10000) == UINT32_MAX); in TEST()
Dtest-uid-range.c24 assert_se(!uid_range_covers(p, n, 100, UINT32_MAX)); in TEST()
114 assert_se(p[0].nr == UINT32_MAX); in TEST()
116 assert_se(uid_range_covers(p, n, 0, UINT32_MAX)); in TEST()
Dtest-devnum-util.c52 assert_se(!DEVICE_MAJOR_VALID(UINT32_MAX)); in TEST()
53 assert_se(!DEVICE_MINOR_VALID(UINT32_MAX)); in TEST()
/systemd-251/src/network/netdev/
Dmacvlan.c66 if (m->bc_queue_length != UINT32_MAX) { in netdev_macvlan_fill_message_create()
99 m->bc_queue_length = UINT32_MAX; in config_parse_macvlan_broadcast_queue_size()
110 if (v == UINT32_MAX) { in config_parse_macvlan_broadcast_queue_size()
148 m->bc_queue_length = UINT32_MAX; in macvlan_init()
Dwlan.c35 w->wiphy_index = UINT32_MAX; in wlan_init()
162 if (w->wiphy_index == UINT32_MAX && isempty(w->wiphy_name)) in wlan_verify()
192 w->wiphy_index = UINT32_MAX; in config_parse_wiphy()
206 w->wiphy_index = UINT32_MAX; in config_parse_wiphy()
/systemd-251/src/network/tc/
Dfq-codel.c21 fqcd->memory_limit = UINT32_MAX; in fair_queueing_controlled_delay_init()
84 if (fqcd->memory_limit != UINT32_MAX) { in fair_queueing_controlled_delay_fill_message()
322 *p = UINT32_MAX; in config_parse_fair_queueing_controlled_delay_size()
337 if (sz >= UINT32_MAX) { in config_parse_fair_queueing_controlled_delay_size()
Dtc-util.c54 if (a > UINT32_MAX) in tc_time_to_tick()
71 *ret_fraction = (double) r / 10000 * UINT32_MAX; in parse_tc_percent()
Dfq.c226 if (sz > UINT32_MAX) { in config_parse_fair_queueing_size()
341 if (sec > UINT32_MAX) { in config_parse_fair_queueing_usec()
402 if (sz / 8 > UINT32_MAX) { in config_parse_fair_queueing_max_rate()
/systemd-251/src/network/
Dnetworkd-can.c169 if (sz <= 0 || sz > UINT32_MAX) { in config_parse_can_bitrate()
208 if (val <= 0 || val > UINT32_MAX) { in config_parse_can_time_quanta()
246 DIV_ROUND_UP(usec, USEC_PER_MSEC) > UINT32_MAX) { in config_parse_can_restart_usec()
248 … "CAN RestartSec= must be in the range 0...%"PRIu32"ms, ignoring: %s", UINT32_MAX, rvalue); in config_parse_can_restart_usec()
Dnetworkd-address-label.c57 .label = UINT32_MAX, in address_label_new_static()
187 if (label->label == UINT32_MAX) in address_label_section_verify()
Dnetworkd-radv.c230 return UINT32_MAX; in usec_to_lifetime()
233 if (t >= UINT32_MAX) in usec_to_lifetime()
234 return UINT32_MAX; 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/boot/efi/
Dutil.h13 #ifndef UINT32_MAX
14 #define UINT32_MAX ((UINT32) -1) macro
148 assert(addr <= UINT32_MAX); in PHYSICAL_ADDRESS_TO_POINTER()
Dcpio.c76 if (contents_size > UINT32_MAX) /* cpio cannot deal with > 32bit file sizes */ in pack_cpio_one()
79 …if (*inode_counter == UINT32_MAX) /* more than 2^32-1 inodes? yikes. cpio doesn't support that eit… in pack_cpio_one()
95 if (target_dir_prefix_size + fname_size >= UINT32_MAX) in pack_cpio_one()
180 if (*inode_counter == UINT32_MAX) in pack_cpio_dir()
Dmeasure.h14 #define TPM_PCR_INDEX_KERNEL_PARAMETERS_COMPAT UINT32_MAX
/systemd-251/src/shared/
Dnetif-sriov.c22 .vf = UINT32_MAX, in sr_iov_new()
231 if (num_vfs == UINT32_MAX) { in sr_iov_set_num_vfs()
303 if (sr_iov->vf == UINT32_MAX) in sr_iov_section_verify()
377 sr_iov->vf = UINT32_MAX; in config_parse_sr_iov_uint32()
629 *num_vfs = UINT32_MAX; in config_parse_sr_iov_num_vfs()
Duid-range.c72 if (start > UINT32_MAX - nr) /* overflow check */ in uid_range_add()
188 if (start > UINT32_MAX - nr) /* range overflows? definitely not covered... */ in uid_range_covers()
Dethtool-util.c46 if (opts == UINT32_MAX) { in wol_options_to_string_alloc()
427 if (wolopts == UINT32_MAX && !password) in ethtool_set_wol()
440 if (wolopts == UINT32_MAX) { in ethtool_set_wol()
1398 *opts = UINT32_MAX; /* Do not update WOL option. */ in config_parse_wol()
1434 if (*opts == UINT32_MAX) in config_parse_wol()
1503 if (usec > UINT32_MAX) { in config_parse_coalesce_sec()
/systemd-251/src/udev/net/
Dlink-config.c159 if (config->wol == UINT32_MAX) in link_read_wol_password_from_cred()
202 if (config->wol != UINT32_MAX && config->wol_password) in link_adjust_wol_options()
241 .wol = UINT32_MAX, /* UINT32_MAX means do not change WOL setting. */ in link_load_one()
248 .txqueuelen = UINT32_MAX, in link_load_one()
252 .sr_iov_num_vfs = UINT32_MAX, in link_load_one()
1066 *v = UINT32_MAX; in config_parse_txqueuelen()
1075 if (k == UINT32_MAX) { in config_parse_txqueuelen()
/systemd-251/src/libsystemd-network/
Darp-util.c50 … BPF_STMT(BPF_RET + BPF_K, UINT32_MAX), /* accept */ in arp_update_filter()
53 … BPF_STMT(BPF_RET + BPF_K, UINT32_MAX), /* accept */ in arp_update_filter()
Dsd-dhcp6-lease.c39 return sec == UINT32_MAX ? USEC_INFINITY : sec * USEC_PER_SEC; in sec2usec()
43 uint32_t t1 = UINT32_MAX, t2 = UINT32_MAX, min_valid_lt = UINT32_MAX; in dhcp6_lease_set_lifetime()
/systemd-251/src/cryptenroll/
Dcryptenroll.c34 static uint32_t arg_tpm2_pcr_mask = UINT32_MAX;
316 if (arg_tpm2_pcr_mask == UINT32_MAX) in parse_argv()
406 if (arg_tpm2_pcr_mask == UINT32_MAX) in parse_argv()
/systemd-251/src/cryptsetup/cryptsetup-tokens/
Dcryptsetup-token-systemd-tpm2.c64 .search_pcr_mask = UINT32_MAX in cryptsetup_token_open()
152 …r = parse_luks2_tpm2_data(json, UINT32_MAX, &pcr_mask, &pcr_bank, &primary_alg, &base64_blob, &hex… in cryptsetup_token_dump()

123