Searched refs:weight (Results 1 - 25 of 92) sorted by relevance

1234

/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dmetaslab_impl.h84 * The metaslab weight is used to encode the amount of free space in a
86 * metaslabs by weight. The weight (and therefore the "best" metaslab) can
88 * the free space in the metaslab (a space based weight) or by counting only
89 * the free segments of the largest size (a segment based weight). We prefer
90 * the segment based weight because it reflects how the free space is
94 * the segment weight by looking at each bucket in the histogram and
100 * Space-based weight:
111 * Segment-based weight:
123 #define WEIGHT_GET_ACTIVE(weight) BF64_GE
[all...]
/freebsd-11-stable/usr.sbin/pkg/
H A Ddns_utils.h38 unsigned int weight; member in struct:dns_srvinfo
H A Ddns_utils.c92 totalweight += d[i]->weight;
101 chosen[i] = random() % (d[i]->weight * 100 / totalweight);
124 unsigned int type, class, ttl, priority, weight, port; local
171 NS_GET16(weight, p);
193 res[n]->weight = weight;
/freebsd-11-stable/contrib/llvm-project/lld/ELF/
H A DCallGraphSort.cpp21 /// the weight of the cluster is the sum of the weight of all incoming
28 /// * The weight of the cluster divided by the size of the cluster. This is a
33 /// * Sort input sections by weight
34 /// * For each input section starting with the highest weight
58 uint64_t weight; member in struct:lld::elf::__anon1126::Edge
67 return double(weight) / double(size);
73 uint64_t weight = 0; member in struct:lld::elf::__anon1126::Cluster
120 uint64_t weight = c.second; local
134 clusters[to].weight
[all...]
/freebsd-11-stable/contrib/bzip2/
H A Dhuffman.c37 while (weight[tmp] < weight[heap[zz >> 1]]) { \
52 weight[heap[yy+1]] < weight[heap[yy]]) \
54 if (weight[tmp] < weight[heap[yy]]) break; \
76 Int32 weight [ BZ_MAX_ALPHA_SIZE * 2 ]; local
80 weight[i+1] = (freq[i] == 0 ? 1 : freq[i]) << 8;
88 weight[0] = 0;
105 weight[nNode
[all...]
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dairtime_policy.c94 unsigned int weight)
98 if (weight != sta->airtime_weight &&
99 (ret = hostapd_sta_set_airtime_weight(hapd, sta->addr, weight)))
102 sta->airtime_weight = weight;
107 static void set_sta_weights(struct hostapd_data *hapd, unsigned int weight) argument
112 sta_set_airtime_weight(hapd, sta, weight);
174 /* If we're in LIMIT mode, we only apply the weight
193 /* We only set the calculated weight if the BSS has active
195 * otherwise we just set a unit weight. This ensures that
234 return wt ? wt->weight
92 sta_set_airtime_weight(struct hostapd_data *hapd, struct sta_info *sta, unsigned int weight) argument
240 unsigned int weight; local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegColoring.cpp64 // Compute the total spill weight for VReg.
109 assert(LI->weight == 0.0f);
110 LI->weight = computeWeight(MRI, MBFI, VReg);
117 // registers), by weight next, and then by position.
123 if (LHS->weight != RHS->weight)
124 return LHS->weight > RHS->weight;
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_suppressions.h26 uptr weight; member in struct:__sanitizer::Suppression
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DCalcSpillWeights.cpp104 // weight must reflect this.
139 float weight = weightCalcHelper(li); local
141 if (weight < 0)
143 li.weight = weight;
164 // Don't recompute spill weight for an unspillable register.
223 float weight = 1.0f; local
232 // Calculate instr weight.
235 weight = LiveIntervals::getSpillWeight(writes, reads, &MBFI, *mi);
237 // Give extra weight t
[all...]
H A DRegAllocBasic.cpp49 return A->weight < B->weight;
56 /// algorithm. It prioritizes live virtual registers by spill weight and spills
216 if (!Intf->isSpillable() || Intf->weight > VirtReg.weight)
281 // Try to spill another interfering reg with less spill weight.
H A DStackSlotColoring.cpp145 // their weight.
148 return LHS->weight > RHS->weight;
177 li.weight += LiveIntervals::getSpillWeight(false, true, MBFI, MI);
196 /// to a sorted (by weight) list.
245 // Sort them by weight.
339 SlotWeights[NewSS] += li->weight;
348 li->weight = SlotWeights[SS];
350 // Sort them by new weight.
/freebsd-11-stable/contrib/amd/amd/
H A Dsun_map.h48 int weight; /* weight given to the host */ member in struct:sun_host
H A Dsun_map_parse.y342 | WORD weight {
346 * 'weight' rule and assigned to be the last host item on the host
355 weight : '(' WORD ')' { label
363 host->weight = val;
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_hsi_init_func.h64 u8 use_wfq /* if set, this TC participates in the arbitration with a WFQ weight (indicated by the weight field) */;
65 u16 weight /* An arbitration weight. Valid only if use_wfq is set. */; member in struct:init_ets_tc_req
141 u16 vport_wfq /* WFQ weight. A value of 0 means dont configure. ignored if VPORT WFQ is globally disabled. */;
H A Decore_init_fw_funcs.c85 #define QM_WFQ_INC_VAL(weight) ((weight) * 0x9000)
550 DP_NOTICE(p_hwfn, true, "Invalid PF WFQ weight configuration\n");
608 DP_NOTICE(p_hwfn, true, "Invalid VPORT WFQ weight configuration\n");
820 DP_NOTICE(p_hwfn, true, "Invalid PF WFQ weight configuration\n");
859 DP_NOTICE(p_hwfn, true, "Invalid VPORT WFQ weight configuration\n");
941 #define NIG_ETS_UP_BOUND(weight,mtu) (2 * ((weight) > (mtu) ? (weight) : (mtu)))
996 /* Find minimal weight */
[all...]
/freebsd-11-stable/sys/net/altq/
H A Daltq_rio.h53 int weight; member in struct:rio_stats
61 int rio_weight; /* weight for EWMA */
112 int rio_weight; /* weight for EWMA */
113 struct wtab *rio_wtab; /* weight table */
H A Daltq_red.c142 #define W_WEIGHT 512 /* inverse of weight of EWMA (511/512) */
146 #define W_WEIGHT_1 128 /* inverse of weight of EWMA (127/128) */
150 #define W_WEIGHT_2 64 /* inverse of weight of EWMA (63/64) */
226 red_alloc(int weight, int inv_pmax, int th_min, int th_max, int flags, argument
237 if (weight == 0)
240 rp->red_weight = weight;
242 /* allocate weight table */
273 if (weight == 0) {
285 /* calculate wshift. weight must be power of 2 */
292 printf("invalid weight valu
634 wtab_alloc(int weight) argument
[all...]
H A Daltq_red.h53 int weight; member in struct:red_stats
68 int red_weight; /* weight for EWMA */
122 /* weight table structure for idle time calibration */
137 int red_weight; /* weight for EWMA */
153 struct wtab *red_wtab; /* weight table */
/freebsd-11-stable/sys/net/
H A Dradix_mpath.c214 int64_t weight; local
224 for (weight = abs((int32_t)hash);
225 rt != NULL && weight >= rt->rt_weight;
226 weight -= (rt == NULL) ? 0 : rt->rt_weight) {
272 /* gw selection has failed - there must be only zero weight routes */
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dmetaslab.c278 static void metaslab_passivate(metaslab_t *msp, uint64_t weight);
1015 metaslab_group_sort_impl(metaslab_group_t *mg, metaslab_t *msp, uint64_t weight) argument
1020 msp->ms_weight = weight;
1026 metaslab_group_sort(metaslab_group_t *mg, metaslab_t *msp, uint64_t weight) argument
1029 * Although in principle the weight can be any value, in
1032 ASSERT(weight >= SPA_MINBLOCKSIZE || weight == 0);
1036 metaslab_group_sort_impl(mg, msp, weight);
1596 * The metaslab's weight will also be initialized when we sync
1782 * Compute a weight
1791 uint64_t weight, space; local
1862 uint64_t weight = 0; local
1903 uint64_t weight = 0; local
1927 uint64_t weight = 0; local
2018 uint64_t weight; local
2119 metaslab_passivate_allocator(metaslab_group_t *mg, metaslab_t *msp, uint64_t weight) argument
2147 metaslab_passivate(metaslab_t *msp, uint64_t weight) argument
3263 uint64_t weight = metaslab_block_maxsize(msp); local
[all...]
/freebsd-11-stable/contrib/groff/src/devices/grolj4/
H A Dlj4.cpp88 int weight; member in class:lj4_font
97 : font(nm), weight(0), style(0), proportional(0), typeface(0)
121 { "pclweight", &lj4_font::weight, -7, 7 },
298 psf->weight,
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dresolve.h134 unsigned weight; member in struct:rk_srv_record
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/
H A Dsaquery.c697 e[i + 0].weight, e[i + 1].weight, e[i + 2].weight,
698 e[i + 3].weight, e[i + 4].weight, e[i + 5].weight,
699 e[i + 6].weight, e[i + 7].weight, e[i + 8].weight,
700 e[i + 9].weight,
[all...]
/freebsd-11-stable/contrib/sendmail/src/
H A Ddomain.c553 int weight[MAXMXHOSTS]; local
779 weight[nmx] = 0;
782 weight[nmx] = mxrand(bp);
842 (prefs[i] == prefs[j] && weight[i] > weight[j]))
853 temp = weight[i];
854 weight[i] = weight[j];
855 weight[j] = temp;
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-lisp.c217 nd_uint8_t weight; member in struct:map_register_loc
356 lisp_loc->priority, lisp_loc->weight,

Completed in 283 milliseconds

1234