Home
last modified time | relevance | path

Searched refs:ceil (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/include/linux/
Drandom.h54 u32 __get_random_u32_below(u32 ceil);
61 static inline u32 get_random_u32_below(u32 ceil) in get_random_u32_below() argument
63 if (!__builtin_constant_p(ceil)) in get_random_u32_below()
64 return __get_random_u32_below(ceil); in get_random_u32_below()
74 BUILD_BUG_ON_MSG(!ceil, "get_random_u32_below() must take ceil > 0"); in get_random_u32_below()
75 if (ceil <= 1) in get_random_u32_below()
78 if (ceil <= 1U << 8) { in get_random_u32_below()
79 u32 mult = ceil * get_random_u8(); in get_random_u32_below()
80 if (likely(is_power_of_2(ceil) || (u8)mult >= (1U << 8) % ceil)) in get_random_u32_below()
82 } else if (ceil <= 1U << 16) { in get_random_u32_below()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dhtb.h26 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,
Dhtb.c276 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 …]
Dqos.c406 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); in mlx5e_htb_setup_tc()
413 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); in mlx5e_htb_setup_tc()
422 return mlx5e_htb_node_modify(htb, htb_qopt->classid, htb_qopt->rate, htb_qopt->ceil, in mlx5e_htb_setup_tc()
/linux-6.1.9/net/sched/
Dsch_htb.c97 struct psched_ratecfg ceil; member
670 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); in htb_accnt_ctokens()
1266 psched_ratecfg_getrate(&opt.ceil, &cl->ceil); in htb_dump_class()
1279 if ((cl->ceil.rate_bytes_ps >= (1ULL << 32)) && in htb_dump_class()
1280 nla_put_u64_64bit(skb, TCA_HTB_CEIL64, cl->ceil.rate_bytes_ps, in htb_dump_class()
1793 if (!hopt->rate.rate || !hopt->ceil.rate) in htb_change_class()
1798 if (hopt->rate.overhead || hopt->ceil.overhead) { in htb_change_class()
1802 if (hopt->rate.mpu || hopt->ceil.mpu) { in htb_change_class()
1821 if (hopt->ceil.linklayer == TC_LINKLAYER_UNAWARE) in htb_change_class()
1822 qdisc_put_rtab(qdisc_get_rtab(&hopt->ceil, tb[TCA_HTB_CTAB], in htb_change_class()
[all …]
/linux-6.1.9/drivers/iio/light/
Dlv0104cs.c278 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-6.1.9/drivers/char/
Drandom.c516 u32 __get_random_u32_below(u32 ceil) in DEFINE_BATCHED_ENTROPY()
538 if (unlikely(!ceil)) in DEFINE_BATCHED_ENTROPY()
541 mult = (u64)ceil * rand; in DEFINE_BATCHED_ENTROPY()
542 if (unlikely((u32)mult < ceil)) { in DEFINE_BATCHED_ENTROPY()
543 u32 bound = -ceil % ceil; in DEFINE_BATCHED_ENTROPY()
545 mult = (u64)ceil * get_random_u32(); in DEFINE_BATCHED_ENTROPY()
/linux-6.1.9/Documentation/translations/zh_CN/power/
Dopp.rst75 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage,
/linux-6.1.9/Documentation/devicetree/bindings/ptp/
Dptp-qoriq.txt38 tmr_add = ceil(2^32 / FreqDivRatio)
/linux-6.1.9/tools/include/uapi/linux/
Dpkt_sched.h391 struct tc_ratespec ceil; member
/linux-6.1.9/include/uapi/linux/
Dpkt_sched.h411 struct tc_ratespec ceil; member
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dkvm_util.c1878 bool ceil) in vm_calc_num_pages() argument
1885 return num_pages / n + !!(ceil && num_pages % n); in vm_calc_num_pages()
/linux-6.1.9/include/net/
Dpkt_cls.h866 u64 ceil; member
/linux-6.1.9/Documentation/power/
Denergy-model.rst209 06 /* Use the 'foo' protocol to ceil the frequency */
Dopp.rst78 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage, dev_pm_opp_get_freq,
/linux-6.1.9/drivers/media/tuners/
Dmt2063.c354 #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-6.1.9/tools/perf/util/
Dcallchain.c485 min_hit = ceil(node->children_hit * min_percent); in __sort_chain_graph_rel()
Dstat-display.c1301 return lround(ceil(-log10(num))); in get_precision()
/linux-6.1.9/samples/bpf/
Dxdp_sample_user.c586 return ceil(val); in sample_round()
/linux-6.1.9/mm/
Dhugetlb.c4843 unsigned long ceil = floor + PUD_SIZE; in hugetlb_vm_op_split() local
4845 if (floor >= vma->vm_start && ceil <= vma->vm_end) in hugetlb_vm_op_split()
4846 hugetlb_unshare_pmds(vma, floor, ceil); in hugetlb_vm_op_split()
/linux-6.1.9/Documentation/admin-guide/sysctl/
Dkernel.rst1211 ``ceil(shmmax/PAGE_SIZE)``.