Home
last modified time | relevance | path

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

12345

/drivers/gpu/drm/ingenic/
A Dingenic-ipu.c45 unsigned int weight, unsigned int offset);
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()
214 weight = clamp_val(weight, 0, 512); in jz4725b_set_coefs()
217 weight = weight >= 256 ? 512 : 0; in jz4725b_set_coefs()
245 true, weight, offset); in ingenic_ipu_set_downscale_coefs()
271 weight = 512 - 512 * weight_num / num; in ingenic_ipu_set_upscale_coefs()
[all …]
/drivers/net/can/dev/
A Drx-offload.c354 unsigned int weight) in can_rx_offload_init_queue() argument
359 offload->skb_queue_len_max = 2 << fls(weight); in can_rx_offload_init_queue()
365 weight); in can_rx_offload_init_queue()
376 unsigned int weight; in can_rx_offload_add_timestamp() local
384 weight = offload->mb_last - offload->mb_first; in can_rx_offload_add_timestamp()
387 weight = offload->mb_first - offload->mb_last; in can_rx_offload_add_timestamp()
390 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_timestamp()
395 struct can_rx_offload *offload, unsigned int weight) in can_rx_offload_add_fifo() argument
400 return can_rx_offload_init_queue(dev, offload, weight); in can_rx_offload_add_fifo()
406 unsigned int weight) in can_rx_offload_add_manual() argument
[all …]
/drivers/dma/qcom/
A Dhidma_mgmt.c104 if (mgmtdev->weight[i] > HIDMA_MAX_CHANNEL_WEIGHT) { in hidma_mgmt_setup()
112 if (mgmtdev->weight[i] == 0) in hidma_mgmt_setup()
113 mgmtdev->weight[i] = 1; in hidma_mgmt_setup()
137 u32 weight = mgmtdev->weight[i]; in hidma_mgmt_setup() local
144 val |= (weight & HIDMA_WEIGHT_MASK) << HIDMA_WRR_BIT_POS; in hidma_mgmt_setup()
277 mgmtdev->weight = devm_kcalloc(&pdev->dev, in hidma_mgmt_probe()
279 sizeof(*mgmtdev->weight), GFP_KERNEL); in hidma_mgmt_probe()
280 if (!mgmtdev->weight) { in hidma_mgmt_probe()
A 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/ethernet/marvell/octeontx2/nic/
A 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/net/wireless/rsi/
A 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/gpu/drm/xe/
A Dxe_guc_db_mgr.c54 unsigned int weight; in __fini_dbm() local
58 weight = bitmap_weight(dbm->bitmap, dbm->count); in __fini_dbm()
59 if (weight) { in __fini_dbm()
63 weight, dbm->count); in __fini_dbm()
A Dxe_guc_id_mgr.c44 unsigned int weight = bitmap_weight(idm->bitmap, idm->total); in __fini_idm() local
46 if (weight) { in __fini_idm()
50 weight, idm->total); in __fini_idm()
/drivers/net/ethernet/microchip/sparx5/lan969x/
A Dlan969x_fdma.c53 static void lan969x_fdma_tx_clear_buf(struct sparx5 *sparx5, int weight) in lan969x_fdma_tx_clear_buf() argument
81 napi_consume_skb(db->skb, weight); in lan969x_fdma_tx_clear_buf()
246 int lan969x_fdma_napi_poll(struct napi_struct *napi, int weight) in lan969x_fdma_napi_poll() argument
256 lan969x_fdma_tx_clear_buf(sparx5, weight); in lan969x_fdma_napi_poll()
259 while (counter < weight) { in lan969x_fdma_napi_poll()
294 if (counter < weight && napi_complete_done(napi, counter)) in lan969x_fdma_napi_poll()
/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
A 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/gpu/drm/i915/gvt/
A Dvgpu.c127 if (conf->weight < 1 || conf->weight > VGPU_MAX_WEIGHT) in intel_gvt_init_vgpu_types()
139 conf->weight, vgpu_edid_str(conf->edid)); in intel_gvt_init_vgpu_types()
330 vgpu->sched_ctl.weight = conf->weight; in intel_gvt_create_vgpu()
A 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()
318 data->sched_ctl.weight = vgpu->sched_ctl.weight; in tbs_sched_init_vgpu()
/drivers/net/ipa/
A Dipa_interrupt.c199 unsigned long weight; in ipa_interrupt_suspend_control() local
209 weight = bitmap_weight(interrupt->suspend_enabled, ipa->endpoint_count); in ipa_interrupt_suspend_control()
210 if (weight == 1 && !enable) in ipa_interrupt_suspend_control()
225 if (!weight && enable) in ipa_interrupt_suspend_control()
/drivers/thermal/
A Dgov_power_allocator.c418 u32 power_range, weight; in allocate_power() local
440 weight = 1 << FRAC_BITS; in allocate_power()
442 weight = instance->weight; in allocate_power()
444 pa->weighted_req_power = frac_to_int(weight * pa->req_power); in allocate_power()
657 params->total_weight += instance->weight; in power_allocator_update_weight()
A Dgov_fair_share.c72 total_weight += instance->weight; in fair_share_throttle()
85 dividend *= instance->weight; in fair_share_throttle()
A Dthermal_of.c248 int ret, weight = THERMAL_WEIGHT_DEFAULT; in thermal_of_get_cooling_spec() local
250 of_property_read_u32(map_np, "contribution", &weight); in thermal_of_get_cooling_spec()
272 c->weight = weight; in thermal_of_get_cooling_spec()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_tm.c380 struct hclge_pg_weight_cmd *weight; in hclge_tm_pg_weight_cfg() local
387 weight->pg_id = pg_id; in hclge_tm_pg_weight_cfg()
388 weight->dwrr = dwrr; in hclge_tm_pg_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
419 weight->qs_id = cpu_to_le16(qs_id); in hclge_tm_qs_weight_cfg()
420 weight->dwrr = dwrr; in hclge_tm_qs_weight_cfg()
1830 *weight = qs_weight->dwrr; in hclge_tm_get_qset_weight()
1900 *weight = priority_weight->dwrr; in hclge_tm_get_pri_weight()
[all …]
A Dhclge_tm.h258 int hclge_tm_get_qset_weight(struct hclge_dev *hdev, u16 qset_id, u8 *weight);
262 int hclge_tm_get_pri_weight(struct hclge_dev *hdev, u8 pri_id, u8 *weight);
270 int hclge_tm_get_pg_weight(struct hclge_dev *hdev, u8 pg_id, u8 *weight);
/drivers/net/ethernet/ti/
A 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/net/ethernet/microchip/lan966x/
A 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/hwmon/
A 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/thermal/intel/int340x_thermal/
A Dacpi_thermal_rel.h31 u64 weight;
89 u64 weight;
/drivers/powercap/
A 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/s390/crypto/
A Dzcrypt_api.c581 unsigned int weight) in zcrypt_pick_queue() argument
588 atomic_add(weight, &zc->load); in zcrypt_pick_queue()
589 atomic_add(weight, &zq->load); in zcrypt_pick_queue()
598 unsigned int weight) in zcrypt_drop_queue() argument
601 atomic_sub(weight, &zc->load); in zcrypt_drop_queue()
602 atomic_sub(weight, &zq->load); in zcrypt_drop_queue()
618 if (weight == pref_weight) in zcrypt_card_compare()
621 return weight < pref_weight; in zcrypt_card_compare()
626 unsigned int weight, in zcrypt_queue_compare() argument
633 if (weight == pref_weight) in zcrypt_queue_compare()
[all …]
/drivers/net/ethernet/broadcom/
A Dbcm4908_enet.c581 static int bcm4908_enet_poll_rx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_rx() argument
588 while (handled < weight) { in bcm4908_enet_poll_rx()
640 if (handled < weight) { in bcm4908_enet_poll_rx()
651 static int bcm4908_enet_poll_tx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_tx() argument
661 while (handled < weight && tx_ring->read_idx != tx_ring->write_idx) { in bcm4908_enet_poll_tx()
681 if (handled < weight) { in bcm4908_enet_poll_tx()

Completed in 76 milliseconds

12345