Home
last modified time | relevance | path

Searched refs:weight (Results 1 – 139 of 139) sorted by relevance

/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_wrr.c77 int weight; in ip_vs_wrr_gcd_weight() local
81 weight = atomic_read(&dest->weight); in ip_vs_wrr_gcd_weight()
82 if (weight > 0) { in ip_vs_wrr_gcd_weight()
84 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
86 g = weight; in ip_vs_wrr_gcd_weight()
99 int new_weight, weight = 0; in ip_vs_wrr_max_weight() local
102 new_weight = atomic_read(&dest->weight); in ip_vs_wrr_max_weight()
103 if (new_weight > weight) in ip_vs_wrr_max_weight()
104 weight = new_weight; in ip_vs_wrr_max_weight()
107 return weight; in ip_vs_wrr_max_weight()
[all …]
Dip_vs_sed.c85 atomic_read(&dest->weight) > 0) { in ip_vs_sed_schedule()
102 if ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_sed_schedule()
103 (__s64)doh * atomic_read(&least->weight)) { in ip_vs_sed_schedule()
115 atomic_read(&least->weight), loh); in ip_vs_sed_schedule()
Dip_vs_wlc.c57 atomic_read(&dest->weight) > 0) { in ip_vs_wlc_schedule()
74 if ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_wlc_schedule()
75 (__s64)doh * atomic_read(&least->weight)) { in ip_vs_wlc_schedule()
87 atomic_read(&least->weight), loh); in ip_vs_wlc_schedule()
Dip_vs_nq.c82 !atomic_read(&dest->weight)) in ip_vs_nq_schedule()
95 ((__s64)loh * atomic_read(&dest->weight) > in ip_vs_nq_schedule()
96 (__s64)doh * atomic_read(&least->weight))) { in ip_vs_nq_schedule()
114 atomic_read(&least->weight), loh); in ip_vs_nq_schedule()
Dip_vs_lblcr.c177 if ((atomic_read(&least->weight) > 0) in ip_vs_dest_set_min()
193 if (((__s64)loh * atomic_read(&dest->weight) > in ip_vs_dest_set_min()
194 (__s64)doh * atomic_read(&least->weight)) in ip_vs_dest_set_min()
208 atomic_read(&least->weight), loh); in ip_vs_dest_set_min()
226 if (atomic_read(&most->weight) > 0) { in ip_vs_dest_set_max()
239 if (((__s64)moh * atomic_read(&dest->weight) < in ip_vs_dest_set_max()
240 (__s64)doh * atomic_read(&most->weight)) in ip_vs_dest_set_max()
241 && (atomic_read(&dest->weight) > 0)) { in ip_vs_dest_set_max()
253 atomic_read(&most->weight), moh); in ip_vs_dest_set_max()
586 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblcr_schedule()
[all …]
Dip_vs_fo.c39 atomic_read(&dest->weight) > hw) { in ip_vs_fo_schedule()
41 hw = atomic_read(&dest->weight); in ip_vs_fo_schedule()
50 atomic_read(&hweight->weight)); in ip_vs_fo_schedule()
Dip_vs_lblc.c422 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblc_schedule()
439 if ((__s64)loh * atomic_read(&dest->weight) > in __ip_vs_lblc_schedule()
440 (__s64)doh * atomic_read(&least->weight)) { in __ip_vs_lblc_schedule()
452 atomic_read(&least->weight), loh); in __ip_vs_lblc_schedule()
465 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { in is_overloaded()
470 < atomic_read(&d->weight)) { in is_overloaded()
509 atomic_read(&dest->weight) > 0 && !is_overloaded(dest, svc)) in ip_vs_lblc_schedule()
Dip_vs_ovf.c41 w = atomic_read(&dest->weight); in ip_vs_ovf_schedule()
57 atomic_read(&h->weight)); in ip_vs_ovf_schedule()
Dip_vs_rr.c76 atomic_read(&dest->weight) > 0) in ip_vs_rr_schedule()
100 atomic_read(&dest->refcnt), atomic_read(&dest->weight)); in ip_vs_rr_schedule()
Dip_vs_sh.c81 return atomic_read(&dest->weight) <= 0 || in is_unavailable()
196 atomic_read(&dest->weight)); in ip_vs_sh_reassign()
199 if (++d_count >= atomic_read(&dest->weight)) { in ip_vs_sh_reassign()
Dip_vs_lc.c48 atomic_read(&dest->weight) == 0) in ip_vs_lc_schedule()
DKconfig150 normalized by the server weight.
159 connections to the server with the highest weight that is
169 connections to the server with the highest weight that is
171 connections exceed the node's weight.
183 overloaded (its active connection numbers is larger than its weight)
235 on the ith server and Ui is the fixed service rate (weight)
Dip_vs_dh.c229 || atomic_read(&dest->weight) <= 0 in ip_vs_dh_schedule()
Dip_vs_ctl.c800 atomic_set(&dest->weight, udest->weight); in __ip_vs_update_dest()
940 if (udest->weight < 0) { in ip_vs_add_dest()
1004 if (udest->weight < 0) { in ip_vs_edit_dest()
2046 atomic_read(&dest->weight), in ip_vs_info_seq_show()
2057 atomic_read(&dest->weight), in ip_vs_info_seq_show()
2302 udest->weight = udest_compat->weight; in ip_vs_copy_udest_compat()
2566 entry.weight = atomic_read(&dest->weight); in __ip_vs_get_dest_entries()
3149 atomic_read(&dest->weight)) || in ip_vs_genl_fill_dest()
3283 udest->weight = nla_get_u32(nla_weight); in ip_vs_genl_parse_dest()
Dip_vs_conn.c737 (atomic_read(&dest->weight) == 0); in expire_quiescent_template()
Dip_vs_core.c1764 unlikely(!atomic_read(&cp->dest->weight))) { in ip_vs_in()
/linux-4.4.14/block/
Dblk-iopoll.c87 int work, weight; in blk_iopoll_softirq() local
106 weight = iop->weight; in blk_iopoll_softirq()
109 work = iop->poll(iop, weight); in blk_iopoll_softirq()
123 if (work >= weight) { in blk_iopoll_softirq()
179 void blk_iopoll_init(struct blk_iopoll *iop, int weight, blk_iopoll_fn *poll_fn) in blk_iopoll_init() argument
183 iop->weight = weight; in blk_iopoll_init()
Dcfq-iosched.c219 unsigned int weight; member
264 unsigned int weight; member
1283 cfqg->weight = cfqg->new_weight; in cfq_update_group_weight()
1341 parent->children_weight += pos->weight; in cfq_group_service_tree_add()
1343 vfr = vfr * pos->weight / parent->children_weight; in cfq_group_service_tree_add()
1399 parent->children_weight -= pos->weight; in cfq_group_service_tree_del()
1584 unsigned int weight = cgroup_subsys_on_dfl(io_cgrp_subsys) ? in cfq_cpd_init() local
1588 weight *= 2; in cfq_cpd_init()
1590 cgd->weight = weight; in cfq_cpd_init()
1591 cgd->leaf_weight = weight; in cfq_cpd_init()
[all …]
/linux-4.4.14/kernel/events/
Dhw_breakpoint.c176 fetch_this_slot(struct bp_busy_slots *slots, int weight) in fetch_this_slot() argument
178 slots->pinned += weight; in fetch_this_slot()
185 enum bp_type_idx type, int weight) in toggle_bp_task_slot() argument
191 new_idx = old_idx + weight; in toggle_bp_task_slot()
204 int weight) in toggle_bp_slot() argument
210 weight = -weight; in toggle_bp_slot()
214 get_bp_info(bp->cpu, type)->cpu_pinned += weight; in toggle_bp_slot()
220 toggle_bp_task_slot(bp, cpu, type, weight); in toggle_bp_slot()
284 int weight; in __reserve_bp_slot() local
296 weight = hw_breakpoint_weight(bp); in __reserve_bp_slot()
[all …]
Dcore.c1296 size += sizeof(data->weight); in __perf_event_header_size()
5444 perf_output_put(handle, data->weight); in perf_output_sample()
/linux-4.4.14/net/mac80211/
Drc80211_minstrel.h28 minstrel_ewma(int old, int new, int weight) in minstrel_ewma() argument
33 incr = (EWMA_DIV - weight) * diff / EWMA_DIV; in minstrel_ewma()
42 minstrel_ewmsd(int old_ewmsd, int cur_prob, int prob_ewma, int weight) in minstrel_ewmsd() argument
48 incr = (EWMA_DIV - weight) * diff / EWMA_DIV; in minstrel_ewmsd()
50 tmp_var = weight * (tmp_var + diff * incr / 1000000) / EWMA_DIV; in minstrel_ewmsd()
/linux-4.4.14/drivers/net/wireless/rsi/
Drsi_91x_core.c36 common->min_weight = tx_qinfo[ii].weight; in rsi_determine_min_weight_queue()
62 tx_qinfo[ii].weight = in rsi_recalculate_weights()
63 ((tx_qinfo[ii].weight > common->min_weight) ? in rsi_recalculate_weights()
64 tx_qinfo[ii].weight - common->min_weight : 0); in rsi_recalculate_weights()
67 tx_qinfo[ii].weight = tx_qinfo[ii].wme_params; in rsi_recalculate_weights()
71 tx_qinfo[ii].weight = 0; in rsi_recalculate_weights()
164 (common->tx_qinfo[ii].weight < common->min_weight)) && in rsi_core_determine_hal_queue()
166 common->min_weight = common->tx_qinfo[ii].weight; in rsi_core_determine_hal_queue()
Drsi_main.h115 s32 weight; member
Drsi_91x_mgmt.c239 common->tx_qinfo[ii].weight = common->tx_qinfo[ii].wme_params; in rsi_set_contention_vals()
/linux-4.4.14/include/linux/
Daverage.h31 unsigned long weight = ilog2(_weight); \
40 (((internal << weight) - internal) + \
41 (val << factor)) >> weight : \
Dblk-iopoll.h11 int weight; member
Dthermal.h248 int weight; member
449 unsigned int weight) in thermal_zone_bind_cooling_device() argument
Dperf_event.h766 u64 weight; member
815 data->weight = 0; in perf_sample_data_init()
Dnetdevice.h310 int weight; member
1949 int (*poll)(struct napi_struct *, int), int weight);
Dsched.h1186 unsigned long weight; member
/linux-4.4.14/net/dccp/ccids/lib/
Dtfrc.h53 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) in tfrc_ewma() argument
55 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; in tfrc_ewma()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dlparcfg.c78 u8 weight; member
126 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp()
190 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); in parse_ppp_data()
494 static ssize_t update_ppp(u64 *entitlement, u8 *weight) in update_ppp() argument
507 new_weight = ppp_data.weight; in update_ppp()
509 } else if (weight) { in update_ppp()
510 new_weight = *weight; in update_ppp()
516 __func__, ppp_data.entitlement, ppp_data.weight); in update_ppp()
532 static ssize_t update_mpp(u64 *entitlement, u8 *weight) in update_mpp() argument
555 } else if (weight) { in update_mpp()
[all …]
/linux-4.4.14/net/ceph/crush/
Dmapper.c376 const __u32 *weight, int weight_max, in is_out() argument
381 if (weight[item] >= 0x10000) in is_out()
383 if (weight[item] == 0) in is_out()
386 < weight[item]) in is_out()
412 const __u32 *weight, int weight_max, in crush_choose_firstn() argument
514 weight, weight_max, in crush_choose_firstn()
535 reject = is_out(map, weight, in crush_choose_firstn()
594 const __u32 *weight, int weight_max, in crush_choose_indep() argument
719 weight, weight_max, in crush_choose_indep()
736 is_out(map, weight, weight_max, item, x)) in crush_choose_indep()
[all …]
/linux-4.4.14/net/sched/
Dsch_qfq.c266 u32 lmax, u32 weight) in qfq_init_agg() argument
272 agg->class_weight = weight; in qfq_init_agg()
276 u32 lmax, u32 weight) in qfq_find_agg() argument
281 if (agg->lmax == lmax && agg->class_weight == weight) in qfq_find_agg()
386 static int qfq_change_agg(struct Qdisc *sch, struct qfq_class *cl, u32 weight, in qfq_change_agg() argument
390 struct qfq_aggregate *new_agg = qfq_find_agg(q, lmax, weight); in qfq_change_agg()
396 qfq_init_agg(q, new_agg, lmax, weight); in qfq_change_agg()
412 u32 weight, lmax, inv_w; in qfq_change_class() local
426 weight = nla_get_u32(tb[TCA_QFQ_WEIGHT]); in qfq_change_class()
427 if (!weight || weight > (1UL << QFQ_MAX_WSHIFT)) { in qfq_change_class()
[all …]
Dsch_hhf.c394 unsigned int weight; in hhf_enqueue() local
402 weight = 1; in hhf_enqueue()
405 weight = q->hhf_non_hh_weight; in hhf_enqueue()
408 bucket->deficit = weight * q->quantum; in hhf_enqueue()
443 int weight = (bucket - q->buckets == WDRR_BUCKET_FOR_HH) ? in hhf_dequeue() local
446 bucket->deficit += weight * q->quantum; in hhf_dequeue()
Dsch_cbq.c104 long weight; /* Relative allotment: see below */ member
1042 cl->quantum = (cl->weight*cl->allot*q->nclasses[prio])/ in cbq_normalize_quanta()
1253 q->quanta[cl->priority] -= cl->weight; in cbq_rmprio()
1260 q->quanta[cl->priority] += cl->weight; in cbq_addprio()
1270 if (wrr->weight) in cbq_set_wrr()
1271 cl->weight = wrr->weight; in cbq_set_wrr()
1382 q->link.weight = q->link.R_tab->rate.rate; in cbq_init()
1456 opt.weight = cl->weight; in cbq_dump_wrr()
1870 cl->weight = cl->R_tab->rate.rate; in cbq_change_class()
/linux-4.4.14/drivers/thermal/
Dpower_allocator.c352 total_weight += instance->weight; in allocate_power()
389 int weight; in allocate_power() local
402 weight = 1 << FRAC_BITS; in allocate_power()
404 weight = instance->weight; in allocate_power()
406 weighted_req_power[i] = frac_to_int(weight * req_power[i]); in allocate_power()
Dfair_share.c100 total_weight += instance->weight; in fair_share_throttle()
114 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle()
Dthermal_core.h54 unsigned int weight; /* The weight of the cooling device */ member
Dthermal_core.c284 unsigned int weight) in __bind() argument
300 weight); in __bind()
348 tzp->tbp[i].weight); in bind_cdev()
388 tzp->tbp[i].weight); in bind_tz()
1214 return sprintf(buf, "%d\n", instance->weight); in thermal_cooling_device_weight_show()
1223 int ret, weight; in thermal_cooling_device_weight_store() local
1225 ret = kstrtoint(buf, 0, &weight); in thermal_cooling_device_weight_store()
1230 instance->weight = weight; in thermal_cooling_device_weight_store()
1262 unsigned int weight) in thermal_zone_bind_cooling_device() argument
1307 dev->weight = weight; in thermal_zone_bind_cooling_device()
/linux-4.4.14/net/ipv4/netfilter/
Dipt_CLUSTERIP.c578 unsigned int weight; /* number of bits set == size */ member
586 unsigned int weight; in clusterip_seq_start() local
592 weight = hweight32(local_nodes); in clusterip_seq_start()
593 if (*pos >= weight) in clusterip_seq_start()
601 idx->weight = weight; in clusterip_seq_start()
614 if (*pos >= idx->weight) { in clusterip_seq_next()
638 if (idx->pos == idx->weight - 1) in clusterip_seq_show()
/linux-4.4.14/Documentation/cgroups/
Dblkio-controller.txt12 weight time based division of disk policy. It is implemented in CFQ. Hence
42 echo 1000 > /sys/fs/cgroup/blkio/test1/blkio.weight
43 echo 500 > /sys/fs/cgroup/blkio/test2/blkio.weight
64 ideally io.disk_time of cgroups should be in proportion to the weight.
143 Proportional weight policy files
145 - blkio.weight
146 - Specifies per cgroup weight. This is default weight of the group
153 These rules override the default value of group weight as specified
154 by blkio.weight.
158 # echo dev_maj:dev_minor weight > blkio.weight_device
[all …]
Dunified-hierarchy.txt196 other issues. The mapping from nice level to weight isn't obvious or
417 control knob should be named "weight" and have the range [1, 10000]
466 io.weight
468 The weight setting, currently only available and effective if
469 cfq-iosched is in use for the target device. The weight is
471 always contains the default weight in the following format to
482 setting. Writing "$MAJ:$MIN $WEIGHT" sets per-device weight
/linux-4.4.14/drivers/thermal/int340x_thermal/
Dacpi_thermal_rel.h19 u64 weight; member
49 u64 weight; member
Dacpi_thermal_rel.c262 memcpy(&art_user[i].weight, &arts[i].weight, in fill_art()
/linux-4.4.14/tools/perf/util/
Dhist.c220 u64 weight) in he_stat__add_period() argument
224 he_stat->weight += weight; in he_stat__add_period()
236 dest->weight += src->weight; in he_stat__add_stat()
394 u64 weight = entry->stat.weight; in hists__findnew_entry() local
412 he_stat__add_period(&he->stat, period, weight); in hists__findnew_entry()
414 he_stat__add_period(he->stat_acc, period, weight); in hists__findnew_entry()
462 u64 period, u64 weight, u64 transaction, in __hists__add_entry() argument
480 .weight = weight, in __hists__add_entry()
532 cost = iter->sample->weight; in iter_add_single_mem_entry()
683 sample->period, sample->weight, in iter_add_single_normal_entry()
[all …]
Dsort.h56 u64 weight; member
Dhist.h118 u64 weight, u64 transaction,
Dsort.c1061 return he->stat.nr_events ? he->stat.weight / he->stat.nr_events : 0; in he_weight()
1086 return left->stat.weight - right->stat.weight; in sort__global_weight_cmp()
1092 return repsep_snprintf(bf, size, "%-*llu", width, he->stat.weight); in hist_entry__global_weight_snprintf()
Devent.h188 u64 weight; member
Devsel.c1604 data->weight = 0; in perf_evsel__parse_sample()
1810 data->weight = 0; in perf_evsel__parse_sample()
1813 data->weight = *array; in perf_evsel__parse_sample()
2117 *array = sample->weight; in perf_event__synthesize_sample()
Ddata-convert-bt.c410 ret = value_set_u64(cw, event, "perf_weight", sample->weight); in add_generic_values()
Dsession.c943 printf("... weight: %" PRIu64 "\n", sample->weight); in dump_sample()
/linux-4.4.14/kernel/sched/
Dfair.c119 lw->weight += inc; in update_load_add()
125 lw->weight -= dec; in update_load_sub()
131 lw->weight = w; in update_load_set()
192 w = scale_load_down(lw->weight); in __update_inv_weight()
214 static u64 __calc_delta(u64 delta_exec, unsigned long weight, struct load_weight *lw) in __calc_delta() argument
216 u64 fact = scale_load_down(weight); in __calc_delta()
598 if (unlikely(se->load.weight != NICE_0_LOAD)) in calc_delta_fair()
640 update_load_add(&lw, se->load.weight); in sched_slice()
643 slice = __calc_delta(slice, se->load.weight, load); in sched_slice()
683 sa->load_avg = scale_load_down(se->load.weight); in init_entity_runnable_average()
[all …]
Ddebug.c89 P(se->load.weight); in print_cfs_group_stats()
206 SEQ_printf(m, " .%-30s: %ld\n", "load", cfs_rq->load.weight); in print_cfs_rq()
296 rq->load.weight); in print_cpu()
628 P(se.load.weight); in proc_sched_show_task()
Drt.c642 int i, weight; in do_balance_runtime() local
645 weight = cpumask_weight(rd->span); in do_balance_runtime()
671 diff = div_u64((u64)diff, weight); in do_balance_runtime()
Dcore.c821 load->weight = scale_load(WEIGHT_IDLEPRIO); in set_load_weight()
826 load->weight = scale_load(prio_to_weight[prio]); in set_load_weight()
2775 *load = rq->load.weight; in get_iowait_load()
/linux-4.4.14/fs/dlm/
Dmember.c333 memb->weight = node->weight; in dlm_add_member()
396 if (memb->weight) in make_member_array()
397 total += memb->weight; in make_member_array()
414 if (!all_zero && !memb->weight) in make_member_array()
420 w = memb->weight; in make_member_array()
Dconfig.c240 int weight; member
521 nd->weight = 1; /* default weight of 1 if none is set */ in make_node()
719 return sprintf(buf, "%d\n", config_item_to_node(item)->weight); in node_weight_show()
725 int rc = kstrtoint(buf, 0, &config_item_to_node(item)->weight); in node_weight_store()
733 CONFIGFS_ATTR(node_, weight);
827 node->weight = nd->weight; in dlm_config_nodes()
Dconfig.h19 int weight; member
Ddlm_internal.h118 int weight; member
/linux-4.4.14/drivers/thunderbolt/
Dpath.c19 hop->weight, hop->priority, in tb_dump_hop()
186 hop.weight = path->weight; in tb_path_activate()
Dtb_regs.h199 u32 weight:4; member
Dtunnel_pci.c38 path->weight = 1; in tb_pci_init_path()
Dtb.h88 int weight:4; member
/linux-4.4.14/include/uapi/linux/
Dip_vs.h152 int weight; /* destination weight */ member
217 int weight; /* destination weight */ member
Dpkt_sched.h441 __u32 weight; member
671 __u32 weight; member
/linux-4.4.14/Documentation/block/
Dcfq-iosched.txt150 blkio cgroup directory. It is weight-based and there are four knobs
151 for configuration - weight[_device] and leaf_weight[_device].
159 an implicit leaf child node which hosts all the tasks whose weight is
164 weight leaf_weight
171 root never has a parent making its weight is meaningless. For backward
172 compatibility, weight is always kept in sync with leaf_weight. B, AA
189 Distribution below root. The total active weight at this level is
197 the implicit leaf node. The total active weight at this level is
Ddata-integrity.txt60 lighter-weight checksum to be used when interfacing with the operating
Dbiodoc.txt377 from the buffer cache unnecessarily added to the weight of the descriptors
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dbtcoex.c221 const u32 *weight = ar9003_wlan_weights[stomp_type]; in ath9k_hw_btcoex_set_weight() local
236 weight = mci_wlan_weights[stype]; in ath9k_hw_btcoex_set_weight()
241 btcoex_hw->wlan_weight[i] = weight[i]; in ath9k_hw_btcoex_set_weight()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event.h62 int weight; member
256 .weight = (w), \
401 #define EVENT_CONSTRAINT_END { .weight = -1 }
407 for ((e) = (c); (e)->weight != -1; (e)++)
Dperf_event.c656 int weight; member
692 if (constraints[idx]->weight == wmin) in perf_sched_init()
697 sched->state.weight = wmin; in perf_sched_init()
798 sched->state.weight++; in perf_sched_next_event()
799 if (sched->state.weight > sched->max_weight) in perf_sched_next_event()
803 } while (c->weight != sched->state.weight); in perf_sched_next_event()
849 wmin = min(wmin, c->weight); in x86_schedule_events()
850 wmax = max(wmax, c->weight); in x86_schedule_events()
1899 if (!c || !c->weight) in validate_event()
Dperf_event_amd.c361 nb->event_constraints[i].weight = 1; in amd_alloc_nb()
Dperf_event_intel.c2328 c->weight = hweight64(c->idxmsk64); in intel_get_excl_constraints()
2335 if (c->weight == 0) in intel_get_excl_constraints()
2359 c1->weight = c2->weight; in intel_get_event_constraints()
3605 c->weight = hweight64(c->idxmsk64); in intel_pmu_init()
Dperf_event_intel_ds.c1016 data->weight = pebs->lat; in setup_pebs_sample_data()
1086 data->weight = intel_hsw_weight(pebs); in setup_pebs_sample_data()
Dperf_event_intel_uncore.c423 wmin = min(wmin, c->weight); in uncore_assign_events()
424 wmax = max(wmax, c->weight); in uncore_assign_events()
/linux-4.4.14/tools/perf/Documentation/
Dperf-report.txt71 pid, comm, dso, symbol, parent, cpu, socket, srcline, weight, local_weight.
87 - weight: Event specific weight, e.g. memory latency or transaction
88 abort cost. This is the global weight.
89 - local_weight: Local weight version of the weight above.
Dperf-diff.txt209 - WEIGHT-A being the weight of the data file
210 - WEIGHT-B being the weight of the baseline data file
Dperf-record.txt262 --weight::
263 Enable weightened sampling. An additional weight is recorded per sample and can be
264 displayed with the weight and local_weight sort keys. This currently works for TSX
Dperf-top.txt118 Sort by key(s): pid, comm, dso, symbol, parent, srcline, weight,
/linux-4.4.14/drivers/hid/
Dhid-roccat-kone.c423 int weight = 0; in kone_sysfs_show_weight() local
431 retval = kone_get_weight(usb_dev, &weight); in kone_sysfs_show_weight()
436 return snprintf(buf, PAGE_SIZE, "%d\n", weight); in kone_sysfs_show_weight()
438 static DEVICE_ATTR(weight, 0440, kone_sysfs_show_weight, NULL);
/linux-4.4.14/tools/perf/tests/
Dsample-parsing.c121 COMP(weight); in samples_same()
181 .weight = 109, in do_test()
/linux-4.4.14/include/linux/crush/
Dcrush.h133 __u32 weight; /* 16-bit fixed point */ member
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dservice.c351 int weight; in ptlrpc_server_nthreads_check() local
394 weight = cfs_cpt_weight(svc->srv_cptable, CFS_CPT_ANY); in ptlrpc_server_nthreads_check()
395 for (i = 1; (weight >> (i + 1)) != 0 && /* >= 4 cores/HTs */ in ptlrpc_server_nthreads_check()
422 weight = cfs_cpt_weight(svc->srv_cptable, 0); in ptlrpc_server_nthreads_check()
423 LASSERT(weight > 0); in ptlrpc_server_nthreads_check()
425 for (; factor > 0 && weight > 0; factor--, weight -= fade) in ptlrpc_server_nthreads_check()
426 nthrs += min(weight, fade) * factor; in ptlrpc_server_nthreads_check()
2484 int weight; in ptlrpc_hr_init() local
2496 weight = cpumask_weight(topology_sibling_cpumask(0)); in ptlrpc_hr_init()
2505 hrp->hrp_nthrs /= weight; in ptlrpc_hr_init()
/linux-4.4.14/arch/powerpc/mm/
Dnuma.c1375 int weight, new_nid, i = 0; in arch_update_cpu_topology() local
1380 weight = cpumask_weight(&cpu_associativity_changes_mask); in arch_update_cpu_topology()
1381 if (!weight) in arch_update_cpu_topology()
1384 updates = kzalloc(weight * (sizeof(*updates)), GFP_KERNEL); in arch_update_cpu_topology()
1427 if (i < weight) in arch_update_cpu_topology()
/linux-4.4.14/drivers/input/mouse/
Delantech.c618 int weight, delta_x1 = 0, delta_y1 = 0, delta_x2 = 0, delta_y2 = 0; in process_packet_motion_v4() local
626 weight = (packet[0] & 0x10) ? ETP_WEIGHT_VALUE : 1; in process_packet_motion_v4()
637 etd->mt[id].x += delta_x1 * weight; in process_packet_motion_v4()
638 etd->mt[id].y -= delta_y1 * weight; in process_packet_motion_v4()
644 etd->mt[sid].x += delta_x2 * weight; in process_packet_motion_v4()
645 etd->mt[sid].y -= delta_y2 * weight; in process_packet_motion_v4()
/linux-4.4.14/net/ceph/
Dosdmap.c240 b->weight = ceph_decode_32(p); in crush_decode()
694 u32 *weight; in osdmap_set_max_osd() local
703 weight = krealloc(map->osd_weight, max*sizeof(*weight), GFP_NOFS); in osdmap_set_max_osd()
704 if (!weight) in osdmap_set_max_osd()
706 map->osd_weight = weight; in osdmap_set_max_osd()
1476 const __u32 *weight, int weight_max) in do_crush() argument
1484 weight, weight_max, map->crush_scratch_ary); in do_crush()
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
DKconfig21 int "MAL NAPI polling weight"
/linux-4.4.14/Documentation/thermal/
Dsysfs-api.txt98 unsigned long upper, unsigned long lower, unsigned int weight);
113 weight: the influence of this cooling device in this thermal
132 .weight: The 'influence' of a particular cooling device on this
135 weight of 1, then they all contribute the same. You can
137 weight of 0 means that this cooling device doesn't
139 devices have a weight of 0. If all weights are 0, then
294 zone. For example, if a cooling device has a weight double
Dpower_allocator.txt224 cooling devices. Higher weight can be used to express higher power
226 has a weight of one they are considered equal. This is particularly
/linux-4.4.14/arch/s390/include/uapi/asm/
Dzcrypt.h210 uint64_t weight; member
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h124 uint32_t weight; member
Dkfd_topology.c297 props->weight = 1; in kfd_parse_subtype_iolink()
545 sysfs_show_32bit_prop(buffer, "weight", iolink->weight); in iolink_show()
/linux-4.4.14/include/rdma/
Dib_smi.h140 u8 weight; member
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-cpu.c509 int weight; in cfs_cpt_spread_node() local
523 weight = nodes_weight(*mask); in cfs_cpt_spread_node()
524 LASSERT(weight > 0); in cfs_cpt_spread_node()
526 rotor %= weight; in cfs_cpt_spread_node()
/linux-4.4.14/drivers/md/bcache/
Dutil.h439 #define ewma_add(ewma, val, weight, factor) \ argument
441 (ewma) *= (weight) - 1; \
443 (ewma) /= (weight); \
/linux-4.4.14/tools/perf/scripts/python/
Dexport-to-postgresql.py697 …t, ip, time, cpu, to_dso_id, to_symbol_id, to_sym_offset, to_ip, period, weight, transaction, data… argument
701 …8, to_dso_id, 8, to_symbol_id, 8, to_sym_offset, 8, to_ip, 8, period, 8, weight, 8, transaction, 8…
/linux-4.4.14/drivers/video/fbdev/nvidia/
Dnv_type.h30 int weight; member
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c1660 int *weight) in update_best() argument
1662 if (*best_weight < ++(*weight)) { in update_best()
1663 *best_weight = *weight; in update_best()
1673 int weight, best_weight; in gelic_wl_find_best_bss() local
1702 weight = 0; in gelic_wl_find_best_bss()
1710 &best_weight, &weight); in gelic_wl_find_best_bss()
1716 &best_weight, &weight); in gelic_wl_find_best_bss()
1723 &best_weight, &weight); in gelic_wl_find_best_bss()
1735 &best_weight, &weight); in gelic_wl_find_best_bss()
/linux-4.4.14/net/
DKconfig379 bool "Network light weight tunnels"
381 This feature provides an infrastructure to support light weight
383 weight tunnel endpoint. Tunnel encapsulation parameters are stored
384 with light weight tunnel state associated with fib routes.
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dbgmac.c415 int weight) in bgmac_dma_rx_read() argument
485 if (handled >= weight) /* Should never be greater */ in bgmac_dma_rx_read()
1250 static int bgmac_poll(struct napi_struct *napi, int weight) in bgmac_poll() argument
1259 handled += bgmac_dma_rx_read(bgmac, &bgmac->rx_ring[0], weight); in bgmac_poll()
1263 return weight; in bgmac_poll()
1265 if (handled < weight) { in bgmac_poll()
/linux-4.4.14/tools/hv/
Dhv_kvp_daemon.c925 int weight; in kvp_get_ip_info() local
1008 weight = 0; in kvp_get_ip_info()
1015 weight += hweight32(&w[i]); in kvp_get_ip_info()
1017 sprintf(cidr_mask, "/%d", weight); in kvp_get_ip_info()
/linux-4.4.14/drivers/extcon/
Dextcon.c105 int weight; in check_mutually_exclusive() local
109 weight = hweight32(correspondants); in check_mutually_exclusive()
110 if (weight > 1) in check_mutually_exclusive()
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
Dacx.c720 int wl1251_acx_low_rssi(struct wl1251 *wl, s8 threshold, u8 weight, in wl1251_acx_low_rssi() argument
733 rssi->weight = weight; in wl1251_acx_low_rssi()
Dacx.h430 u8 weight; member
1479 int wl1251_acx_low_rssi(struct wl1251 *wl, s8 threshold, u8 weight,
/linux-4.4.14/arch/s390/hypfs/
Dhypfs_diag.c179 __u16 weight; member
189 __u16 weight; member
/linux-4.4.14/tools/perf/
Dbuiltin-mem.c100 sample->weight, in dump_raw_samples()
Dbuiltin-diff.c315 u64 weight, u64 transaction) in hists__add_entry() argument
317 if (__hists__add_entry(hists, al, NULL, NULL, NULL, period, weight, in hists__add_entry()
340 sample->weight, sample->transaction)) { in diff__process_sample_event()
/linux-4.4.14/drivers/input/touchscreen/
Dft6236.c67 u8 weight; member
/linux-4.4.14/drivers/net/can/c_can/
Dc_can.c717 u32 weight, lasts; in c_can_adjust_pending() local
726 weight = hweight32(pend); in c_can_adjust_pending()
730 if (lasts == weight) in c_can_adjust_pending()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c50 #define QM_WFQ_INC_VAL(weight) ((weight) * 0x9000) argument
/linux-4.4.14/drivers/mtd/
Dmtdswap.c521 unsigned int weight = eb->active_count; in mtdswap_store_eb() local
531 if (weight == maxweight) in mtdswap_store_eb()
533 else if (weight == 0) in mtdswap_store_eb()
535 else if (weight > (maxweight/2)) in mtdswap_store_eb()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c1294 unsigned int total_weight, min_weight, weight; in xgbe_config_dcb_tc() local
1320 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
1321 weight = clamp(weight, min_weight, total_weight); in xgbe_config_dcb_tc()
1324 "TC%u using DWRR (weight %u)\n", i, weight); in xgbe_config_dcb_tc()
1328 weight); in xgbe_config_dcb_tc()
/linux-4.4.14/net/core/
Ddev.c4555 napi->weight = weight_p; in process_backlog()
4735 int (*poll)(struct napi_struct *, int), int weight) in netif_napi_add() argument
4744 if (weight > NAPI_POLL_WEIGHT) in netif_napi_add()
4746 weight, dev->name); in netif_napi_add()
4747 napi->weight = weight; in netif_napi_add()
4788 int work, weight; in napi_poll() local
4794 weight = n->weight; in napi_poll()
4804 work = n->poll(n, weight); in napi_poll()
4808 WARN_ON_ONCE(work > weight); in napi_poll()
4810 if (likely(work < weight)) in napi_poll()
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_file_ops.c1169 const unsigned int weight = cpumask_weight(&current->cpus_allowed); in assign_ctxt_affinity() local
1177 if ((weight >= qib_cpulist_count) && in assign_ctxt_affinity()
1194 if (weight >= qib_cpulist_count) { in assign_ctxt_affinity()
1651 const unsigned int weight = in qib_assign_ctxt() local
1654 if (weight == 1 && !test_bit(cpu, qib_cpulist)) in qib_assign_ctxt()
Dqib_iba7322.c4416 vl->weight = (val >> SYM_LSB(LowPriority0_0, Weight)) & in get_vl_weights()
4431 ((vl->weight & SYM_RMASK(LowPriority0_0, Weight)) << in set_vl_weights()
/linux-4.4.14/fs/xfs/
DKconfig80 lighter weight than XFS_DEBUG and does not modify algorithms and will
/linux-4.4.14/drivers/mtd/nand/
Dnand_base.c1133 int weight; in nand_check_erased_buf() local
1137 weight = hweight8(*bitmap); in nand_check_erased_buf()
1138 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf()
1145 weight = hweight_long(*((unsigned long *)bitmap)); in nand_check_erased_buf()
1146 bitflips += BITS_PER_LONG - weight; in nand_check_erased_buf()
1152 weight = hweight8(*bitmap); in nand_check_erased_buf()
1153 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-driver-hid-roccat-kone88 …<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/weight
/linux-4.4.14/net/batman-adv/
Dbat_iv_ogm.c1652 u8 *weight; in batadv_iv_ogm_process() local
1674 weight = &orig_neigh_node->bat_iv.bcast_own_sum[if_num]; in batadv_iv_ogm_process()
1675 *weight = bitmap_weight(word, in batadv_iv_ogm_process()
/linux-4.4.14/Documentation/power/
Dstates.txt31 This state is a generic, pure software, light-weight, system sleep state.
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dwmi.h92 u8 weight; member
1264 u8 weight; member
1279 u8 weight; member
Dwmi.c1497 cmd.weight = sq_thresh->weight; in ath6kl_wmi_rssi_threshold_event_rx()
1730 cmd.weight = sq_thresh->weight; in ath6kl_wmi_snr_threshold_event_rx()
/linux-4.4.14/Documentation/input/
Dntrig.txt88 dramatically with increasing numbers. Rather than accumulate weight as a
/linux-4.4.14/arch/mips/cavium-octeon/
Docteon-irq.c229 int weight = cpumask_weight(mask); in next_cpu_for_irq() local
232 if (weight > 1) { in next_cpu_for_irq()
243 } else if (weight == 1) { in next_cpu_for_irq()
/linux-4.4.14/include/net/
Dip_vs.h603 int weight; /* destination weight */ member
668 atomic_t weight; /* server weight */ member
/linux-4.4.14/Documentation/networking/
Dswitchdev.txt353 nexthop via 11.0.0.1 dev sw1p1 weight 1
354 nexthop via 11.0.0.9 dev sw1p2 weight 1
Dipvs-sysctl.txt151 quiescent by setting its weight to 0 and it is desired that
/linux-4.4.14/drivers/net/xen-netback/
Dxenbus.c110 queue->napi.state, queue->napi.weight, in xenvif_read_io_ring()
/linux-4.4.14/Documentation/ia64/
Dfsys.txt3 Light-weight System Calls for IA-64
/linux-4.4.14/tools/perf/util/scripting-engines/
Dtrace-event-python.c696 tuple_set_u64(t, 16, es->sample->weight); in python_export_sample()
/linux-4.4.14/drivers/net/ethernet/amd/
Dpcnet32.c819 lp->napi.weight = lp->rx_ring_size / 2; in pcnet32_set_ringparam()
1824 lp->napi.weight = lp->rx_ring_size / 2; in pcnet32_probe1()
/linux-4.4.14/Documentation/RCU/
DwhatisRCU.txt86 use much lighter-weight synchronization, in some cases, absolutely no
88 schemes, readers must use heavy-weight synchronization in order to
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hsi.h2413 __le32 weight; member
2663 __le32 weight; member
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dnetdev.c2673 static int e1000e_poll(struct napi_struct *napi, int weight) in e1000e_poll() argument
2687 adapter->clean_rx(adapter->rx_ring, &work_done, weight); in e1000e_poll()
2690 work_done = weight; in e1000e_poll()
2693 if (work_done < weight) { in e1000e_poll()
/linux-4.4.14/Documentation/scsi/
DChangeLog.megaraid407 Declare some heavy-weight functions to be non-inlined,
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dchip.c6938 | (((u64)vl->weight in set_vl_weights()
7031 vl->weight = 0; in get_vlarb_preempt()
/linux-4.4.14/init/
DKconfig1135 enabling proportional weight division of disk bandwidth in CFQ, set