/linux-master/include/linux/ |
H A D | random.h | 53 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) argument 62 if (!__builtin_constant_p(ceil)) 63 return __get_random_u32_below(ceil); 66 * For the fast path, below, all operations on ceil are precomputed by 71 * whose lower half would indicate a range indivisible by ceil. 73 BUILD_BUG_ON_MSG(!ceil, "get_random_u32_belo 110 get_random_u32_inclusive(u32 floor, u32 ceil) argument [all...] |
/linux-master/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 | 270 qos_dbg(htb->mdev, "Convert: rate %llu, parent ceil %llu -> bw_share %u\n", 276 static void mlx5e_htb_convert_ceil(struct mlx5e_htb *htb, u64 ceil, u32 *max_average_bw) argument 279 *max_average_bw = max_t(u32, div_u64(ceil, BYTES_IN_MBIT), 1); 281 qos_dbg(htb->mdev, "Convert: ceil %llu -> max_average_bw %u\n", 282 ceil, *max_average_bw); 287 u32 parent_classid, u64 rate, u64 ceil, 295 qos_dbg(htb->mdev, "TC_HTB_LEAF_ALLOC_QUEUE classid %04x, parent %04x, rate %llu, ceil %llu\n", 296 classid, parent_classid, rate, ceil); 314 mlx5e_htb_convert_ceil(htb, ceil, &node->max_average_bw); 343 u64 rate, u64 ceil, struc 286 mlx5e_htb_leaf_alloc_queue(struct mlx5e_htb *htb, u16 classid, u32 parent_classid, u64 rate, u64 ceil, struct netlink_ext_ack *extack) argument 342 mlx5e_htb_leaf_to_inner(struct mlx5e_htb *htb, u16 classid, u16 child_classid, u64 rate, u64 ceil, struct netlink_ext_ack *extack) argument 655 mlx5e_htb_node_modify(struct mlx5e_htb *htb, u16 classid, u64 rate, u64 ceil, struct netlink_ext_ack *extack) argument [all...] |
H A D | qos.c | 416 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); 423 htb_qopt->rate, htb_qopt->ceil, htb_qopt->extack); 432 return mlx5e_htb_node_modify(htb, htb_qopt->classid, htb_qopt->rate, htb_qopt->ceil,
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | qos.h | 60 u64 ceil; member in struct:otx2_qos_node
|
H A D | qos.c | 119 maxrate = (node->rate > node->ceil) ? node->rate : node->ceil; 471 txschq_node->ceil = 0; 501 u16 classid, u32 prio, u64 rate, u64 ceil, 517 node->ceil = otx2_convert_rate(ceil); 1204 u32 parent_classid, u64 rate, u64 ceil, 1214 "TC_HTB_LEAF_ALLOC_QUEUE: classid=0x%x parent_classid=0x%x rate=%lld ceil=%lld prio=%lld quantum=%d\n", 1215 classid, parent_classid, rate, ceil, prio, quantum); 1284 ceil, quantu 499 otx2_qos_sw_create_leaf_node(struct otx2_nic *pfvf, struct otx2_qos_node *parent, u16 classid, u32 prio, u64 rate, u64 ceil, u32 quantum, u16 qid, bool static_cfg) argument 1203 otx2_qos_leaf_alloc_queue(struct otx2_nic *pfvf, u16 classid, u32 parent_classid, u64 rate, u64 ceil, u64 prio, u32 quantum, struct netlink_ext_ack *extack) argument 1342 otx2_qos_leaf_to_inner(struct otx2_nic *pfvf, u16 classid, u16 child_classid, u64 rate, u64 ceil, u64 prio, u32 quantum, struct netlink_ext_ack *extack) argument [all...] |
/linux-master/drivers/iio/light/ |
H A D | lv0104cs.c | 278 int floor, ceil, mid; local 285 ceil = lv0104cs_calibscales[i + 1].val * 1000000 287 mid = (floor + ceil) / 2; 296 if (calibscale >= mid && calibscale <= ceil) {
|
/linux-master/net/sched/ |
H A D | sch_htb.c | 97 struct psched_ratecfg ceil; member in struct:htb_class 676 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); 691 * borrowing from "level". It accounts bytes to ceil leaky bucket for 1272 psched_ratecfg_getrate(&opt.ceil, &cl->ceil); 1285 if ((cl->ceil.rate_bytes_ps >= (1ULL << 32)) && 1286 nla_put_u64_64bit(skb, TCA_HTB_CEIL64, cl->ceil.rate_bytes_ps, 1801 if (!hopt->rate.rate || !hopt->ceil.rate) 1806 if (hopt->rate.overhead || hopt->ceil.overhead) { 1810 if (hopt->rate.mpu || hopt->ceil [all...] |
/linux-master/drivers/ufs/host/ |
H A D | ufs-qcom.h | 232 #define ceil(freq, div) ((freq) % (div) == 0 ? ((freq)/(div)) : ((freq)/(div) + 1)) macro
|
H A D | ufs-qcom.c | 1164 * applicable for all frequencies. For ex: ceil(37.5 MHz/25) will 1165 * be 2 and ceil(403 MHZ/25) will be 17 whereas Hardware 1223 cycles_in_1us = ceil(clki->max_freq, (1000 * 1000)); 1225 cycles_in_1us = ceil(clk_get_rate(clki->clk), (1000 * 1000));
|
/linux-master/drivers/char/ |
H A D | random.c | 186 * u32 get_random_u32_below(u32 ceil) 188 * u32 get_random_u32_inclusive(u32 floor, u32 ceil) 535 u32 __get_random_u32_below(u32 ceil) 538 * This is the slow path for variable ceil. It is still fast, most of 540 * opportunistically comparing the lower half to ceil itself, before 542 * whose lower half would indicate a range indivisible by ceil. The use 543 * of `-ceil % ceil` is analogous to `2^32 % ceil`, but is computable 550 * This function is technically undefined for ceil [all...] |
/linux-master/kernel/locking/ |
H A D | test-ww_mutex.c | 392 static inline u32 prandom_u32_below(u32 ceil) argument 397 ret = prandom_u32_state(&rng) % ceil;
|
/linux-master/drivers/gpu/drm/amd/display/dc/dml2/ |
H A D | display_mode_util.c | 112 //return (dml_float_t) (ceil(x / granularity) * granularity); 186 double ceil = dml_ceil(val, 1); local 190 return ceil;
|
/linux-master/include/uapi/linux/ |
H A D | pkt_sched.h | 411 struct tc_ratespec ceil; member in struct:tc_htb_opt
|
/linux-master/tools/include/uapi/linux/ |
H A D | pkt_sched.h | 391 struct tc_ratespec ceil; member in struct:tc_htb_opt
|
/linux-master/drivers/media/tuners/ |
H A D | mt2063.c | 354 #define ceil(n, d) (((n) < 0) ? (-((-(n))/(d))) : (n)/(d) + ((n)%(d) != 0)) macro 610 /* ceil function */ 612 ceil((s32) (pNode->max_ - f_Center), (s32) f_Step);
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 2149 bool ceil) 2156 return num_pages / n + !!(ceil && num_pages % n); 2146 vm_calc_num_pages(unsigned int num_pages, unsigned int page_shift, unsigned int new_page_shift, bool ceil) argument
|
/linux-master/include/net/ |
H A D | pkt_cls.h | 860 u64 ceil; member in struct:tc_htb_qopt_offload
|
/linux-master/crypto/ |
H A D | testmgr.c | 878 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) argument 881 * This is slightly biased for non-power-of-2 values of 'ceil', but this 884 return prandom_u32_state(rng) % ceil; 893 u32 floor, u32 ceil) 895 return floor + prandom_u32_below(rng, ceil - floor + 1); 892 prandom_u32_inclusive(struct rnd_state *rng, u32 floor, u32 ceil) argument
|
/linux-master/mm/ |
H A D | hugetlb.c | 5272 unsigned long ceil = floor + PUD_SIZE; local 5274 if (floor >= vma->vm_start && ceil <= vma->vm_end) 5275 hugetlb_unshare_pmds(vma, floor, ceil);
|
/linux-master/samples/bpf/ |
H A D | xdp_sample_user.c | 586 return ceil(val);
|
/linux-master/tools/perf/util/ |
H A D | callchain.c | 486 min_hit = ceil(node->children_hit * min_percent);
|
H A D | stat-display.c | 1387 return lround(ceil(-log10(num)));
|