Home
last modified time | relevance | path

Searched refs:pfvf (Results 1 – 25 of 40) sorted by relevance

12

/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_dcbnl.c13 u8 pfc_en = pfvf->pfc_en; in otx2_check_pfc_config()
18 dev_warn(pfvf->dev, in otx2_check_pfc_config()
33 pfc_en = pfvf->pfc_en; in otx2_pfc_txschq_config()
47 dev_err(pfvf->dev, in otx2_pfc_txschq_config()
98 pfvf->pfc_schq_list[lvl][prio] = pfvf->hw.txschq_list[lvl][0]; in otx2_pfc_txschq_alloc_one()
216 otx2_smq_flush(pfvf, pfvf->pfc_schq_list[NIX_TXSCH_LVL_SMQ][prio]); in otx2_pfc_txschq_update()
243 dev_err(pfvf->dev, in otx2_pfc_txschq_update()
306 if (pfvf->pfc_en) { in otx2_config_priority_flow_ctrl()
339 dev_warn(pfvf->dev, in otx2_update_bpid_in_rqctx()
389 dev_warn(pfvf->dev, in otx2_update_bpid_in_rqctx()
[all …]
A Dotx2_common.c613 dwrr_val = mtu_to_dwrr_weight(pfvf, pfvf->tx_max_pktlen); in otx2_txschq_config()
951 if (pfvf->ptp && qidx < pfvf->hw.tx_queues) { in otx2_sq_init()
974 err = pfvf->hw_ops->sq_aq_init(pfvf, qidx, sqb_aura); in otx2_sq_init()
1123 pfvf->cq_op_addr = (__force u64 *)otx2_get_regaddr(pfvf, in otx2_config_nix_queues()
1127 pfvf->refill_wrk = devm_kcalloc(pfvf->dev, pfvf->qset.cq_cnt, in otx2_config_nix_queues()
1133 pfvf->refill_wrk[qidx].pf = pfvf; in otx2_config_nix_queues()
1146 pfvf->qset.xqe_size = pfvf->hw.xqe_size; in otx2_config_nix()
1278 devm_kfree(pfvf->dev, pfvf->qset.pool); in otx2_aura_pool_free()
1484 pfvf->hw_ops->aura_freeptr(pfvf, pool_id, bufptr); in otx2_sq_aura_pool_init()
1537 pfvf->hw_ops->aura_freeptr(pfvf, pool_id, in otx2_rq_aura_pool_init()
[all …]
A Dqos_sq.c23 if (!pfvf->qset.pool) in otx2_qos_aura_pool_free()
26 pool = &pfvf->qset.pool[pool_id]; in otx2_qos_aura_pool_free()
27 qmem_free(pfvf->dev, pool->stack); in otx2_qos_aura_pool_free()
37 struct otx2_hw *hw = &pfvf->hw; in otx2_qos_sq_aura_pool_init()
88 pfvf->hw_ops->aura_freeptr(pfvf, pool_id, bufptr); in otx2_qos_sq_aura_pool_init()
141 qmem_free(pfvf->dev, sq->sqe); in otx2_qos_sq_free_sqbs()
225 pfvf->hw.tc_tx_queues); in otx2_qos_get_qid()
245 mutex_lock(&pfvf->mbox.lock); in otx2_qos_enable_sq()
273 sq = &pfvf->qset.sq[sq_idx]; in otx2_qos_disable_sq()
287 otx2_smq_flush(pfvf, otx2_get_smq_idx(pfvf, sq_idx)); in otx2_qos_disable_sq()
[all …]
A Dqos.c28 struct otx2_hw *hw = &pfvf->hw; in otx2_qos_update_tx_netdev_queues()
38 netdev_err(pfvf->netdev, in otx2_qos_update_tx_netdev_queues()
100 mtu_to_dwrr_weight(pfvf, pfvf->tx_max_pktlen); in otx2_config_sched_shaping()
1032 netdev_dbg(pfvf->netdev, in otx2_qos_root_add()
1060 netdev_dbg(pfvf->netdev, in otx2_qos_root_add()
1227 netdev_dbg(pfvf->netdev, in otx2_qos_leaf_alloc_queue()
1320 netdev_err(pfvf->netdev, in otx2_qos_leaf_alloc_queue()
1366 netdev_dbg(pfvf->netdev, in otx2_qos_leaf_to_inner()
1497 int last = find_last_bit(pfvf->qos.qos_sq_bmap, pfvf->hw.tc_tx_queues); in otx2_qos_cur_leaf_nodes()
1588 otx2_reset_qdisc(pfvf->netdev, pfvf->hw.tx_queues + moved_qid); in otx2_qos_leaf_del()
[all …]
A Dcn10k.c34 pfvf->hw_ops = &otx2_hw_ops; in cn10k_lmtst_init()
38 pfvf->hw_ops = &cn10k_hw_ops; in cn10k_lmtst_init()
43 mutex_lock(&pfvf->mbox.lock); in cn10k_lmtst_init()
52 err = qmem_alloc(pfvf->dev, &pfvf->dync_lmt, pfvf->tot_lmt_lines, in cn10k_lmtst_init()
58 pfvf->hw.lmt_base = (u64 *)pfvf->dync_lmt->base; in cn10k_lmtst_init()
78 struct otx2_nic *pfvf = dev; in cn10k_sq_aq_init() local
90 aq->sq.smq_rr_weight = mtu_to_dwrr_weight(pfvf, pfvf->tx_max_pktlen); in cn10k_sq_aq_init()
112 struct otx2_nic *pfvf = dev; in cn10k_refill_pool_ptrs() local
141 struct otx2_nic *pfvf = dev; in cn10k_sqe_flush() local
168 if (is_dev_otx2(pfvf->pdev)) in cn10k_free_all_ipolicers()
[all …]
A Dotx2_devlink.c15 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_validate() local
18 if (!pfvf->flow_cfg) { in otx2_dl_mcam_count_validate()
39 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_set() local
41 if (!pfvf->flow_cfg) in otx2_dl_mcam_count_set()
53 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_get() local
72 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_set() local
89 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_get() local
91 ctx->val.vu8 = pfvf->flow_cfg ? pfvf->flow_cfg->ucast_flt_cnt : 0; in otx2_dl_ucast_flt_cnt_get()
101 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_validate() local
162 otx2_dl->pfvf = pfvf; in otx2_register_dl()
[all …]
A Dotx2_ethtool.c155 if (!pfvf) in otx2_get_qset_stats()
206 otx2_get_dev_stats(pfvf); in otx2_get_ethtool_stats()
263 (pfvf->hw.rx_queues + otx2_get_total_tx_queues(pfvf)); in otx2_get_sset_count()
296 if (bitmap_weight(&pfvf->rq_bmap, pfvf->hw.rx_queues) > 1) { in otx2_set_channels()
315 if (pfvf->xdp_prog) in otx2_set_channels()
322 pfvf->hw.tx_queues, pfvf->hw.rx_queues); in otx2_set_channels()
630 netdev_err(pfvf->netdev, in otx2_set_rss_hash_opts()
868 otx2_set_rss_key(pfvf); in otx2_set_rxfh()
936 return pfvf->msg_enable; in otx2_get_msglevel()
943 pfvf->msg_enable = val; in otx2_set_msglevel()
[all …]
A Dotx2_common.h181 struct otx2_nic *pfvf; member
581 struct otx2_hw *hw = &pfvf->hw; in otx2_setup_dev_hw_settings()
589 if (is_96xx_A0(pfvf->pdev)) { in otx2_setup_dev_hw_settings()
598 pfvf->hw.rq_skid = 600; in otx2_setup_dev_hw_settings()
601 if (is_96xx_B0(pfvf->pdev)) in otx2_setup_dev_hw_settings()
612 if (is_dev_cn10kb(pfvf->pdev)) in otx2_setup_dev_hw_settings()
760 struct otx2_nic *pfvf = dev; in cn10k_aura_freeptr() local
782 struct otx2_nic *pfvf = dev; in otx2_aura_freeptr() local
922 smq = pfvf->qos.qid_to_sqmap[qidx - pfvf->hw.non_qos_queues]; in otx2_get_smq_idx()
931 return pfvf->hw.non_qos_queues + pfvf->hw.tc_tx_queues; in otx2_get_total_tx_queues()
[all …]
A Dotx2_txrx.c227 pfvf->hw_ops->aura_freeptr(pfvf, qidx, iova & ~0x07ULL); in otx2_skb_add_frag()
268 pfvf->hw_ops->aura_freeptr(pfvf, qidx, in otx2_free_rcv_seg()
356 if (pfvf->xdp_prog) in otx2_rcv_pkt_handler()
481 otx2_snd_pkt_handler(pfvf, cq, &pfvf->qset.sq[qidx], in otx2_tx_napi_handler()
562 filled_cnt = pfvf->hw_ops->refill_pool_ptrs(pfvf, rx_cq); in otx2_napi_handler()
964 pfvf->hw_ops->sqe_flush(pfvf, sq, offset, qidx); in otx2_sq_append_tso()
1210 pfvf->hw_ops->sqe_flush(pfvf, sq, offset, qidx); in otx2_sq_append_skb()
1246 otx2_free_bufs(pfvf, pool, iova, pfvf->rbsize); in otx2_cleanup_rx_cqes()
1401 pfvf->hw_ops->sqe_flush(pfvf, sq, offset, qidx); in otx2_xdp_sq_append_pkt()
1444 otx2_dma_unmap_page(pfvf, iova, pfvf->rbsize, in otx2_xdp_rcv_pkt_handler()
[all …]
A Dotx2_flows.c49 mutex_lock(&pfvf->mbox.lock); in otx2_free_ntuple_mcam_entries()
62 mutex_unlock(&pfvf->mbox.lock); in otx2_free_ntuple_mcam_entries()
88 netdev_err(pfvf->netdev, in otx2_alloc_mcam_entries()
94 mutex_lock(&pfvf->mbox.lock); in otx2_alloc_mcam_entries()
155 netdev_info(pfvf->netdev, in otx2_alloc_mcam_entries()
202 netdev_info(pfvf->netdev, in otx2_mcam_entry_init()
265 pfvf->flow_cfg = devm_kzalloc(pfvf->dev, in otx2vf_mcam_flow_init()
268 if (!pfvf->flow_cfg) in otx2vf_mcam_flow_init()
271 pfvf->flow_cfg->dmacflt_bmap = devm_kcalloc(pfvf->dev, in otx2vf_mcam_flow_init()
277 flow_cfg = pfvf->flow_cfg; in otx2vf_mcam_flow_init()
[all …]
A Dcn10k_macsec.c144 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_alloc_rsrc()
204 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_free_rsrc()
263 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_rx_secy()
317 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_rx_flowid()
362 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_sc_cam()
430 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_rx_sa_plcy()
475 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_rx_sa_pn()
502 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_tx_secy()
1782 pfvf->macsec_cfg = cfg; in cn10k_mcs_init()
1814 kfree(pfvf->macsec_cfg); in cn10k_mcs_free()
[all …]
A Dcn10k.h13 static inline int mtu_to_dwrr_weight(struct otx2_nic *pfvf, int mtu) in mtu_to_dwrr_weight() argument
20 weight = mtu / pfvf->hw.dwrr_mtu; in mtu_to_dwrr_weight()
21 if (mtu % pfvf->hw.dwrr_mtu) in mtu_to_dwrr_weight()
30 int cn10k_lmtst_init(struct otx2_nic *pfvf);
31 int cn10k_free_all_ipolicers(struct otx2_nic *pfvf);
32 int cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf);
33 int cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf);
34 int cn10k_set_matchall_ipolicer_rate(struct otx2_nic *pfvf,
38 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf);
39 int cn10k_set_ipolicer_rate(struct otx2_nic *pfvf, u16 profile,
[all …]
A Dotx2_ptp.c58 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_hw_adjtime()
67 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_adjtime()
127 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_hw_settime()
236 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_tc_adjtime()
390 pfvf->ptp = NULL; in otx2_ptp_init()
417 ptp_ptr->nic = pfvf; in otx2_ptp_init()
480 pfvf->ptp = ptp_ptr; in otx2_ptp_init()
498 pfvf->ptp = NULL; in otx2_ptp_destroy()
504 if (!pfvf->ptp) in otx2_ptp_clock_index()
513 if (!pfvf->ptp) in otx2_ptp_tstamp2time()
[all …]
A Dotx2_ptp.h26 int otx2_ptp_init(struct otx2_nic *pfvf);
27 void otx2_ptp_destroy(struct otx2_nic *pfvf);
29 int otx2_ptp_clock_index(struct otx2_nic *pfvf);
30 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
A Dotx2_devlink.h13 struct otx2_nic *pfvf; member
17 int otx2_register_dl(struct otx2_nic *pfvf);
18 void otx2_unregister_dl(struct otx2_nic *pfvf);
A Dqos.h26 int otx2_qos_get_qid(struct otx2_nic *pfvf);
27 void otx2_qos_free_qid(struct otx2_nic *pfvf, int qidx);
28 int otx2_qos_enable_sq(struct otx2_nic *pfvf, int qidx);
29 void otx2_qos_disable_sq(struct otx2_nic *pfvf, int qidx);
A Dotx2_pf.c458 pf = vf_mbox->pfvf; in otx2_pfvf_mbox_handler()
617 mbox->pfvf = pf; in otx2_pfvf_mbox_init()
817 pf = af_mbox->pfvf; in otx2_pfaf_mbox_handler()
1086 mbox->pfvf = pf; in otx2_pfaf_mbox_init()
1154 mutex_lock(&pfvf->mbox.lock); in otx2_reset_mac_stats()
1697 if (is_otx2_vf(pfvf->pcifunc)) in otx2_promisc_use_mce_list()
1758 struct otx2_nic *pfvf; in otx2_dim_work() local
1769 otx2_set_irq_coalesce(pfvf); in otx2_dim_work()
2227 mutex_lock(&pfvf->mbox.lock); in otx2_config_hw_rx_tstamp()
2259 mutex_lock(&pfvf->mbox.lock); in otx2_config_hw_tx_tstamp()
[all …]
A Dotx2_dmac_flt.c89 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove() argument
95 mutex_lock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
96 req = otx2_mbox_alloc_msg_cgx_mac_addr_del(&pfvf->mbox); in otx2_dmacflt_do_remove()
98 mutex_unlock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
104 err = otx2_sync_mbox_msg(&pfvf->mbox); in otx2_dmacflt_do_remove()
105 mutex_unlock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_npa.c70 struct rvu_pfvf *pfvf; in rvu_npa_aq_enq_inst() local
75 if (!pfvf->aura_ctx || req->aura_id >= pfvf->aura_ctx->qsize) in rvu_npa_aq_enq_inst()
218 if (!pfvf->pool_ctx || !pfvf->aura_ctx) in npa_lf_hwctx_disable()
311 kfree(pfvf->aura_bmap); in npa_ctx_free()
312 pfvf->aura_bmap = NULL; in npa_ctx_free()
315 pfvf->aura_ctx = NULL; in npa_ctx_free()
321 pfvf->pool_ctx = NULL; in npa_ctx_free()
335 struct rvu_pfvf *pfvf; in rvu_mbox_handler_npa_lf_alloc() local
374 if (!pfvf->aura_bmap) in rvu_mbox_handler_npa_lf_alloc()
385 if (!pfvf->pool_bmap) in rvu_mbox_handler_npa_lf_alloc()
[all …]
A Drvu.c378 attach ? pfvf->sso++ : pfvf->sso--; in rvu_update_rsrc_map()
382 attach ? pfvf->ssow++ : pfvf->ssow--; in rvu_update_rsrc_map()
386 attach ? pfvf->timlfs++ : pfvf->timlfs--; in rvu_update_rsrc_map()
390 attach ? pfvf->cptlfs++ : pfvf->cptlfs--; in rvu_update_rsrc_map()
394 attach ? pfvf->cpt1_lfs++ : pfvf->cpt1_lfs--; in rvu_update_rsrc_map()
634 pfvf->msix_lfmap = devm_kcalloc(rvu->dev, pfvf->msix.max, in rvu_setup_msix_resources()
790 ether_addr_copy(pfvf->default_mac, pfvf->mac_addr); in rvu_setup_pfvf_macaddress()
806 ether_addr_copy(pfvf->default_mac, pfvf->mac_addr); in rvu_setup_pfvf_macaddress()
1258 return pfvf->sso; in rvu_get_rsrc_mapcount()
1260 return pfvf->ssow; in rvu_get_rsrc_mapcount()
[all …]
A Drvu_switch.c13 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_enable_lbk_link() local
16 nix_hw = get_nix_hw(rvu->hw, pfvf->nix_blkaddr); in rvu_switch_enable_lbk_link()
18 rvu_nix_tx_tl2_cfg(rvu, pfvf->nix_blkaddr, pcifunc, in rvu_switch_enable_lbk_link()
27 struct rvu_pfvf *pfvf; in rvu_switch_install_rx_rule() local
29 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule()
34 if (!test_bit(NIXLF_INITIALIZED, &pfvf->flags)) in rvu_switch_install_rx_rule()
42 req.channel = pfvf->rx_chan_base; in rvu_switch_install_rx_rule()
44 req.intf = pfvf->nix_rx_intf; in rvu_switch_install_rx_rule()
55 struct rvu_pfvf *pfvf; in rvu_switch_install_tx_rule() local
58 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_tx_rule()
[all …]
A Drvu_sdp.c56 struct rvu_pfvf *pfvf; in rvu_sdp_init() local
61 pfvf = &rvu->pf[sdp_pf_num[0]]; in rvu_sdp_init()
62 pfvf->sdp_info = &rvu->fwdata->channel_data.info; in rvu_sdp_init()
72 pfvf = &rvu->pf[sdp_pf_num[i]]; in rvu_sdp_init()
74 pfvf->sdp_info = devm_kzalloc(rvu->dev, in rvu_sdp_init()
77 if (!pfvf->sdp_info) { in rvu_sdp_init()
97 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_set_sdp_chan_info() local
99 memcpy(pfvf->sdp_info, &req->info, sizeof(struct sdp_node_info)); in rvu_mbox_handler_set_sdp_chan_info()
A Drvu_nix.c356 pfvf->tx_chan_base = pfvf->rx_chan_base; in nix_interface_init()
445 pfvf->tx_chan_base = pfvf->rx_chan_base; in nix_interface_init()
446 pfvf->tx_chan_cnt = pfvf->rx_chan_cnt; in nix_interface_init()
459 pfvf->rx_chan_base, pfvf->mac_addr); in nix_interface_init()
1017 if (!pfvf->rq_ctx || req->qidx >= pfvf->rq_ctx->qsize) in rvu_nix_blk_aq_enq_inst()
1021 if (!pfvf->sq_ctx || req->qidx >= pfvf->sq_ctx->qsize) in rvu_nix_blk_aq_enq_inst()
1025 if (!pfvf->cq_ctx || req->qidx >= pfvf->cq_ctx->qsize) in rvu_nix_blk_aq_enq_inst()
1330 if (!pfvf->cq_ctx || !pfvf->sq_ctx || !pfvf->rq_ctx) in nix_lf_hwctx_disable()
4519 pfvf->minlen && pfvf->minlen < minlen) in nix_find_link_frs()
4528 pfvf->minlen && pfvf->minlen < minlen) in nix_find_link_frs()
[all …]
A Drvu_cn10k.c120 if (!pfvf->lmt_base_addr) in rvu_update_lmtaddr()
121 pfvf->lmt_base_addr = val; in rvu_update_lmtaddr()
209 if (!pfvf->lmt_map_ent_w1) in rvu_mbox_handler_lmtst_tbl_setup()
210 pfvf->lmt_map_ent_w1 = val; in rvu_mbox_handler_lmtst_tbl_setup()
249 if (pfvf->lmt_base_addr || pfvf->lmt_map_ent_w1) { in rvu_reset_lmt_map_tbl()
255 if (pfvf->lmt_base_addr) { in rvu_reset_lmt_map_tbl()
257 &pfvf->lmt_base_addr, in rvu_reset_lmt_map_tbl()
263 pfvf->lmt_base_addr = 0; in rvu_reset_lmt_map_tbl()
268 if (pfvf->lmt_map_ent_w1) { in rvu_reset_lmt_map_tbl()
271 &pfvf->lmt_map_ent_w1, in rvu_reset_lmt_map_tbl()
[all …]
A Drvu_debugfs.c845 struct rvu_pfvf *pfvf; in rvu_dbg_rvu_pf_cgx_map_display() local
924 if (!pfvf->aura_ctx) { in print_npa_qsize()
933 if (!pfvf->pool_ctx) { in print_npa_qsize()
1702 if (!pfvf->sq_ctx) { in rvu_dbg_nix_tm_tree_write()
1959 if (!pfvf->sq_ctx) { in rvu_dbg_nix_tm_topo_write()
2499 if (!pfvf->cq_ctx) in print_nix_qsize()
2502 print_nix_qctx_qsize(filp, pfvf->cq_ctx->qsize, pfvf->cq_bmap, in print_nix_qsize()
2505 if (!pfvf->rq_ctx) in print_nix_qsize()
2508 print_nix_qctx_qsize(filp, pfvf->rq_ctx->qsize, pfvf->rq_bmap, in print_nix_qsize()
2511 if (!pfvf->sq_ctx) in print_nix_qsize()
[all …]

Completed in 125 milliseconds

12