Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/
Drandom.h53 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-6.6.21/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.c412 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); in mlx5e_htb_setup_tc()
419 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); in mlx5e_htb_setup_tc()
428 return mlx5e_htb_node_modify(htb, htb_qopt->classid, htb_qopt->rate, htb_qopt->ceil, in mlx5e_htb_setup_tc()
/linux-6.6.21/net/sched/
Dsch_htb.c97 struct psched_ratecfg ceil; member
676 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); in htb_accnt_ctokens()
1272 psched_ratecfg_getrate(&opt.ceil, &cl->ceil); in htb_dump_class()
1285 if ((cl->ceil.rate_bytes_ps >= (1ULL << 32)) && in htb_dump_class()
1286 nla_put_u64_64bit(skb, TCA_HTB_CEIL64, cl->ceil.rate_bytes_ps, in htb_dump_class()
1801 if (!hopt->rate.rate || !hopt->ceil.rate) in htb_change_class()
1806 if (hopt->rate.overhead || hopt->ceil.overhead) { in htb_change_class()
1810 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.6.21/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.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dqos.c119 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()
1416 prio, rate, ceil, quantum, in otx2_qos_leaf_to_inner()
[all …]
Dqos.h60 u64 ceil; member
/linux-6.6.21/drivers/char/
Drandom.c535 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()
/linux-6.6.21/Documentation/translations/zh_CN/power/
Dopp.rst75 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage,
/linux-6.6.21/Documentation/devicetree/bindings/ptp/
Dptp-qoriq.txt38 tmr_add = ceil(2^32 / FreqDivRatio)
/linux-6.6.21/tools/include/uapi/linux/
Dpkt_sched.h391 struct tc_ratespec ceil; member
/linux-6.6.21/include/uapi/linux/
Dpkt_sched.h411 struct tc_ratespec ceil; member
/linux-6.6.21/include/net/
Dpkt_cls.h858 u64 ceil; member
/linux-6.6.21/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.6.21/tools/testing/selftests/kvm/lib/
Dkvm_util.c2017 bool ceil) in vm_calc_num_pages() argument
2024 return num_pages / n + !!(ceil && num_pages % n); in vm_calc_num_pages()
/linux-6.6.21/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.6.21/crypto/
Dtestmgr.c880 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below() argument
886 return prandom_u32_state(rng) % ceil; in prandom_u32_below()
895 u32 floor, u32 ceil) in prandom_u32_inclusive() argument
897 return floor + prandom_u32_below(rng, ceil - floor + 1); in prandom_u32_inclusive()
/linux-6.6.21/tools/perf/util/
Dcallchain.c486 min_hit = ceil(node->children_hit * min_percent); in __sort_chain_graph_rel()
Dstat-display.c1370 return lround(ceil(-log10(num))); in get_precision()
/linux-6.6.21/samples/bpf/
Dxdp_sample_user.c586 return ceil(val); in sample_round()
/linux-6.6.21/mm/
Dhugetlb.c4924 unsigned long ceil = floor + PUD_SIZE; in hugetlb_vm_op_split() local
4926 if (floor >= vma->vm_start && ceil <= vma->vm_end) in hugetlb_vm_op_split()
4927 hugetlb_unshare_pmds(vma, floor, ceil); in hugetlb_vm_op_split()
/linux-6.6.21/Documentation/admin-guide/sysctl/
Dkernel.rst1281 ``ceil(shmmax/PAGE_SIZE)``.
/linux-6.6.21/Documentation/filesystems/
Dxfs-online-fsck-design.rst2409 leaf_blocks = ceil(record_count / leaf_load_factor)
2415 node_blocks[n + 1] = ceil(n_blocks / node_load_factor)