Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.c20 struct otx2_nic *pfvf, int qidx) in otx2_nix_rq_op_stats() argument
25 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_RQ_OP_OCTS); in otx2_nix_rq_op_stats()
28 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_RQ_OP_PKTS); in otx2_nix_rq_op_stats()
33 struct otx2_nic *pfvf, int qidx) in otx2_nix_sq_op_stats() argument
38 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_SQ_OP_OCTS); in otx2_nix_sq_op_stats()
41 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_SQ_OP_PKTS); in otx2_nix_sq_op_stats()
45 void otx2_update_lmac_stats(struct otx2_nic *pfvf) in otx2_update_lmac_stats() argument
49 if (!netif_running(pfvf->netdev)) in otx2_update_lmac_stats()
52 mutex_lock(&pfvf->mbox.lock); in otx2_update_lmac_stats()
53 req = otx2_mbox_alloc_msg_cgx_stats(&pfvf->mbox); in otx2_update_lmac_stats()
[all …]
Dotx2_ethtool.c72 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo() local
75 strlcpy(info->bus_info, pci_name(pfvf->pdev), sizeof(info->bus_info)); in otx2_get_drvinfo()
78 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) in otx2_get_qset_strings() argument
80 int start_qidx = qset * pfvf->hw.rx_queues; in otx2_get_qset_strings()
83 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) { in otx2_get_qset_strings()
90 for (qidx = 0; qidx < pfvf->hw.tx_queues; qidx++) { in otx2_get_qset_strings()
101 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings() local
117 otx2_get_qset_strings(pfvf, &data, 0); in otx2_get_strings()
133 static void otx2_get_qset_stats(struct otx2_nic *pfvf, in otx2_get_qset_stats() argument
138 if (!pfvf) in otx2_get_qset_stats()
[all …]
Dotx2_txrx.c46 static dma_addr_t otx2_dma_map_skb_frag(struct otx2_nic *pfvf, in otx2_dma_map_skb_frag() argument
64 return otx2_dma_map_page(pfvf, page, offset, *len, DMA_TO_DEVICE); in otx2_dma_map_skb_frag()
67 static void otx2_dma_unmap_skb_frags(struct otx2_nic *pfvf, struct sg_list *sg) in otx2_dma_unmap_skb_frags() argument
72 otx2_dma_unmap_page(pfvf, sg->dma_addr[seg], in otx2_dma_unmap_skb_frags()
78 static void otx2_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_snd_pkt_handler() argument
91 if (unlikely(snd_comp->status) && netif_msg_tx_err(pfvf)) in otx2_snd_pkt_handler()
93 pfvf->netdev->name, cq->cint_idx, in otx2_snd_pkt_handler()
104 err = otx2_ptp_tstamp2time(pfvf, timestamp, &tsns); in otx2_snd_pkt_handler()
115 otx2_dma_unmap_skb_frags(pfvf, sg); in otx2_snd_pkt_handler()
120 static void otx2_set_rxtstamp(struct otx2_nic *pfvf, in otx2_set_rxtstamp() argument
[all …]
Dotx2_ptp.c66 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_adjtime() local
68 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_adjtime()
70 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_adjtime()
80 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_gettime() local
83 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_gettime()
85 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_gettime()
97 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_settime() local
102 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_settime()
104 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_settime()
115 int otx2_ptp_init(struct otx2_nic *pfvf) in otx2_ptp_init() argument
[all …]
Dotx2_common.h148 struct otx2_nic *pfvf; member
295 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings() argument
297 struct otx2_hw *hw = &pfvf->hw; in otx2_setup_dev_hw_settings()
299 pfvf->hw.cq_time_wait = CQ_TIMER_THRESH_DEFAULT; in otx2_setup_dev_hw_settings()
300 pfvf->hw.cq_ecount_wait = CQ_CQE_THRESH_DEFAULT; in otx2_setup_dev_hw_settings()
301 pfvf->hw.cq_qcount_wait = CQ_QCOUNT_DEFAULT; in otx2_setup_dev_hw_settings()
305 if (is_96xx_A0(pfvf->pdev)) { in otx2_setup_dev_hw_settings()
309 pfvf->hw.cq_qcount_wait = 0x0; in otx2_setup_dev_hw_settings()
314 pfvf->hw.rq_skid = 600; in otx2_setup_dev_hw_settings()
315 pfvf->qset.rqe_cnt = Q_COUNT(Q_SIZE_1K); in otx2_setup_dev_hw_settings()
[all …]
Dotx2_ptp.h7 int otx2_ptp_init(struct otx2_nic *pfvf);
8 void otx2_ptp_destroy(struct otx2_nic *pfvf);
10 int otx2_ptp_clock_index(struct otx2_nic *pfvf);
11 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
Dotx2_pf.c46 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable);
47 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable);
456 pf = vf_mbox->pfvf; in otx2_pfvf_mbox_handler()
491 struct otx2_nic *pf = vf_mbox->pfvf; in otx2_pfvf_mbox_up_handler()
608 mbox->pfvf = pf; in otx2_pfvf_mbox_init()
807 pf = af_mbox->pfvf; in otx2_pfaf_mbox_handler()
910 struct otx2_nic *pf = af_mbox->pfvf; in otx2_pfaf_mbox_up_handler()
1030 mbox->pfvf = pf; in otx2_pfaf_mbox_init()
1769 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable) in otx2_config_hw_rx_tstamp() argument
1774 if (pfvf->flags & OTX2_FLAG_RX_TSTAMP_ENABLED && enable) in otx2_config_hw_rx_tstamp()
[all …]
Dotx2_vf.c100 otx2vf_process_vfaf_mbox_msg(af_mbox->pfvf, msg); in otx2vf_vfaf_mbox_handler()
153 vf = vf_mbox->pfvf; in otx2vf_vfaf_mbox_up_handler()
293 mbox->pfvf = vf; in otx2vf_vfaf_mbox_init()
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npa.c64 struct rvu_pfvf *pfvf; in rvu_npa_aq_enq_inst() local
68 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_aq_enq_inst()
69 if (!pfvf->aura_ctx || req->aura_id >= pfvf->aura_ctx->qsize) in rvu_npa_aq_enq_inst()
73 if (!pfvf->npalf || blkaddr < 0) in rvu_npa_aq_enq_inst()
124 if (req->aura.pool_addr >= pfvf->pool_ctx->qsize) { in rvu_npa_aq_enq_inst()
129 req->aura.pool_addr = pfvf->pool_ctx->iova + in rvu_npa_aq_enq_inst()
130 (req->aura.pool_addr * pfvf->pool_ctx->entry_sz); in rvu_npa_aq_enq_inst()
161 __set_bit(req->aura_id, pfvf->aura_bmap); in rvu_npa_aq_enq_inst()
164 (test_bit(req->aura_id, pfvf->aura_bmap) & in rvu_npa_aq_enq_inst()
167 __set_bit(req->aura_id, pfvf->aura_bmap); in rvu_npa_aq_enq_inst()
[all …]
Drvu_nix.c73 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in is_nixlf_attached() local
77 if (!pfvf->nixlf || blkaddr < 0) in is_nixlf_attached()
96 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_nixlf() local
101 if (!pfvf->nixlf || blkaddr < 0) in nix_get_nixlf()
189 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_interface_init() local
200 pfvf->cgx_lmac = rvu->pf2cgxlmac_map[pf]; in nix_interface_init()
201 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init()
209 pfvf->rx_chan_base = NIX_CHAN_CGX_LMAC_CHX(cgx_id, lmac_id, 0); in nix_interface_init()
210 pfvf->tx_chan_base = pfvf->rx_chan_base; in nix_interface_init()
211 pfvf->rx_chan_cnt = 1; in nix_interface_init()
[all …]
Drvu.c30 static void rvu_set_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf,
32 static void rvu_clear_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf,
283 static void rvu_update_rsrc_map(struct rvu *rvu, struct rvu_pfvf *pfvf, in rvu_update_rsrc_map() argument
311 pfvf->npalf = attach ? true : false; in rvu_update_rsrc_map()
312 num_lfs = pfvf->npalf; in rvu_update_rsrc_map()
315 pfvf->nixlf = attach ? true : false; in rvu_update_rsrc_map()
316 num_lfs = pfvf->nixlf; in rvu_update_rsrc_map()
319 attach ? pfvf->sso++ : pfvf->sso--; in rvu_update_rsrc_map()
320 num_lfs = pfvf->sso; in rvu_update_rsrc_map()
323 attach ? pfvf->ssow++ : pfvf->ssow--; in rvu_update_rsrc_map()
[all …]
Drvu_debugfs.c140 static void print_nix_qsize(struct seq_file *filp, struct rvu_pfvf *pfvf);
258 static void print_npa_qsize(struct seq_file *m, struct rvu_pfvf *pfvf) in print_npa_qsize() argument
266 if (!pfvf->aura_ctx) { in print_npa_qsize()
269 bitmap_print_to_pagebuf(false, buf, pfvf->aura_bmap, in print_npa_qsize()
270 pfvf->aura_ctx->qsize); in print_npa_qsize()
271 seq_printf(m, "Aura count : %d\n", pfvf->aura_ctx->qsize); in print_npa_qsize()
275 if (!pfvf->pool_ctx) { in print_npa_qsize()
278 bitmap_print_to_pagebuf(false, buf, pfvf->pool_bmap, in print_npa_qsize()
279 pfvf->pool_ctx->qsize); in print_npa_qsize()
280 seq_printf(m, "Pool count : %d\n", pfvf->pool_ctx->qsize); in print_npa_qsize()
[all …]
Drvu_cgx.c705 struct rvu_pfvf *parent_pf, *pfvf; in rvu_cgx_start_stop_io() local
712 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_cgx_start_stop_io()
716 if (start && pfvf->cgx_in_use) in rvu_cgx_start_stop_io()
718 if (!start && !pfvf->cgx_in_use) in rvu_cgx_start_stop_io()
744 pfvf->cgx_in_use = start; in rvu_cgx_start_stop_io()
Drvu_npc.c39 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf) in rvu_npc_set_pkind() argument
373 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npc_install_ucast_entry() local
427 memcpy(&pfvf->entry, &entry, sizeof(entry)); in rvu_npc_install_ucast_entry()
515 struct rvu_pfvf *pfvf; in rvu_npc_install_bcast_match_entry() local
556 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npc_install_bcast_match_entry()
557 action.index = pfvf->bcast_mce_idx; in rvu_npc_install_bcast_match_entry()
2260 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npc_update_rxvlan() local
2269 if (!pfvf->rxvlan) in rvu_npc_update_rxvlan()
2274 pfvf->entry.action = npc_get_mcam_action(rvu, mcam, blkaddr, index); in rvu_npc_update_rxvlan()
2276 npc_config_mcam_entry(rvu, mcam, blkaddr, pfvf->rxvlan_index, in rvu_npc_update_rxvlan()
[all …]
Drvu.h493 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf);
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/
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()
Dsmt.h60 u16 pfvf; member
/Linux-v5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls.h218 unsigned int pfvf; member
Dchtls_main.c259 cdev->pfvf = FW_VIID_PFN_G(cxgb4_port_viid(lldi->ports[0])) in chtls_uld_add()
/Linux-v5.10/drivers/scsi/cxgbi/
Dlibcxgbi.h493 unsigned int pfvf; member
/Linux-v5.10/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c629 flowc->mnemval[0].val = htonl(csk->cdev->pfvf); in send_tx_flowc_wr()
2248 cdev->pfvf = FW_PFVF_CMD_PFN_V(lldi->pf); in t4_uld_add()
2250 cdev, lldi->ports[0]->name, cdev->pfvf); in t4_uld_add()