Home
last modified time | relevance | path

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

/linux-4.1.27/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_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_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_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()
587 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.c423 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblc_schedule()
440 if ((__s64)loh * atomic_read(&dest->weight) > in __ip_vs_lblc_schedule()
441 (__s64)doh * atomic_read(&least->weight)) { in __ip_vs_lblc_schedule()
453 atomic_read(&least->weight), loh); in __ip_vs_lblc_schedule()
466 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { in is_overloaded()
471 < atomic_read(&d->weight)) { in is_overloaded()
510 atomic_read(&dest->weight) > 0 && !is_overloaded(dest, svc)) in ip_vs_lblc_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
172 overloaded (its active connection numbers is larger than its weight)
224 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.c803 atomic_set(&dest->weight, udest->weight); in __ip_vs_update_dest()
943 if (udest->weight < 0) { in ip_vs_add_dest()
1007 if (udest->weight < 0) { in ip_vs_edit_dest()
2040 atomic_read(&dest->weight), in ip_vs_info_seq_show()
2051 atomic_read(&dest->weight), in ip_vs_info_seq_show()
2296 udest->weight = udest_compat->weight; in ip_vs_copy_udest_compat()
2550 entry.weight = atomic_read(&dest->weight); in __ip_vs_get_dest_entries()
3127 atomic_read(&dest->weight)) || in ip_vs_genl_fill_dest()
3260 udest->weight = nla_get_u32(nla_weight); in ip_vs_genl_parse_dest()
Dip_vs_conn.c735 (atomic_read(&dest->weight) == 0); in expire_quiescent_template()
Dip_vs_core.c1695 unlikely(!atomic_read(&cp->dest->weight))) || in ip_vs_in()
/linux-4.1.27/lib/
Daverage.c37 void ewma_init(struct ewma *avg, unsigned long factor, unsigned long weight) in ewma_init() argument
39 WARN_ON(!is_power_of_2(weight) || !is_power_of_2(factor)); in ewma_init()
41 avg->weight = ilog2(weight); in ewma_init()
59 (((internal << avg->weight) - internal) + in ewma_add()
60 (val << avg->factor)) >> avg->weight : in ewma_add()
/linux-4.1.27/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.c256 unsigned int weight; member
1282 cfqg->weight = cfqg->new_weight; in cfq_update_group_weight()
1340 parent->children_weight += pos->weight; in cfq_group_service_tree_add()
1342 vfr = vfr * pos->weight / parent->children_weight; in cfq_group_service_tree_add()
1398 parent->children_weight -= pos->weight; in cfq_group_service_tree_del()
1552 cfqg->weight = blkg->blkcg->cfq_weight; in cfq_pd_init()
4422 cfqd->root_group->weight = 2 * CFQ_WEIGHT_DEFAULT; in cfq_init_queue()
/linux-4.1.27/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.c1315 size += sizeof(data->weight); in perf_event__header_size()
5272 perf_output_put(handle, data->weight); in perf_output_sample()
/linux-4.1.27/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()
Dmain.c1135 int weight) in ieee80211_napi_add() argument
1139 netif_napi_add(napi_dev, napi, poll, weight); in ieee80211_napi_add()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/net/ceph/crush/
Dmapper.c369 const __u32 *weight, int weight_max, in is_out() argument
374 if (weight[item] >= 0x10000) in is_out()
376 if (weight[item] == 0) in is_out()
379 < weight[item]) in is_out()
405 const __u32 *weight, int weight_max, in crush_choose_firstn() argument
507 weight, weight_max, in crush_choose_firstn()
528 reject = is_out(map, weight, in crush_choose_firstn()
583 const __u32 *weight, int weight_max, in crush_choose_indep() argument
694 weight, weight_max, in crush_choose_indep()
711 is_out(map, weight, weight_max, item, x)) in crush_choose_indep()
[all …]
/linux-4.1.27/drivers/thermal/
Dfair_share.c62 struct thermal_cooling_device *cdev, int weight, int level) in get_target_state() argument
68 return (long)(weight * level * max_state) / (100 * tz->trips); in get_target_state()
112 tzp->tbp[i].weight, cur_trip_level); in fair_share_throttle()
/linux-4.1.27/include/linux/
Daverage.h11 unsigned long weight; member
15 unsigned long weight);
Dblk-iopoll.h11 int weight; member
Dthermal.h228 int weight; member
Dperf_event.h666 u64 weight; member
715 data->weight = 0; in perf_sample_data_init()
Dnetdevice.h309 int weight; member
1901 int (*poll)(struct napi_struct *, int), int weight);
Dsched.h1115 unsigned long weight; member
/linux-4.1.27/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()
387 static int qfq_change_agg(struct Qdisc *sch, struct qfq_class *cl, u32 weight, in qfq_change_agg() argument
391 struct qfq_aggregate *new_agg = qfq_find_agg(q, lmax, weight); in qfq_change_agg()
397 qfq_init_agg(q, new_agg, lmax, weight); in qfq_change_agg()
413 u32 weight, lmax, inv_w; in qfq_change_class() local
427 weight = nla_get_u32(tb[TCA_QFQ_WEIGHT]); in qfq_change_class()
428 if (!weight || weight > (1UL << QFQ_MAX_WSHIFT)) { in qfq_change_class()
[all …]
Dsch_hhf.c401 unsigned int weight; in hhf_enqueue() local
409 weight = 1; in hhf_enqueue()
412 weight = q->hhf_non_hh_weight; in hhf_enqueue()
415 bucket->deficit = weight * q->quantum; in hhf_enqueue()
449 int weight = (bucket - q->buckets == WDRR_BUCKET_FOR_HH) ? in hhf_dequeue() local
452 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()
1875 cl->weight = cl->R_tab->rate.rate; in cbq_change_class()
/linux-4.1.27/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
/linux-4.1.27/drivers/net/wireless/iwlwifi/
Diwl-op-mode.h157 int weight);
267 int weight) in iwl_op_mode_napi_add() argument
271 op_mode->ops->napi_add(op_mode, napi, napi_dev, poll, weight); in iwl_op_mode_napi_add()
/linux-4.1.27/net/ipv4/netfilter/
Dipt_CLUSTERIP.c573 unsigned int weight; /* number of bits set == size */ member
581 unsigned int weight; in clusterip_seq_start() local
587 weight = hweight32(local_nodes); in clusterip_seq_start()
588 if (*pos >= weight) in clusterip_seq_start()
596 idx->weight = weight; in clusterip_seq_start()
609 if (*pos >= idx->weight) { in clusterip_seq_next()
633 if (idx->pos == idx->weight - 1) in clusterip_seq_show()
/linux-4.1.27/tools/perf/util/
Dhist.c200 u64 weight) in he_stat__add_period() argument
204 he_stat->weight += weight; in he_stat__add_period()
216 dest->weight += src->weight; in he_stat__add_stat()
378 u64 weight = entry->stat.weight; in add_hist_entry() local
396 he_stat__add_period(&he->stat, period, weight); in add_hist_entry()
398 he_stat__add_period(he->stat_acc, period, weight); in add_hist_entry()
447 u64 period, u64 weight, u64 transaction, in __hists__add_entry() argument
464 .weight = weight, in __hists__add_entry()
516 cost = iter->sample->weight; in iter_add_single_mem_entry()
666 sample->period, sample->weight, in iter_add_single_normal_entry()
[all …]
Dsort.h55 u64 weight; member
Devent.h180 u64 weight; member
Dhist.h111 u64 weight, u64 transaction,
Dsort.c936 return he->stat.nr_events ? he->stat.weight / he->stat.nr_events : 0; in he_weight()
961 return left->stat.weight - right->stat.weight; in sort__global_weight_cmp()
967 return repsep_snprintf(bf, size, "%-*llu", width, he->stat.weight); in hist_entry__global_weight_snprintf()
Devsel.c1431 data->weight = 0; in perf_evsel__parse_sample()
1637 data->weight = 0; in perf_evsel__parse_sample()
1640 data->weight = *array; in perf_evsel__parse_sample()
1944 *array = sample->weight; in perf_event__synthesize_sample()
Ddata-convert-bt.c362 ret = value_set_u64(cw, event, "perf_weight", sample->weight); in add_generic_values()
Dsession.c787 printf("... weight: %" PRIu64 "\n", sample->weight); in dump_sample()
/linux-4.1.27/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.1.27/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.h19 int weight; member
Dconfig.c340 int weight; member
633 nd->weight = 1; /* default weight of 1 if none is set */ in make_node()
868 return sprintf(buf, "%d\n", nd->weight); in node_weight_read()
874 int rc = kstrtoint(buf, 0, &nd->weight); in node_weight_write()
967 node->weight = nd->weight; in dlm_config_nodes()
Ddlm_internal.h118 int weight; member
/linux-4.1.27/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.1.27/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()
603 if (unlikely(se->load.weight != NICE_0_LOAD)) in calc_delta_fair()
650 update_load_add(&lw, se->load.weight); in sched_slice()
653 slice = __calc_delta(slice, se->load.weight, load); in sched_slice()
2292 update_load_add(&cfs_rq->load, se->load.weight); in account_entity_enqueue()
[all …]
Ddebug.c94 P(se->load.weight); in print_cfs_group_stats()
213 SEQ_printf(m, " .%-30s: %ld\n", "load", cfs_rq->load.weight); in print_cfs_rq()
305 rq->load.weight); in print_cpu()
640 P(se.load.weight); in proc_sched_show_task()
Drt.c629 int i, weight, more = 0; in do_balance_runtime() local
632 weight = cpumask_weight(rd->span); in do_balance_runtime()
658 diff = div_u64((u64)diff, weight); in do_balance_runtime()
2066 int weight; in set_cpus_allowed_rt() local
2073 weight = cpumask_weight(new_mask); in set_cpus_allowed_rt()
2079 if ((p->nr_cpus_allowed > 1) == (weight > 1)) in set_cpus_allowed_rt()
2087 if (weight <= 1) { in set_cpus_allowed_rt()
Ddeadline.c1582 int weight; in set_cpus_allowed_dl() local
1615 weight = cpumask_weight(new_mask); in set_cpus_allowed_dl()
1621 if ((p->nr_cpus_allowed > 1) == (weight > 1)) in set_cpus_allowed_dl()
1627 if (weight <= 1) { in set_cpus_allowed_dl()
Dproc.c508 return rq->load.weight; in get_rq_runnable_load()
Dcore.c796 load->weight = scale_load(WEIGHT_IDLEPRIO); in set_load_weight()
801 load->weight = scale_load(prio_to_weight[prio]); in set_load_weight()
/linux-4.1.27/include/uapi/linux/
Dip_vs.h152 int weight; /* destination weight */ member
217 int weight; /* destination weight */ member
Dpkt_sched.h440 __u32 weight; member
670 __u32 weight; member
/linux-4.1.27/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.1.27/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.1.27/tools/perf/Documentation/
Dperf-report.txt70 pid, comm, dso, symbol, parent, cpu, srcline, weight, local_weight.
83 - weight: Event specific weight, e.g. memory latency or transaction
84 abort cost. This is the global weight.
85 - 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.txt225 --weight::
226 Enable weightened sampling. An additional weight is recorded per sample and can be
227 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.1.27/arch/x86/kernel/cpu/
Dperf_event.h61 int weight; member
242 .weight = (w), \
387 #define EVENT_CONSTRAINT_END { .weight = -1 }
393 for ((e) = (c); (e)->weight != -1; (e)++)
Dperf_event.c638 int weight; member
674 if (constraints[idx]->weight == wmin) in perf_sched_init()
679 sched->state.weight = wmin; in perf_sched_init()
780 sched->state.weight++; in perf_sched_next_event()
781 if (sched->state.weight > sched->max_weight) in perf_sched_next_event()
785 } while (c->weight != sched->state.weight); in perf_sched_next_event()
831 wmin = min(wmin, c->weight); in x86_schedule_events()
832 wmax = max(wmax, c->weight); in x86_schedule_events()
1850 if (!c || !c->weight) in validate_event()
Dperf_event_intel.c2084 cx->weight = hweight64(cx->idxmsk64); in intel_get_excl_constraints()
2091 if (cx->weight == 0) in intel_get_excl_constraints()
2115 c1->weight = c2->weight; in intel_get_event_constraints()
3336 c->weight = hweight64(c->idxmsk64); in intel_pmu_init()
Dperf_event_intel_ds.c885 data.weight = pebs->lat; in __intel_pmu_pebs_event()
955 data.weight = intel_hsw_weight(pebs); in __intel_pmu_pebs_event()
Dperf_event_amd.c361 nb->event_constraints[i].weight = 1; in amd_alloc_nb()
Dperf_event_intel_uncore.c370 wmin = min(wmin, c->weight); in uncore_assign_events()
371 wmax = max(wmax, c->weight); in uncore_assign_events()
/linux-4.1.27/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.1.27/include/linux/crush/
Dcrush.h116 __u32 weight; /* 16-bit fixed point */ member
/linux-4.1.27/tools/perf/tests/
Dsample-parsing.c121 COMP(weight); in samples_same()
181 .weight = 109, in do_test()
/linux-4.1.27/arch/powerpc/mm/
Dnuma.c1368 int weight, new_nid, i = 0; in arch_update_cpu_topology() local
1373 weight = cpumask_weight(&cpu_associativity_changes_mask); in arch_update_cpu_topology()
1374 if (!weight) in arch_update_cpu_topology()
1377 updates = kzalloc(weight * (sizeof(*updates)), GFP_KERNEL); in arch_update_cpu_topology()
1420 if (i < weight) in arch_update_cpu_topology()
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/ibm/emac/
DKconfig21 int "MAL NAPI polling weight"
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dservice.c494 int weight; in ptlrpc_server_nthreads_check() local
537 weight = cfs_cpt_weight(svc->srv_cptable, CFS_CPT_ANY); in ptlrpc_server_nthreads_check()
538 for (i = 1; (weight >> (i + 1)) != 0 && /* >= 4 cores/HTs */ in ptlrpc_server_nthreads_check()
565 weight = cfs_cpt_weight(svc->srv_cptable, 0); in ptlrpc_server_nthreads_check()
566 LASSERT(weight > 0); in ptlrpc_server_nthreads_check()
568 for (; factor > 0 && weight > 0; factor--, weight -= fade) in ptlrpc_server_nthreads_check()
569 nthrs += min(weight, fade) * factor; in ptlrpc_server_nthreads_check()
2759 int weight; in ptlrpc_hr_init() local
2771 weight = cpumask_weight(topology_thread_cpumask(0)); in ptlrpc_hr_init()
2780 hrp->hrp_nthrs /= weight; in ptlrpc_hr_init()
/linux-4.1.27/arch/s390/include/uapi/asm/
Dzcrypt.h210 uint64_t weight; member
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h123 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.1.27/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.1.27/drivers/md/bcache/
Dutil.h444 #define ewma_add(ewma, val, weight, factor) \ argument
446 (ewma) *= (weight) - 1; \
448 (ewma) /= (weight); \
/linux-4.1.27/tools/perf/scripts/python/
Dexport-to-postgresql.py429 …t, ip, time, cpu, to_dso_id, to_symbol_id, to_sym_offset, to_ip, period, weight, transaction, data… argument
433 …8, to_dso_id, 8, to_symbol_id, 8, to_sym_offset, 8, to_ip, 8, period, 8, weight, 8, transaction, 8…
/linux-4.1.27/drivers/video/fbdev/nvidia/
Dnv_type.h30 int weight; member
/linux-4.1.27/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.1.27/drivers/extcon/
Dextcon.c93 int weight; in check_mutually_exclusive() local
97 weight = hweight32(correspondants); in check_mutually_exclusive()
98 if (weight > 1) in check_mutually_exclusive()
/linux-4.1.27/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.1.27/drivers/net/wireless/ti/wl1251/
Dacx.c723 int wl1251_acx_low_rssi(struct wl1251 *wl, s8 threshold, u8 weight, in wl1251_acx_low_rssi() argument
736 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.1.27/tools/hv/
Dhv_kvp_daemon.c927 int weight; in kvp_get_ip_info() local
1010 weight = 0; in kvp_get_ip_info()
1017 weight += hweight32(&w[i]); in kvp_get_ip_info()
1019 sprintf(cidr_mask, "/%d", weight); in kvp_get_ip_info()
/linux-4.1.27/arch/s390/hypfs/
Dhypfs_diag.c178 __u16 weight; member
188 __u16 weight; member
/linux-4.1.27/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()
339 sample->weight, sample->transaction)) { in diff__process_sample_event()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_mad.h179 u8 weight; member
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.1.27/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.1.27/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.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c1305 unsigned int total_weight, min_weight, weight; in xgbe_config_dcb_tc() local
1330 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
1331 weight = clamp(weight, min_weight, total_weight); in xgbe_config_dcb_tc()
1333 DBGPR(" TC%u using DWRR (weight %u)\n", i, weight); in xgbe_config_dcb_tc()
1337 weight); in xgbe_config_dcb_tc()
/linux-4.1.27/net/core/
Ddev.c4389 napi->weight = weight_p; in process_backlog()
4569 int (*poll)(struct napi_struct *, int), int weight) in netif_napi_add() argument
4578 if (weight > NAPI_POLL_WEIGHT) in netif_napi_add()
4580 weight, dev->name); in netif_napi_add()
4581 napi->weight = weight; in netif_napi_add()
4620 int work, weight; in napi_poll() local
4626 weight = n->weight; in napi_poll()
4636 work = n->poll(n, weight); in napi_poll()
4640 WARN_ON_ONCE(work > weight); in napi_poll()
4642 if (likely(work < weight)) in napi_poll()
[all …]
/linux-4.1.27/fs/xfs/
DKconfig80 lighter weight than XFS_DEBUG and does not modify algorithms and will
/linux-4.1.27/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.1.27/net/batman-adv/
Dbat_iv_ogm.c1648 uint8_t *weight; in batadv_iv_ogm_process() local
1670 weight = &orig_neigh_node->bat_iv.bcast_own_sum[if_num]; in batadv_iv_ogm_process()
1671 *weight = bitmap_weight(word, in batadv_iv_ogm_process()
/linux-4.1.27/Documentation/power/
Dstates.txt31 This state is a generic, pure software, light-weight, system sleep state.
/linux-4.1.27/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.1.27/Documentation/input/
Dntrig.txt88 dramatically with increasing numbers. Rather than accumulate weight as a
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dops.c1323 int weight) in iwl_mvm_napi_add() argument
1327 ieee80211_napi_add(mvm->hw, napi, napi_dev, poll, weight); in iwl_mvm_napi_add()
/linux-4.1.27/arch/mips/cavium-octeon/
Docteon-irq.c228 int weight = cpumask_weight(data->affinity); in next_cpu_for_irq() local
231 if (weight > 1) { in next_cpu_for_irq()
242 } else if (weight == 1) { in next_cpu_for_irq()
/linux-4.1.27/include/net/
Dip_vs.h638 int weight; /* destination weight */ member
703 atomic_t weight; /* server weight */ member
Dmac80211.h3639 int weight);
/linux-4.1.27/Documentation/networking/
Dipvs-sysctl.txt151 quiescent by setting its weight to 0 and it is desired that
/linux-4.1.27/drivers/net/xen-netback/
Dxenbus.c110 queue->napi.state, queue->napi.weight, in xenvif_read_io_ring()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dmain.c2036 int weight) in iwl_napi_add() argument
2040 ieee80211_napi_add(priv->hw, napi, napi_dev, poll, weight); in iwl_napi_add()
/linux-4.1.27/Documentation/ia64/
Dfsys.txt3 Light-weight System Calls for IA-64
/linux-4.1.27/tools/perf/util/scripting-engines/
Dtrace-event-python.c695 tuple_set_u64(t, 16, es->sample->weight); in python_export_sample()
/linux-4.1.27/Documentation/thermal/
Dsysfs-api.txt130 .weight: The 'influence' of a particular cooling device on this zone.
/linux-4.1.27/drivers/net/ethernet/amd/
Dpcnet32.c819 lp->napi.weight = lp->rx_ring_size / 2; in pcnet32_set_ringparam()
1823 lp->napi.weight = lp->rx_ring_size / 2; in pcnet32_probe1()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dnetdev.c2685 static int e1000e_poll(struct napi_struct *napi, int weight) in e1000e_poll() argument
2699 adapter->clean_rx(adapter->rx_ring, &work_done, weight); in e1000e_poll()
2702 work_done = weight; in e1000e_poll()
2705 if (work_done < weight) { in e1000e_poll()
/linux-4.1.27/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.1.27/Documentation/scsi/
DChangeLog.megaraid407 Declare some heavy-weight functions to be non-inlined,
/linux-4.1.27/init/
DKconfig1130 enabling proportional weight division of disk bandwidth in CFQ, set