Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A Drandom.h53 u32 __get_random_u32_below(u32 ceil);
56 * Returns a random integer in the interval [0, ceil), with uniform
57 * distribution, suitable for all uses. Fastest when ceil is a constant, but
58 * still fast for variable ceil as well.
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()
66 * For the fast path, below, all operations on ceil are precomputed by in get_random_u32_below()
71 * whose lower half would indicate a range indivisible by 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()
[all …]
H A Dreciprocal_div.h47 * ceil(log2(d)) result will be 32 which then requires u128 divide on host. The
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Drate.c46 {6500, 13500, CEIL(6500 * 10, 9), CEIL(13500 * 10, 9), 0x00,
49 {13000, 27000, CEIL(13000 * 10, 9), CEIL(27000 * 10, 9), 0x08,
52 {19500, 40500, CEIL(19500 * 10, 9), CEIL(40500 * 10, 9), 0x0A,
55 {26000, 54000, CEIL(26000 * 10, 9), CEIL(54000 * 10, 9), 0x10,
58 {39000, 81000, CEIL(39000 * 10, 9), CEIL(81000 * 10, 9), 0x12,
61 {52000, 108000, CEIL(52000 * 10, 9), CEIL(108000 * 10, 9), 0x19,
64 {58500, 121500, CEIL(58500 * 10, 9), CEIL(121500 * 10, 9), 0x1A,
67 {65000, 135000, CEIL(65000 * 10, 9), CEIL(135000 * 10, 9), 0x1C,
70 {13000, 27000, CEIL(13000 * 10, 9), CEIL(27000 * 10, 9), 0x40,
73 {26000, 54000, CEIL(26000 * 10, 9), CEIL(54000 * 10, 9), 0x48,
[all …]
/linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/
H A Dhtb.json102 … "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 1000b cburst 1600b",
124 … "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 1600b cburst 1600b",
146 … "matchPattern": "class htb 1:1 root prio 1 rate 20Kbit ceil 20Kbit burst 1600b cburst 1600b",
154 "name": "Create HTB with class ceil setting",
165 … "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 htb rate 20Kbit ceil 10Kbit",
168 … "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 10Kbit burst 1600b cburst 1600b",
190 … "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 1600b cburst 2000b",
212 "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 2Kb cburst 2Kb",
234 … "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 1600b cburst 1600b",
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dhtb.c270 qos_dbg(htb->mdev, "Convert: rate %llu, parent ceil %llu -> bw_share %u\n", in mlx5e_htb_convert_rate()
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()
281 qos_dbg(htb->mdev, "Convert: ceil %llu -> max_average_bw %u\n", 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
295 qos_dbg(htb->mdev, "TC_HTB_LEAF_ALLOC_QUEUE classid %04x, parent %04x, rate %llu, ceil %llu\n", in mlx5e_htb_leaf_alloc_queue()
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
[all …]
H A 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,
H A Dqos.c425 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/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.c119 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
1233 …"TC_HTB_LEAF_ALLOC_QUEUE: classid=0x%x parent_classid=0x%x rate=%lld ceil=%lld prio=%lld quantum=%… in otx2_qos_leaf_alloc_queue()
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
1372 "TC_HTB_LEAF_TO_INNER classid %04x, child %04x, rate %llu, ceil %llu\n", in otx2_qos_leaf_to_inner()
[all …]
H A Dqos.h60 u64 ceil; member
/linux/arch/arm/mach-sa1100/include/mach/
H A DSA-1100.h349 #define UTCR1_CeilBdRtDiv(Div) /* Ceil. of BdRtDiv [16..65536] */ \
352 #define UTCR2_CeilBdRtDiv(Div) /* Ceil. of BdRtDiv [16..65536] */ \
355 /* fua = fxtl/(16*Ceil (Div/16)) */
356 /* Tua = 16*Ceil (Div/16)*Txtl */
488 #define SDCR3_CeilBdRtDiv(Div) /* Ceil. of BdRtDiv [16..65536] */ \
491 #define SDCR4_CeilBdRtDiv(Div) /* Ceil. of BdRtDiv [16..65536] */ \
494 /* fsd = fxtl/(16*Ceil (Div/16)) */
495 /* Tsd = 16*Ceil (Div/16)*Txtl */
646 #define MCCR0_CeilAudSmpDiv(Div) /* Ceil. of AudSmpDiv [192..4064] */ \
648 /* faud = fmc/(32*Ceil (Div/32)) */
[all …]
/linux/lib/math/
H A Dreciprocal_div.c41 /* ceil(log2(d)) */ in reciprocal_value_adv()
48 "ceil(log2(0x%08x)) == 32, %s doesn't support such divisor", in reciprocal_value_adv()
/linux/net/sched/
H A Dsch_htb.c97 struct psched_ratecfg ceil; member
681 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); in htb_accnt_ctokens()
696 * borrowing from "level". It accounts bytes to ceil leaky bucket for
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()
1797 if (!hopt->rate.rate || !hopt->ceil.rate) in htb_change_class()
1802 if (hopt->rate.overhead || hopt->ceil.overhead) { in htb_change_class()
1806 if (hopt->rate.mpu || hopt->ceil in htb_change_class()
[all...]
/linux/drivers/net/ethernet/qualcomm/ppe/
H A Dppe_config.c28 * @ceil: Ceil to generate the back pressure.
31 * @resume_ceil: Ceil to resume from the back pressure state.
42 unsigned int ceil; member
54 * @ceil: Ceil to start drop packet from queue.
66 unsigned int ceil; member
189 .ceil = 1146,
201 .ceil = 250,
213 .ceil = 250,
225 .ceil = 250,
250 .ceil = 1200,
[all …]
/linux/drivers/char/
H A Drandom.c180 * u32 get_random_u32_below(u32 ceil)
182 * u32 get_random_u32_inclusive(u32 floor, u32 ceil)
544 u32 __get_random_u32_below(u32 ceil) in DEFINE_BATCHED_ENTROPY()
547 * This is the slow path for variable ceil. It is still fast, most of in DEFINE_BATCHED_ENTROPY()
549 * opportunistically comparing the lower half to ceil itself, before in DEFINE_BATCHED_ENTROPY()
551 * whose lower half would indicate a range indivisible by ceil. The use in DEFINE_BATCHED_ENTROPY()
552 * of `-ceil % ceil` is analogous to `2^32 % ceil`, but is computable in DEFINE_BATCHED_ENTROPY()
559 * This function is technically undefined for ceil == 0, and in fact in DEFINE_BATCHED_ENTROPY()
566 if (unlikely(!ceil)) in DEFINE_BATCHED_ENTROPY()
569 mult = (u64)ceil * rand; in DEFINE_BATCHED_ENTROPY()
[all …]
/linux/drivers/clk/tegra/
H A Dclk-device.c46 dev_dbg(dev, "failed to find ceil OPP for %luHz\n", rate); in tegra_clock_set_pd_state()
139 * state. For some clocks common OPP helper may fail to find ceil in tegra_clock_probe()
/linux/drivers/clk/qcom/
H A Dclk-rcg2.c64 CEIL, enumerator
242 case CEIL: in _freq_tbl_determine_rate()
400 return _freq_tbl_determine_rate(hw, rcg->freq_tbl, req, CEIL); in clk_rcg2_determine_rate()
630 case CEIL: in __clk_rcg2_set_rate()
670 return __clk_rcg2_set_rate(hw, rate, CEIL); in clk_rcg2_set_rate()
704 return __clk_rcg2_set_rate(hw, rate, CEIL); in clk_rcg2_set_rate_and_parent()
1381 case CEIL: in __clk_rcg2_shared_set_rate()
1402 return __clk_rcg2_shared_set_rate(hw, rate, parent_rate, CEIL); in clk_rcg2_shared_set_rate()
1408 return __clk_rcg2_shared_set_rate(hw, rate, parent_rate, CEIL); in clk_rcg2_shared_set_rate_and_parent()
/linux/drivers/net/wireless/morsemicro/mm81x/
H A Dfw.h22 /* FW_CAPABILITIES_FLAGS_WIDTH = ceil(MM81X_CAPS_MAX_HW_LEN / 32) */
/linux/drivers/media/platform/ti/omap3isp/
H A Dispcsiphy.c223 /* THS_TERM: Programmed value = ceil(12.5 ns/DDRClk period) - 1. */ in omap3isp_csiphy_config()
226 /* THS_SETTLE: Programmed value = ceil(90 ns/DDRClk period) + 3. */ in omap3isp_csiphy_config()
/linux/drivers/net/ethernet/sfc/siena/
H A Drx_common.h17 /* Each packet can consume up to ceil(max_frame_len / buffer_size) buffers */
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_qevent.c70 SYS(close_ns, "tc class add dev veth0 parent 1: classid 1:1 htb rate 1mbit ceil 1mbit"); in run_qevent_redirect()
H A Dlibarena.c41 /* Max suffix is ceil((lg 2^32) / (lg 10)) + sizeof("__") = 10 + 2 = 12. */
/linux/drivers/net/ethernet/sfc/
H A Drx_common.h17 /* Each packet can consume up to ceil(max_frame_len / buffer_size) buffers */
/linux/drivers/md/
H A Ddm-verity-fec.h35 sector_t region_blocks; /* blocks per region: ceil(blocks / rs_k) */
/linux/rust/kernel/
H A Dopp.rs286 Ceil, enumerator
872 SearchType::Ceil => unsafe { in opp_from_freq()
898 SearchType::Ceil => unsafe { in opp_from_level()
923 SearchType::Ceil => unsafe { in opp_from_bw()
/linux/Documentation/translations/zh_CN/power/
H A Dopp.rst75 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage,

123