| /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 …]
|
| /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 | 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/ |
| H A D | sch_htb.c | 97 struct psched_ratecfg ceil; member 677 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); in htb_accnt_ctokens() 1267 psched_ratecfg_getrate(&opt.ceil, &cl->ceil); in htb_dump_class() 1280 if ((cl->ceil.rate_bytes_ps >= (1ULL << 32)) && in htb_dump_class() 1281 nla_put_u64_64bit(skb, TCA_HTB_CEIL64, cl->ceil.rate_bytes_ps, in htb_dump_class() 1791 if (!hopt->rate.rate || !hopt->ceil.rate) in htb_change_class() 1796 if (hopt->rate.overhead || hopt->ceil.overhead) { in htb_change_class() 1800 if (hopt->rate.mpu || hopt->ceil.mpu) { in htb_change_class() 1811 if (hopt->ceil.linklayer == TC_LINKLAYER_UNAWARE) in htb_change_class() 1812 qdisc_put_rtab(qdisc_get_rtab(&hopt->ceil, tb[TCA_HTB_CTAB], in htb_change_class() [all …]
|
| /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()
|
| /linux/drivers/net/ethernet/qualcomm/ppe/ |
| H A D | ppe_config.c | 42 unsigned int ceil; member 66 unsigned int ceil; member 189 .ceil = 1146, 201 .ceil = 250, 213 .ceil = 250, 225 .ceil = 250, 250 .ceil = 1200, 260 .ceil = 250, 1403 val = FIELD_GET(GENMASK(2, 0), port_cfg.ceil); in ppe_config_bm_threshold() 1405 val = FIELD_GET(GENMASK(10, 3), port_cfg.ceil); in ppe_config_bm_threshold() [all …]
|
| /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() 475 txschq_node->ceil = 0; in otx2_qos_alloc_txschq_node() 505 u16 classid, u32 prio, u64 rate, u64 ceil, in otx2_qos_sw_create_leaf_node() argument 521 node->ceil = otx2_convert_rate(ceil); in otx2_qos_sw_create_leaf_node() 1223 u32 parent_classid, u64 rate, u64 ceil, in otx2_qos_leaf_alloc_queue() argument 1234 classid, parent_classid, rate, ceil, prio, quantum); in otx2_qos_leaf_alloc_queue() 1303 ceil, quantum, qid, static_cfg); in otx2_qos_leaf_alloc_queue() 1362 u16 child_classid, u64 rate, u64 ceil, u64 prio, in otx2_qos_leaf_to_inner() argument 1373 classid, child_classid, rate, ceil); in otx2_qos_leaf_to_inner() 1439 prio, rate, ceil, quantum, in otx2_qos_leaf_to_inner() [all …]
|
| H A D | qos.h | 60 u64 ceil; member
|
| /linux/drivers/char/ |
| H A D | random.c | 557 u32 __get_random_u32_below(u32 ceil) in DEFINE_BATCHED_ENTROPY() 579 if (unlikely(!ceil)) in DEFINE_BATCHED_ENTROPY() 582 mult = (u64)ceil * rand; in DEFINE_BATCHED_ENTROPY() 583 if (unlikely((u32)mult < ceil)) { in DEFINE_BATCHED_ENTROPY() 584 u32 bound = -ceil % ceil; in DEFINE_BATCHED_ENTROPY() 586 mult = (u64)ceil * get_random_u32(); in DEFINE_BATCHED_ENTROPY()
|
| /linux/lib/crc/x86/ |
| H A D | crc32c-3way.S | 106 imul $2731, len_dw, %eax # 2731 = ceil(2^16 / 24)
|
| /linux/drivers/ufs/host/ |
| H A D | ufs-qcom.h | 330 #define ceil(freq, div) ((freq) % (div) == 0 ? ((freq)/(div)) : ((freq)/(div) + 1)) macro
|
| H A D | ufs-qcom.c | 1511 cycles_in_1us = ceil(clk_freq, HZ_PER_MHZ); in ufs_qcom_set_core_clk_ctrl() 1525 cycles_in_1us = ceil(clki->max_freq, HZ_PER_MHZ); in ufs_qcom_set_core_clk_ctrl() 1530 cycles_in_1us = ceil(clki->max_freq, HZ_PER_MHZ); in ufs_qcom_set_core_clk_ctrl() 1532 cycles_in_1us = ceil(clk_get_rate(clki->clk), HZ_PER_MHZ); in ufs_qcom_set_core_clk_ctrl()
|
| /linux/kernel/locking/ |
| H A D | test-ww_mutex.c | 394 static inline u32 prandom_u32_below(u32 ceil) in prandom_u32_below() argument 399 ret = prandom_u32_state(&rng) % ceil; in prandom_u32_below()
|
| /linux/Documentation/translations/zh_CN/power/ |
| H A D | opp.rst | 75 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage,
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2/ |
| H 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/ |
| H A D | pkt_sched.h | 391 struct tc_ratespec ceil; member
|
| /linux/include/uapi/linux/ |
| H A D | pkt_sched.h | 411 struct tc_ratespec ceil; member
|
| /linux/include/net/ |
| H A D | pkt_cls.h | 879 u64 ceil; member
|
| /linux/drivers/media/tuners/ |
| H 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/ |
| H A D | kvm_util.c | 2160 bool ceil) in vm_calc_num_pages() argument 2167 return num_pages / n + !!(ceil && num_pages % n); in vm_calc_num_pages()
|
| /linux/Documentation/power/ |
| H A D | opp.rst | 78 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage, dev_pm_opp_get_freq,
|
| H A D | energy-model.rst | 309 06 /* Use the 'foo' protocol to ceil the frequency */
|
| /linux/crypto/ |
| H A D | testmgr.c | 895 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below() argument 901 return prandom_u32_state(rng) % ceil; in prandom_u32_below() 910 u32 floor, u32 ceil) in prandom_u32_inclusive() argument 912 return floor + prandom_u32_below(rng, ceil - floor + 1); in prandom_u32_inclusive()
|
| /linux/tools/perf/util/ |
| H A D | callchain.c | 486 min_hit = ceil(node->children_hit * min_percent); in __sort_chain_graph_rel()
|