Home
last modified time | relevance | path

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

12345

/drivers/gpu/drm/ingenic/
Dingenic-ipu.c45 unsigned int weight, unsigned int offset);
157 unsigned int weight, unsigned int offset) in jz4760_set_coefs() argument
162 weight = clamp_val(weight, 0, 512); in jz4760_set_coefs()
171 weight = weight >= 256 ? 512 : 0; in jz4760_set_coefs()
173 w1 = weight; in jz4760_set_coefs()
174 w2 = 512 - weight; in jz4760_set_coefs()
186 weight = 512 - weight; in jz4760_set_coefs()
187 w0 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 + weight) / 512)); in jz4760_set_coefs()
188 w1 = F2I(f_h + 512 * cubic_conv(f_a, I2F(0 + weight) / 512)); in jz4760_set_coefs()
189 w2 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 - weight) / 512)); in jz4760_set_coefs()
[all …]
/drivers/net/can/dev/
Drx-offload.c328 unsigned int weight) in can_rx_offload_init_queue() argument
333 offload->skb_queue_len_max = 2 << fls(weight); in can_rx_offload_init_queue()
339 weight); in can_rx_offload_init_queue()
350 unsigned int weight; in can_rx_offload_add_timestamp() local
358 weight = offload->mb_last - offload->mb_first; in can_rx_offload_add_timestamp()
361 weight = offload->mb_first - offload->mb_last; in can_rx_offload_add_timestamp()
364 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_timestamp()
369 struct can_rx_offload *offload, unsigned int weight) in can_rx_offload_add_fifo() argument
374 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_fifo()
380 unsigned int weight) in can_rx_offload_add_manual() argument
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k.h15 u32 weight; in mtu_to_dwrr_weight() local
20 weight = mtu / pfvf->hw.dwrr_mtu; in mtu_to_dwrr_weight()
22 weight += 1; in mtu_to_dwrr_weight()
24 return weight; in mtu_to_dwrr_weight()
/drivers/dma/qcom/
Dhidma_mgmt.c107 if (mgmtdev->weight[i] > HIDMA_MAX_CHANNEL_WEIGHT) { in hidma_mgmt_setup()
115 if (mgmtdev->weight[i] == 0) in hidma_mgmt_setup()
116 mgmtdev->weight[i] = 1; in hidma_mgmt_setup()
140 u32 weight = mgmtdev->weight[i]; in hidma_mgmt_setup() local
147 val |= (weight & HIDMA_WEIGHT_MASK) << HIDMA_WRR_BIT_POS; in hidma_mgmt_setup()
281 mgmtdev->weight = devm_kcalloc(&pdev->dev, in hidma_mgmt_probe()
283 sizeof(*mgmtdev->weight), GFP_KERNEL); in hidma_mgmt_probe()
284 if (!mgmtdev->weight) { in hidma_mgmt_probe()
Dhidma_mgmt_sys.c80 tmp = mdev->weight[i]; in set_weight()
81 mdev->weight[i] = val; in set_weight()
84 mdev->weight[i] = tmp; in set_weight()
152 sprintf(buf, "%d\n", mdev->weight[chattr->index]); in show_values_channel()
/drivers/net/wireless/rsi/
Drsi_91x_core.c38 common->min_weight = tx_qinfo[ii].weight; in rsi_determine_min_weight_queue()
64 tx_qinfo[ii].weight = in rsi_recalculate_weights()
65 ((tx_qinfo[ii].weight > common->min_weight) ? in rsi_recalculate_weights()
66 tx_qinfo[ii].weight - common->min_weight : 0); in rsi_recalculate_weights()
69 tx_qinfo[ii].weight = tx_qinfo[ii].wme_params; in rsi_recalculate_weights()
73 tx_qinfo[ii].weight = 0; in rsi_recalculate_weights()
174 (common->tx_qinfo[ii].weight < common->min_weight)) && in rsi_core_determine_hal_queue()
176 common->min_weight = common->tx_qinfo[ii].weight; in rsi_core_determine_hal_queue()
/drivers/net/wireless/realtek/rtw89/
Dchan.c163 u8 weight; in rtw89_entity_recalc() local
165 weight = bitmap_weight(hal->entity_map, NUM_OF_RTW89_SUB_ENTITY); in rtw89_entity_recalc()
166 switch (weight) { in rtw89_entity_recalc()
168 rtw89_warn(rtwdev, "unknown ent chan weight: %d\n", weight); in rtw89_entity_recalc()
/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2.c298 u32 weight, max_credit; in hw_atl2_hw_init_tx_tc_rate_limit() local
305 weight = tc_weight[tc]; in hw_atl2_hw_init_tx_tc_rate_limit()
307 if (!weight && sum_weight < max_weight) in hw_atl2_hw_init_tx_tc_rate_limit()
308 weight = (max_weight - sum_weight) / in hw_atl2_hw_init_tx_tc_rate_limit()
310 else if (!weight) in hw_atl2_hw_init_tx_tc_rate_limit()
311 weight = 0x640; in hw_atl2_hw_init_tx_tc_rate_limit()
313 max_credit = max(2 * weight, fixed_max_credit_4b); in hw_atl2_hw_init_tx_tc_rate_limit()
315 weight = 0x640; in hw_atl2_hw_init_tx_tc_rate_limit()
319 hw_atl2_tps_tx_pkt_shed_tc_data_weight_set(self, tc, weight); in hw_atl2_hw_init_tx_tc_rate_limit()
/drivers/thermal/
Dgov_power_allocator.c403 total_weight += instance->weight; in allocate_power()
436 int weight; in allocate_power() local
449 weight = 1 << FRAC_BITS; in allocate_power()
451 weight = instance->weight; in allocate_power()
453 weighted_req_power[i] = frac_to_int(weight * req_power[i]); in allocate_power()
Dgov_fair_share.c87 total_weight += instance->weight; in fair_share_throttle()
101 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle()
/drivers/gpu/drm/i915/gvt/
Dvgpu.c126 if (conf->weight < 1 || conf->weight > VGPU_MAX_WEIGHT) in intel_gvt_init_vgpu_types()
138 conf->weight, vgpu_edid_str(conf->edid)); in intel_gvt_init_vgpu_types()
331 vgpu->sched_ctl.weight = conf->weight; in intel_gvt_create_vgpu()
Dsched_policy.c109 total_weight += vgpu_data->sched_ctl.weight; in gvt_balance_timeslice()
115 total_weight) * vgpu_data->sched_ctl.weight; in gvt_balance_timeslice()
319 data->sched_ctl.weight = vgpu->sched_ctl.weight; in tbs_sched_init_vgpu()
/drivers/thermal/intel/int340x_thermal/
Dacpi_thermal_rel.h21 u64 weight;
53 u64 weight;
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.c380 struct hclge_pg_weight_cmd *weight; in hclge_tm_pg_weight_cfg() local
385 weight = (struct hclge_pg_weight_cmd *)desc.data; in hclge_tm_pg_weight_cfg()
387 weight->pg_id = pg_id; in hclge_tm_pg_weight_cfg()
388 weight->dwrr = dwrr; in hclge_tm_pg_weight_cfg()
396 struct hclge_priority_weight_cmd *weight; in hclge_tm_pri_weight_cfg() local
401 weight = (struct hclge_priority_weight_cmd *)desc.data; in hclge_tm_pri_weight_cfg()
403 weight->pri_id = pri_id; in hclge_tm_pri_weight_cfg()
404 weight->dwrr = dwrr; in hclge_tm_pri_weight_cfg()
412 struct hclge_qs_weight_cmd *weight; in hclge_tm_qs_weight_cfg() local
417 weight = (struct hclge_qs_weight_cmd *)desc.data; in hclge_tm_qs_weight_cfg()
[all …]
Dhclge_tm.h255 int hclge_tm_get_qset_weight(struct hclge_dev *hdev, u16 qset_id, u8 *weight);
259 int hclge_tm_get_pri_weight(struct hclge_dev *hdev, u8 pri_id, u8 *weight);
267 int hclge_tm_get_pg_weight(struct hclge_dev *hdev, u8 pg_id, u8 *weight);
/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ets.c7 static u32 lan966x_ets_hw_cost(u32 w_min, u32 weight) in lan966x_ets_hw_cost() argument
14 res = (((DWRR_COST_BIT_WIDTH << 4) * w_min / weight) + 8) >> 4; in lan966x_ets_hw_cost()
/drivers/net/ethernet/ti/
Ddavinci_cpdma.c123 int weight; member
704 if (chan->weight) in cpdma_chan_set_descs()
705 chan->desc_num = (chan->weight * desc_num) / 100; in cpdma_chan_set_descs()
743 if (!chan->weight) in cpdma_chan_split_pool()
745 rx_weight += chan->weight; in cpdma_chan_split_pool()
747 if (!chan->weight) in cpdma_chan_split_pool()
749 tx_weight += chan->weight; in cpdma_chan_split_pool()
784 int cpdma_chan_set_weight(struct cpdma_chan *ch, int weight) in cpdma_chan_set_weight() argument
792 if (ch->weight == weight) { in cpdma_chan_set_weight()
797 ch->weight = weight; in cpdma_chan_set_weight()
[all …]
/drivers/hwmon/
Dmax127.c96 long scale, weight; in max127_process_raw() local
108 weight = (raw & MAX127_SIGN_BIT); in max127_process_raw()
110 raw -= weight; in max127_process_raw()
/drivers/powercap/
Ddtpm.c94 child->weight, child->zone.name); in __dtpm_rebalance_weight()
96 child->weight = DIV64_U64_ROUND_CLOSEST( in __dtpm_rebalance_weight()
247 power_limit * child->weight, 1024); in __set_power_limit_uw()
324 dtpm->weight = 1024; in dtpm_init()
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-intel.c503 plat->tx_queues_cfg[0].weight = 0x09; in intel_mgbe_common_data()
504 plat->tx_queues_cfg[1].weight = 0x0A; in intel_mgbe_common_data()
505 plat->tx_queues_cfg[2].weight = 0x0B; in intel_mgbe_common_data()
506 plat->tx_queues_cfg[3].weight = 0x0C; in intel_mgbe_common_data()
507 plat->tx_queues_cfg[4].weight = 0x0D; in intel_mgbe_common_data()
508 plat->tx_queues_cfg[5].weight = 0x0E; in intel_mgbe_common_data()
509 plat->tx_queues_cfg[6].weight = 0x0F; in intel_mgbe_common_data()
510 plat->tx_queues_cfg[7].weight = 0x10; in intel_mgbe_common_data()
/drivers/net/ethernet/sfc/
Def100_rep.c23 static int efx_ef100_rep_poll(struct napi_struct *napi, int weight);
344 static int efx_ef100_rep_poll(struct napi_struct *napi, int weight) in efx_ef100_rep_poll() argument
357 while (spent < weight && !list_empty(&efv->rx_list)) { in efx_ef100_rep_poll()
366 if (spent < weight) in efx_ef100_rep_poll()
/drivers/s390/crypto/
Dzcrypt_api.c616 unsigned int weight) in zcrypt_pick_queue() argument
622 atomic_add(weight, &zc->load); in zcrypt_pick_queue()
623 atomic_add(weight, &zq->load); in zcrypt_pick_queue()
632 unsigned int weight) in zcrypt_drop_queue() argument
635 atomic_sub(weight, &zc->load); in zcrypt_drop_queue()
636 atomic_sub(weight, &zq->load); in zcrypt_drop_queue()
644 unsigned int weight, in zcrypt_card_compare() argument
649 weight += atomic_read(&zc->load); in zcrypt_card_compare()
651 if (weight == pref_weight) in zcrypt_card_compare()
654 return weight < pref_weight; in zcrypt_card_compare()
[all …]
/drivers/net/ethernet/broadcom/
Dbcm4908_enet.c568 static int bcm4908_enet_poll_rx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_rx() argument
575 while (handled < weight) { in bcm4908_enet_poll_rx()
618 if (handled < weight) { in bcm4908_enet_poll_rx()
629 static int bcm4908_enet_poll_tx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_tx() argument
639 while (handled < weight && tx_ring->read_idx != tx_ring->write_idx) { in bcm4908_enet_poll_tx()
658 if (handled < weight) { in bcm4908_enet_poll_tx()
/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_b0.c393 u32 weight, max_credit; in hw_atl_b0_hw_init_tx_tc_rate_limit() local
400 weight = tc_weight[tc]; in hw_atl_b0_hw_init_tx_tc_rate_limit()
402 if (!weight && sum_weight < max_weight) in hw_atl_b0_hw_init_tx_tc_rate_limit()
403 weight = (max_weight - sum_weight) / in hw_atl_b0_hw_init_tx_tc_rate_limit()
405 else if (!weight) in hw_atl_b0_hw_init_tx_tc_rate_limit()
406 weight = 0x64; in hw_atl_b0_hw_init_tx_tc_rate_limit()
408 max_credit = max(8 * weight, fixed_max_credit); in hw_atl_b0_hw_init_tx_tc_rate_limit()
410 weight = 0x64; in hw_atl_b0_hw_init_tx_tc_rate_limit()
414 hw_atl_tps_tx_pkt_shed_tc_data_weight_set(self, tc, weight); in hw_atl_b0_hw_init_tx_tc_rate_limit()
/drivers/md/
Ddm-ps-historical-service-time.c122 static u64 fixed_ema(u64 last, u64 next, u64 weight) in fixed_ema() argument
124 last *= weight; in fixed_ema()
125 last += next * (HST_FIXED_1 - weight); in fixed_ema()

12345