Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dmetaslab_impl.h124 #define WEIGHT_GET_ACTIVE(weight) BF64_GET((weight), 61, 3) argument
125 #define WEIGHT_SET_ACTIVE(weight, x) BF64_SET((weight), 61, 3, x) argument
127 #define WEIGHT_IS_SPACEBASED(weight) \ argument
128 ((weight) == 0 || BF64_GET((weight), 60, 1))
129 #define WEIGHT_SET_SPACEBASED(weight) BF64_SET((weight), 60, 1, 1) argument
134 #define WEIGHT_GET_INDEX(weight) BF64_GET((weight), 54, 6) argument
135 #define WEIGHT_SET_INDEX(weight, x) BF64_SET((weight), 54, 6, x) argument
136 #define WEIGHT_GET_COUNT(weight) BF64_GET((weight), 0, 54) argument
137 #define WEIGHT_SET_COUNT(weight, x) BF64_SET((weight), 0, 54, x) argument
/illumos-gate/usr/src/common/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 ]; in BZ2_hbMakeCodeLengths() local
80 weight[i+1] = (freq[i] == 0 ? 1 : freq[i]) << 8; in BZ2_hbMakeCodeLengths()
88 weight[0] = 0; in BZ2_hbMakeCodeLengths()
105 weight[nNodes] = ADDWEIGHTS(weight[n1], weight[n2]); in BZ2_hbMakeCodeLengths()
143 j = weight[i] >> 8; in BZ2_hbMakeCodeLengths()
145 weight[i] = j << 8; in BZ2_hbMakeCodeLengths()
/illumos-gate/usr/src/cmd/powertop/common/
H A Dsuggestions.c66 pt_sugg_add(char *text, int weight, char key, char *sb_msg, sugg_func_t *func) in pt_sugg_add() argument
89 new->weight = weight; in pt_sugg_add()
102 if (weight > n->weight && pos == NULL) in pt_sugg_add()
116 new->weight = weight; in pt_sugg_add()
/illumos-gate/usr/src/uts/sun4/os/
H A Dintr.c579 int32_t weight, max_weight; in intr_redist_all_cpus() local
615 for (weight = max_weight; weight >= 0; weight--) in intr_redist_all_cpus()
618 (iptr->arg, max_weight, weight); in intr_redist_all_cpus()
820 int32_t weight; in intr_dist_cpuid_rem_device_weight() local
827 weight = i_ddi_get_intr_weight(dip); in intr_dist_cpuid_rem_device_weight()
828 if (weight < 0) in intr_dist_cpuid_rem_device_weight()
829 weight = 0; in intr_dist_cpuid_rem_device_weight()
831 "%s#%d/%s#%d\n", cpuid, cpu[cpuid]->cpu_intr_weight, weight, in intr_dist_cpuid_rem_device_weight()
839 cp->cpu_intr_weight -= weight; in intr_dist_cpuid_rem_device_weight()
/illumos-gate/usr/src/uts/common/os/
H A Dddi_intr_impl.c386 int32_t weight; in i_ddi_get_intr_weight() local
388 weight = ddi_prop_get_int(DDI_DEV_T_ANY, dip, in i_ddi_get_intr_weight()
390 if (weight < -1) in i_ddi_get_intr_weight()
391 weight = -1; /* undefined */ in i_ddi_get_intr_weight()
392 return (weight); in i_ddi_get_intr_weight()
396 i_ddi_set_intr_weight(dev_info_t *dip, int32_t weight) in i_ddi_set_intr_weight() argument
401 if ((weight > 0) && (oweight != weight)) in i_ddi_set_intr_weight()
403 "ddi-intr-weight", weight); in i_ddi_set_intr_weight()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Ddnssrv.c65 unsigned short priority, weight, port; in krb5int_make_srv_query_realm() local
119 SAFE_GETUINT16(base, rdlen, p, 2, weight, out); in krb5int_make_srv_query_realm()
141 srv->weight = weight; in krb5int_make_srv_query_realm()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dcnex.c113 static void cnex_intr_redist(void *arg, int32_t weight_max, int32_t weight);
324 cnex_intr_redist(void *arg, int32_t weight_max, int32_t weight) in cnex_intr_redist() argument
337 if (cldcp->tx.hdlr && (cldcp->tx.weight == weight || in cnex_intr_redist()
338 (weight_max == weight && cldcp->tx.weight > weight))) { in cnex_intr_redist()
342 if (cldcp->rx.hdlr && (cldcp->rx.weight == weight || in cnex_intr_redist()
343 (weight_max == weight && cldcp->rx.weight > weight))) { in cnex_intr_redist()
386 iinfo->weight); in cnex_intr_new_cpu()
448 return (cnex_class_to_intr[idx].weight); in cnex_class_weight()
576 new_cldcp->tx.weight = CNEX_TX_INTR_WEIGHT; in cnex_reg_chan()
577 new_cldcp->rx.weight = cnex_class_weight(devclass); in cnex_reg_chan()
[all …]
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dheap_kmem.c116 #define weight(x) ((x) == NIL? 0: (x->size)) macro
224 while (weight(x) >= len) { in insert()
314 if (weight(left_branch) >= weight(right_branch)) { in delete()
372 wx = weight(x); in demote()
374 while (weight(left_branch) > wx || weight(right_branch) > wx) { in demote()
378 if (weight(left_branch) >= weight(right_branch)) { in demote()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dmetaslab.c1120 ASSERT(weight >= SPA_MINBLOCKSIZE || weight == 0); in metaslab_group_sort()
2892 weight = space; in metaslab_space_weight()
2904 weight = 2 * weight - (msp->ms_id * weight) / vd->vdev_ms_count; in metaslab_space_weight()
2905 ASSERT(weight >= space && weight <= 2 * space); in metaslab_space_weight()
2920 return (weight); in metaslab_space_weight()
2962 return (weight); in metaslab_weight_from_range_tree()
3009 return (weight); in metaslab_weight_from_spacemap()
3042 return (weight); in metaslab_segment_weight()
3070 return (weight); in metaslab_segment_weight()
3120 uint64_t weight; in metaslab_weight() local
[all …]
/illumos-gate/usr/src/lib/libadutils/common/
H A Dsrv_query.c153 if (s1->weight < s2->weight) in srvcmp()
155 else if (s1->weight > s2->weight) in srvcmp()
325 NS_GET16(cds->cds_ds.weight, ptr); in srv_parse()
340 rttl, cds->cds_ds.priority, cds->cds_ds.weight, in srv_parse()
524 ds->weight = 200; in add_preferred()
537 ds->weight = 200; in add_preferred()
/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/
H A DMP_SetPathWeight.c32 MP_SetPathWeight(MP_OID pathOid, MP_UINT32 weight) in MP_SetPathWeight() argument
43 weight); in MP_SetPathWeight()
H A DMP_GetPathLogicalUnitProperties.c168 pProps->weight = pathInfo.weight; in MP_GetPathLogicalUnitProperties()
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dvalidate.c551 pc->weight = 0; in _validate()
553 pc->weight += WEIGHT_NOFILTER; in _validate()
555 pc->weight += WEIGHT_FREE; in _validate()
557 pc->weight += WEIGHT_ENABLED; in _validate()
559 pc->weight += WEIGHT_MOUNTED; in _validate()
561 pc->weight += WEIGHT_MOUNTED; in _validate()
563 pc->weight += WEIGHT_SELECTS; in _validate()
566 if (pc->weight == WEIGHT_MAX) { in _validate()
648 if (pc->weight > best_pc->weight) in _validate()
H A Dvalidate.h56 unsigned short weight; member
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddomain.c229 int weight[MAXMXHOSTS]; local
394 weight[nmx] = 0;
397 weight[nmx] = mxrand(bp);
425 (prefs[i] == prefs[j] && weight[i] > weight[j]))
436 temp = weight[i];
437 weight[i] = weight[j];
438 weight[j] = temp;
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dcnex.h50 int32_t weight; /* Interrupt weight for device class */ member
65 int32_t weight; /* intr weight */ member
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_init_fw_funcs.c83 #define QM_WFQ_INC_VAL(weight) ((weight) * 0x9000) argument
879 #define NIG_ETS_UP_BOUND(weight,mtu) (2 * ((weight) > (mtu) ? (weight) : (mtu))) argument
935 if (tc_req->weight < min_weight) in ecore_init_nig_ets()
936 min_weight = tc_req->weight; in ecore_init_nig_ets()
954 byte_weight = (NIG_ETS_MIN_WFQ_BYTES * tc_req->weight) / min_weight; in ecore_init_nig_ets()
1062 #define PRS_ETS_UP_BOUND(weight,mtu) (2 * ((weight) > (mtu) ? (weight) : (mtu))) argument
1089 if (tc_req->weight < min_weight) in ecore_init_prs_ets()
1090 min_weight = tc_req->weight; in ecore_init_prs_ets()
1108 byte_weight = (PRS_ETS_MIN_WFQ_BYTES * tc_req->weight) / min_weight; in ecore_init_prs_ets()
H A Decore_hsi_init_func.h70 __le16 weight /* An arbitration weight. Valid only if use_wfq is set. */; member
/illumos-gate/usr/src/cmd/krb5/kadmin/kdcmgr/
H A Dklookup.c55 int ttl __unused, priority __unused, weight __unused, port, size; in main()
161 NS_GET16(weight, ansp); in main()
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_intr.c463 int32_t weight; in pci_add_intr() local
528 weight = pci_class_to_intr_weight(rdip); in pci_add_intr()
529 intr_dist_cpuid_add_device_weight(cpu_id, rdip, weight); in pci_add_intr()
578 weight = pci_class_to_intr_weight(rdip); in pci_add_intr()
579 intr_dist_cpuid_add_device_weight(cpu_id, rdip, weight); in pci_add_intr()
H A Dpci_ib.c306 ib_intr_dist_all(void *arg, int32_t weight_max, int32_t weight) in ib_intr_dist_all() argument
316 if (weight == 0) { in ib_intr_dist_all()
329 if (weight == weight_max) { in ib_intr_dist_all()
376 if ((weight == ino_p->ino_intr_weight) || in ib_intr_dist_all()
377 ((weight >= weight_max) && in ib_intr_dist_all()
/illumos-gate/usr/src/lib/libxcurses/h/
H A Dcollate.h109 _m_weight_t weight[_M_COTOM_MAX]; member
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/hsi_repository/
H A Decore_hsi_init_func.h70 __le16 weight /* An arbitration weight. Valid only if use_wfq is set. */; member
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/
H A Dpcmu_ib.c295 pcmu_ib_intr_dist_all(void *arg, int32_t weight_max, int32_t weight) in pcmu_ib_intr_dist_all() argument
306 if (weight == weight_max) { in pcmu_ib_intr_dist_all()
345 if ((weight == ino_p->pino_intr_weight) || in pcmu_ib_intr_dist_all()
346 ((weight >= weight_max) && in pcmu_ib_intr_dist_all()
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dlibsmbns.h52 int weight; /* DNS SRV record weight */ member

123