| /linux/include/linux/ |
| A D | random.h | 53 u32 __get_random_u32_below(u32 ceil); 62 if (!__builtin_constant_p(ceil)) in get_random_u32_below() 63 return __get_random_u32_below(ceil); 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() 83 if (likely(is_power_of_2(ceil) || (u16)mult >= (1U << 16) % ceil)) in get_random_u32_below() 87 if (likely(is_power_of_2(ceil) || (u32)mult >= -ceil % ceil)) in get_random_u32_below() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| 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,
|
| A D | htb.c | 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 664 classid, rate, ceil); in mlx5e_htb_node_modify() [all …]
|
| A D | qos.c | 425 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); in mlx5e_htb_setup_tc() 432 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); in mlx5e_htb_setup_tc() 441 return mlx5e_htb_node_modify(htb, htb_qopt->classid, htb_qopt->rate, htb_qopt->ceil, in mlx5e_htb_setup_tc()
|
| /linux/net/sched/ |
| 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() 1789 if (!hopt->rate.rate || !hopt->ceil.rate) 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() 1896 .ceil = max_t(u64, hopt->ceil.rate, ceil64), in htb_change_class() 1918 .ceil = max_t(u64, hopt->ceil.rate, ceil64), in htb_change_class() 2001 .ceil = max_t(u64, hopt->ceil.rate, ceil64), in htb_change_class() [all …]
|
| /linux/drivers/iio/light/ |
| 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()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| 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() 1218 u32 parent_classid, u64 rate, u64 ceil, in otx2_qos_leaf_alloc_queue() argument 1298 ceil, quantum, qid, static_cfg); in otx2_qos_leaf_alloc_queue() 1357 u16 child_classid, u64 rate, u64 ceil, u64 prio, in otx2_qos_leaf_to_inner() argument 1368 classid, child_classid, rate, ceil); in otx2_qos_leaf_to_inner() 1434 prio, rate, ceil, quantum, in otx2_qos_leaf_to_inner() 1743 htb->rate, htb->ceil, in otx2_setup_tc_htb() [all …]
|
| A D | qos.h | 60 u64 ceil; member
|
| /linux/drivers/char/ |
| A D | random.c | 556 u32 __get_random_u32_below(u32 ceil) in DEFINE_BATCHED_ENTROPY() 578 if (unlikely(!ceil)) in DEFINE_BATCHED_ENTROPY() 581 mult = (u64)ceil * rand; in DEFINE_BATCHED_ENTROPY() 582 if (unlikely((u32)mult < ceil)) { in DEFINE_BATCHED_ENTROPY() 583 u32 bound = -ceil % ceil; in DEFINE_BATCHED_ENTROPY() 585 mult = (u64)ceil * get_random_u32(); in DEFINE_BATCHED_ENTROPY()
|
| /linux/drivers/ufs/host/ |
| A D | ufs-qcom.h | 232 #define ceil(freq, div) ((freq) % (div) == 0 ? ((freq)/(div)) : ((freq)/(div) + 1)) macro
|
| A D | ufs-qcom.c | 1232 cycles_in_1us = ceil(clki->max_freq, (1000 * 1000)); in ufs_qcom_set_core_clk_ctrl() 1234 cycles_in_1us = ceil(clk_get_rate(clki->clk), (1000 * 1000)); in ufs_qcom_set_core_clk_ctrl()
|
| /linux/Documentation/translations/zh_CN/power/ |
| A D | opp.rst | 75 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage,
|
| /linux/kernel/locking/ |
| A D | test-ww_mutex.c | 392 static inline u32 prandom_u32_below(u32 ceil) in prandom_u32_below() argument 397 ret = prandom_u32_state(&rng) % ceil; in prandom_u32_below()
|
| /linux/Documentation/devicetree/bindings/ptp/ |
| A D | fsl,ptp.yaml | 94 tmr_add = ceil(2^32 / FreqDivRatio)
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2/ |
| A D | display_mode_util.c | 186 double ceil = dml_ceil(val, 1); in dml_round() local 190 return ceil; in dml_round()
|
| /linux/tools/include/uapi/linux/ |
| A D | pkt_sched.h | 391 struct tc_ratespec ceil; member
|
| /linux/include/uapi/linux/ |
| A D | pkt_sched.h | 411 struct tc_ratespec ceil; member
|
| /linux/include/net/ |
| A D | pkt_cls.h | 869 u64 ceil; member
|
| /linux/drivers/media/tuners/ |
| A D | mt2063.c | 354 #define ceil(n, d) (((n) < 0) ? (-((-(n))/(d))) : (n)/(d) + ((n)%(d) != 0)) macro 612 ceil((s32) (pNode->max_ - f_Center), (s32) f_Step); in MT2063_ChooseFirstIF()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| A D | kvm_util.c | 2093 bool ceil) in vm_calc_num_pages() argument 2100 return num_pages / n + !!(ceil && num_pages % n); in vm_calc_num_pages()
|
| /linux/Documentation/power/ |
| A D | opp.rst | 78 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage, dev_pm_opp_get_freq,
|
| A D | energy-model.rst | 309 06 /* Use the 'foo' protocol to ceil the frequency */
|
| /linux/crypto/ |
| A D | testmgr.c | 891 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below() argument 897 return prandom_u32_state(rng) % ceil; in prandom_u32_below() 906 u32 floor, u32 ceil) in prandom_u32_inclusive() argument 908 return floor + prandom_u32_below(rng, ceil - floor + 1); in prandom_u32_inclusive()
|
| /linux/tools/perf/util/ |
| A D | callchain.c | 486 min_hit = ceil(node->children_hit * min_percent); in __sort_chain_graph_rel()
|
| A D | stat-display.c | 1405 return lround(ceil(-log10(num))); in get_precision()
|