Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_common.c22 static bool otx2_is_pfc_enabled(struct otx2_nic *pfvf) in otx2_is_pfc_enabled() argument
24 return IS_ENABLED(CONFIG_DCB) && !!pfvf->pfc_en; in otx2_is_pfc_enabled()
28 struct otx2_nic *pfvf, int qidx) in otx2_nix_rq_op_stats() argument
33 ptr = otx2_get_regaddr(pfvf, NIX_LF_RQ_OP_OCTS); in otx2_nix_rq_op_stats()
36 ptr = otx2_get_regaddr(pfvf, NIX_LF_RQ_OP_PKTS); in otx2_nix_rq_op_stats()
41 struct otx2_nic *pfvf, int qidx) in otx2_nix_sq_op_stats() argument
46 ptr = otx2_get_regaddr(pfvf, NIX_LF_SQ_OP_OCTS); in otx2_nix_sq_op_stats()
49 ptr = otx2_get_regaddr(pfvf, NIX_LF_SQ_OP_PKTS); in otx2_nix_sq_op_stats()
53 void otx2_update_lmac_stats(struct otx2_nic *pfvf) in otx2_update_lmac_stats() argument
57 if (!netif_running(pfvf in otx2_update_lmac_stats()
71 otx2_update_lmac_fec_stats(struct otx2_nic * pfvf) otx2_update_lmac_fec_stats() argument
84 otx2_update_rq_stats(struct otx2_nic * pfvf,int qidx) otx2_update_rq_stats() argument
96 otx2_update_sq_stats(struct otx2_nic * pfvf,int qidx) otx2_update_sq_stats() argument
113 otx2_get_dev_stats(struct otx2_nic * pfvf) otx2_get_dev_stats() argument
141 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_stats64() local
159 otx2_hw_set_mac_addr(struct otx2_nic * pfvf,u8 * mac) otx2_hw_set_mac_addr() argument
178 otx2_hw_get_mac_addr(struct otx2_nic * pfvf,struct net_device * netdev) otx2_hw_get_mac_addr() argument
213 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_mac_address() local
236 otx2_hw_set_mtu(struct otx2_nic * pfvf,int mtu) otx2_hw_set_mtu() argument
263 otx2_config_pause_frm(struct otx2_nic * pfvf) otx2_config_pause_frm() argument
289 otx2_set_flowkey_cfg(struct otx2_nic * pfvf) otx2_set_flowkey_cfg() argument
323 otx2_set_rss_table(struct otx2_nic * pfvf,int ctx_id,const u32 * ind_tbl) otx2_set_rss_table() argument
369 otx2_set_rss_key(struct otx2_nic * pfvf) otx2_set_rss_key() argument
392 otx2_rss_init(struct otx2_nic * pfvf) otx2_rss_init() argument
463 otx2_setup_segmentation(struct otx2_nic * pfvf) otx2_setup_segmentation() argument
518 otx2_config_irq_coalescing(struct otx2_nic * pfvf,int qidx) otx2_config_irq_coalescing() argument
532 otx2_alloc_pool_buf(struct otx2_nic * pfvf,struct otx2_pool * pool,dma_addr_t * dma) otx2_alloc_pool_buf() argument
550 __otx2_alloc_rbuf(struct otx2_nic * pfvf,struct otx2_pool * pool,dma_addr_t * dma,int qidx,int idx) __otx2_alloc_rbuf() argument
575 otx2_alloc_rbuf(struct otx2_nic * pfvf,struct otx2_pool * pool,dma_addr_t * dma,int qidx,int idx) otx2_alloc_rbuf() argument
586 otx2_alloc_buffer(struct otx2_nic * pfvf,struct otx2_cq_queue * cq,dma_addr_t * dma) otx2_alloc_buffer() argument
597 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_tx_timeout() local
605 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_mac_from_af() local
618 otx2_txschq_config(struct otx2_nic * pfvf,int lvl,int prio,bool txschq_for_pfc) otx2_txschq_config() argument
737 otx2_smq_flush(struct otx2_nic * pfvf,int smq) otx2_smq_flush() argument
761 otx2_txsch_alloc(struct otx2_nic * pfvf) otx2_txsch_alloc() argument
805 otx2_txschq_free_one(struct otx2_nic * pfvf,u16 lvl,u16 schq) otx2_txschq_free_one() argument
833 otx2_txschq_stop(struct otx2_nic * pfvf) otx2_txschq_stop() argument
853 otx2_sqb_flush(struct otx2_nic * pfvf) otx2_sqb_flush() argument
891 otx2_rq_init(struct otx2_nic * pfvf,u16 qidx,u16 lpb_aura) otx2_rq_init() argument
926 struct otx2_nic *pfvf = dev; otx2_sq_aq_init() local
961 otx2_sq_init(struct otx2_nic * pfvf,u16 qidx,u16 sqb_aura) otx2_sq_init() argument
1051 otx2_cq_init(struct otx2_nic * pfvf,u16 qidx) otx2_cq_init() argument
1158 struct otx2_nic *pfvf; otx2_pool_refill_task() local
1173 otx2_config_nix_queues(struct otx2_nic * pfvf) otx2_config_nix_queues() argument
1219 otx2_config_nix(struct otx2_nic * pfvf) otx2_config_nix() argument
1264 otx2_sq_free_sqbs(struct otx2_nic * pfvf) otx2_sq_free_sqbs() argument
1290 otx2_free_bufs(struct otx2_nic * pfvf,struct otx2_pool * pool,u64 iova,int size) otx2_free_bufs() argument
1311 otx2_free_aura_ptr(struct otx2_nic * pfvf,int type) otx2_free_aura_ptr() argument
1349 otx2_aura_pool_free(struct otx2_nic * pfvf) otx2_aura_pool_free() argument
1369 otx2_aura_init(struct otx2_nic * pfvf,int aura_id,int pool_id,int numptrs) otx2_aura_init() argument
1376 otx2_aura_aq_init(struct otx2_nic * pfvf,int aura_id,int pool_id,int numptrs) otx2_aura_aq_init() argument
1453 otx2_pool_init(struct otx2_nic * pfvf,u16 pool_id,int stack_pages,int numptrs,int buf_size,int type) otx2_pool_init() argument
1460 otx2_pool_aq_init(struct otx2_nic * pfvf,u16 pool_id,int stack_pages,int numptrs,int buf_size,int type) otx2_pool_aq_init() argument
1544 otx2_sq_aura_pool_init(struct otx2_nic * pfvf) otx2_sq_aura_pool_init() argument
1625 otx2_rq_aura_pool_init(struct otx2_nic * pfvf) otx2_rq_aura_pool_init() argument
1683 otx2_config_npa(struct otx2_nic * pfvf) otx2_config_npa() argument
1736 otx2_attach_npa_nix(struct otx2_nic * pfvf) otx2_attach_npa_nix() argument
1818 otx2_nix_config_bp(struct otx2_nic * pfvf,bool enable) otx2_nix_config_bp() argument
1843 otx2_nix_cpt_config_bp(struct otx2_nic * pfvf,bool enable) otx2_nix_cpt_config_bp() argument
1869 mbox_handler_cgx_stats(struct otx2_nic * pfvf,struct cgx_stats_rsp * rsp) mbox_handler_cgx_stats() argument
1880 mbox_handler_cgx_fec_stats(struct otx2_nic * pfvf,struct cgx_fec_stats_rsp * rsp) mbox_handler_cgx_fec_stats() argument
1887 mbox_handler_npa_lf_alloc(struct otx2_nic * pfvf,struct npa_lf_alloc_rsp * rsp) mbox_handler_npa_lf_alloc() argument
1895 mbox_handler_nix_lf_alloc(struct otx2_nic * pfvf,struct nix_lf_alloc_rsp * rsp) mbox_handler_nix_lf_alloc() argument
1911 mbox_handler_msix_offset(struct otx2_nic * pfvf,struct msix_offset_rsp * rsp) mbox_handler_msix_offset() argument
1919 mbox_handler_nix_bp_enable(struct otx2_nic * pfvf,struct nix_bp_cfg_rsp * rsp) mbox_handler_nix_bp_enable() argument
1931 otx2_free_cints(struct otx2_nic * pfvf,int n) otx2_free_cints() argument
1949 otx2_set_cints_affinity(struct otx2_nic * pfvf) otx2_set_cints_affinity() argument
1973 get_dwrr_mtu(struct otx2_nic * pfvf,struct nix_hw_info * hw) get_dwrr_mtu() argument
1984 otx2_get_max_mtu(struct otx2_nic * pfvf) otx2_get_max_mtu() argument
2036 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_handle_ntuple_tc_features() local
2068 otx2_set_hw_capabilities(struct otx2_nic * pfvf) otx2_set_hw_capabilities() argument
2119 otx2_dma_map_skb_frag(struct otx2_nic * pfvf,struct sk_buff * skb,int seg,int * len) otx2_dma_map_skb_frag() argument
2147 otx2_dma_unmap_skb_frags(struct otx2_nic * pfvf,struct sg_list * sg) otx2_dma_unmap_skb_frags() argument
[all...]
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 Dqos.c26 static void otx2_qos_update_tx_netdev_queues(struct otx2_nic *pfvf) in otx2_qos_update_tx_netdev_queues() argument
28 struct otx2_hw *hw = &pfvf->hw; in otx2_qos_update_tx_netdev_queues()
31 qos_txqs = bitmap_weight(pfvf->qos.qos_sq_bmap, in otx2_qos_update_tx_netdev_queues()
36 err = netif_set_real_num_tx_queues(pfvf->netdev, tx_queues); in otx2_qos_update_tx_netdev_queues()
38 netdev_err(pfvf->netdev, in otx2_qos_update_tx_netdev_queues()
71 static int otx2_qos_quantum_to_dwrr_weight(struct otx2_nic *pfvf, u32 quantum) in otx2_qos_quantum_to_dwrr_weight() argument
75 weight = quantum / pfvf->hw.dwrr_mtu; in otx2_qos_quantum_to_dwrr_weight()
76 if (quantum % pfvf->hw.dwrr_mtu) in otx2_qos_quantum_to_dwrr_weight()
82 static void otx2_config_sched_shaping(struct otx2_nic *pfvf, in otx2_config_sched_shaping() argument
100 mtu_to_dwrr_weight(pfvf, pfvf->tx_max_pktlen); in otx2_config_sched_shaping()
[all …]
H A Dotx2_ethtool.c75 static struct cgx_fw_data *otx2_get_fwdata(struct otx2_nic *pfvf);
80 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo() local
83 strscpy(info->bus_info, pci_name(pfvf->pdev), sizeof(info->bus_info)); in otx2_get_drvinfo()
86 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) in otx2_get_qset_strings() argument
88 int start_qidx = qset * pfvf->hw.rx_queues; in otx2_get_qset_strings()
91 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) in otx2_get_qset_strings()
96 for (qidx = 0; qidx < otx2_get_total_tx_queues(pfvf); qidx++) in otx2_get_qset_strings()
98 if (qidx >= pfvf->hw.non_qos_queues) in otx2_get_qset_strings()
101 pfvf->hw.non_qos_queues, in otx2_get_qset_strings()
111 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings() local
[all …]
H A Dotx2_flows.c33 static void otx2_clear_ntuple_flow_info(struct otx2_nic *pfvf, struct otx2_flow_config *flow_cfg) in otx2_clear_ntuple_flow_info() argument
35 devm_kfree(pfvf->dev, flow_cfg->flow_ent); in otx2_clear_ntuple_flow_info()
40 static int otx2_mcam_pfl_info_get(struct otx2_nic *pfvf, u16 *x4_slots, u8 *kw_type) in otx2_mcam_pfl_info_get() argument
53 mutex_lock(&pfvf->mbox.lock); in otx2_mcam_pfl_info_get()
57 mutex_unlock(&pfvf->mbox.lock); in otx2_mcam_pfl_info_get()
61 req = otx2_mbox_alloc_msg_npc_get_pfl_info(&pfvf->mbox); in otx2_mcam_pfl_info_get()
63 mutex_unlock(&pfvf->mbox.lock); in otx2_mcam_pfl_info_get()
68 if (otx2_sync_mbox_msg(&pfvf->mbox)) { in otx2_mcam_pfl_info_get()
69 mutex_unlock(&pfvf->mbox.lock); in otx2_mcam_pfl_info_get()
74 (&pfvf->mbox.mbox, 0, &req->hdr); in otx2_mcam_pfl_info_get()
[all …]
H A Dotx2_txrx.c40 static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf,
57 static int otx2_nix_cq_op_status(struct otx2_nic *pfvf, in otx2_nix_cq_op_status() argument
63 status = otx2_atomic64_fetch_add(incr, pfvf->cq_op_addr); in otx2_nix_cq_op_status()
67 dev_err(pfvf->dev, "CQ stopped due to error"); in otx2_nix_cq_op_status()
105 static void otx2_xdp_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_xdp_snd_pkt_handler() argument
120 otx2_dma_unmap_page(pfvf, sg->dma_addr[0], sg->size[0], DMA_TO_DEVICE); in otx2_xdp_snd_pkt_handler()
125 static void otx2_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_snd_pkt_handler() argument
138 if (unlikely(snd_comp->status) && netif_msg_tx_err(pfvf)) in otx2_snd_pkt_handler()
140 pfvf->netdev->name, cq->cint_idx, in otx2_snd_pkt_handler()
151 timestamp = pfvf->ptp->convert_tx_ptp_tstmp(timestamp); in otx2_snd_pkt_handler()
[all …]
H A Dcn10k_macsec.c49 static int cn10k_ecb_aes_encrypt(struct otx2_nic *pfvf, const u8 *sak, in cn10k_ecb_aes_encrypt() argument
56 dev_err(pfvf->dev, "invalid AES key length: %d\n", sak_len); in cn10k_ecb_aes_encrypt()
110 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_alloc_rsrc() argument
113 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_alloc_rsrc()
132 rsp = (struct mcs_alloc_rsrc_rsp *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, in cn10k_mcs_alloc_rsrc()
162 dev_err(pfvf->dev, "Failed to allocate %s %s resource\n", in cn10k_mcs_alloc_rsrc()
168 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_free_rsrc() argument
173 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_free_rsrc()
197 if (otx2_sync_mbox_msg(&pfvf->mbox)) in cn10k_mcs_free_rsrc()
204 dev_err(pfvf->dev, "Failed to free %s %s resource\n", in cn10k_mcs_free_rsrc()
[all …]
H A Dotx2_xsk.c17 int otx2_xsk_pool_alloc_buf(struct otx2_nic *pfvf, struct otx2_pool *pool, in otx2_xsk_pool_alloc_buf() argument
36 static int otx2_xsk_ctx_disable(struct otx2_nic *pfvf, u16 qidx, int aura_id) in otx2_xsk_ctx_disable() argument
43 if (test_bit(CN10K_LMTST, &pfvf->hw.cap_flag)) { in otx2_xsk_ctx_disable()
44 cn10k_rq_aq = otx2_mbox_alloc_msg_nix_cn10k_aq_enq(&pfvf->mbox); in otx2_xsk_ctx_disable()
53 rq_aq = otx2_mbox_alloc_msg_nix_aq_enq(&pfvf->mbox); in otx2_xsk_ctx_disable()
63 aura_aq = otx2_mbox_alloc_msg_npa_aq_enq(&pfvf->mbox); in otx2_xsk_ctx_disable()
73 pool_aq = otx2_mbox_alloc_msg_npa_aq_enq(&pfvf->mbox); in otx2_xsk_ctx_disable()
84 return otx2_sync_mbox_msg(&pfvf->mbox); in otx2_xsk_ctx_disable()
87 otx2_mbox_reset(&pfvf->mbox.mbox, 0); in otx2_xsk_ctx_disable()
91 static void otx2_clean_up_rq(struct otx2_nic *pfvf, int qidx) in otx2_clean_up_rq() argument
[all …]
H 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,
36 int cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx,
38 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf);
[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 Dcn20k.c511 static int cn20k_aura_aq_init(struct otx2_nic *pfvf, int aura_id, in cn20k_tc_alloc_entry()
519 pool = &pfvf->qset.pool[pool_id];
525 err = qmem_alloc(pfvf->dev, &pool->fc_addr, 1, OTX2_ALIGN); in cn20k_aura_aq_init()
531 aq = otx2_mbox_alloc_msg_npa_cn20k_aq_enq(&pfvf->mbox); in cn20k_aura_aq_init()
534 err = otx2_sync_mbox_msg(&pfvf->mbox); in cn20k_aura_aq_init()
537 aq = otx2_mbox_alloc_msg_npa_cn20k_aq_enq(&pfvf->mbox); in cn20k_aura_aq_init()
557 if (aura_id < pfvf->hw.rqpool_cnt && !is_otx2_lbkvf(pfvf->pdev)) { in cn20k_aura_aq_init()
571 if (pfvf->nix_blkaddr == BLKADDR_NIX1) in cn20k_aura_aq_init()
574 bpid_idx = otx2_get_bpid_idx(pfvf, aura_i in cn20k_aura_aq_init()
245 cn20k_aura_bpid_idx(struct otx2_nic * pfvf,int aura_id) cn20k_aura_bpid_idx() argument
520 cn20k_aura_aq_init(struct otx2_nic * pfvf,int aura_id,int pool_id,int numptrs) cn20k_aura_aq_init() argument
597 cn20k_pool_aq_init(struct otx2_nic * pfvf,u16 pool_id,int stack_pages,int numptrs,int buf_size,int type) cn20k_pool_aq_init() argument
672 struct otx2_nic *pfvf = dev; cn20k_sq_aq_init() local
715 cn20k_init(struct otx2_nic * pfvf) cn20k_init() argument
[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 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);
H A Dotx2_xsk.h17 int otx2_xsk_pool_alloc_buf(struct otx2_nic *pfvf, struct otx2_pool *pool,
20 void otx2_zc_napi_handler(struct otx2_nic *pfvf, struct xsk_buff_pool *pool,
22 void otx2_attach_xsk_buff(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, int qidx);
H A Dotx2_pf.c53 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable);
54 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable);
462 pf = vf_mbox->pfvf; in otx2_pfvf_mbox_handler()
499 struct otx2_nic *pf = vf_mbox->pfvf; in otx2_pfvf_mbox_up_handler()
652 mbox->pfvf = pf; in otx2_pfvf_mbox_init()
861 pf = af_mbox->pfvf; in otx2_pfaf_mbox_handler()
1010 struct otx2_nic *pf = af_mbox->pfvf; in otx2_pfaf_mbox_up_handler()
1202 mbox->pfvf = pf; in otx2_pfaf_mbox_init()
1273 int otx2_reset_mac_stats(struct otx2_nic *pfvf) in otx2_reset_mac_stats() argument
1278 mutex_lock(&pfvf->mbox.lock); in otx2_reset_mac_stats()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A 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,
342 static void rvu_update_rsrc_map(struct rvu *rvu, struct rvu_pfvf *pfvf, in rvu_update_rsrc_map() argument
370 pfvf->npalf = attach ? true : false; in rvu_update_rsrc_map()
371 num_lfs = pfvf->npalf; in rvu_update_rsrc_map()
375 pfvf->nixlf = attach ? true : false; in rvu_update_rsrc_map()
376 num_lfs = pfvf->nixlf; in rvu_update_rsrc_map()
379 attach ? pfvf->sso++ : pfvf->sso--; in rvu_update_rsrc_map()
380 num_lfs = pfvf->sso; in rvu_update_rsrc_map()
383 attach ? pfvf->ssow++ : pfvf->ssow--; in rvu_update_rsrc_map()
[all …]
H 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()
37 ether_addr_copy(req.packet.dmac, pfvf->mac_addr); 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
[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_nix.c111 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in is_nixlf_attached() local
115 if (!pfvf->nixlf || blkaddr < 0) in is_nixlf_attached()
136 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_nixlf() local
141 if (!pfvf->nixlf || blkaddr < 0) in nix_get_nixlf()
157 struct rvu_pfvf *pfvf; in nix_get_struct_ptrs() local
159 pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_struct_ptrs()
161 if (!pfvf->nixlf || *blkaddr < 0) in nix_get_struct_ptrs()
343 struct rvu_pfvf *parent_pf, *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_interface_init() local
359 pfvf->cgx_lmac = rvu->pf2cgxlmac_map[pf]; in nix_interface_init()
360 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init()
[all …]
H A Drvu_cn10k.c115 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_update_lmtaddr() local
134 if (!pfvf->lmt_base_addr) in rvu_update_lmtaddr()
135 pfvf->lmt_base_addr = val; in rvu_update_lmtaddr()
152 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_lmtst_tbl_setup() local
232 if (!pfvf->lmt_map_ent_w1) in rvu_mbox_handler_lmtst_tbl_setup()
233 pfvf->lmt_map_ent_w1 = val; in rvu_mbox_handler_lmtst_tbl_setup()
265 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_reset_lmt_map_tbl() local
272 if (pfvf->lmt_base_addr || pfvf->lmt_map_ent_w1) { in rvu_reset_lmt_map_tbl()
278 if (pfvf->lmt_base_addr) { in rvu_reset_lmt_map_tbl()
280 &pfvf->lmt_base_addr, in rvu_reset_lmt_map_tbl()
[all …]
H A Drvu_rep.c38 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, event->pcifunc); in rvu_rep_up_notify() local
45 ether_addr_copy(pfvf->mac_addr, event->evt_data.mac); in rvu_rep_up_notify()
247 struct rvu_pfvf *pfvf; in rvu_rep_install_rx_rule() local
250 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_rep_install_rx_rule()
278 req.intf = pfvf->nix_rx_intf; in rvu_rep_install_rx_rule()
288 struct rvu_pfvf *pfvf; in rvu_rep_install_tx_rule() local
293 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_rep_install_tx_rule()
302 lbkid = pfvf->nix_blkaddr == BLKADDR_NIX0 ? 0 : 1; in rvu_rep_install_tx_rule()
313 req.intf = pfvf->nix_tx_intf; in rvu_rep_install_tx_rule()
423 struct rvu_pfvf *pfvf; in rvu_rep_pf_init() local
[all …]
H A Drvu_debugfs.c203 static void print_nix_qsize(struct seq_file *filp, struct rvu_pfvf *pfvf);
790 struct rvu_pfvf *pfvf; in rvu_dbg_rvu_pf_cgx_map_display() local
819 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_dbg_rvu_pf_cgx_map_display()
821 if (pfvf->nix_blkaddr == BLKADDR_NIX0) in rvu_dbg_rvu_pf_cgx_map_display()
932 static void print_npa_qsize(struct seq_file *m, struct rvu_pfvf *pfvf) in print_npa_qsize() argument
934 if (!pfvf->aura_ctx) { in print_npa_qsize()
937 seq_printf(m, "Aura count : %d\n", pfvf->aura_ctx->qsize); in print_npa_qsize()
939 pfvf->aura_ctx->qsize, pfvf->aura_bmap); in print_npa_qsize()
942 if (!pfvf->pool_ctx) { in print_npa_qsize()
945 seq_printf(m, "Pool count : %d\n", pfvf->pool_ctx->qsize); in print_npa_qsize()
[all …]
H A Drvu_npc_fs.c1328 static int npc_update_rx_entry(struct rvu *rvu, struct rvu_pfvf *pfvf, in npc_update_rx_entry() argument
1356 if (pfvf->def_ucast_rule) { in npc_update_rx_entry()
1357 action = pfvf->def_ucast_rule->rx_action; in npc_update_rx_entry()
1389 static int npc_update_tx_entry(struct rvu *rvu, struct rvu_pfvf *pfvf, in npc_update_tx_entry() argument
1434 int nixlf, struct rvu_pfvf *pfvf, in npc_install_flow() argument
1439 struct rvu_npc_mcam_rule *def_ucast_rule = pfvf->def_ucast_rule; in npc_install_flow()
1468 err = npc_update_rx_entry(rvu, pfvf, &mdata, req, target, in npc_install_flow()
1473 err = npc_update_tx_entry(rvu, pfvf, &mdata, req, target); in npc_install_flow()
1604 rule->intf = pfvf->nix_tx_intf; in npc_install_flow()
1606 rule->intf = pfvf->nix_rx_intf; in npc_install_flow()
[all …]
H A Drvu_npc.c68 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf) in rvu_npc_set_pkind() argument
133 struct rvu_pfvf *pfvf; in npc_get_ucast_mcam_index() local
135 pfvf = rvu_get_pfvf(rvu, pcifunc); in npc_get_ucast_mcam_index()
141 if (pfvf->nix_blkaddr == blkaddr) in npc_get_ucast_mcam_index()
482 struct rvu_pfvf *pfvf; in npc_fixup_vf_rule() local
494 pfvf = rvu_get_pfvf(rvu, target_func); in npc_fixup_vf_rule()
499 test_bit(NIXLF_INITIALIZED, &pfvf->flags))) in npc_fixup_vf_rule()
721 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npc_install_ucast_entry() local
739 if (!npc_is_feature_supported(rvu, BIT_ULL(NPC_DMAC), pfvf->nix_rx_intf)) in rvu_npc_install_ucast_entry()
768 req.intf = pfvf->nix_rx_intf; in rvu_npc_install_ucast_entry()
[all …]
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()
685 struct rvu_pfvf *pfvf; in rvu_mbox_handler_cgx_mac_addr_set() local
696 pfvf = &rvu->pf[pf]; in rvu_mbox_handler_cgx_mac_addr_set()
697 ether_addr_copy(pfvf->mac_addr, req->mac_addr); in rvu_mbox_handler_cgx_mac_addr_set()
775 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_cgx_mac_addr_get() local
780 ether_addr_copy(rsp->mac_addr, pfvf->mac_addr); in rvu_mbox_handler_cgx_mac_addr_get()
825 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_cgx_ptp_rx_cfg() local
852 pfvf->hw_rx_tstamp_en = enable; in rvu_cgx_ptp_rx_cfg()
[all …]

12