Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos_sq.c19 static void otx2_qos_aura_pool_free(struct otx2_nic *pfvf, int pool_id) in otx2_qos_aura_pool_free() argument
23 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()
28 qmem_free(pfvf->dev, pool->fc_addr); in otx2_qos_aura_pool_free()
33 static int otx2_qos_sq_aura_pool_init(struct otx2_nic *pfvf, int qidx) in otx2_qos_sq_aura_pool_init() argument
35 struct otx2_qset *qset = &pfvf->qset; in otx2_qos_sq_aura_pool_init()
37 struct otx2_hw *hw = &pfvf->hw; in otx2_qos_sq_aura_pool_init()
56 pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_qos_sq_aura_pool_init()
57 pool = &pfvf->qset.pool[pool_id]; in otx2_qos_sq_aura_pool_init()
[all …]
H A Dotx2_ethtool.c72 static struct cgx_fw_data *otx2_get_fwdata(struct otx2_nic *pfvf);
77 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo() local
80 strscpy(info->bus_info, pci_name(pfvf->pdev), sizeof(info->bus_info)); in otx2_get_drvinfo()
83 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) in otx2_get_qset_strings() argument
85 int start_qidx = qset * pfvf->hw.rx_queues; in otx2_get_qset_strings()
88 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) in otx2_get_qset_strings()
93 for (qidx = 0; qidx < otx2_get_total_tx_queues(pfvf); qidx++) in otx2_get_qset_strings()
95 if (qidx >= pfvf->hw.non_qos_queues) in otx2_get_qset_strings()
98 pfvf->hw.non_qos_queues, in otx2_get_qset_strings()
108 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings() local
[all …]
H A Dotx2_ptp.c51 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_adjtime() local
58 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_hw_adjtime()
61 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_adjtime()
67 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_adjtime()
117 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_settime() local
127 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_hw_settime()
130 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_settime()
137 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_settime()
234 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_tc_adjtime() local
236 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_tc_adjtime()
[all …]
H 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);
H 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);
H 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);
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npa.c70 struct rvu_pfvf *pfvf; in rvu_npa_aq_enq_inst() local
74 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_aq_enq_inst()
75 if (!pfvf->aura_ctx || req->aura_id >= pfvf->aura_ctx->qsize) in rvu_npa_aq_enq_inst()
79 if (!pfvf->npalf || blkaddr < 0) in rvu_npa_aq_enq_inst()
130 if (req->aura.pool_addr >= pfvf->pool_ctx->qsize) { in rvu_npa_aq_enq_inst()
135 req->aura.pool_addr = pfvf->pool_ctx->iova + in rvu_npa_aq_enq_inst()
136 (req->aura.pool_addr * pfvf->pool_ctx->entry_sz); in rvu_npa_aq_enq_inst()
167 __set_bit(req->aura_id, pfvf->aura_bmap); in rvu_npa_aq_enq_inst()
170 (test_bit(req->aura_id, pfvf->aura_bmap) & in rvu_npa_aq_enq_inst()
173 __set_bit(req->aura_id, pfvf->aura_bmap); in rvu_npa_aq_enq_inst()
[all …]
H A Drvu.c27 static void rvu_set_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf,
29 static void rvu_clear_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf,
341 static void rvu_update_rsrc_map(struct rvu *rvu, struct rvu_pfvf *pfvf, in rvu_update_rsrc_map() argument
369 pfvf->npalf = attach ? true : false; in rvu_update_rsrc_map()
370 num_lfs = pfvf->npalf; in rvu_update_rsrc_map()
374 pfvf->nixlf = attach ? true : false; in rvu_update_rsrc_map()
375 num_lfs = pfvf->nixlf; in rvu_update_rsrc_map()
378 attach ? pfvf->sso++ : pfvf->sso--; in rvu_update_rsrc_map()
379 num_lfs = pfvf->sso; in rvu_update_rsrc_map()
382 attach ? pfvf->ssow++ : pfvf->ssow--; in rvu_update_rsrc_map()
[all …]
H A Drvu_nix.c110 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in is_nixlf_attached() local
114 if (!pfvf->nixlf || blkaddr < 0) in is_nixlf_attached()
135 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_nixlf() local
140 if (!pfvf->nixlf || blkaddr < 0) in nix_get_nixlf()
156 struct rvu_pfvf *pfvf; in nix_get_struct_ptrs() local
158 pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_struct_ptrs()
160 if (!pfvf->nixlf || *blkaddr < 0) in nix_get_struct_ptrs()
333 struct rvu_pfvf *parent_pf, *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_interface_init() local
349 pfvf->cgx_lmac = rvu->pf2cgxlmac_map[pf]; in nix_interface_init()
350 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init()
[all …]
H 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()
H A Drvu_cn10k.c101 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_update_lmtaddr() local
120 if (!pfvf->lmt_base_addr) in rvu_update_lmtaddr()
121 pfvf->lmt_base_addr = val; in rvu_update_lmtaddr()
138 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_lmtst_tbl_setup() local
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()
242 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_reset_lmt_map_tbl() local
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()
[all …]
H A Drvu_npc_fs.c1132 static int npc_update_rx_entry(struct rvu *rvu, struct rvu_pfvf *pfvf, in npc_update_rx_entry() argument
1160 if (pfvf->def_ucast_rule) { in npc_update_rx_entry()
1161 action = pfvf->def_ucast_rule->rx_action; in npc_update_rx_entry()
1193 static int npc_update_tx_entry(struct rvu *rvu, struct rvu_pfvf *pfvf, in npc_update_tx_entry() argument
1238 int nixlf, struct rvu_pfvf *pfvf, in npc_install_flow() argument
1243 struct rvu_npc_mcam_rule *def_ucast_rule = pfvf->def_ucast_rule; in npc_install_flow()
1265 err = npc_update_rx_entry(rvu, pfvf, entry, req, target, pf_set_vfs_mac); in npc_install_flow()
1269 err = npc_update_tx_entry(rvu, pfvf, entry, req, target); in npc_install_flow()
1352 rule->intf = pfvf->nix_tx_intf; in npc_install_flow()
1354 rule->intf = pfvf->nix_rx_intf; in npc_install_flow()
[all …]
H A Drvu_npc_hash.c1565 struct rvu_pfvf *pfvf; in rvu_npc_exact_mac_addr_reset() local
1571 pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_npc_exact_mac_addr_reset()
1576 dev_err(rvu->dev, "%s MAC (%pM) del PF=%d failed\n", __func__, pfvf->mac_addr, pf); in rvu_npc_exact_mac_addr_reset()
1581 __func__, pfvf->mac_addr, pf, seq_id); in rvu_npc_exact_mac_addr_reset()
1599 struct rvu_pfvf *pfvf; in rvu_npc_exact_mac_addr_update() local
1613 pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_npc_exact_mac_addr_update()
1636 __func__, req->mac_addr, pfvf->mac_addr, pfvf->default_mac, pf); in rvu_npc_exact_mac_addr_update()
1637 ether_addr_copy(pfvf->mac_addr, req->mac_addr); in rvu_npc_exact_mac_addr_update()
1646 pfvf->mac_addr, pf); in rvu_npc_exact_mac_addr_update()
1650 pfvf->rx_chan_base, 0, &seq_id, true, in rvu_npc_exact_mac_addr_update()
[all …]
H A Dmcs_rvu_if.c94 struct mcs_pfvf *pfvf; in mcs_add_intr_wq_entry() local
98 pfvf = &mcs->vf[rvu_get_hwvf(rvu, pcifunc)]; in mcs_add_intr_wq_entry()
100 pfvf = &mcs->pf[rvu_get_pf(pcifunc)]; in mcs_add_intr_wq_entry()
102 event->intr_mask &= pfvf->intr_mask; in mcs_add_intr_wq_entry()
105 if (!(pfvf->intr_mask && event->intr_mask)) in mcs_add_intr_wq_entry()
182 struct mcs_pfvf *pfvf; in rvu_mbox_handler_mcs_intr_cfg() local
192 pfvf = &mcs->vf[rvu_get_hwvf(rvu, pcifunc)]; in rvu_mbox_handler_mcs_intr_cfg()
194 pfvf = &mcs->pf[rvu_get_pf(pcifunc)]; in rvu_mbox_handler_mcs_intr_cfg()
197 pfvf->intr_mask = req->intr_mask; in rvu_mbox_handler_mcs_intr_cfg()
H A Drvu_cgx.c111 struct rvu_pfvf *pfvf = &rvu->pf[pf]; in rvu_map_cgx_nix_block() local
116 pfvf->nix_blkaddr = BLKADDR_NIX0; in rvu_map_cgx_nix_block()
118 pfvf->nix_blkaddr = BLKADDR_NIX1; in rvu_map_cgx_nix_block()
828 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_cgx_ptp_rx_cfg() local
855 pfvf->hw_rx_tstamp_en = enable; in rvu_cgx_ptp_rx_cfg()
1131 struct rvu_pfvf *parent_pf, *pfvf; in rvu_cgx_start_stop_io() local
1138 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_cgx_start_stop_io()
1142 if (start && pfvf->cgx_in_use) in rvu_cgx_start_stop_io()
1144 if (!start && !pfvf->cgx_in_use) in rvu_cgx_start_stop_io()
1170 pfvf->cgx_in_use = start; in rvu_cgx_start_stop_io()
H A Drvu.h836 u16 rvu_get_rsrc_mapcount(struct rvu_pfvf *pfvf, int blkaddr);
935 void rvu_nix_reset_mac(struct rvu_pfvf *pfvf, int pcifunc);
960 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf);
H A Drvu_cpt.c702 struct rvu_pfvf *pfvf; in validate_and_update_reg_offset() local
716 pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in validate_and_update_reg_offset()
717 num_lfs = rvu_get_rsrc_mapcount(pfvf, block->addr); in validate_and_update_reg_offset()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H 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()
H A Dsmt.h60 u16 pfvf; member
/linux/drivers/scsi/cxgbi/
H A Dlibcxgbi.h491 unsigned int pfvf; member
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_main.c259 cdev->pfvf = FW_VIID_PFN_G(cxgb4_port_viid(lldi->ports[0])) in chtls_uld_add()
/linux/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c631 flowc->mnemval[0].val = htonl(csk->cdev->pfvf); in send_tx_flowc_wr()
2250 cdev->pfvf = FW_PFVF_CMD_PFN_V(lldi->pf); in t4_uld_add()
2252 cdev, lldi->ports[0]->name, cdev->pfvf); in t4_uld_add()