Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
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 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 …]
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/fs/bcachefs/
H A Dutil.c656 u64 bch2_get_random_u64_below(u64 ceil) in bch2_get_random_u64_below() argument
658 if (ceil <= U32_MAX) in bch2_get_random_u64_below()
659 return __get_random_u32_below(ceil); in bch2_get_random_u64_below()
663 u64 mult = ceil * rand; in bch2_get_random_u64_below()
665 if (unlikely(mult < ceil)) { in bch2_get_random_u64_below()
666 u64 bound = -ceil % ceil; in bch2_get_random_u64_below()
669 mult = ceil * rand; in bch2_get_random_u64_below()
673 return mul_u64_u64_shr(ceil, rand, 64); in bch2_get_random_u64_below()
/linux/drivers/iio/light/
H A 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/drivers/char/
H A Drandom.c191 * u32 get_random_u32_below(u32 ceil)
193 * u32 get_random_u32_inclusive(u32 floor, u32 ceil)
556 u32 __get_random_u32_below(u32 ceil) in DEFINE_BATCHED_ENTROPY()
559 * This is the slow path for variable ceil. It is still fast, most of in DEFINE_BATCHED_ENTROPY()
561 * opportunistically comparing the lower half to ceil itself, before in DEFINE_BATCHED_ENTROPY()
563 * whose lower half would indicate a range indivisible by ceil. The use in DEFINE_BATCHED_ENTROPY()
564 * of `-ceil % ceil` is analogous to `2^32 % ceil`, but is computable in DEFINE_BATCHED_ENTROPY()
571 * This function is technically undefined for ceil in DEFINE_BATCHED_ENTROPY()
[all...]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.h60 u64 ceil; member
/linux/drivers/ufs/host/
H A Dufs-qcom.h237 #define ceil(freq, div) ((freq) % (div) == 0 ? ((freq)/(div)) : ((freq)/(div) + 1)) macro
H A Dufs-qcom.c1310 cycles_in_1us = ceil(clki->max_freq, (1000 * 1000)); in ufs_qcom_set_core_clk_ctrl()
1312 cycles_in_1us = ceil(clk_get_rate(clki->clk), (1000 * 1000)); in ufs_qcom_set_core_clk_ctrl()
/linux/arch/x86/lib/
H A Dcrc32c-3way.S106 imul $2731, len_dw, %eax # 2731 = ceil(2^16 / 24)
/linux/Documentation/translations/zh_CN/power/
H A Dopp.rst75 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage,
/linux/drivers/gpu/drm/amd/display/dc/dml2/
H A Ddisplay_mode_util.c186 double ceil = dml_ceil(val, 1); in dml_round() local
190 return ceil; in dml_round()
/linux/tools/include/uapi/linux/
H A Dpkt_sched.h391 struct tc_ratespec ceil; member
/linux/Documentation/power/
H A Dopp.rst78 dev_pm_opp_find_freq_{ceil, floor}, dev_pm_opp_get_voltage, dev_pm_opp_get_freq,
H A Denergy-model.rst309 06 /* Use the 'foo' protocol to ceil the frequency */
/linux/crypto/
H A Dtestmgr.c898 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below() argument
904 return prandom_u32_state(rng) % ceil; in prandom_u32_below()
913 u32 floor, u32 ceil) in prandom_u32_inclusive() argument
915 return floor + prandom_u32_below(rng, ceil - floor + 1); in prandom_u32_inclusive()
/linux/samples/bpf/
H A Dxdp_sample_user.c586 return ceil(val); in sample_round()
/linux/tools/perf/util/
H A Dcallchain.c486 min_hit = ceil(node->children_hit * min_percent); in __sort_chain_graph_rel()
H A Dannotate.c1797 avg = ceil((double)(br_cntr[i] & ~ANNOTATION__BR_CNTR_SATURATED_FLAG) / in annotation_br_cntr_entry()
/linux/mm/
H A Dhugetlb.c5132 unsigned long ceil = floor + PUD_SIZE; in hugetlb_vm_op_split() local
5134 if (floor >= vma->vm_start && ceil <= vma->vm_end) in hugetlb_vm_op_split()
5135 hugetlb_unshare_pmds(vma, floor, ceil); in hugetlb_vm_op_split()
/linux/Documentation/admin-guide/sysctl/
H A Dkernel.rst1322 least ``ceil(shmmax/PAGE_SIZE)``.