/openbmc/linux/include/linux/ |
H A D | random.h | 53 u32 __get_random_u32_below(u32 ceil); 60 static inline u32 get_random_u32_below(u32 ceil) in get_random_u32_below() argument 62 if (!__builtin_constant_p(ceil)) in get_random_u32_below() 63 return __get_random_u32_below(ceil); in get_random_u32_below() 73 BUILD_BUG_ON_MSG(!ceil, "get_random_u32_below() must take ceil > 0"); in get_random_u32_below() 74 if (ceil <= 1) in get_random_u32_below() 77 if (ceil <= 1U << 8) { in get_random_u32_below() 78 u32 mult = ceil * get_random_u8(); in get_random_u32_below() 79 if (likely(is_power_of_2(ceil) || (u8)mult >= (1U << 8) % ceil)) in get_random_u32_below() 81 } else if (ceil <= 1U << 16) { in get_random_u32_below() [all …]
|
/openbmc/qemu/tests/tcg/xtensa/ |
H A D | test_fp0_conv.S | 206 test_ftoi ceil.s, a2, f0, 0xffc00001, 0, 0x7fffffff, FSR_V 207 test_ftoi ceil.s, a2, f0, 0xff800001, 0, 0x7fffffff, FSR_V 210 test_ftoi ceil.s, a2, f0, 0xff800000, 0, 0x80000000, FSR_V 213 test_ftoi ceil.s, a2, f0, 0xceffffff, 1, 0x80000000, FSR_V 214 test_ftoi ceil.s, a2, f0, 0xcf000000, 0, 0x80000000, FSR__ 215 test_ftoi ceil.s, a2, f0, 0xceffffff, 0, 0x80000080, FSR__ 218 test_ftoi ceil.s, a2, f0, 0xbfa00000, 1, -2, FSR_I /* -1.25 * 2 */ 219 test_ftoi ceil.s, a2, f0, 0xbfc00000, 0, -1, FSR_I /* -1.5 */ 220 test_ftoi ceil.s, a2, f0, 0xbf800000, 1, -2, FSR__ /* -1 * 2 */ 221 test_ftoi ceil.s, a2, f0, 0xbf800000, 0, -1, FSR__ /* -1 */ [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | htb.h | 26 u32 parent_classid, u64 rate, u64 ceil, 30 u64 rate, u64 ceil, struct netlink_ext_ack *extack); 37 mlx5e_htb_node_modify(struct mlx5e_htb *htb, u16 classid, u64 rate, u64 ceil,
|
H A D | htb.c | 276 static void mlx5e_htb_convert_ceil(struct mlx5e_htb *htb, u64 ceil, u32 *max_average_bw) in mlx5e_htb_convert_ceil() argument 279 *max_average_bw = max_t(u32, div_u64(ceil, BYTES_IN_MBIT), 1); in mlx5e_htb_convert_ceil() 282 ceil, *max_average_bw); in mlx5e_htb_convert_ceil() 287 u32 parent_classid, u64 rate, u64 ceil, in mlx5e_htb_leaf_alloc_queue() argument 296 classid, parent_classid, rate, ceil); in mlx5e_htb_leaf_alloc_queue() 314 mlx5e_htb_convert_ceil(htb, ceil, &node->max_average_bw); in mlx5e_htb_leaf_alloc_queue() 343 u64 rate, u64 ceil, struct netlink_ext_ack *extack) in mlx5e_htb_leaf_to_inner() argument 352 classid, child_classid, rate, ceil); in mlx5e_htb_leaf_to_inner() 377 mlx5e_htb_convert_ceil(htb, ceil, &child->max_average_bw); in mlx5e_htb_leaf_to_inner() 655 mlx5e_htb_node_modify(struct mlx5e_htb *htb, u16 classid, u64 rate, u64 ceil, in mlx5e_htb_node_modify() argument [all …]
|
H A D | qos.c | 413 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); in mlx5e_htb_setup_tc() 420 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); in mlx5e_htb_setup_tc() 429 return mlx5e_htb_node_modify(htb, htb_qopt->classid, htb_qopt->rate, htb_qopt->ceil, in mlx5e_htb_setup_tc()
|
/openbmc/u-boot/board/synopsys/hsdk/ |
H A D | clk-lib.c | 13 #define ceil(x, y) ({ ulong __x = (x), __y = (y); (__x + __y - 1) / __y; }) macro 58 mhz_rate = ceil(priv_rate, HZ_IN_MHZ); in soc_clk_ctl()
|
/openbmc/linux/net/sched/ |
H A D | sch_htb.c | 97 struct psched_ratecfg ceil; member 676 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); in htb_accnt_ctokens() 1264 psched_ratecfg_getrate(&opt.ceil, &cl->ceil); in htb_dump_class() 1277 if ((cl->ceil.rate_bytes_ps >= (1ULL << 32)) && in htb_dump_class() 1278 nla_put_u64_64bit(skb, TCA_HTB_CEIL64, cl->ceil.rate_bytes_ps, in htb_dump_class() 1789 if (!hopt->rate.rate || !hopt->ceil.rate) in htb_change_class() 1794 if (hopt->rate.overhead || hopt->ceil.overhead) { in htb_change_class() 1798 if (hopt->rate.mpu || hopt->ceil.mpu) { in htb_change_class() 1809 if (hopt->ceil.linklayer == TC_LINKLAYER_UNAWARE) in htb_change_class() 1810 qdisc_put_rtab(qdisc_get_rtab(&hopt->ceil, tb[TCA_HTB_CTAB], in htb_change_class() [all …]
|
/openbmc/linux/drivers/iio/light/ |
H A D | lv0104cs.c | 278 int floor, ceil, mid; in lv0104cs_set_calibscale() local 285 ceil = lv0104cs_calibscales[i + 1].val * 1000000 in lv0104cs_set_calibscale() 287 mid = (floor + ceil) / 2; in lv0104cs_set_calibscale() 296 if (calibscale >= mid && calibscale <= ceil) { in lv0104cs_set_calibscale()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | qos.c | 119 maxrate = (node->rate > node->ceil) ? node->rate : node->ceil; in otx2_config_sched_shaping() 470 txschq_node->ceil = 0; in otx2_qos_alloc_txschq_node() 500 u16 classid, u32 prio, u64 rate, u64 ceil, in otx2_qos_sw_create_leaf_node() argument 516 node->ceil = otx2_convert_rate(ceil); in otx2_qos_sw_create_leaf_node() 1203 u32 parent_classid, u64 rate, u64 ceil, in otx2_qos_leaf_alloc_queue() argument 1214 classid, parent_classid, rate, ceil, prio, quantum); in otx2_qos_leaf_alloc_queue() 1283 ceil, quantum, qid, static_cfg); in otx2_qos_leaf_alloc_queue() 1342 u16 child_classid, u64 rate, u64 ceil, u64 prio, in otx2_qos_leaf_to_inner() argument 1353 classid, child_classid, rate, ceil); in otx2_qos_leaf_to_inner() 1419 prio, rate, ceil, quantum, in otx2_qos_leaf_to_inner() [all …]
|
H A D | qos.h | 60 u64 ceil; member
|
/openbmc/qemu/tests/image-fuzzer/qcow2/ |
H A D | layout.py | 22 from math import ceil 306 l1_size = int(ceil((max(guest_clusters) + 1) / float(l_size**2))) 332 self.header['l1_size'][0].value = int(ceil(UINT64_S * self.image_size / 364 table_size = int(ceil((max(blocks) + 1) / float(size))) 388 if int(ceil((max(blocks) + 1) / float(size))) > table_size:
|
/openbmc/linux/drivers/char/ |
H A D | random.c | 535 u32 __get_random_u32_below(u32 ceil) in DEFINE_BATCHED_ENTROPY() 557 if (unlikely(!ceil)) in DEFINE_BATCHED_ENTROPY() 560 mult = (u64)ceil * rand; in DEFINE_BATCHED_ENTROPY() 561 if (unlikely((u32)mult < ceil)) { in DEFINE_BATCHED_ENTROPY() 562 u32 bound = -ceil % ceil; in DEFINE_BATCHED_ENTROPY() 564 mult = (u64)ceil * get_random_u32(); in DEFINE_BATCHED_ENTROPY()
|
/openbmc/telemetry/tests/src/utils/ |
H A D | string_utils.cpp | 25 std::ceil(static_cast<double>(length) / in getString()
|
/openbmc/phosphor-webui/app/common/directives/ |
H A D | dirPagination.js | 467 var totalPages = Math.ceil(collectionLength / rowsPerPage); 468 var halfWay = Math.ceil(paginationRange / 2); 511 var halfWay = Math.ceil(paginationRange / 2);
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 151 | 338 step = math.ceil(1 * 1000 * 1000 * 1000 / self.iops) 357 step = math.ceil(1 * 1000 * 1000 * 1000 / self.iops)
|
H A D | 237 | 218 num_extents = int(math.ceil(size / 2.0**31))
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | sdk.py | 152 fsize = int(math.ceil(float(os.path.getsize(os.path.join(root, fn))) / 1024))
|
/openbmc/qemu/tests/qtest/ |
H A D | ahci-test.c | 1799 uint64_t ceil; in offset_sector() local 1808 ceil = (addr_type == ADDR_MODE_LBA28) ? 0xfffffff : 0xffffffffffff; in offset_sector() 1809 ceil = MIN(ceil, mb_to_sectors(test_image_size_mb) - 1); in offset_sector() 1811 return ceil - nsectors + 1; in offset_sector()
|
/openbmc/openbmc/poky/bitbake/lib/progressbar/ |
H A D | progressbar.py | 214 portion = max(int(math.ceil(width * 1. / count)), 0)
|
/openbmc/linux/Documentation/translations/zh_CN/power/ |
H A D | opp.rst | 75 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage,
|
/openbmc/openbmc/meta-arm/ci/ |
H A D | patchreview | 235 bars = dicttoolz.valmap(lambda v: "#" * int(math.ceil(float(v) / len(results) * 100)), counts)
|
/openbmc/linux/Documentation/devicetree/bindings/ptp/ |
H A D | ptp-qoriq.txt | 38 tmr_add = ceil(2^32 / FreqDivRatio)
|
/openbmc/openbmc/poky/scripts/contrib/ |
H A D | patchreview.py | 207 bars = dicttoolz.valmap(lambda v: "#" * int(math.ceil(float(v) / len(results) * 100)), counts)
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | progress.py | 252 stage_weights = [int(math.ceil(x / mintime)) for x in self._stage_times]
|
/openbmc/pldm/tools/fw-update/ |
H A D | pldm_fwup_pkg_creator.py | 147 component_bitmap_bit_length = bitmap_multiple * math.ceil(
|