Searched refs:weight (Results 1 - 200 of 206) sorted by relevance

12

/linux-4.1.27/lib/
H A Daverage.c20 * The factor for scaling up and the exponential weight (or decay rate) have to
29 * of averages can be ULONG_MAX/(factor*weight). For performance reasons
31 * @weight: Exponential weight, or decay rate. This defines how fast the
32 * influence of older values decreases. For performance reasons weight has
37 void ewma_init(struct ewma *avg, unsigned long factor, unsigned long weight) ewma_init() argument
39 WARN_ON(!is_power_of_2(weight) || !is_power_of_2(factor)); ewma_init()
41 avg->weight = ilog2(weight); ewma_init()
59 (((internal << avg->weight) - internal) + ewma_add()
60 (val << avg->factor)) >> avg->weight : ewma_add()
H A Dhweight.c6 * hweightN - returns the hamming weight of a N-bit word
H A Dbitmap.c643 * Value of @ord should be in range 0 <= @ord < weight(buf). If @ord
644 * >= weight(buf), returns @nbits.
677 * for the possibility that the weight 'w' of @new is less than the
678 * weight of @old, map the position of the n-th set bit in @old to
730 * for the possibility that the weight 'w' of @new is less than the
731 * weight of @old, map the position of the n-th set bit in @old to
776 * weight of (number of set bits in) @relmap are mapped nowhere.
831 * (the weight of @relmap).
853 * m where m >= W, (where W is the weight of @relmap) then @dst will
H A Dbch.c221 * split each 32-bit word into 4 polynomials of weight 8 as follows: encode_bch()
1090 /* p(X)=i is a small polynomial of weight <= 8 */ build_mod8_tables()
/linux-4.1.27/net/netfilter/ipvs/
H A Dip_vs_wrr.c17 * with weight 0 when all weights are zero
33 * - mw: maximum weight
34 * - di: weight step, greatest common divisor from all weights
35 * - cw: current required weight
38 * First, we start with cw = mw and select dests with weight >= cw.
42 * pass 1: cw = max weight
43 * pass 2: cw = max weight - di
44 * pass 3: cw = max weight - 2 * di
49 * weight changes, it is possible some dest weight to be reduced
53 * so that last cw is 1 to catch such dests with weight below di:
54 * pass 1: cw = max weight - (di - 1)
55 * pass 2: cw = max weight - di - (di - 1)
56 * pass 3: cw = max weight - 2 * di - (di - 1)
67 int cw; /* current weight */
68 int mw; /* maximum weight */
77 int weight; ip_vs_wrr_gcd_weight() local
81 weight = atomic_read(&dest->weight); ip_vs_wrr_gcd_weight()
82 if (weight > 0) { ip_vs_wrr_gcd_weight()
84 g = gcd(weight, g); ip_vs_wrr_gcd_weight()
86 g = weight; ip_vs_wrr_gcd_weight()
94 * Get the maximum weight of the service destinations.
99 int new_weight, weight = 0; ip_vs_wrr_max_weight() local
102 new_weight = atomic_read(&dest->weight); ip_vs_wrr_max_weight()
103 if (new_weight > weight) ip_vs_wrr_max_weight()
104 weight = new_weight; ip_vs_wrr_max_weight()
107 return weight; ip_vs_wrr_max_weight()
180 /* Stop only after all dests were checked for weight >= 1 (last pass) */ ip_vs_wrr_schedule()
186 atomic_read(&dest->weight) >= mark->cw) ip_vs_wrr_schedule()
198 * was for weight >= 1, for all dests. ip_vs_wrr_schedule()
218 "activeconns %d refcnt %d weight %d\n", ip_vs_wrr_schedule()
222 atomic_read(&dest->weight)); ip_vs_wrr_schedule()
H A Dip_vs_fo.c12 * Kenny Mathis : added initial functionality based on weight
30 int hw = 0; /* Track highest weight */ ip_vs_fo_schedule()
35 * Find virtual server with highest weight and send it traffic ip_vs_fo_schedule()
39 atomic_read(&dest->weight) > hw) { ip_vs_fo_schedule()
41 hw = atomic_read(&dest->weight); ip_vs_fo_schedule()
46 IP_VS_DBG_BUF(6, "FO: server %s:%u activeconns %d weight %d\n", ip_vs_fo_schedule()
50 atomic_read(&hweight->weight)); ip_vs_fo_schedule()
H A Dip_vs_wlc.c18 * Wensong Zhang : added any dest with weight=0 is quiesced
44 * (dest overhead) / dest->weight ip_vs_wlc_schedule()
49 * if every weight is larger than zero. ip_vs_wlc_schedule()
51 * The server with weight=0 is quiesced and will not receive any ip_vs_wlc_schedule()
57 atomic_read(&dest->weight) > 0) { ip_vs_wlc_schedule()
74 if ((__s64)loh * atomic_read(&dest->weight) > ip_vs_wlc_schedule()
75 (__s64)doh * atomic_read(&least->weight)) { ip_vs_wlc_schedule()
82 "activeconns %d refcnt %d weight %d overhead %d\n", ip_vs_wlc_schedule()
87 atomic_read(&least->weight), loh); ip_vs_wlc_schedule()
H A Dip_vs_nq.c68 * (server expected overhead) / dest->weight ip_vs_nq_schedule()
73 * if every weight is larger than zero. ip_vs_nq_schedule()
75 * The server with weight=0 is quiesced and will not receive any ip_vs_nq_schedule()
82 !atomic_read(&dest->weight)) ip_vs_nq_schedule()
95 ((__s64)loh * atomic_read(&dest->weight) > ip_vs_nq_schedule()
96 (__s64)doh * atomic_read(&least->weight))) { ip_vs_nq_schedule()
109 "activeconns %d refcnt %d weight %d overhead %d\n", ip_vs_nq_schedule()
114 atomic_read(&least->weight), loh); ip_vs_nq_schedule()
H A Dip_vs_lc.c13 * Wensong Zhang : added any dest with weight=0 is quiesced
40 * Except whose weight is equal to zero. ip_vs_lc_schedule()
41 * If the weight is equal to zero, it means that the server is ip_vs_lc_schedule()
48 atomic_read(&dest->weight) == 0) ip_vs_lc_schedule()
H A Dip_vs_sed.c19 * jobs on the ith server and Ui is the fixed service rate (weight) of
34 * (the server weight varies a lot).
72 * (server expected overhead) / dest->weight ip_vs_sed_schedule()
77 * if every weight is larger than zero. ip_vs_sed_schedule()
79 * The server with weight=0 is quiesced and will not receive any ip_vs_sed_schedule()
85 atomic_read(&dest->weight) > 0) { ip_vs_sed_schedule()
102 if ((__s64)loh * atomic_read(&dest->weight) > ip_vs_sed_schedule()
103 (__s64)doh * atomic_read(&least->weight)) { ip_vs_sed_schedule()
110 "activeconns %d refcnt %d weight %d overhead %d\n", ip_vs_sed_schedule()
115 atomic_read(&least->weight), loh); ip_vs_sed_schedule()
H A Dip_vs_lblcr.c12 * Julian Anastasov : Added the missing (dest->weight>0)
25 * (n.conns>n.weight AND
26 * there is a node m with m.conns<m.weight/2) then
171 /* select the first destination server, whose weight > 0 */ ip_vs_dest_set_min()
177 if ((atomic_read(&least->weight) > 0) ip_vs_dest_set_min()
193 if (((__s64)loh * atomic_read(&dest->weight) > ip_vs_dest_set_min()
194 (__s64)doh * atomic_read(&least->weight)) ip_vs_dest_set_min()
202 "activeconns %d refcnt %d weight %d overhead %d\n", ip_vs_dest_set_min()
208 atomic_read(&least->weight), loh); ip_vs_dest_set_min()
223 /* select the first destination server, whose weight > 0 */ ip_vs_dest_set_max()
226 if (atomic_read(&most->weight) > 0) { ip_vs_dest_set_max()
239 if (((__s64)moh * atomic_read(&dest->weight) < ip_vs_dest_set_max()
240 (__s64)doh * atomic_read(&most->weight)) ip_vs_dest_set_max()
241 && (atomic_read(&dest->weight) > 0)) { ip_vs_dest_set_max()
248 "activeconns %d refcnt %d weight %d overhead %d\n", ip_vs_dest_set_max()
253 atomic_read(&most->weight), moh); ip_vs_dest_set_max()
573 * (dest overhead) / dest->weight __ip_vs_lblcr_schedule()
578 * if every weight is larger than zero. __ip_vs_lblcr_schedule()
580 * The server with weight=0 is quiesced and will not receive any __ip_vs_lblcr_schedule()
587 if (atomic_read(&dest->weight) > 0) { __ip_vs_lblcr_schedule()
604 if ((__s64)loh * atomic_read(&dest->weight) > __ip_vs_lblcr_schedule()
605 (__s64)doh * atomic_read(&least->weight)) { __ip_vs_lblcr_schedule()
612 "activeconns %d refcnt %d weight %d overhead %d\n", __ip_vs_lblcr_schedule()
617 atomic_read(&least->weight), loh); __ip_vs_lblcr_schedule()
630 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { is_overloaded()
635 < atomic_read(&d->weight)) { is_overloaded()
H A Dip_vs_rr.c18 * Wensong Zhang : added any dest with weight=0 is quiesced
76 atomic_read(&dest->weight) > 0) ip_vs_rr_schedule()
97 "activeconns %d refcnt %d weight %d\n", ip_vs_rr_schedule()
100 atomic_read(&dest->refcnt), atomic_read(&dest->weight)); ip_vs_rr_schedule()
H A Dip_vs_sh.c21 * (n is overloaded) or (n.weight <= 0) then
33 * The weight destination attribute can be used to control the
35 * greater the weight, the more connections the destination
81 return atomic_read(&dest->weight) <= 0 || is_unavailable()
194 IP_VS_DBG_BUF(6, "assigned i: %d dest: %s weight: %d\n", ip_vs_sh_reassign()
196 atomic_read(&dest->weight)); ip_vs_sh_reassign()
198 /* Don't move to next dest until filling weight */ ip_vs_sh_reassign()
199 if (++d_count >= atomic_read(&dest->weight)) { ip_vs_sh_reassign()
H A Dip_vs_lblc.c32 * (n.conns>n.weight AND
33 * there is a node m with m.conns<m.weight/2) then
410 * (dest overhead) / dest->weight __ip_vs_lblc_schedule()
415 * if every weight is larger than zero. __ip_vs_lblc_schedule()
417 * The server with weight=0 is quiesced and will not receive any __ip_vs_lblc_schedule()
423 if (atomic_read(&dest->weight) > 0) { __ip_vs_lblc_schedule()
440 if ((__s64)loh * atomic_read(&dest->weight) > __ip_vs_lblc_schedule()
441 (__s64)doh * atomic_read(&least->weight)) { __ip_vs_lblc_schedule()
448 "activeconns %d refcnt %d weight %d overhead %d\n", __ip_vs_lblc_schedule()
453 atomic_read(&least->weight), loh); __ip_vs_lblc_schedule()
466 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { is_overloaded()
471 < atomic_read(&d->weight)) { is_overloaded()
510 atomic_read(&dest->weight) > 0 && !is_overloaded(dest, svc)) ip_vs_lblc_schedule()
H A Dip_vs_dh.c24 * (n is overloaded) OR (n.weight <= 0) then
229 || atomic_read(&dest->weight) <= 0 ip_vs_dh_schedule()
H A Dip_vs_ctl.c802 /* set the weight and the flags */ __ip_vs_update_dest()
803 atomic_set(&dest->weight, udest->weight); __ip_vs_update_dest()
943 if (udest->weight < 0) { ip_vs_add_dest()
944 pr_err("%s(): server weight less than zero\n", __func__); ip_vs_add_dest()
1007 if (udest->weight < 0) { ip_vs_edit_dest()
1008 pr_err("%s(): server weight less than zero\n", __func__); ip_vs_edit_dest()
2040 atomic_read(&dest->weight), ip_vs_info_seq_show()
2051 atomic_read(&dest->weight), ip_vs_info_seq_show()
2296 udest->weight = udest_compat->weight; ip_vs_copy_udest_compat()
2550 entry.weight = atomic_read(&dest->weight); __ip_vs_get_dest_entries()
3127 atomic_read(&dest->weight)) || ip_vs_genl_fill_dest()
3260 udest->weight = nla_get_u32(nla_weight); ip_vs_genl_parse_dest()
H A Dip_vs_conn.c735 (atomic_read(&dest->weight) == 0); expire_quiescent_template()
H A Dip_vs_core.c1695 unlikely(!atomic_read(&cp->dest->weight))) || ip_vs_in()
/linux-4.1.27/include/linux/
H A Daverage.h11 unsigned long weight; member in struct:ewma
15 unsigned long weight);
H A Dblk-iopoll.h11 int weight; member in struct:blk_iopoll
H A Dfs_enet_pd.h142 int napi_weight; /* NAPI weight */
H A Dvmstat.h15 * Light weight per cpu counter implementation.
H A Dthermal.h228 int weight; member in struct:thermal_bind_params
H A Dperf_event.h666 u64 weight; member in struct:perf_sample_data
715 data->weight = 0; perf_sample_data_init()
H A Dnodemask.h39 * int nodes_weight(mask) Hamming weight - number of set bits
H A Dnetdevice.h309 int weight; member in struct:napi_struct
1885 /* Default NAPI poll() weight
1895 * @weight: default weight
1901 int (*poll)(struct napi_struct *, int), int weight);
H A Dsched.h1115 unsigned long weight; prefetch_stack() member in struct:load_weight
1128 * weight of the task.
/linux-4.1.27/block/
H A Dblk-iopoll.c87 int work, weight; blk_iopoll_softirq() local
106 weight = iop->weight; blk_iopoll_softirq()
109 work = iop->poll(iop, weight); blk_iopoll_softirq()
117 * consume their assigned weight (or more, some drivers can't blk_iopoll_softirq()
123 if (work >= weight) { blk_iopoll_softirq()
172 * @weight: The default weight (or command completion budget)
179 void blk_iopoll_init(struct blk_iopoll *iop, int weight, blk_iopoll_fn *poll_fn) blk_iopoll_init() argument
183 iop->weight = weight; blk_iopoll_init()
H A Dcfq-iosched.c251 * There are two weights - (internal) weight is the weight of this
256 unsigned int weight; member in struct:cfq_group
937 * cfqg_scale_charge - scale disk time charge according to cfqg weight
990 * average is updated, with a formula that gives more weight to higher numbers,
1282 cfqg->weight = cfqg->new_weight; cfq_update_group_weight()
1310 * Update leaf_weight. We cannot update weight at this point cfq_group_service_tree_add()
1312 * contributing its current weight to the parent's child_weight. cfq_group_service_tree_add()
1331 * Compound ->weight walking up the tree. Both activation and cfq_group_service_tree_add()
1340 parent->children_weight += pos->weight; cfq_group_service_tree_add()
1342 vfr = vfr * pos->weight / parent->children_weight; cfq_group_service_tree_add()
1398 parent->children_weight -= pos->weight; cfq_group_service_tree_del()
1552 cfqg->weight = blkg->blkcg->cfq_weight; cfq_pd_init()
1848 /* on root, weight is mapped to leaf_weight */
1856 .name = "weight",
1870 .name = "weight",
2985 * to have higher weight. A more accurate thing would be to choose_wl_class_and_type()
4422 cfqd->root_group->weight = 2 * CFQ_WEIGHT_DEFAULT; cfq_init_queue()
/linux-4.1.27/net/dccp/ccids/lib/
H A Dtfrc.h51 * @weight: Weight to be used as damping factor, in units of 1/10
53 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) tfrc_ewma() argument
55 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; tfrc_ewma()
/linux-4.1.27/drivers/thermal/
H A Dfair_share.c2 * fair_share.c - A simple weight based Thermal governor
62 struct thermal_cooling_device *cdev, int weight, int level) get_target_state()
68 return (long)(weight * level * max_state) / (100 * tz->trips); get_target_state()
80 * P2. weight[i]/100:
112 tzp->tbp[i].weight, cur_trip_level); fair_share_throttle()
61 get_target_state(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int weight, int level) get_target_state() argument
H A Dof-thermal.c583 /* Default weight. Usage is optional */ thermal_of_populate_bind_params()
/linux-4.1.27/kernel/events/
H A Dhw_breakpoint.c176 fetch_this_slot(struct bp_busy_slots *slots, int weight) fetch_this_slot() argument
178 slots->pinned += weight; fetch_this_slot()
185 enum bp_type_idx type, int weight) toggle_bp_task_slot()
191 new_idx = old_idx + weight; toggle_bp_task_slot()
204 int weight) toggle_bp_slot()
210 weight = -weight; toggle_bp_slot()
214 get_bp_info(bp->cpu, type)->cpu_pinned += weight; toggle_bp_slot()
220 toggle_bp_task_slot(bp, cpu, type, weight); toggle_bp_slot()
284 int weight; __reserve_bp_slot() local
296 weight = hw_breakpoint_weight(bp); __reserve_bp_slot()
303 fetch_this_slot(&slots, weight); __reserve_bp_slot()
309 toggle_bp_slot(bp, true, type, weight); __reserve_bp_slot()
330 int weight; __release_bp_slot() local
333 weight = hw_breakpoint_weight(bp); __release_bp_slot()
334 toggle_bp_slot(bp, false, type, weight); __release_bp_slot()
184 toggle_bp_task_slot(struct perf_event *bp, int cpu, enum bp_type_idx type, int weight) toggle_bp_task_slot() argument
203 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, int weight) toggle_bp_slot() argument
H A Dcore.c1315 size += sizeof(data->weight); perf_event__header_size()
5272 perf_output_put(handle, data->weight); perf_output_sample()
/linux-4.1.27/arch/powerpc/platforms/pseries/
H A Dlparcfg.c78 u8 weight; member in struct:hvcall_ppp_data
126 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; h_get_ppp()
190 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); parse_ppp_data()
494 static ssize_t update_ppp(u64 *entitlement, u8 *weight) update_ppp() argument
507 new_weight = ppp_data.weight; update_ppp()
509 } else if (weight) { update_ppp()
510 new_weight = *weight; update_ppp()
516 __func__, ppp_data.entitlement, ppp_data.weight); update_ppp()
528 * Update the memory entitlement and weight for the partition. Caller must
529 * specify either a new entitlement or weight, not both, to be updated
530 * since the h_set_mpp call takes both entitlement and weight as parameters.
532 static ssize_t update_mpp(u64 *entitlement, u8 *weight) update_mpp() argument
555 } else if (weight) { update_mpp()
556 new_weight = *weight; update_mpp()
572 * Interface for changing system parameters (variable capacity weight
/linux-4.1.27/drivers/thermal/int340x_thermal/
H A Dacpi_thermal_rel.h19 u64 weight; member in struct:art
49 u64 weight; member in struct:art_object::__anon10340
H A Dacpi_thermal_rel.c262 memcpy(&art_user[i].weight, &arts[i].weight, fill_art()
/linux-4.1.27/net/mac80211/
H A Drc80211_minstrel.h28 minstrel_ewma(int old, int new, int weight) minstrel_ewma() argument
33 incr = (EWMA_DIV - weight) * diff / EWMA_DIV; minstrel_ewma()
42 minstrel_ewmsd(int old_ewmsd, int cur_prob, int prob_ewma, int weight) minstrel_ewmsd() argument
48 incr = (EWMA_DIV - weight) * diff / EWMA_DIV; minstrel_ewmsd()
50 tmp_var = weight * (tmp_var + diff * incr / 1000000) / EWMA_DIV; minstrel_ewmsd()
H A Dmain.c1135 int weight) ieee80211_napi_add()
1139 netif_napi_add(napi_dev, napi, poll, weight); ieee80211_napi_add()
1132 ieee80211_napi_add(struct ieee80211_hw *hw, struct napi_struct *napi, struct net_device *napi_dev, int (*poll)(struct napi_struct *, int), int weight) ieee80211_napi_add() argument
/linux-4.1.27/net/ceph/crush/
H A Dmapper.c145 dprintk("list_choose i=%d x=%d r=%d item %d weight %x " bucket_list_choose()
318 * divide by 16.16 fixed-point weight. note bucket_straw2_choose()
320 * weight means a larger (less negative) value bucket_straw2_choose()
369 const __u32 *weight, int weight_max, is_out()
374 if (weight[item] >= 0x10000) is_out()
376 if (weight[item] == 0) is_out()
379 < weight[item]) is_out()
405 const __u32 *weight, int weight_max, crush_choose_firstn()
507 weight, weight_max, crush_choose_firstn()
528 reject = is_out(map, weight, crush_choose_firstn()
583 const __u32 *weight, int weight_max, crush_choose_indep()
694 weight, weight_max, crush_choose_indep()
711 is_out(map, weight, weight_max, item, x)) crush_choose_indep()
738 * @weight: weight vector (for map leaves)
739 * @weight_max: size of weight vector
744 const __u32 *weight, int weight_max, crush_do_rule()
865 weight, weight_max, crush_do_rule()
884 weight, weight_max, crush_do_rule()
368 is_out(const struct crush_map *map, const __u32 *weight, int weight_max, int item, int x) is_out() argument
403 crush_choose_firstn(const struct crush_map *map, 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, int *out2, int parent_r) crush_choose_firstn() argument
581 crush_choose_indep(const struct crush_map *map, 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) crush_choose_indep() argument
742 crush_do_rule(const struct crush_map *map, int ruleno, int x, int *result, int result_max, const __u32 *weight, int weight_max, int *scratch) crush_do_rule() argument
H A Dcrush.c26 * crush_get_bucket_item_weight - Get weight of an item in given bucket
/linux-4.1.27/drivers/net/wireless/rsi/
H A Drsi_91x_core.c22 * the min weight.
36 common->min_weight = tx_qinfo[ii].weight; rsi_determine_min_weight_queue()
62 tx_qinfo[ii].weight = rsi_recalculate_weights()
63 ((tx_qinfo[ii].weight > common->min_weight) ? rsi_recalculate_weights()
64 tx_qinfo[ii].weight - common->min_weight : 0); rsi_recalculate_weights()
67 tx_qinfo[ii].weight = tx_qinfo[ii].wme_params; rsi_recalculate_weights()
71 tx_qinfo[ii].weight = 0; rsi_recalculate_weights()
164 (common->tx_qinfo[ii].weight < common->min_weight)) && rsi_core_determine_hal_queue()
166 common->min_weight = common->tx_qinfo[ii].weight; rsi_core_determine_hal_queue()
H A Drsi_main.h115 s32 weight; member in struct:wmm_qinfo
H A Drsi_91x_mgmt.c239 common->tx_qinfo[ii].weight = common->tx_qinfo[ii].wme_params; rsi_set_contention_vals()
/linux-4.1.27/include/uapi/linux/
H A Dgen_stats.h70 * @ewma_log: the log of measurement window weight
H A Dip_vs.h152 int weight; /* destination weight */ member in struct:ip_vs_dest_user
217 int weight; /* destination weight */ member in struct:ip_vs_dest_entry
379 IPVS_DEST_ATTR_WEIGHT, /* destination weight */
H A Dperf_event.h741 * u64 regs[weight(mask)]; } && PERF_SAMPLE_REGS_USER
747 * { u64 weight; } && PERF_SAMPLE_WEIGHT
751 * u64 regs[weight(mask)]; } && PERF_SAMPLE_REGS_INTR
H A Dpkt_sched.h440 __u32 weight; member in struct:tc_cbq_wrropt
670 __u32 weight; member in struct:tc_qfq_stats
H A Dinput.h1119 * Some rumble pads have two motors of different weight. Strong_magnitude
/linux-4.1.27/fs/dlm/
H A Dconfig.h19 int weight; member in struct:dlm_config_node
H A Dconfig.c29 * /config/dlm/<cluster>/spaces/<space>/nodes/<node>/weight
292 .ca_name = "weight",
340 int weight; member in struct:dlm_node
633 nd->weight = 1; /* default weight of 1 if none is set */ make_node()
868 return sprintf(buf, "%d\n", nd->weight); node_weight_read()
874 int rc = kstrtoint(buf, 0, &nd->weight); node_weight_write()
967 node->weight = nd->weight; dlm_config_nodes()
H A Dmember.c333 memb->weight = node->weight; dlm_add_member()
396 if (memb->weight) make_member_array()
397 total += memb->weight; make_member_array()
400 /* all nodes revert to weight of 1 if all have weight 0 */ make_member_array()
414 if (!all_zero && !memb->weight) make_member_array()
420 w = memb->weight; make_member_array()
H A Ddlm_internal.h118 int weight; member in struct:dlm_member
/linux-4.1.27/arch/blackfin/include/asm/
H A Dbarrier.h33 * any of the preceding reads. This primitive is much lighter weight than
34 * rmb() on most CPUs, and is never heavier weight than is
H A Dbitops.h110 * hweightN: returns the hamming weight (i.e. the number
/linux-4.1.27/arch/alpha/include/asm/
H A Dbarrier.h18 * any of the preceding reads. This primitive is much lighter weight than
19 * rmb() on most CPUs, and is never heavier weight than is
H A Dbitops.h399 * hweightN: returns the hamming weight (i.e. the number
/linux-4.1.27/net/sched/
H A Dsch_qfq.c52 ratio between the maximum packet length for the class and the weight
64 QFQ_MAX_WSHIFT is the maximum power of two supported as a weight.
86 static and adaptive weight sum.
152 * which is log_2(lmax/weight), but we never reference it
190 u32 wsum; /* weight sum */
191 u32 iwsum; /* inverse weight sum */
235 * Calculate a flow index, given its weight and maximum packet length.
236 * index = log_2(maxlen/weight) but we need to apply the scaling.
266 u32 lmax, u32 weight) qfq_init_agg()
272 agg->class_weight = weight; qfq_init_agg()
276 u32 lmax, u32 weight) qfq_find_agg()
281 if (agg->lmax == lmax && agg->class_weight == weight) qfq_find_agg()
386 /* Move class to a new aggregate, matching the new class weight and/or lmax */ qfq_change_agg()
387 static int qfq_change_agg(struct Qdisc *sch, struct qfq_class *cl, u32 weight, qfq_change_agg() argument
391 struct qfq_aggregate *new_agg = qfq_find_agg(q, lmax, weight); qfq_change_agg()
397 qfq_init_agg(q, new_agg, lmax, weight); qfq_change_agg()
413 u32 weight, lmax, inv_w; qfq_change_class() local
427 weight = nla_get_u32(tb[TCA_QFQ_WEIGHT]); qfq_change_class()
428 if (!weight || weight > (1UL << QFQ_MAX_WSHIFT)) { qfq_change_class()
429 pr_notice("qfq: invalid weight %u\n", weight); qfq_change_class()
433 weight = 1; qfq_change_class()
444 inv_w = ONE_FP / weight; qfq_change_class()
445 weight = ONE_FP / inv_w; qfq_change_class()
449 weight == cl->agg->class_weight) qfq_change_class()
452 delta_w = weight - (cl ? cl->agg->class_weight : 0); qfq_change_class()
455 pr_notice("qfq: total weight out of range (%d + %u)\n", qfq_change_class()
504 new_agg = qfq_find_agg(q, lmax, weight); qfq_change_class()
514 qfq_init_agg(q, new_agg, lmax, weight); qfq_change_class()
668 xstats.weight = cl->agg->class_weight; qfq_dump_class_stats()
886 * weight of a class is increased or the lmax (max_pkt_size) of the
265 qfq_init_agg(struct qfq_sched *q, struct qfq_aggregate *agg, u32 lmax, u32 weight) qfq_init_agg() argument
275 qfq_find_agg(struct qfq_sched *q, u32 lmax, u32 weight) qfq_find_agg() argument
H A Dsch_hhf.c23 * in which the heavy-hitter bucket is served with less weight.
168 u32 hhf_non_hh_weight; /* WDRR weight for non-HHs
401 unsigned int weight; hhf_enqueue() local
409 weight = 1; hhf_enqueue()
412 weight = q->hhf_non_hh_weight; hhf_enqueue()
415 bucket->deficit = weight * q->quantum; hhf_enqueue()
449 int weight = (bucket - q->buckets == WDRR_BUCKET_FOR_HH) ? hhf_dequeue() local
452 bucket->deficit += weight * q->quantum; hhf_dequeue()
H A Dsch_cbq.c104 long weight; /* Relative allotment: see below */ member in struct:cbq_class
1042 cl->quantum = (cl->weight*cl->allot*q->nclasses[prio])/ cbq_normalize_quanta()
1253 q->quanta[cl->priority] -= cl->weight; cbq_rmprio()
1260 q->quanta[cl->priority] += cl->weight; cbq_addprio()
1270 if (wrr->weight) cbq_set_wrr()
1271 cl->weight = wrr->weight; cbq_set_wrr()
1382 q->link.weight = q->link.R_tab->rate.rate; cbq_init()
1456 opt.weight = cl->weight; cbq_dump_wrr()
1875 cl->weight = cl->R_tab->rate.rate; cbq_change_class()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dbtcoex.c219 u8 txprio_shift[] = { 24, 16, 16, 0 }; /* tx priority weight */ ath9k_hw_btcoex_set_weight()
221 const u32 *weight = ar9003_wlan_weights[stomp_type]; ath9k_hw_btcoex_set_weight() local
236 weight = mci_wlan_weights[stype]; ath9k_hw_btcoex_set_weight()
241 btcoex_hw->wlan_weight[i] = weight[i]; ath9k_hw_btcoex_set_weight()
250 /* Last WLAN weight has to be adjusted wrt tx priority */ ath9k_hw_btcoex_set_weight()
268 * Program coex mode and weight registers to ath9k_hw_btcoex_enable_3wire()
387 * Configures appropriate weight based on stomp type.
H A Dcommon-spectral.h127 /* return the bitmap weight from the all/upper/lower bins */ spectral_bitmap_weight()
H A Dhtc_drv_gpio.c96 * configure weight registers
H A Dgpio.c252 * Generic tsf based hw timer which configures weight
/linux-4.1.27/tools/perf/util/
H A Dhist.c200 u64 weight) he_stat__add_period()
204 he_stat->weight += weight; he_stat__add_period()
216 dest->weight += src->weight; he_stat__add_stat()
223 /* XXX need decay for weight too? */ he_stat__decay()
378 u64 weight = entry->stat.weight; add_hist_entry() local
396 he_stat__add_period(&he->stat, period, weight); add_hist_entry()
398 he_stat__add_period(he->stat_acc, period, weight); add_hist_entry()
447 u64 period, u64 weight, u64 transaction, __hists__add_entry()
464 .weight = weight, __hists__add_entry()
516 cost = iter->sample->weight; iter_add_single_mem_entry()
521 * must pass period=weight in order to get the correct iter_add_single_mem_entry()
523 * based on periods. We want sorting be done on nr_events * weight iter_add_single_mem_entry()
524 * and this is indirectly achieved by passing period=weight here iter_add_single_mem_entry()
666 sample->period, sample->weight, iter_add_single_normal_entry()
728 sample->period, sample->weight, iter_add_single_cumulative_entry()
801 sample->period, sample->weight, iter_add_next_cumulative_entry()
199 he_stat__add_period(struct he_stat *he_stat, u64 period, u64 weight) he_stat__add_period() argument
442 __hists__add_entry(struct hists *hists, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, struct mem_info *mi, u64 period, u64 weight, u64 transaction, bool sample_self) __hists__add_entry() argument
H A Dsort.h55 u64 weight; member in struct:he_stat
H A Devent.h180 u64 weight; member in struct:perf_sample
H A Dhist.h111 u64 weight, u64 transaction,
H A Dsort.c936 return he->stat.nr_events ? he->stat.weight / he->stat.nr_events : 0; he_weight()
961 return left->stat.weight - right->stat.weight; sort__global_weight_cmp()
967 return repsep_snprintf(bf, size, "%-*llu", width, he->stat.weight); hist_entry__global_weight_snprintf()
1179 DIM(SORT_GLOBAL_WEIGHT, "weight", sort_global_weight),
H A Devsel.c1431 data->weight = 0; perf_evsel__parse_sample()
1637 data->weight = 0; perf_evsel__parse_sample()
1640 data->weight = *array; perf_evsel__parse_sample()
1944 *array = sample->weight; perf_event__synthesize_sample()
H A Ddata-convert-bt.c362 ret = value_set_u64(cw, event, "perf_weight", sample->weight); add_generic_values()
H A Dsession.c787 printf("... weight: %" PRIu64 "\n", sample->weight); dump_sample()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dbarrier.h31 * heavy-weight sync, so smp_wmb() can be a lighter-weight eieio.
H A Dpage.h188 * To make the cost of __va() / __pa() more light weight, we introduce
H A Dio.h280 * provides fairly heavy weight barriers for the non-raw versions
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_reg.h245 /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
246 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
247 prioritised); 2 stands for weight 2; tc. */
249 /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
250 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
251 prioritised); 2 stands for weight 2; tc. */
260 /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
261 weight 8 (the most prioritised); 1 stands for weight 1(least
262 prioritised); 2 stands for weight 2; tc. */
312 /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
313 weight 8 (the most prioritised); 1 stands for weight 1(least
314 prioritised); 2 stands for weight 2; tc. */
337 /* [RW 3] The weight of the STORM input in the WRR (Weighted Round robin)
338 mechanism. 0 stands for weight 8 (the most prioritised); 1 stands for
339 weight 1(least prioritised); 2 stands for weight 2 (more prioritised);
349 /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
350 weight 8 (the most prioritised); 1 stands for weight 1(least
351 prioritised); 2 stands for weight 2; tc. */
360 /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
361 weight 8 (the most prioritised); 1 stands for weight 1(least
362 prioritised); 2 stands for weight 2; tc. */
371 /* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
372 weight 8 (the most prioritised); 1 stands for weight 1(least
373 prioritised); 2 stands for weight 2; tc. */
2324 /* [RW 32] Specify the weight (in bytes) to be added to credit register 0
2582 /* [RW 32] Specify the weight (in bytes) to be added to credit register 0
2717 /* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter. */
2719 /* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter
2722 /* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter
2725 /* [RW 31] The weight of COS0 in the ETS command arbiter. */
2727 /* [RW 31] The weight of COS0 in port 0 ETS command arbiter. */
2729 /* [RW 31] The weight of COS0 in port 1 ETS command arbiter. */
2731 /* [RW 31] The upper bound of the weight of COS1 in the ETS command arbiter. */
2733 /* [RW 31] The weight of COS1 in the ETS command arbiter. */
2735 /* [RW 31] The weight of COS1 in port 0 ETS command arbiter. */
2737 /* [RW 31] The weight of COS1 in port 1 ETS command arbiter. */
2739 /* [RW 31] The weight of COS2 in port 0 ETS command arbiter. */
2741 /* [RW 31] The weight of COS2 in port 1 ETS command arbiter. */
2743 /* [RW 31] The weight of COS3 in port 0 ETS command arbiter. */
2745 /* [RW 31] The weight of COS4 in port 0 ETS command arbiter. */
2747 /* [RW 31] The weight of COS5 in port 0 ETS command arbiter. */
4439 /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
4440 weight 8 (the most prioritised); 1 stands for weight 1(least
4441 prioritised); 2 stands for weight 2; tc. */
4450 /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
4451 weight 8 (the most prioritised); 1 stands for weight 1(least
4452 prioritised); 2 stands for weight 2; tc. */
4499 /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
4500 weight 8 (the most prioritised); 1 stands for weight 1(least
4501 prioritised); 2 stands for weight 2; tc. */
4518 /* [RW 3] The weight of the input prs in the WRR mechanism. 0 stands for
4519 weight 8 (the most prioritised); 1 stands for weight 1(least
4520 prioritised); 2 stands for weight 2; tc. */
4531 /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
4532 weight 8 (the most prioritised); 1 stands for weight 1(least
4533 prioritised); 2 stands for weight 2; tc. */
4574 /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
4575 weight 8 (the most prioritised); 1 stands for weight 1(least
4576 prioritised); 2 stands for weight 2; tc. */
4582 /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
4583 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
4584 prioritised); 2 stands for weight 2; tc. */
4586 /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
4587 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
4588 prioritised); 2 stands for weight 2; tc. */
4605 /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
4606 weight 8 (the most prioritised); 1 stands for weight 1(least
4607 prioritised); 2 stands for weight 2; tc. */
4616 /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
4617 weight 8 (the most prioritised); 1 stands for weight 1(least
4618 prioritised); 2 stands for weight 2; tc. */
4959 /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
4960 weight 8 (the most prioritised); 1 stands for weight 1(least
4961 prioritised); 2 stands for weight 2; tc. */
4970 /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
4971 weight 8 (the most prioritised); 1 stands for weight 1(least
4972 prioritised); 2 stands for weight 2; tc. */
4981 /* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for
4982 weight 8 (the most prioritised); 1 stands for weight 1(least
4983 prioritised); 2 stands for weight 2; tc. */
5042 /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
5043 weight 8 (the most prioritised); 1 stands for weight 1(least
5044 prioritised); 2 stands for weight 2; tc. */
5056 /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
5057 weight 8 (the most prioritised); 1 stands for weight 1(least
5058 prioritised); 2 stands for weight 2; tc. */
5067 /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
5068 weight 8 (the most prioritised); 1 stands for weight 1(least
5069 prioritised); 2 stands for weight 2; tc. */
5112 /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
5113 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
5114 prioritised); 2 stands for weight 2; tc. */
5116 /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
5117 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
5118 prioritised); 2 stands for weight 2; tc. */
5135 /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
5136 weight 8 (the most prioritised); 1 stands for weight 1(least
5137 prioritised); 2 stands for weight 2; tc. */
5146 /* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
5147 weight 8 (the most prioritised); 1 stands for weight 1(least
5148 prioritised); 2 stands for weight 2; tc. */
5458 /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
5459 weight 8 (the most prioritised); 1 stands for weight 1(least
5460 prioritised); 2 stands for weight 2; tc. */
5469 /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
5470 weight 8 (the most prioritised); 1 stands for weight 1(least
5471 prioritised); 2 stands for weight 2; tc. */
5480 /* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for
5481 weight 8 (the most prioritised); 1 stands for weight 1(least
5482 prioritised); 2 stands for weight 2; tc. */
5522 /* [RW 3] The weight of the input nig0 in the WRR mechanism. 0 stands for
5523 weight 8 (the most prioritised); 1 stands for weight 1(least
5524 prioritised); 2 stands for weight 2; tc. */
5551 /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
5552 weight 8 (the most prioritised); 1 stands for weight 1(least
5553 prioritised); 2 stands for weight 2; tc. */
5562 /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
5563 weight 8 (the most prioritised); 1 stands for weight 1(least
5564 prioritised); 2 stands for weight 2; tc. */
5574 /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
5575 weight 8 (the most prioritised); 1 stands for weight 1(least
5576 prioritised); 2 stands for weight 2; tc. */
5591 /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
5592 weight 8 (the most prioritised); 1 stands for weight 1(least
5593 prioritised); 2 stands for weight 2; tc. */
5604 /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
5605 weight 8 (the most prioritised); 1 stands for weight 1(least
5606 prioritised); 2 stands for weight 2; tc. */
5664 /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
5665 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
5666 prioritised); 2 stands for weight 2; tc. */
5668 /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
5669 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
5670 prioritised); 2 stands for weight 2; tc. */
5687 /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
5688 weight 8 (the most prioritised); 1 stands for weight 1(least
5689 prioritised); 2 stands for weight 2; tc. */
/linux-4.1.27/arch/sparc/include/asm/
H A Dbitops_64.h40 * hweightN: returns the hamming weight (i.e. the number
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dperf_event.h61 int weight; member in struct:event_constraint
242 .weight = (w), \
258 * higher weight, e.g.:
381 * We define the end marker as having a weight of -1
383 * of zero and thus a weight of zero.
384 * The end marker has a weight that cannot possibly be
387 #define EVENT_CONSTRAINT_END { .weight = -1 }
390 * Check for end marker with weight == -1
393 for ((e) = (c); (e)->weight != -1; (e)++)
H A Dperf_event.c638 int weight; member in struct:sched_state
674 if (constraints[idx]->weight == wmin) perf_sched_init()
678 sched->state.event = idx; /* start with min weight */ perf_sched_init()
679 sched->state.weight = wmin; perf_sched_init()
765 * Take events with the least weight first. Return true on success.
778 /* next weight */ perf_sched_next_event()
780 sched->state.weight++; perf_sched_next_event()
781 if (sched->state.weight > sched->max_weight) perf_sched_next_event()
785 } while (c->weight != sched->state.weight); perf_sched_next_event()
831 wmin = min(wmin, c->weight); x86_schedule_events()
832 wmax = max(wmax, c->weight); x86_schedule_events()
1850 if (!c || !c->weight) validate_event()
H A Dperf_event_intel_ds.c882 * Use latency for weight (only avail with PEBS-LL) __intel_pmu_pebs_event()
885 data.weight = pebs->lat; __intel_pmu_pebs_event()
953 /* Only set the TSX weight when no memory weight. */ __intel_pmu_pebs_event()
955 data.weight = intel_hsw_weight(pebs); __intel_pmu_pebs_event()
H A Dperf_event_intel.c2082 * recompute actual bit weight for scheduling algorithm intel_get_excl_constraints()
2084 cx->weight = hweight64(cx->idxmsk64); intel_get_excl_constraints()
2091 if (cx->weight == 0) intel_get_excl_constraints()
2115 c1->weight = c2->weight; intel_get_event_constraints()
3336 c->weight = hweight64(c->idxmsk64); for_each_event_constraint()
H A Dperf_event_amd.c361 nb->event_constraints[i].weight = 1; amd_alloc_nb()
H A Dperf_event_intel_uncore.c370 wmin = min(wmin, c->weight); uncore_assign_events()
371 wmax = max(wmax, c->weight); uncore_assign_events()
/linux-4.1.27/net/ipv4/netfilter/
H A Dipt_CLUSTERIP.c573 unsigned int weight; /* number of bits set == size */ member in struct:clusterip_seq_position
581 unsigned int weight; clusterip_seq_start() local
587 weight = hweight32(local_nodes); clusterip_seq_start()
588 if (*pos >= weight) clusterip_seq_start()
596 idx->weight = weight; clusterip_seq_start()
609 if (*pos >= idx->weight) { clusterip_seq_next()
633 if (idx->pos == idx->weight - 1) clusterip_seq_show()
/linux-4.1.27/mm/
H A Dquicklist.c4 * Quicklists are light weight lists of pages that have a defined state
H A Dshmem.c3258 * effectively equivalent, but much lighter weight.
/linux-4.1.27/drivers/thunderbolt/
H A Dpath.c19 hop->weight, hop->priority, tb_dump_hop()
186 hop.weight = path->weight; tb_path_activate()
H A Dtb_regs.h199 u32 weight:4; member in struct:tb_regs_hop
H A Dtb.h88 int weight:4; member in struct:tb_path
H A Dtunnel_pci.c38 path->weight = 1; tb_pci_init_path()
/linux-4.1.27/kernel/sched/
H A Dfair.c119 lw->weight += inc; update_load_add()
125 lw->weight -= dec; update_load_sub()
131 lw->weight = w; update_load_set()
192 w = scale_load_down(lw->weight); __update_inv_weight()
203 * delta_exec * weight / lw.weight
205 * (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT
207 * Either weight := NICE_0_LOAD and lw \e prio_to_wmult[], in which case
211 * Or, weight =< lw.weight (because lw.weight is the runqueue weight), thus
212 * weight/lw.weight <= 1, and therefore our shift will also be positive.
214 static u64 __calc_delta(u64 delta_exec, unsigned long weight, struct load_weight *lw) __calc_delta() argument
216 u64 fact = scale_load_down(weight); __calc_delta()
603 if (unlikely(se->load.weight != NICE_0_LOAD)) calc_delta_fair()
632 * proportional to the weight.
650 update_load_add(&lw, se->load.weight); for_each_sched_entity()
653 slice = __calc_delta(slice, se->load.weight, load); for_each_sched_entity()
1006 * task group, on a particular numa node. The group weight is given a
1321 * itself (not part of a group), use the task weight task_numa_compare()
2292 update_load_add(&cfs_rq->load, se->load.weight); account_entity_enqueue()
2294 update_load_add(&rq_of(cfs_rq)->load, se->load.weight); account_entity_enqueue()
2309 update_load_sub(&cfs_rq->load, se->load.weight); account_entity_dequeue()
2311 update_load_sub(&rq_of(cfs_rq)->load, se->load.weight); account_entity_dequeue()
2326 * Use this CPU's actual weight instead of the last load_contribution calc_tg_weight()
2327 * to gain a more accurate current total weight. See calc_tg_weight()
2332 tg_weight += cfs_rq->load.weight; calc_tg_weight()
2342 load = cfs_rq->load.weight; calc_cfs_shares()
2362 unsigned long weight) reweight_entity()
2371 update_load_set(&se->load, weight); reweight_entity()
2390 if (likely(se->load.weight == tg->shares)) update_cfs_shares()
2676 * load as a task of equal weight. __update_group_entity_contrib()
2723 contrib = se->avg.runnable_avg_sum * scale_load_down(se->load.weight); __update_task_entity_contrib()
3037 * however the extra weight of the new task will slow them down a place_entity()
3251 * least twice that of our own weight (i.e. dont track it set_next_entity()
3252 * when there are only lesser-weight tasks around): set_next_entity()
3254 if (rq_of(cfs_rq)->load.weight >= 2*se->load.weight) { set_next_entity()
3600 /* updated child weight may affect parent so we have to do this bottom up */ tg_unthrottle_up()
3656 if (qcfs_rq->load.weight) for_each_sched_entity()
3698 if (!cfs_rq->load.weight) unthrottle_cfs_rq()
4292 if (cfs_rq->load.weight) { for_each_sched_entity()
4437 * total group weight.
4439 * Given a runqueue weight distribution (rw_i) we can compute a shares
4445 * has 7 equal weight tasks, distributed as below (rw_i), with the resulting
4456 * So for a change of @wl to the local @cpu with an overall group weight change
4463 * weight and shares distributions like:
4468 * We can then compute the difference in effective weight by using:
4472 * Where 'S' is the group weight as seen by its parent.
4475 * times the weight of the group. The effect on CPU 1 would be -4/56 (4/8 -
4476 * 4/7) times the weight of the group.
4498 w = se->my_q->load.weight + wl; for_each_sched_entity()
4509 * Per the above, wl is the new se->load.weight value; since for_each_sched_entity()
4519 wl -= se->load.weight; for_each_sched_entity()
4524 * only the @tg group gets extra weight, all parent groups can for_each_sched_entity()
4570 unsigned long weight; wake_affine() local
4593 weight = current->se.load.weight; wake_affine()
4595 this_load += effective_load(tg, this_cpu, -weight, -weight); wake_affine()
4596 load += effective_load(tg, prev_cpu, 0, -weight); wake_affine()
4600 weight = p->se.load.weight; wake_affine()
4619 effective_load(tg, this_cpu, weight, weight); wake_affine()
4621 prev_eff_load *= load + effective_load(tg, prev_cpu, 0, weight); wake_affine()
4869 int weight; local
4891 weight = sd->span_weight;
4894 if (weight <= tmp->span_weight) for_each_domain()
5297 * Where W_i,n is the n-th weight average for cpu i. The instantaneous weight
5302 * Where w_i,j is the weight of the j-th runnable task on cpu i. This weight
5305 * The weight average is an exponential decay average of the instantaneous
5306 * weight:
5321 * a few fun cases generally called infeasible weight scenarios.
5395 * w_i,j,k is the weight of the j-th runnable task in the k-th cgroup on cpu i.
6433 * under-utilized (possible with a large weight task outweighs update_sd_lb_stats()
8149 /* guarantee group entities always have weight */ init_tg_cfs_entry()
8162 * We can't change the weight of the root cgroup. sched_group_set_shares()
8216 if (rq->cfs.load.weight) get_rr_interval_fair()
2361 reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, unsigned long weight) reweight_entity() argument
H A Ddebug.c94 P(se->load.weight); print_cfs_group_stats()
213 SEQ_printf(m, " .%-30s: %ld\n", "load", cfs_rq->load.weight); print_cfs_rq()
305 rq->load.weight); print_cpu()
640 P(se.load.weight); proc_sched_show_task()
H A Dsched.h40 * low-weight task groups (eg. nice +19 on an autogroup), deeper taskgroup
270 * A weight of 0 or 1 can cause arithmetics problems.
271 * A weight of a cfs_rq is the sum of weights of which entities
272 * are queued on this cfs_rq, so a weight of a entity should not be
274 * (The default weight is 1024 - so there's no practical
384 * h_load = weight * f(tg)
386 * Where f(tg) is the recursive weight fraction assigned to
1135 * In cases where the weight does not change often, we can use the
H A Drt.c629 int i, weight, more = 0; do_balance_runtime() local
632 weight = cpumask_weight(rd->span); do_balance_runtime()
658 diff = div_u64((u64)diff, weight); do_balance_runtime()
2066 int weight; set_cpus_allowed_rt() local
2073 weight = cpumask_weight(new_mask); set_cpus_allowed_rt()
2079 if ((p->nr_cpus_allowed > 1) == (weight > 1)) set_cpus_allowed_rt()
2087 if (weight <= 1) { set_cpus_allowed_rt()
H A Ddeadline.c1582 int weight; set_cpus_allowed_dl() local
1615 weight = cpumask_weight(new_mask); set_cpus_allowed_dl()
1621 if ((p->nr_cpus_allowed > 1) == (weight > 1)) set_cpus_allowed_dl()
1627 if (weight <= 1) { set_cpus_allowed_dl()
H A Dproc.c508 return rq->load.weight; get_rq_runnable_load()
H A Dcore.c793 * SCHED_IDLE tasks get minimal weight: set_load_weight()
796 load->weight = scale_load(WEIGHT_IDLEPRIO); set_load_weight()
801 load->weight = scale_load(prio_to_weight[prio]); set_load_weight()
7187 * based on each entity's (task or task-group's) weight for_each_possible_cpu()
7188 * (se->load.weight). for_each_possible_cpu()
7190 * In other words, if root_task_group has 10 tasks of weight for_each_possible_cpu()
7191 * 1024) and two child groups A0 and A1 (of weight 1024 each), for_each_possible_cpu()
/linux-4.1.27/drivers/hid/
H A Dhid-roccat-kone.c232 * Reads value of "fast-clip-weight" and stores it in @result
417 /* weight is read each time, since we don't get informed when it's changed */ kone_sysfs_show_weight()
423 int weight = 0; kone_sysfs_show_weight() local
431 retval = kone_get_weight(usb_dev, &weight); kone_sysfs_show_weight()
436 return snprintf(buf, PAGE_SIZE, "%d\n", weight); kone_sysfs_show_weight()
438 static DEVICE_ATTR(weight, 0440, kone_sysfs_show_weight, NULL);
614 * weight.
H A Dhid-wiimote-modules.c1286 * The Nintendo Wii Balance Board provides four hardware weight sensor plus a
1329 * These values represent the weight-measurements of the Wii-balance wiimod_bboard_in_ext()
/linux-4.1.27/drivers/net/wireless/iwlwifi/
H A Diwl-op-mode.h157 int weight);
267 int weight) iwl_op_mode_napi_add()
271 op_mode->ops->napi_add(op_mode, napi, napi_dev, poll, weight); iwl_op_mode_napi_add()
263 iwl_op_mode_napi_add(struct iwl_op_mode *op_mode, struct napi_struct *napi, struct net_device *napi_dev, int (*poll)(struct napi_struct *, int), int weight) iwl_op_mode_napi_add() argument
/linux-4.1.27/drivers/input/mouse/
H A Delantech.h105 * weight value for v4 hardware
H A Delantech.c618 int weight, delta_x1 = 0, delta_y1 = 0, delta_x2 = 0, delta_y2 = 0; process_packet_motion_v4() local
626 weight = (packet[0] & 0x10) ? ETP_WEIGHT_VALUE : 1; process_packet_motion_v4()
637 etd->mt[id].x += delta_x1 * weight; process_packet_motion_v4()
638 etd->mt[id].y -= delta_y1 * weight; process_packet_motion_v4()
644 etd->mt[sid].x += delta_x2 * weight; process_packet_motion_v4()
645 etd->mt[sid].y -= delta_y2 * weight; process_packet_motion_v4()
/linux-4.1.27/fs/
H A Dstack.c8 * heavy-weight on 32-bit systems
/linux-4.1.27/drivers/video/fbdev/nvidia/
H A Dnv_type.h30 int weight; member in struct:__anon10579
/linux-4.1.27/net/ceph/
H A Dosdmap.c240 b->weight = ceph_decode_32(p); crush_decode()
694 u32 *weight; osdmap_set_max_osd() local
703 weight = krealloc(map->osd_weight, max*sizeof(*weight), GFP_NOFS); osdmap_set_max_osd()
704 if (!weight) osdmap_set_max_osd()
706 map->osd_weight = weight; osdmap_set_max_osd()
1330 pr_info("osd%d weight 0x%x %s\n", osd, off, osdmap_apply_incremental()
1476 const __u32 *weight, int weight_max) do_crush()
1484 weight, weight_max, map->crush_scratch_ary); do_crush()
1474 do_crush(struct ceph_osdmap *map, int ruleno, int x, int *result, int result_max, const __u32 *weight, int weight_max) do_crush() argument
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A Dconf.h793 * RSSI from beacons average weight.
800 * RSSI from data average weight.
807 * SNR from beacons average weight.
814 * SNR from data average weight.
1065 * The weight for rssi/beacon average calculation
1072 * The weight for rssi/data frame average calculation
1079 * The weight for snr/beacon average calculation
1086 * The weight for snr/data frame average calculation
/linux-4.1.27/tools/perf/
H A Dbuiltin-mem.c100 sample->weight, dump_raw_samples()
175 * there is no weight (cost) associated with stores, so don't print report_events()
H A Dbuiltin-diff.c159 pr_err("Failed: wrong weight data, use 'wdiff:w1,w2'\n"); setup_compute_opt_wdiff()
315 u64 weight, u64 transaction) hists__add_entry()
317 if (__hists__add_entry(hists, al, NULL, NULL, NULL, period, weight, hists__add_entry()
339 sample->weight, sample->transaction)) { diff__process_sample_event()
313 hists__add_entry(struct hists *hists, struct addr_location *al, u64 period, u64 weight, u64 transaction) hists__add_entry() argument
H A Dbuiltin-record.c919 OPT_BOOLEAN('W', "weight", &record.opts.sample_weight,
920 "sample by weight (on special events only)"),
H A Dbuiltin-report.c306 ret += fprintf(fp, "\n# Total weight : %" PRIu64, nr_events);
H A Dbuiltin-kvm.c1187 set_option_flag(record_options, 'W', "weight", PARSE_OPT_DISABLED); kvm_events_record()
/linux-4.1.27/tools/perf/tests/
H A Dsample-parsing.c121 COMP(weight); samples_same()
181 .weight = 109, do_test()
/linux-4.1.27/drivers/md/bcache/
H A Dutil.h444 #define ewma_add(ewma, val, weight, factor) \
446 (ewma) *= (weight) - 1; \
448 (ewma) /= (weight); \
H A Dbcache.h587 * of good data to determine which buckets to reuse first - to weight
/linux-4.1.27/tools/perf/scripts/python/
H A Dexport-to-postgresql.py175 'weight bigint,'
429 def sample_table(sample_id, evsel_id, machine_id, thread_id, comm_id, dso_id, symbol_id, sym_offset, ip, time, cpu, to_dso_id, to_symbol_id, to_sym_offset, to_ip, period, weight, transaction, data_src, branch_type, in_tx, *x):
433 value = struct.pack("!hiqiqiqiqiqiqiqiqiqiqiiiqiqiqiqiqiqiqiqiiiB", 21, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, dso_id, 8, symbol_id, 8, sym_offset, 8, ip, 8, time, 4, cpu, 8, to_dso_id, 8, to_symbol_id, 8, to_sym_offset, 8, to_ip, 8, period, 8, weight, 8, transaction, 8, data_src, 4, branch_type, 1, in_tx)
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-cpu.c509 int weight; cfs_cpt_spread_node() local
523 weight = nodes_weight(*mask); cfs_cpt_spread_node()
524 LASSERT(weight > 0); cfs_cpt_spread_node()
526 rotor %= weight; cfs_cpt_spread_node()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.h123 uint32_t weight; member in struct:kfd_iolink_properties
H A Dkfd_topology.c295 * weight factor (derived from CDIR), currently always 1 kfd_parse_subtype_iolink()
297 props->weight = 1; kfd_parse_subtype_iolink()
545 sysfs_show_32bit_prop(buffer, "weight", iolink->weight); iolink_show()
/linux-4.1.27/arch/ia64/mm/
H A Dinit.c594 * Boot command-line option "nolwsys" can be used to disable the use of any light-weight
596 * down into the kernel and calling the normal (heavy-weight) syscall handler. This is
640 * For fsyscall entrpoints with no light-weight handler, use the ordinary mem_init()
641 * (heavy-weight) handler, but mark it by setting bit 0, so the fsyscall entry mem_init()
/linux-4.1.27/include/linux/crush/
H A Dcrush.h116 __u32 weight; /* 16-bit fixed point */ member in struct:crush_bucket
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dzcrypt.h200 * @weight: Level of request priority
210 uint64_t weight; member in struct:ep11_urb
/linux-4.1.27/drivers/net/ethernet/toshiba/
H A Dps3_gelic_wireless.c1660 int *weight) update_best()
1662 if (*best_weight < ++(*weight)) { update_best()
1663 *best_weight = *weight; update_best()
1673 int weight, best_weight; gelic_wl_find_best_bss() local
1702 weight = 0; gelic_wl_find_best_bss()
1710 &best_weight, &weight); gelic_wl_find_best_bss()
1716 &best_weight, &weight); gelic_wl_find_best_bss()
1723 &best_weight, &weight); gelic_wl_find_best_bss()
1735 &best_weight, &weight); gelic_wl_find_best_bss()
1657 update_best(struct gelic_wl_scan_info **best, struct gelic_wl_scan_info *candid, int *best_weight, int *weight) update_best() argument
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
H A Dservice.c494 int weight; ptlrpc_server_nthreads_check() local
537 weight = cfs_cpt_weight(svc->srv_cptable, CFS_CPT_ANY); ptlrpc_server_nthreads_check()
538 for (i = 1; (weight >> (i + 1)) != 0 && /* >= 4 cores/HTs */ ptlrpc_server_nthreads_check()
559 /* weight is # of HTs */ ptlrpc_server_nthreads_check()
565 weight = cfs_cpt_weight(svc->srv_cptable, 0); ptlrpc_server_nthreads_check()
566 LASSERT(weight > 0); ptlrpc_server_nthreads_check()
568 for (; factor > 0 && weight > 0; factor--, weight -= fade) ptlrpc_server_nthreads_check()
569 nthrs += min(weight, fade) * factor; ptlrpc_server_nthreads_check()
2759 int weight; ptlrpc_hr_init() local
2771 weight = cpumask_weight(topology_thread_cpumask(0)); ptlrpc_hr_init()
2780 hrp->hrp_nthrs /= weight; cfs_percpt_for_each()
H A Dsec_bulk.c593 * new idle index = (old * weight + new) / (weight + 1) sptlrpc_enc_pool_get_pages()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Dacx.c723 int wl1251_acx_low_rssi(struct wl1251 *wl, s8 threshold, u8 weight, wl1251_acx_low_rssi() argument
736 rssi->weight = weight; wl1251_acx_low_rssi()
H A Dacx.h427 * The weight of the current RSSI sample, before adding the new
430 u8 weight; member in struct:acx_low_rssi
1479 int wl1251_acx_low_rssi(struct wl1251 *wl, s8 threshold, u8 weight,
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dbgmac.c415 int weight) bgmac_dma_rx_read()
485 if (handled >= weight) /* Should never be greater */ bgmac_dma_rx_read()
1250 static int bgmac_poll(struct napi_struct *napi, int weight) bgmac_poll() argument
1259 handled += bgmac_dma_rx_read(bgmac, &bgmac->rx_ring[0], weight); bgmac_poll()
1263 return weight; bgmac_poll()
1265 if (handled < weight) { bgmac_poll()
414 bgmac_dma_rx_read(struct bgmac *bgmac, struct bgmac_dma_ring *ring, int weight) bgmac_dma_rx_read() argument
/linux-4.1.27/drivers/idle/
H A Di7300_idle.c330 * The latest duration gets DURATION_WEIGHT_PCT percentage weight
331 * in this average, with the old average getting the remaining weight.
/linux-4.1.27/drivers/hwmon/
H A Dmax1111.c117 * sample. The LSB weight is 8mV or 16mV depending on the chip type. show_adc()
H A Dnct6775.c1344 /* If weight is disabled, report weight source as 0 */ nct6775_update_pwm()
2904 if ((nr >= 14 && nr <= 18) || nr == 21) /* weight */ nct6775_pwm_is_visible()
/linux-4.1.27/drivers/mtd/
H A Dmtdswap.c521 unsigned int weight = eb->active_count; mtdswap_store_eb() local
531 if (weight == maxweight) mtdswap_store_eb()
533 else if (weight == 0) mtdswap_store_eb()
535 else if (weight > (maxweight/2)) mtdswap_store_eb()
/linux-4.1.27/drivers/media/i2c/soc_camera/
H A Dov2640.c253 #define REG5D 0x5D /* AVGsel[7:0], 16-zone average weight option */
254 #define REG5E 0x5E /* AVGsel[15:8], 16-zone average weight option */
255 #define REG5F 0x5F /* AVGsel[23:16], 16-zone average weight option */
256 #define REG60 0x60 /* AVGsel[31:24], 16-zone average weight option */
/linux-4.1.27/fs/jffs2/
H A Ddebug.h46 /* Sanity checks are supposed to be light-weight and enabled by default */
/linux-4.1.27/include/net/
H A Dip6_fib.h108 * siblings is a list of rt6_info that have the the same metric/weight,
H A Dip_vs.h638 int weight; /* destination weight */ member in struct:ip_vs_dest_user_kern
703 atomic_t weight; /* server weight */ member in struct:ip_vs_dest
H A Diw_handler.h43 * efficiency and light weight), and also I provide a good dose of backward
H A Dmac80211.h3632 * @weight: default weight
3639 int weight);
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dpci.h179 /* Total "weight" for the sake of DMA resources
H A Dpci-ioda.c854 /* This is quite simplistic. The "base" weight of a device pnv_ioda_dma_weight()
862 /* Reduce the weight of slow USB controllers */ pnv_ioda_dma_weight()
868 /* Increase the weight of RAID (includes Obsidian) */ pnv_ioda_dma_weight()
1005 /* Assign a DMA weight to the device */
2024 pr_info("PCI: %d PE# for a total weight of %d\n", pnv_ioda_setup_dma()
2029 * weight pnv_ioda_setup_dma()
2049 * For IODA2 compliant PHB3, we needn't care about the weight. pnv_ioda_setup_dma()
2054 pe_info(pe, "DMA weight %d, assigned %d DMA32 segments\n", pnv_ioda_setup_dma()
/linux-4.1.27/arch/powerpc/mm/
H A Dnuma.c1368 int weight, new_nid, i = 0; arch_update_cpu_topology() local
1373 weight = cpumask_weight(&cpu_associativity_changes_mask); arch_update_cpu_topology()
1374 if (!weight) arch_update_cpu_topology()
1377 updates = kzalloc(weight * (sizeof(*updates)), GFP_KERNEL); arch_update_cpu_topology()
1420 if (i < weight) for_each_cpu()
/linux-4.1.27/arch/s390/hypfs/
H A Dhypfs_diag.c178 __u16 weight; member in struct:cpu_info
188 __u16 weight; member in struct:x_cpu_info
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
H A Dbna_hw_defs.h214 * acked events to h/w can be (32K + max poll weight) (currently 64).
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_mad.h179 u8 weight; member in struct:ib_vl_weight_elem
H A Dqib_file_ops.c1169 const unsigned int weight = cpumask_weight(&current->cpus_allowed); assign_ctxt_affinity() local
1177 if ((weight >= qib_cpulist_count) && assign_ctxt_affinity()
1194 if (weight >= qib_cpulist_count) {
1651 const unsigned int weight = qib_assign_ctxt() local
1654 if (weight == 1 && !test_bit(cpu, qib_cpulist)) qib_assign_ctxt()
H A Dqib_iba7322.c4416 vl->weight = (val >> SYM_LSB(LowPriority0_0, Weight)) & get_vl_weights()
4431 ((vl->weight & SYM_RMASK(LowPriority0_0, Weight)) << set_vl_weights()
/linux-4.1.27/net/core/
H A Ddev.c3052 int weight_p __read_mostly = 64; /* old backlog weight */
4389 napi->weight = weight_p; process_backlog()
4569 int (*poll)(struct napi_struct *, int), int weight) netif_napi_add()
4578 if (weight > NAPI_POLL_WEIGHT) netif_napi_add()
4579 pr_err_once("netif_napi_add() called with weight %d on device %s\n", netif_napi_add()
4580 weight, dev->name); netif_napi_add()
4581 napi->weight = weight; netif_napi_add()
4620 int work, weight; napi_poll() local
4626 weight = n->weight; napi_poll()
4636 work = n->poll(n, weight); napi_poll()
4640 WARN_ON_ONCE(work > weight); napi_poll()
4642 if (likely(work < weight)) napi_poll()
4646 * consume the entire weight. In such cases this code napi_poll()
7497 sd->backlog.weight = weight_p; for_each_possible_cpu()
4568 netif_napi_add(struct net_device *dev, struct napi_struct *napi, int (*poll)(struct napi_struct *, int), int weight) netif_napi_add() argument
/linux-4.1.27/tools/hv/
H A Dhv_kvp_daemon.c927 int weight; kvp_get_ip_info() local
1010 weight = 0; kvp_get_ip_info()
1017 weight += hweight32(&w[i]); kvp_get_ip_info()
1019 sprintf(cidr_mask, "/%d", weight); kvp_get_ip_info()
/linux-4.1.27/drivers/net/can/c_can/
H A Dc_can.c717 u32 weight, lasts; c_can_adjust_pending() local
726 weight = hweight32(pend); c_can_adjust_pending()
730 if (lasts == weight) c_can_adjust_pending()
/linux-4.1.27/drivers/extcon/
H A Dextcon.c93 int weight; check_mutually_exclusive() local
97 weight = hweight32(correspondants); check_mutually_exclusive()
98 if (weight > 1) check_mutually_exclusive()
/linux-4.1.27/arch/parisc/kernel/
H A Dsyscall.S75 /* Light-weight-syscall entry must always be located at 0xb0 */
902 /* Light-weight-syscall table */
925 All light-weight-syscall atomic operations
H A Dentry.S72 rsm PSW_SM_QUIET,%r0 /* second "heavy weight" ctl op */
/linux-4.1.27/arch/ia64/kernel/
H A Dfsys.S2 * This file contains the light-weight system call handlers (fsyscall-handlers).
389 * We only get here from light-weight syscall handlers. Thus, we already
398 ld8 r18=[r18] // load normal (heavy-weight) syscall entry-point
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dev.c1305 unsigned int total_weight, min_weight, weight; xgbe_config_dcb_tc() local
1330 weight = total_weight * ets->tc_tx_bw[i] / 100; xgbe_config_dcb_tc()
1331 weight = clamp(weight, min_weight, total_weight); xgbe_config_dcb_tc()
1333 DBGPR(" TC%u using DWRR (weight %u)\n", i, weight); xgbe_config_dcb_tc()
1337 weight); xgbe_config_dcb_tc()
/linux-4.1.27/arch/mips/cavium-octeon/
H A Docteon-irq.c228 int weight = cpumask_weight(data->affinity); next_cpu_for_irq() local
231 if (weight > 1) { next_cpu_for_irq()
242 } else if (weight == 1) { next_cpu_for_irq()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_private.h452 * Light-weight trace
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
H A Dlovsub_lock.c112 * Implementation of cl_lock_operation::clo_weigh() estimating lock weight by
/linux-4.1.27/drivers/cpufreq/
H A Dcpufreq.c1136 * Restore the saved policy when doing light-weight init and fall back
1340 /* Save the policy somewhere when doing a light-weight tear-down */ __cpufreq_remove_dev_prepare()
1434 * Perform the ->exit() even during light-weight tear-down, __cpufreq_remove_dev_finish()
1436 * subsequent light-weight ->init() to succeed. __cpufreq_remove_dev_finish()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dr200.c48 /* blend weight */ r200_get_vtx_size_0()
/linux-4.1.27/arch/ia64/include/asm/
H A Dbitops.h426 * hweightN: returns the hamming weight (i.e. the number
/linux-4.1.27/sound/
H A Dsound_core.c87 * to keeping much of the OSS weight out of the code in a compatibility
/linux-4.1.27/drivers/net/ethernet/freescale/
H A Ducc_geth.h471 u32 weightstatus[NUM_TX_QUEUES]; /* accumulated weight factor */
485 /**< weight factor for queues */
H A Dgianfar.h316 /* default WRRS weight and policy setting,
318 * equal weight for all Tx Qs, measured in 64byte units
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dops.c1323 int weight) iwl_mvm_napi_add()
1327 ieee80211_napi_add(mvm->hw, napi, napi_dev, poll, weight); iwl_mvm_napi_add()
1319 iwl_mvm_napi_add(struct iwl_op_mode *op_mode, struct napi_struct *napi, struct net_device *napi_dev, int (*poll)(struct napi_struct *, int), int weight) iwl_mvm_napi_add() argument
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/
H A Dlustre_user.h689 /* 12b used (from high weight to low weight):
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
H A Ddavinci_vpfe_user.h764 /* Use weight function as index */
774 /* GIC gain or weight. Used for Constant gain and Adaptive algorithms
/linux-4.1.27/drivers/net/xen-netback/
H A Dxenbus.c107 seq_printf(m, "NAPI state: %lx NAPI weight: %d TX queue len %u\n" xenvif_read_io_ring()
110 queue->napi.state, queue->napi.weight, xenvif_read_io_ring()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dwmi.h92 u8 weight; member in struct:sq_threshold_params
1264 u8 weight; member in struct:wmi_rssi_threshold_params_cmd
1279 u8 weight; member in struct:wmi_snr_threshold_params_cmd
H A Dwmi.c1497 cmd.weight = sq_thresh->weight; ath6kl_wmi_rssi_threshold_event_rx()
1730 cmd.weight = sq_thresh->weight; ath6kl_wmi_snr_threshold_event_rx()
/linux-4.1.27/drivers/net/wireless/b43/
H A Dphy_n.h469 #define B43_NPHY_PIL_DW0 B43_PHY_N(0x141) /* Pilot data weight 0 */
470 #define B43_NPHY_PIL_DW1 B43_PHY_N(0x142) /* Pilot data weight 1 */
471 #define B43_NPHY_PIL_DW2 B43_PHY_N(0x143) /* Pilot data weight 2 */
/linux-4.1.27/net/batman-adv/
H A Dbat_iv_ogm.c1648 uint8_t *weight; batadv_iv_ogm_process() local
1670 weight = &orig_neigh_node->bat_iv.bcast_own_sum[if_num]; batadv_iv_ogm_process()
1671 *weight = bitmap_weight(word, batadv_iv_ogm_process()
/linux-4.1.27/drivers/net/can/mscan/
H A Dmscan.c373 * a light-weight stop (we are in irq-context). mscan_get_err_frame()
/linux-4.1.27/drivers/media/platform/exynos4-is/
H A Dfimc-core.h242 * @height: image pixel weight
/linux-4.1.27/drivers/acpi/
H A Dpci_link.c815 * There is no ISA_POSSIBLE weight, so we simply use
/linux-4.1.27/sound/usb/caiaq/
H A Dinput.c179 /* interpolate both slider values, depending on weight factors */ decode_erp()
/linux-4.1.27/drivers/net/ethernet/amd/
H A Dpcnet32.c819 lp->napi.weight = lp->rx_ring_size / 2; pcnet32_set_ringparam()
1822 /* napi.weight is used in both the napi and non-napi cases */ pcnet32_probe1()
1823 lp->napi.weight = lp->rx_ring_size / 2; pcnet32_probe1()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
H A Dnetdev.c2683 * @weight: number of packets driver is allowed to process this poll
2685 static int e1000e_poll(struct napi_struct *napi, int weight) e1000e_poll() argument
2699 adapter->clean_rx(adapter->rx_ring, &work_done, weight); e1000e_poll()
2702 work_done = weight; e1000e_poll()
2704 /* If weight not fully consumed, exit the polling mode */ e1000e_poll()
2705 if (work_done < weight) { e1000e_poll()
/linux-4.1.27/drivers/net/ethernet/ti/
H A Ddavinci_emac.c130 #define EMAC_POLL_WEIGHT (64) /* Default NAPI poll weight */
134 #define EMAC_DEF_RX_MAX_SERVICE (64) /* should = netdev->weight */
H A Dcpmac.c474 * out of ring space (assuming dev->weight < ring_size) cpmac_poll()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Dmain.c2036 int weight) iwl_napi_add()
2040 ieee80211_napi_add(priv->hw, napi, napi_dev, poll, weight); iwl_napi_add()
2032 iwl_napi_add(struct iwl_op_mode *op_mode, struct napi_struct *napi, struct net_device *napi_dev, int (*poll)(struct napi_struct *, int), int weight) iwl_napi_add() argument
/linux-4.1.27/fs/ubifs/
H A Dfind.c533 * heavy-weight, and we want budgeting to be as fast as ubifs_find_free_space()
H A Ddebug.c2263 * heavy-weight. Returns zero if the file-system is consistent, %-EINVAL if
/linux-4.1.27/fs/jbd/
H A Dcommit.c984 * weight the commit time higher than the average time so we don't journal_commit_transaction()
/linux-4.1.27/fs/jbd2/
H A Dcommit.c1117 * weight the commit time higher than the average time so we don't jbd2_journal_commit_transaction()
/linux-4.1.27/scripts/kconfig/
H A Dgconf.c182 "weight", PANGO_WEIGHT_BOLD, init_main_window()
/linux-4.1.27/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c695 tuple_set_u64(t, 16, es->sample->weight); python_export_sample()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
H A Dldlm_request.c1654 * it has a low weight. ldlm_prepare_lru_list()
1658 * their weight. Big extent locks will stay in ldlm_prepare_lru_list()
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dcassini.h54 * if rx weight == 1 and tx weight == 0, rx == 2x tx transfer credit
59 #define REG_CAWR 0x0004 /* core arbitration weight */
H A Dcassini.c3058 /* setup core arbitration weight register */ cas_init_mac()
/linux-4.1.27/drivers/net/
H A Dvirtio_net.c45 * ring may be refilled at once, the weight is chosen so that the EWMA will be
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
H A Dcl_lock.c1519 if (pound < ounce) /* over-weight^Wflow */ cl_lock_weigh()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c1551 * non data-carrying) responses. Such respones are too light-weight to justify
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
H A Dsvga_reg.h1296 * piece of light-weight state which identifies the location and
/linux-4.1.27/fs/gfs2/
H A Ddir.c476 * Not sure how heavy-weight we want to make this... could also check
/linux-4.1.27/drivers/scsi/
H A Dipr.c3690 dev_info(&ioa_cfg->pdev->dev, "Invalid blk-iopoll weight. It must be less than 256\n"); ipr_store_iopoll_weight()
3695 dev_info(&ioa_cfg->pdev->dev, "Current blk-iopoll weight has the same weight\n"); ipr_store_iopoll_weight()
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_main.c1632 /* weight of a sort for tx, to avoid endless transmit cleanup */ pch_gbe_clean_tx()
/linux-4.1.27/drivers/net/ethernet/sfc/
H A Defx.c121 /* This is the weight assigned to each of the (per-channel) virtual
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c2455 * non data-carrying) responses. Such respones are too light-weight to
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_common.c3411 /* pba_80_48 strategy weight first half of packet buffer with ixgbe_set_rxpba_generic()
/linux-4.1.27/drivers/net/ethernet/marvell/
H A Dsky2.c2783 /* Stop after net poll weight */ sky2_status_intr()
/linux-4.1.27/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge.c330 MODULE_PARM_DESC(myri10ge_napi_weight, "Set NAPI weight");

Completed in 5743 milliseconds

12