/linux-master/include/uapi/linux/ |
H A D | nexthop.h | 18 __u8 weight; /* weight of this nexthop */ member in struct:nexthop_grp
|
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_ets.c | 7 static u32 lan966x_ets_hw_cost(u32 w_min, u32 weight) argument 14 res = (((DWRR_COST_BIT_WIDTH << 4) * w_min / weight) + 8) >> 4; 50 /* Find minimum weight */
|
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_rr.c | 14 * Wensong Zhang : added any dest with weight=0 is quiesced 71 atomic_read(&dest->weight) > 0) 92 "activeconns %d refcnt %d weight %d\n", 95 refcount_read(&dest->refcnt), atomic_read(&dest->weight));
|
H A D | ip_vs_lblcr.c | 8 * Julian Anastasov : Added the missing (dest->weight>0) 20 * (n.conns>n.weight AND 21 * there is a node m with m.conns<m.weight/2) then 167 /* select the first destination server, whose weight > 0 */ 173 if ((atomic_read(&least->weight) > 0) 189 if (((__s64)loh * atomic_read(&dest->weight) > 190 (__s64)doh * atomic_read(&least->weight)) 198 "activeconns %d refcnt %d weight %d overhead %d\n", 204 atomic_read(&least->weight), loh); 219 /* select the first destination server, whose weight > [all...] |
H A D | ip_vs_mh.c | 46 int turns; /* weight / gcd() and rshift */ 83 return atomic_read(&dest->weight) <= 0 || 190 /* Ignore added server with zero weight */ 325 int weight; local 329 weight = atomic_read(&dest->last_weight); 330 if (weight > 0) { 332 g = gcd(weight, g); 334 g = weight; 340 /* To avoid assigning huge weight for the MH table, 346 int new_weight, weight local [all...] |
H A D | ip_vs_lc.c | 9 * Wensong Zhang : added any dest with weight=0 is quiesced 35 * Except whose weight is equal to zero. 36 * If the weight is equal to zero, it means that the server is 43 atomic_read(&dest->weight) == 0)
|
H A D | ip_vs_lblc.c | 27 * (n.conns>n.weight AND 28 * there is a node m with m.conns<m.weight/2) then 407 * (dest overhead) / dest->weight 412 * if every weight is larger than zero. 414 * The server with weight=0 is quiesced and will not receive any 420 if (atomic_read(&dest->weight) > 0) { 437 if ((__s64)loh * atomic_read(&dest->weight) > 438 (__s64)doh * atomic_read(&least->weight)) { 445 "activeconns %d refcnt %d weight %d overhead %d\n", 450 atomic_read(&least->weight), lo [all...] |
/linux-master/drivers/dma/qcom/ |
H A D | hidma_mgmt.c | 109 if (mgmtdev->weight[i] > HIDMA_MAX_CHANNEL_WEIGHT) { 111 "max value of weight can be %d.\n", 116 /* weight needs to be at least one */ 117 if (mgmtdev->weight[i] == 0) 118 mgmtdev->weight[i] = 1; 142 u32 weight = mgmtdev->weight[i]; local 149 val |= (weight & HIDMA_WEIGHT_MASK) << HIDMA_WRR_BIT_POS; 282 mgmtdev->weight = devm_kcalloc(&pdev->dev, 284 sizeof(*mgmtdev->weight), GFP_KERNE [all...] |
H A D | hidma_mgmt_sys.c | 80 tmp = mdev->weight[i]; 81 mdev->weight[i] = val; 84 mdev->weight[i] = tmp; 151 else if (strcmp(attr->attr.name, "weight") == 0) 152 sprintf(buf, "%d\n", mdev->weight[chattr->index]); 177 } else if (strcmp(attr->attr.name, "weight") == 0) { 276 rc = create_sysfs_entry_channel(mdev, "weight",
|
/linux-master/lib/ |
H A D | cpumask_kunit.c | 30 int weight; \ 33 weight = cpumask_weight(&mask_tmp); \ 36 KUNIT_EXPECT_EQ((test), weight, iter); \
|
/linux-master/fs/afs/ |
H A D | vl_list.c | 204 bs.weight = afs_extract_le16(&b); 212 bs.name_len, bs.priority, bs.weight, 294 /* Insertion-sort by priority and weight */ 299 bs.weight > vllist->servers[j].weight) 312 vllist->servers[j].weight = bs.weight;
|
/linux-master/drivers/net/wireless/rsi/ |
H A D | rsi_91x_core.c | 24 * the min weight. 38 common->min_weight = tx_qinfo[ii].weight; 64 tx_qinfo[ii].weight = 65 ((tx_qinfo[ii].weight > common->min_weight) ? 66 tx_qinfo[ii].weight - common->min_weight : 0); 69 tx_qinfo[ii].weight = tx_qinfo[ii].wme_params; 73 tx_qinfo[ii].weight = 0; 174 (common->tx_qinfo[ii].weight < common->min_weight)) && 176 common->min_weight = common->tx_qinfo[ii].weight;
|
/linux-master/drivers/thermal/intel/int340x_thermal/ |
H A D | acpi_thermal_rel.h | 31 u64 weight; 89 u64 weight;
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | lparcfg.c | 80 u8 weight; member in struct:hvcall_ppp_data 128 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; 225 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); 581 static ssize_t update_ppp(u64 *entitlement, u8 *weight) argument 594 new_weight = ppp_data.weight; 596 } else if (weight) { 597 new_weight = *weight; 603 __func__, ppp_data.entitlement, ppp_data.weight); 615 * Update the memory entitlement and weight for the partition. Caller must 616 * specify either a new entitlement or weight, no 619 update_mpp(u64 *entitlement, u8 *weight) argument [all...] |
/linux-master/include/linux/ |
H A D | dtpm.h | 25 int weight; member in struct:dtpm
|
/linux-master/net/sctp/ |
H A D | stream_sched_fc.c | 28 __u16 weight, gfp_t gfp) 32 if (!weight) 35 soute->fc_weight = weight; 49 __u16 weight, gfp_t gfp) 27 sctp_sched_wfq_set(struct sctp_stream *stream, __u16 sid, __u16 weight, gfp_t gfp) argument 48 sctp_sched_fc_set(struct sctp_stream *stream, __u16 sid, __u16 weight, gfp_t gfp) argument
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_guc_db_mgr.c | 54 unsigned int weight; local 58 weight = bitmap_weight(dbm->bitmap, dbm->count); 59 if (weight) { 63 weight, dbm->count); local
|
/linux-master/fs/bcachefs/ |
H A D | mean_and_variance.h | 194 s64 v, bool initted, u8 weight); 197 u8 weight); 199 u8 weight); 201 u8 weight);
|
/linux-master/arch/x86/hyperv/ |
H A D | hv_apic.c | 163 unsigned int weight; local 167 weight = cpumask_weight(mask); 174 if (weight == 0 || 175 (exclude_self && weight == 1 && cpumask_test_cpu(this_cpu, mask)))
|
/linux-master/mm/ |
H A D | mempolicy.c | 142 * iw_table is the sysfs-set interleave weight table, a value of 0 denotes 155 u8 weight; local 160 weight = table ? table[node] : 1; 162 weight = weight ? weight : 1; 164 return weight; 1985 u8 weight; local 1994 /* calculate the total weight */ 1997 weight 2391 u8 *table, *weights, weight; local 3339 u8 weight; local 3352 u8 weight = 0; local [all...] |
/linux-master/net/sched/ |
H A D | sch_qfq.c | 49 ratio between the maximum packet length for the class and the weight 61 QFQ_MAX_WSHIFT is the maximum power of two supported as a weight. 83 static and adaptive weight sum. 147 * which is log_2(lmax/weight), but we never reference it 185 u32 wsum; /* weight sum */ 186 u32 iwsum; /* inverse weight sum */ 227 * Calculate a flow index, given its weight and maximum packet length. 228 * index = log_2(maxlen/weight) but we need to apply the scaling. 258 u32 lmax, u32 weight) 264 agg->class_weight = weight; 257 qfq_init_agg(struct qfq_sched *q, struct qfq_aggregate *agg, u32 lmax, u32 weight) argument 267 qfq_find_agg(struct qfq_sched *q, u32 lmax, u32 weight) argument 378 qfq_change_agg(struct Qdisc *sch, struct qfq_class *cl, u32 weight, u32 lmax) argument 410 u32 weight, lmax, inv_w; local [all...] |
/linux-master/net/ceph/crush/ |
H A D | mapper.c | 151 dprintk("list_choose i=%d x=%d r=%d item %d weight %x " 338 dprintk("weight 0x%x item %d\n", weights[i], ids[i]); 356 * divide by 16.16 fixed-point weight. note 358 * weight means a larger (less negative) value 414 const __u32 *weight, int weight_max, 419 if (weight[item] >= 0x10000) 421 if (weight[item] == 0) 424 < weight[item]) 452 const __u32 *weight, int weight_max, 565 weight, weight_ma 413 is_out(const struct crush_map *map, const __u32 *weight, int weight_max, int item, int x) argument 449 crush_choose_firstn(const struct crush_map *map, struct crush_work *work, const 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, unsigned int stable, int *out2, int parent_r, const struct crush_choose_arg *choose_args) argument 643 crush_choose_indep(const struct crush_map *map, struct crush_work *work, const 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, const struct crush_choose_arg *choose_args) argument 894 crush_do_rule(const struct crush_map *map, int ruleno, int x, int *result, int result_max, const __u32 *weight, int weight_max, void *cwin, const struct crush_choose_arg *choose_args) argument [all...] |
/linux-master/block/ |
H A D | bfq-wf2q.c | 264 * the maximum total weight that can be used for the queues in the system 284 * @weight: scale factor (weight of an entity or weight sum). 286 static u64 bfq_delta(unsigned long service, unsigned long weight) argument 288 return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight); 301 bfq_delta(service, entity->weight); 306 service, entity->weight); 310 bfq_delta(service, entity->weight)); 502 * bfq_ioprio_to_weight - calc a weight fro 518 bfq_weight_to_ioprio(int weight) argument [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | unaligned_access_speed.c | 132 static void modify_unaligned_access_branches(cpumask_t *mask, int weight) argument 134 if (cpumask_weight(mask) == weight)
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
H A D | hw_atl2_llh.h | 56 /* set tx packet scheduler tc data weight */ 59 const u32 weight);
|