Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_common.c593 dwrr_val = mtu_to_dwrr_weight(pfvf, pfvf->tx_max_pktlen); in otx2_txschq_config()
848 if (pfvf->ptp && qidx < pfvf->hw.tx_queues) { in otx2_sq_init()
867 return pfvf->hw_ops->sq_aq_init(pfvf, qidx, sqb_aura); in otx2_sq_init()
880 non_xdp_queues = pfvf->hw.rx_queues + pfvf->hw.tx_queues; in otx2_cq_init()
909 (pfvf->hw.rqpool_cnt != pfvf->hw.rx_queues)) ? 0 : qidx; in otx2_cq_init()
1016 pfvf->cq_op_addr = (__force u64 *)otx2_get_regaddr(pfvf, in otx2_config_nix_queues()
1020 pfvf->refill_wrk = devm_kcalloc(pfvf->dev, pfvf->qset.cq_cnt, in otx2_config_nix_queues()
1026 pfvf->refill_wrk[qidx].pf = pfvf; in otx2_config_nix_queues()
1150 devm_kfree(pfvf->dev, pfvf->qset.pool); in otx2_aura_pool_free()
1331 pfvf->hw_ops->aura_freeptr(pfvf, pool_id, bufptr); in otx2_sq_aura_pool_init()
[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
91 aq->sq.smq_rr_weight = mtu_to_dwrr_weight(pfvf, pfvf->tx_max_pktlen); in cn10k_sq_aq_init()
113 struct otx2_nic *pfvf = dev; in cn10k_refill_pool_ptrs() local
140 struct otx2_nic *pfvf = dev; in cn10k_sqe_flush() local
167 if (is_dev_otx2(pfvf->pdev)) in cn10k_free_all_ipolicers()
[all …]
A Dotx2_ethtool.c149 if (!pfvf) in otx2_get_qset_stats()
200 otx2_get_dev_stats(pfvf); in otx2_get_ethtool_stats()
257 (pfvf->hw.rx_queues + pfvf->hw.tx_queues); in otx2_get_sset_count()
290 if (bitmap_weight(&pfvf->rq_bmap, pfvf->hw.rx_queues) > 1) { in otx2_set_channels()
306 pfvf->qset.cq_cnt = pfvf->hw.tx_queues + pfvf->hw.rx_queues; in otx2_set_channels()
312 pfvf->hw.tx_queues, pfvf->hw.rx_queues); in otx2_set_channels()
550 netdev_err(pfvf->netdev, in otx2_set_rss_hash_opts()
782 otx2_set_rss_key(pfvf); in otx2_set_rxfh_context()
863 return pfvf->msg_enable; in otx2_get_msglevel()
870 pfvf->msg_enable = val; in otx2_set_msglevel()
[all …]
A Dotx2_txrx.c220 pfvf->hw_ops->aura_freeptr(pfvf, qidx, iova & ~0x07ULL); in otx2_skb_add_frag()
261 pfvf->hw_ops->aura_freeptr(pfvf, qidx, in otx2_free_rcv_seg()
350 if (otx2_xdp_rcv_pkt_handler(pfvf, pfvf->xdp_prog, cqe, cq)) in otx2_rcv_pkt_handler()
455 otx2_xdp_snd_pkt_handler(pfvf, &pfvf->qset.sq[qidx], in otx2_tx_napi_handler()
513 pfvf->hw_ops->refill_pool_ptrs(pfvf, rx_cq); in otx2_napi_handler()
888 pfvf->hw_ops->sqe_flush(pfvf, sq, offset, qidx); in otx2_sq_append_tso()
1008 pfvf->hw_ops->sqe_flush(pfvf, sq, offset, qidx); in otx2_sq_append_skb()
1039 otx2_dma_unmap_page(pfvf, iova, pfvf->rbsize, DMA_FROM_DEVICE); in otx2_cleanup_rx_cqes()
1151 pfvf->hw_ops->sqe_flush(pfvf, sq, offset, qidx); in otx2_xdp_sq_append_pkt()
1194 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()
179 mutex_lock(&pfvf->mbox.lock); in otx2_mcam_entry_init()
200 netdev_info(pfvf->netdev, in otx2_mcam_entry_init()
237 pfvf->flow_cfg = devm_kzalloc(pfvf->dev, in otx2vf_mcam_flow_init()
240 if (!pfvf->flow_cfg) in otx2vf_mcam_flow_init()
243 flow_cfg = pfvf->flow_cfg; in otx2vf_mcam_flow_init()
[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()
24 flow_cfg = pfvf->flow_cfg; in otx2_dl_mcam_count_validate()
38 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_set() local
40 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
56 if (!pfvf->flow_cfg) { in otx2_dl_mcam_count_get()
86 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_devlink_info_get() local
113 otx2_dl->pfvf = pfvf; in otx2_register_dl()
114 pfvf->dl = otx2_dl; in otx2_register_dl()
[all …]
A Dotx2_common.h162 struct otx2_nic *pfvf; member
440 struct otx2_hw *hw = &pfvf->hw; in otx2_setup_dev_hw_settings()
448 if (is_96xx_A0(pfvf->pdev)) { in otx2_setup_dev_hw_settings()
452 pfvf->hw.cq_qcount_wait = 0x0; in otx2_setup_dev_hw_settings()
457 pfvf->hw.rq_skid = 600; in otx2_setup_dev_hw_settings()
460 if (is_96xx_B0(pfvf->pdev)) in otx2_setup_dev_hw_settings()
463 if (!is_dev_otx2(pfvf->pdev)) { in otx2_setup_dev_hw_settings()
613 struct otx2_nic *pfvf = dev; in cn10k_aura_freeptr() local
634 struct otx2_nic *pfvf = dev; in otx2_aura_freeptr() local
643 return pfvf->hw.rqpool_cnt + idx; in otx2_get_pool_idx()
[all …]
A Dotx2_ptp.c110 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_adjtime()
112 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_adjtime()
125 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_gettime()
144 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_settime()
229 pfvf->ptp = NULL; in otx2_ptp_init()
233 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_init()
256 ptp_ptr->nic = pfvf; in otx2_ptp_init()
297 pfvf->ptp = ptp_ptr; in otx2_ptp_init()
313 pfvf->ptp = NULL; in otx2_ptp_destroy()
319 if (!pfvf->ptp) in otx2_ptp_clock_index()
[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.h11 int otx2_ptp_init(struct otx2_nic *pfvf);
12 void otx2_ptp_destroy(struct otx2_nic *pfvf);
14 int otx2_ptp_clock_index(struct otx2_nic *pfvf);
15 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
A Dotx2_dmac_flt.c73 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove() argument
79 mutex_lock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
80 req = otx2_mbox_alloc_msg_cgx_mac_addr_del(&pfvf->mbox); in otx2_dmacflt_do_remove()
82 mutex_unlock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
88 err = otx2_sync_mbox_msg(&pfvf->mbox); in otx2_dmacflt_do_remove()
89 mutex_unlock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
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 Dotx2_pf.c464 pf = vf_mbox->pfvf; in otx2_pfvf_mbox_handler()
624 mbox->pfvf = pf; in otx2_pfvf_mbox_init()
826 pf = af_mbox->pfvf; in otx2_pfaf_mbox_handler()
1049 mbox->pfvf = pf; in otx2_pfaf_mbox_init()
1938 mutex_lock(&pfvf->mbox.lock); in otx2_config_hw_rx_tstamp()
1944 mutex_unlock(&pfvf->mbox.lock); in otx2_config_hw_rx_tstamp()
1950 mutex_unlock(&pfvf->mbox.lock); in otx2_config_hw_rx_tstamp()
1954 mutex_unlock(&pfvf->mbox.lock); in otx2_config_hw_rx_tstamp()
1970 mutex_lock(&pfvf->mbox.lock); in otx2_config_hw_tx_tstamp()
1986 mutex_unlock(&pfvf->mbox.lock); in otx2_config_hw_tx_tstamp()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_npa.c61 struct rvu_pfvf *pfvf; in rvu_npa_aq_enq_inst() local
66 if (!pfvf->aura_ctx || req->aura_id >= pfvf->aura_ctx->qsize) in rvu_npa_aq_enq_inst()
209 if (!pfvf->pool_ctx || !pfvf->aura_ctx) in npa_lf_hwctx_disable()
302 kfree(pfvf->aura_bmap); in npa_ctx_free()
303 pfvf->aura_bmap = NULL; in npa_ctx_free()
306 pfvf->aura_ctx = NULL; in npa_ctx_free()
312 pfvf->pool_ctx = NULL; in npa_ctx_free()
326 struct rvu_pfvf *pfvf; in rvu_mbox_handler_npa_lf_alloc() local
365 if (!pfvf->aura_bmap) in rvu_mbox_handler_npa_lf_alloc()
376 if (!pfvf->pool_bmap) in rvu_mbox_handler_npa_lf_alloc()
[all …]
A Drvu.c373 attach ? pfvf->sso++ : pfvf->sso--; in rvu_update_rsrc_map()
377 attach ? pfvf->ssow++ : pfvf->ssow--; in rvu_update_rsrc_map()
381 attach ? pfvf->timlfs++ : pfvf->timlfs--; in rvu_update_rsrc_map()
385 attach ? pfvf->cptlfs++ : pfvf->cptlfs--; in rvu_update_rsrc_map()
389 attach ? pfvf->cpt1_lfs++ : pfvf->cpt1_lfs--; in rvu_update_rsrc_map()
626 pfvf->msix_lfmap = devm_kcalloc(rvu->dev, pfvf->msix.max, in rvu_setup_msix_resources()
782 ether_addr_copy(pfvf->default_mac, pfvf->mac_addr); in rvu_setup_pfvf_macaddress()
798 ether_addr_copy(pfvf->default_mac, pfvf->mac_addr); in rvu_setup_pfvf_macaddress()
1225 return pfvf->sso; in rvu_get_rsrc_mapcount()
1227 return pfvf->ssow; in rvu_get_rsrc_mapcount()
[all …]
A Drvu_nix.c321 pfvf->tx_chan_base = pfvf->rx_chan_base; in nix_interface_init()
417 pfvf->tx_chan_base = pfvf->rx_chan_base; in nix_interface_init()
418 pfvf->tx_chan_cnt = pfvf->rx_chan_cnt; in nix_interface_init()
431 pfvf->rx_chan_base, pfvf->mac_addr); in nix_interface_init()
868 if (!pfvf->rq_ctx || req->qidx >= pfvf->rq_ctx->qsize) in rvu_nix_blk_aq_enq_inst()
872 if (!pfvf->sq_ctx || req->qidx >= pfvf->sq_ctx->qsize) in rvu_nix_blk_aq_enq_inst()
876 if (!pfvf->cq_ctx || req->qidx >= pfvf->cq_ctx->qsize) in rvu_nix_blk_aq_enq_inst()
1180 if (!pfvf->cq_ctx || !pfvf->sq_ctx || !pfvf->rq_ctx) in nix_lf_hwctx_disable()
3838 pfvf->minlen && pfvf->minlen < minlen) in nix_find_link_frs()
3847 pfvf->minlen && pfvf->minlen < minlen) in nix_find_link_frs()
[all …]
A Drvu_switch.c16 struct rvu_pfvf *pfvf; in rvu_switch_install_rx_rule() local
18 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule()
23 if (!test_bit(NIXLF_INITIALIZED, &pfvf->flags)) in rvu_switch_install_rx_rule()
26 ether_addr_copy(req.packet.dmac, pfvf->mac_addr); in rvu_switch_install_rx_rule()
31 req.channel = pfvf->rx_chan_base; in rvu_switch_install_rx_rule()
33 req.intf = pfvf->nix_rx_intf; in rvu_switch_install_rx_rule()
44 struct rvu_pfvf *pfvf; in rvu_switch_install_tx_rule() local
47 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_tx_rule()
52 if (!test_bit(NIXLF_INITIALIZED, &pfvf->flags)) in rvu_switch_install_tx_rule()
56 ether_addr_copy(req.packet.dmac, pfvf->mac_addr); in rvu_switch_install_tx_rule()
[all …]
A Drvu_sdp.c52 struct rvu_pfvf *pfvf; in rvu_sdp_init() local
60 pfvf = &rvu->pf[sdp_pf_num[i]]; in rvu_sdp_init()
62 pfvf->sdp_info = devm_kzalloc(rvu->dev, in rvu_sdp_init()
65 if (!pfvf->sdp_info) in rvu_sdp_init()
82 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_set_sdp_chan_info() local
84 memcpy(pfvf->sdp_info, &req->info, sizeof(struct sdp_node_info)); in rvu_mbox_handler_set_sdp_chan_info()
A Drvu_cn10k.c117 if (!pfvf->lmt_base_addr) in rvu_update_lmtaddr()
118 pfvf->lmt_base_addr = val; in rvu_update_lmtaddr()
206 if (!pfvf->lmt_map_ent_w1) in rvu_mbox_handler_lmtst_tbl_setup()
207 pfvf->lmt_map_ent_w1 = val; in rvu_mbox_handler_lmtst_tbl_setup()
246 if (pfvf->lmt_base_addr || pfvf->lmt_map_ent_w1) { in rvu_reset_lmt_map_tbl()
252 if (pfvf->lmt_base_addr) { in rvu_reset_lmt_map_tbl()
254 &pfvf->lmt_base_addr, in rvu_reset_lmt_map_tbl()
260 pfvf->lmt_base_addr = 0; in rvu_reset_lmt_map_tbl()
265 if (pfvf->lmt_map_ent_w1) { in rvu_reset_lmt_map_tbl()
268 &pfvf->lmt_map_ent_w1, in rvu_reset_lmt_map_tbl()
[all …]
A Drvu_debugfs.c501 struct rvu_pfvf *pfvf; in rvu_dbg_rvu_pf_cgx_map_display() local
575 if (!pfvf->aura_ctx) { in print_npa_qsize()
584 if (!pfvf->pool_ctx) { in print_npa_qsize()
604 struct rvu_pfvf *pfvf; in rvu_dbg_qsize_display() local
1604 if (!pfvf->sq_ctx) { in write_nix_queue_ctx()
1765 if (!pfvf->cq_ctx) in print_nix_qsize()
1768 print_nix_qctx_qsize(filp, pfvf->cq_ctx->qsize, pfvf->cq_bmap, in print_nix_qsize()
1771 if (!pfvf->rq_ctx) in print_nix_qsize()
1774 print_nix_qctx_qsize(filp, pfvf->rq_ctx->qsize, pfvf->rq_bmap, in print_nix_qsize()
1777 if (!pfvf->sq_ctx) in print_nix_qsize()
[all …]
A Drvu_npc_fs.c1126 rule->intf = pfvf->nix_tx_intf; in npc_install_flow()
1128 rule->intf = pfvf->nix_rx_intf; in npc_install_flow()
1133 pfvf->def_ucast_rule = rule; in npc_install_flow()
1139 set_bit(PF_SET_VF_MAC, &pfvf->flags); in npc_install_flow()
1161 struct rvu_pfvf *pfvf; in rvu_mbox_handler_npc_install_flow() local
1204 pfvf = rvu_get_pfvf(rvu, target); in rvu_mbox_handler_npc_install_flow()
1208 set_bit(PF_SET_VF_CFG, &pfvf->flags); in rvu_mbox_handler_npc_install_flow()
1242 set_bit(PF_SET_VF_MAC, &pfvf->flags); in rvu_mbox_handler_npc_install_flow()
1320 struct rvu_pfvf *pfvf) in npc_update_dmac_value() argument
1340 write_req.intf = pfvf->nix_rx_intf; in npc_update_dmac_value()
[all …]
A Drvu_npc.c150 struct rvu_pfvf *pfvf; in npc_get_ucast_mcam_index() local
406 struct rvu_pfvf *pfvf; in npc_fixup_vf_rule() local
633 req.intf = pfvf->nix_rx_intf; in rvu_npc_install_ucast_entry()
717 req.intf = pfvf->nix_rx_intf; in rvu_npc_install_promisc_entry()
750 struct rvu_pfvf *pfvf; in rvu_npc_install_bcast_match_entry() local
793 req.intf = pfvf->nix_rx_intf; in rvu_npc_install_bcast_match_entry()
829 struct rvu_pfvf *pfvf; in rvu_npc_install_allmulti_entry() local
956 struct rvu_pfvf *pfvf; in rvu_npc_update_flowkey_alg_idx() local
1000 if (pfvf->def_ucast_rule) in rvu_npc_update_flowkey_alg_idx()
1027 struct rvu_pfvf *pfvf; in npc_enadis_default_mce_entry() local
[all …]
A Drvu_cgx.c108 struct rvu_pfvf *pfvf = &rvu->pf[pf]; in rvu_map_cgx_nix_block() local
113 pfvf->nix_blkaddr = BLKADDR_NIX0; in rvu_map_cgx_nix_block()
115 pfvf->nix_blkaddr = BLKADDR_NIX1; in rvu_map_cgx_nix_block()
696 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_cgx_ptp_rx_cfg() local
724 pfvf->hw_rx_tstamp_en = enable; in rvu_cgx_ptp_rx_cfg()
948 struct rvu_pfvf *parent_pf, *pfvf; in rvu_cgx_start_stop_io() local
955 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_cgx_start_stop_io()
959 if (start && pfvf->cgx_in_use) in rvu_cgx_start_stop_io()
961 if (!start && !pfvf->cgx_in_use) in rvu_cgx_start_stop_io()
987 pfvf->cgx_in_use = start; in rvu_cgx_start_stop_io()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dsmt.c209 static struct smt_entry *t4_smt_alloc_switching(struct adapter *adap, u16 pfvf, in t4_smt_alloc_switching() argument
222 e->pfvf = pfvf; in t4_smt_alloc_switching()
A Dsmt.h60 u16 pfvf; member

Completed in 668 milliseconds

12