Searched refs:weight (Results 176 - 200 of 262) sorted by path

1234567891011

/linux-master/kernel/
H A Dscftorture.c61 torture_param(int, weight_resched, -1, "Testing weight for resched_cpu() operations.");
62 torture_param(int, weight_single, -1, "Testing weight for single-CPU no-wait operations.");
63 torture_param(int, weight_single_rpc, -1, "Testing weight for single-CPU RPC operations.");
64 torture_param(int, weight_single_wait, -1, "Testing weight for single-CPU operations.");
65 torture_param(int, weight_many, -1, "Testing weight for multi-CPU no-wait operations.");
66 torture_param(int, weight_many_wait, -1, "Testing weight for multi-CPU operations.");
67 torture_param(int, weight_all, -1, "Testing weight for all-CPU no-wait operations.");
68 torture_param(int, weight_all_wait, -1, "Testing weight for all-CPU operations.");
204 static void scf_sel_add(unsigned long weight, int prim, bool wait) argument
208 // If no weight, i
[all...]
/linux-master/kernel/sched/
H A Dcore.c1333 * SCHED_IDLE tasks get minimal weight:
1336 load->weight = scale_load(WEIGHT_IDLEPRIO);
1343 * weight
1348 load->weight = scale_load(sched_prio_to_weight[prio]);
10006 * based on each entity's (task or task-group's) weight
10007 * (se->load.weight).
10009 * In other words, if root_task_group has 10 tasks of weight
10010 * 1024) and two child groups A0 and A1 (of weight 1024 each),
11301 u64 weight = scale_load_down(tg->shares); local
11303 return DIV_ROUND_CLOSEST_ULL(weight * CGROUP_WEIGHT_DF
11306 cpu_weight_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, u64 weight) argument
11327 unsigned long weight = scale_load_down(css_tg(css)->shares); local
11345 unsigned long weight; local
11911 sched_mm_cid_remote_clear_weight(struct mm_struct *mm, int cpu, int weight) argument
11930 int weight, cpu; local
[all...]
H A Ddebug.c525 P(se->load.weight);
679 SEQ_printf(m, " .%-30s: %ld\n", "load", cfs_rq->load.weight);
1069 P(se.load.weight);
H A Dfair.c167 lw->weight += inc;
173 lw->weight -= dec;
179 lw->weight = w;
238 w = scale_load_down(lw->weight);
249 * delta_exec * weight / lw.weight
251 * (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT
253 * Either weight := NICE_0_LOAD and lw \e sched_prio_to_wmult[], in which case
257 * Or, weight =< lw.weight (becaus
260 __calc_delta(u64 delta_exec, unsigned long weight, struct load_weight *lw) argument
624 unsigned long weight = scale_load_down(se->load.weight); local
634 unsigned long weight = scale_load_down(se->load.weight); local
661 unsigned long weight = scale_load_down(curr->load.weight); local
734 unsigned long weight = scale_load_down(curr->load.weight); local
1962 unsigned int weight; member in struct:numa_stats
3679 reweight_eevdf(struct sched_entity *se, u64 avruntime, unsigned long weight) argument
3785 reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, unsigned long weight) argument
3843 unsigned long weight = scale_load(sched_prio_to_weight[prio]); local
7225 int weight; local
[all...]
H A Dpelt.c206 * running is a subset of runnable (weight) so running can't be set if
209 * This means that weight will be 0 but not running for a sched_entity
273 * se_weight() = se->load.weight
277 * se_weight() = tg->weight * grq->load_avg / tg->load_avg
323 scale_load_down(cfs_rq->load.weight),
H A Drt.c688 int i, weight; local
691 weight = cpumask_weight(rd->span);
717 diff = div_u64((u64)diff, weight);
H A Dsched.h136 * low-weight task groups (eg. nice +19 on an autogroup), deeper taskgroup
164 * Task weight (visible to users) and its load (invisible to users) have
451 * A weight of 0 or 1 can cause arithmetics problems.
452 * A weight of a cfs_rq is the sum of weights of which entities
453 * are queued on this cfs_rq, so a weight of a entity should not be
455 * (The default weight is 1024 - so there's no practical
644 * h_load = weight * f(tg)
646 * Where f(tg) is the recursive weight fraction assigned to
840 return scale_load_down(se->load.weight);
/linux-master/lib/
H A Dcpumask_kunit.c30 int weight; \
33 weight = cpumask_weight(&mask_tmp); \
36 KUNIT_EXPECT_EQ((test), weight, iter); \
H A Dirq_poll.c88 int work, weight; local
107 weight = iop->weight;
110 work = iop->poll(iop, weight);
118 * consume their assigned weight (or more, some drivers can't
124 if (work >= weight) {
173 * @weight: The default weight (or command completion budget)
179 void irq_poll_init(struct irq_poll *iop, int weight, irq_poll_fn *poll_fn) argument
183 iop->weight
[all...]
H A Dobjagg.c738 unsigned int weight = node->objagg_obj->stats.user_count; local
741 /* Node weight is sum of node users and all other nodes users
751 weight += node->objagg_obj->stats.user_count;
753 return weight;
760 unsigned int weight; local
768 weight = objagg_tmp_graph_node_weight(graph, i);
769 if (weight >= max_weight) {
770 max_weight = weight;
H A Dsbitmap.c299 unsigned int i, weight = 0; local
306 weight += bitmap_weight(&word->word, word_depth);
308 weight += bitmap_weight(&word->cleared, word_depth);
310 return weight;
/linux-master/lib/zstd/compress/
H A Dfse_compress.c463 U32 const weight = sEnd - sStart; local
464 if (weight < 1)
466 norm[s] = (short)weight;
H A Dzstd_compress_internal.h1285 U32 const weight = BWeight + FWeight;
1287 return (double)weight / fp_multiplier;
H A Dzstd_opt.c51 U32 const weight = BWeight + FWeight; local
53 return weight;
/linux-master/mm/
H A Dmempolicy.c142 * iw_table is the sysfs-set interleave weight table, a value of 0 denotes
155 u8 weight; local
160 weight = table ? table[node] : 1;
162 weight = weight ? weight : 1;
164 return weight;
1985 u8 weight; local
1994 /* calculate the total weight */
1997 weight
2391 u8 *table, *weights, weight; local
3339 u8 weight; local
3352 u8 weight = 0; local
[all...]
/linux-master/net/batman-adv/
H A Dbat_iv_ogm.c1514 u8 *weight; local
1535 weight = &orig_ifinfo->bat_iv.bcast_own_sum;
1536 *weight = bitmap_weight(orig_ifinfo->bat_iv.bcast_own,
/linux-master/net/ceph/crush/
H A Dmapper.c151 dprintk("list_choose i=%d x=%d r=%d item %d weight %x "
338 dprintk("weight 0x%x item %d\n", weights[i], ids[i]);
356 * divide by 16.16 fixed-point weight. note
358 * weight means a larger (less negative) value
414 const __u32 *weight, int weight_max,
419 if (weight[item] >= 0x10000)
421 if (weight[item] == 0)
424 < weight[item])
452 const __u32 *weight, int weight_max,
565 weight, weight_ma
413 is_out(const struct crush_map *map, const __u32 *weight, int weight_max, int item, int x) argument
449 crush_choose_firstn(const struct crush_map *map, struct crush_work *work, const struct crush_bucket *bucket, const __u32 *weight, int weight_max, int x, int numrep, int type, int *out, int outpos, int out_size, unsigned int tries, unsigned int recurse_tries, unsigned int local_retries, unsigned int local_fallback_retries, int recurse_to_leaf, unsigned int vary_r, unsigned int stable, int *out2, int parent_r, const struct crush_choose_arg *choose_args) argument
643 crush_choose_indep(const struct crush_map *map, struct crush_work *work, const struct crush_bucket *bucket, const __u32 *weight, int weight_max, int x, int left, int numrep, int type, int *out, int outpos, unsigned int tries, unsigned int recurse_tries, int recurse_to_leaf, int *out2, int parent_r, const struct crush_choose_arg *choose_args) argument
894 crush_do_rule(const struct crush_map *map, int ruleno, int x, int *result, int result_max, const __u32 *weight, int weight_max, void *cwin, const struct crush_choose_arg *choose_args) argument
[all...]
/linux-master/net/ceph/
H A Dosdmap.c517 b->weight = ceph_decode_32(p);
1200 u32 *weight; local
1210 weight = kvmalloc(array_size(max, sizeof(*weight)), GFP_NOFS);
1212 if (!state || !weight || !addr) {
1214 kvfree(weight);
1222 memcpy(weight, map->osd_weight, to_copy * sizeof(*weight));
1230 map->osd_weight = weight;
1883 osdmap_info(map, "osd%d weight
2490 do_crush(struct ceph_osdmap *map, int ruleno, int x, int *result, int result_max, const __u32 *weight, int weight_max, s64 choose_args_index) argument
[all...]
/linux-master/net/core/
H A Ddev.c4467 int weight_p __read_mostly = 64; /* old backlog weight */
4468 int dev_weight_rx_bias __read_mostly = 1; /* bias for backlog weight */
6061 napi->weight = READ_ONCE(net_hotdata.dev_rx_weight);
6591 int (*poll)(struct napi_struct *, int), int weight)
6605 if (weight > NAPI_POLL_WEIGHT)
6606 netdev_err_once(dev, "%s() called with weight %d\n", __func__,
6607 weight);
6608 napi->weight = weight;
6709 int work, weight; local
6590 netif_napi_add_weight(struct net_device *dev, struct napi_struct *napi, int (*poll)(struct napi_struct *, int), int weight) argument
[all...]
H A Dpktgen.c251 u64 weight; member in struct:imix_pkt
578 pkt_dev->imix_entries[i].weight);
837 * where each entry consists of size and weight delimited by commas.
851 unsigned long weight; local
868 len = num_arg(&buffer[i], max_digits, &weight);
871 if (weight <= 0)
875 pkt_dev->imix_entries[pkt_dev->n_imix_entries].weight = weight;
2630 total_weight += pkt_dev->imix_entries[i].weight;
2634 cumulative_prob += div64_u64(pkt_dev->imix_entries[i].weight *
[all...]
H A Dsysctl_net_core.c303 int ret, weight; local
308 weight = READ_ONCE(weight_p);
309 WRITE_ONCE(net_hotdata.dev_rx_weight, weight * dev_weight_rx_bias);
310 WRITE_ONCE(net_hotdata.dev_tx_weight, weight * dev_weight_tx_bias);
/linux-master/net/devlink/
H A Drate.c326 u32 weight; local
370 weight = nla_get_u32(attrs[DEVLINK_ATTR_RATE_TX_WEIGHT]);
373 weight, info->extack);
376 weight, info->extack);
380 devlink_rate->tx_weight = weight;
423 "TX weight set isn't supported for the leafs");
449 "TX weight set isn't supported for the nodes");
/linux-master/net/ipv4/
H A Dnexthop.c154 info->nh_grp->nh_entries[i].weight = nhge->weight;
892 p->weight = nhg->nh_entries[i].weight - 1;
1286 if (nhg[i].weight > 254) {
1287 NL_SET_ERR_MSG(extack, "Invalid value for weight");
1890 total += nhg->nh_entries[i].weight;
1896 w += nhge->weight;
1969 total += nhg->nh_entries[i].weight;
1975 w += nhge->weight;
[all...]
/linux-master/net/ipv6/
H A Droute.c4715 static void rt6_upper_bound_set(struct fib6_info *rt, int *weight, int total) argument
4720 *weight += rt->fib6_nh->fib_nh_weight;
4721 upper_bound = DIV_ROUND_CLOSEST_ULL((u64) (*weight) << 31,
4730 int weight = 0; local
4732 rt6_upper_bound_set(rt, &weight, total);
4735 rt6_upper_bound_set(iter, &weight, total);
/linux-master/net/mac80211/
H A Drc80211_minstrel_ht.c721 minstrel_ewma(int old, int new, int weight) argument
726 incr = (EWMA_DIV - weight) * diff / EWMA_DIV;

Completed in 532 milliseconds

1234567891011