/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_devlink.h | 13 struct otx2_nic *pfvf; member in struct:otx2_devlink 17 int otx2_register_dl(struct otx2_nic *pfvf); 18 void otx2_unregister_dl(struct otx2_nic *pfvf);
|
H A D | cn10k.h | 13 static inline int mtu_to_dwrr_weight(struct otx2_nic *pfvf, int mtu) argument 20 weight = mtu / pfvf->hw.dwrr_mtu; 21 if (mtu % pfvf->hw.dwrr_mtu) 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, u1 [all...] |
H A D | otx2_dcbnl.c | 10 static int otx2_check_pfc_config(struct otx2_nic *pfvf) argument 12 u8 tx_queues = pfvf->hw.tx_queues, prio; 13 u8 pfc_en = pfvf->pfc_en; 18 dev_warn(pfvf->dev, 28 int otx2_pfc_txschq_config(struct otx2_nic *pfvf) argument 33 pfc_en = pfvf->pfc_en; 40 if (!pfc_bit_set || !pfvf->pfc_alloc_status[prio]) 45 err = otx2_txschq_config(pfvf, lvl, prio, true); 47 dev_err(pfvf->dev, 58 static int otx2_pfc_txschq_alloc_one(struct otx2_nic *pfvf, u argument 103 otx2_pfc_txschq_alloc(struct otx2_nic *pfvf) argument 126 otx2_pfc_txschq_stop_one(struct otx2_nic *pfvf, u8 prio) argument 139 otx2_pfc_update_sq_smq_mapping(struct otx2_nic *pfvf, int prio) argument 197 otx2_pfc_txschq_update(struct otx2_nic *pfvf) argument 264 otx2_pfc_txschq_stop(struct otx2_nic *pfvf) argument 286 otx2_config_priority_flow_ctrl(struct otx2_nic *pfvf) argument 325 otx2_update_bpid_in_rqctx(struct otx2_nic *pfvf, int vlan_prio, int qidx, bool pfc_enable) argument 391 struct otx2_nic *pfvf = netdev_priv(dev); local 401 struct otx2_nic *pfvf = netdev_priv(dev); local 465 struct otx2_nic *pfvf = netdev_priv(dev); local [all...] |
H A D | qos_sq.c | 19 static void otx2_qos_aura_pool_free(struct otx2_nic *pfvf, int pool_id) argument 23 if (!pfvf->qset.pool) 26 pool = &pfvf->qset.pool[pool_id]; 27 qmem_free(pfvf->dev, pool->stack); 28 qmem_free(pfvf->dev, pool->fc_addr); 33 static int otx2_qos_sq_aura_pool_init(struct otx2_nic *pfvf, int qidx) argument 35 struct otx2_qset *qset = &pfvf->qset; 37 struct otx2_hw *hw = &pfvf->hw; 56 pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); 57 pool = &pfvf 116 otx2_qos_sq_free_sqbs(struct otx2_nic *pfvf, int qidx) argument 151 otx2_qos_sqb_flush(struct otx2_nic *pfvf, int qidx) argument 165 otx2_qos_ctx_disable(struct otx2_nic *pfvf, u16 qidx, int aura_id) argument 220 otx2_qos_get_qid(struct otx2_nic *pfvf) argument 230 otx2_qos_free_qid(struct otx2_nic *pfvf, int qidx) argument 235 otx2_qos_enable_sq(struct otx2_nic *pfvf, int qidx) argument 259 otx2_qos_disable_sq(struct otx2_nic *pfvf, int qidx) argument [all...] |
H A D | otx2_ptp.h | 26 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 D | otx2_devlink.c | 15 struct otx2_nic *pfvf = otx2_dl->pfvf; local 18 if (!pfvf->flow_cfg) { 20 "pfvf->flow_cfg not initialized"); 24 flow_cfg = pfvf->flow_cfg; 38 struct otx2_nic *pfvf = otx2_dl->pfvf; local 40 if (!pfvf->flow_cfg) 43 otx2_alloc_mcam_entries(pfvf, ctx->val.vu16); 52 struct otx2_nic *pfvf local 82 otx2_register_dl(struct otx2_nic *pfvf) argument 116 otx2_unregister_dl(struct otx2_nic *pfvf) argument [all...] |
H A D | otx2_common.c | 20 struct otx2_nic *pfvf, int qidx) 25 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_RQ_OP_OCTS); 28 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_RQ_OP_PKTS); 33 struct otx2_nic *pfvf, int qidx) 38 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_SQ_OP_OCTS); 41 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_SQ_OP_PKTS); 45 void otx2_update_lmac_stats(struct otx2_nic *pfvf) argument 49 if (!netif_running(pfvf->netdev)) 52 mutex_lock(&pfvf->mbox.lock); 53 req = otx2_mbox_alloc_msg_cgx_stats(&pfvf 19 otx2_nix_rq_op_stats(struct queue_stats *stats, struct otx2_nic *pfvf, int qidx) argument 32 otx2_nix_sq_op_stats(struct queue_stats *stats, struct otx2_nic *pfvf, int qidx) argument 63 otx2_update_lmac_fec_stats(struct otx2_nic *pfvf) argument 76 otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) argument 87 otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) argument 103 otx2_get_dev_stats(struct otx2_nic *pfvf) argument 129 struct otx2_nic *pfvf = netdev_priv(netdev); local 147 otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) argument 166 otx2_hw_get_mac_addr(struct otx2_nic *pfvf, struct net_device *netdev) argument 201 struct otx2_nic *pfvf = netdev_priv(netdev); local 224 otx2_hw_set_mtu(struct otx2_nic *pfvf, int mtu) argument 250 otx2_config_pause_frm(struct otx2_nic *pfvf) argument 276 otx2_set_flowkey_cfg(struct otx2_nic *pfvf) argument 310 otx2_set_rss_table(struct otx2_nic *pfvf, int ctx_id) argument 352 otx2_set_rss_key(struct otx2_nic *pfvf) argument 375 otx2_rss_init(struct otx2_nic *pfvf) argument 454 otx2_setup_segmentation(struct otx2_nic *pfvf) argument 509 otx2_config_irq_coalescing(struct otx2_nic *pfvf, int qidx) argument 523 otx2_alloc_pool_buf(struct otx2_nic *pfvf, struct otx2_pool *pool, dma_addr_t *dma) argument 541 __otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool, dma_addr_t *dma) argument 563 otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool, dma_addr_t *dma) argument 574 otx2_alloc_buffer(struct otx2_nic *pfvf, struct otx2_cq_queue *cq, dma_addr_t *dma) argument 584 struct otx2_nic *pfvf = netdev_priv(netdev); local 592 struct otx2_nic *pfvf = netdev_priv(netdev); local 605 otx2_txschq_config(struct otx2_nic *pfvf, int lvl, int prio, bool txschq_for_pfc) argument 712 otx2_smq_flush(struct otx2_nic *pfvf, int smq) argument 736 otx2_txsch_alloc(struct otx2_nic *pfvf) argument 771 otx2_txschq_free_one(struct otx2_nic *pfvf, u16 lvl, u16 schq) argument 799 otx2_txschq_stop(struct otx2_nic *pfvf) argument 816 otx2_sqb_flush(struct otx2_nic *pfvf) argument 853 otx2_rq_init(struct otx2_nic *pfvf, u16 qidx, u16 lpb_aura) argument 888 struct otx2_nic *pfvf = dev; local 923 otx2_sq_init(struct otx2_nic *pfvf, u16 qidx, u16 sqb_aura) argument 985 otx2_cq_init(struct otx2_nic *pfvf, u16 qidx) argument 1079 struct otx2_nic *pfvf; local 1094 otx2_config_nix_queues(struct otx2_nic *pfvf) argument 1140 otx2_config_nix(struct otx2_nic *pfvf) argument 1185 otx2_sq_free_sqbs(struct otx2_nic *pfvf) argument 1211 otx2_free_bufs(struct otx2_nic *pfvf, struct otx2_pool *pool, u64 iova, int size) argument 1231 otx2_free_aura_ptr(struct otx2_nic *pfvf, int type) argument 1263 otx2_aura_pool_free(struct otx2_nic *pfvf) argument 1282 otx2_aura_init(struct otx2_nic *pfvf, int aura_id, int pool_id, int numptrs) argument 1359 otx2_pool_init(struct otx2_nic *pfvf, u16 pool_id, int stack_pages, int numptrs, int buf_size, int type) argument 1426 otx2_sq_aura_pool_init(struct otx2_nic *pfvf) argument 1498 otx2_rq_aura_pool_init(struct otx2_nic *pfvf) argument 1548 otx2_config_npa(struct otx2_nic *pfvf) argument 1601 otx2_attach_npa_nix(struct otx2_nic *pfvf) argument 1683 otx2_nix_config_bp(struct otx2_nic *pfvf, bool enable) argument 1709 mbox_handler_cgx_stats(struct otx2_nic *pfvf, struct cgx_stats_rsp *rsp) argument 1720 mbox_handler_cgx_fec_stats(struct otx2_nic *pfvf, struct cgx_fec_stats_rsp *rsp) argument 1727 mbox_handler_npa_lf_alloc(struct otx2_nic *pfvf, struct npa_lf_alloc_rsp *rsp) argument 1735 mbox_handler_nix_lf_alloc(struct otx2_nic *pfvf, struct nix_lf_alloc_rsp *rsp) argument 1749 mbox_handler_msix_offset(struct otx2_nic *pfvf, struct msix_offset_rsp *rsp) argument 1757 mbox_handler_nix_bp_enable(struct otx2_nic *pfvf, struct nix_bp_cfg_rsp *rsp) argument 1769 otx2_free_cints(struct otx2_nic *pfvf, int n) argument 1786 otx2_set_cints_affinity(struct otx2_nic *pfvf) argument 1810 get_dwrr_mtu(struct otx2_nic *pfvf, struct nix_hw_info *hw) argument 1821 otx2_get_max_mtu(struct otx2_nic *pfvf) argument 1869 struct otx2_nic *pfvf = netdev_priv(netdev); local [all...] |
H A D | cn10k.c | 26 int cn10k_lmtst_init(struct otx2_nic *pfvf) argument 33 if (!test_bit(CN10K_LMTST, &pfvf->hw.cap_flag)) { 34 pfvf->hw_ops = &otx2_hw_ops; 38 pfvf->hw_ops = &cn10k_hw_ops; 40 pfvf->tot_lmt_lines = (num_online_cpus() * LMT_BURST_SIZE); 41 pfvf->hw.lmt_info = alloc_percpu(struct otx2_lmt_info); 43 mutex_lock(&pfvf->mbox.lock); 44 req = otx2_mbox_alloc_msg_lmtst_tbl_setup(&pfvf->mbox); 46 mutex_unlock(&pfvf->mbox.lock); 52 err = qmem_alloc(pfvf 78 struct otx2_nic *pfvf = dev; local 112 struct otx2_nic *pfvf = dev; local 141 struct otx2_nic *pfvf = dev; local 163 cn10k_free_all_ipolicers(struct otx2_nic *pfvf) argument 188 cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf) argument 221 cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf) argument 301 cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx, u16 policer, bool map) argument 328 cn10k_free_leaf_profile(struct otx2_nic *pfvf, u16 leaf) argument 342 cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf) argument 360 cn10k_set_ipolicer_rate(struct otx2_nic *pfvf, u16 profile, u32 burst, u64 rate, bool pps) argument 464 cn10k_set_matchall_ipolicer_rate(struct otx2_nic *pfvf, u32 burst, u64 rate) argument [all...] |
H A D | qos.c | 26 static void otx2_qos_update_tx_netdev_queues(struct otx2_nic *pfvf) argument 28 struct otx2_hw *hw = &pfvf->hw; 31 qos_txqs = bitmap_weight(pfvf->qos.qos_sq_bmap, 36 err = netif_set_real_num_tx_queues(pfvf->netdev, tx_queues); 38 netdev_err(pfvf->netdev, 71 static int otx2_qos_quantum_to_dwrr_weight(struct otx2_nic *pfvf, u32 quantum) argument 75 weight = quantum / pfvf->hw.dwrr_mtu; 76 if (quantum % pfvf->hw.dwrr_mtu) 82 static void otx2_config_sched_shaping(struct otx2_nic *pfvf, argument 100 mtu_to_dwrr_weight(pfvf, pfv 136 __otx2_qos_txschq_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct nix_txschq_config *cfg) argument 193 otx2_qos_txschq_set_parent_topology(struct otx2_nic *pfvf, struct otx2_qos_node *parent) argument 234 otx2_qos_free_hw_node_schq(struct otx2_nic *pfvf, struct otx2_qos_node *parent) argument 243 otx2_qos_free_hw_node(struct otx2_nic *pfvf, struct otx2_qos_node *parent) argument 255 otx2_qos_free_hw_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node) argument 270 otx2_qos_sw_node_delete(struct otx2_nic *pfvf, struct otx2_qos_node *node) argument 284 otx2_qos_free_sw_node_schq(struct otx2_nic *pfvf, struct otx2_qos_node *parent) argument 295 __otx2_qos_free_sw_node(struct otx2_nic *pfvf, struct otx2_qos_node *parent) argument 307 otx2_qos_free_sw_node(struct otx2_nic *pfvf, struct otx2_qos_node *node) argument 319 otx2_qos_destroy_node(struct otx2_nic *pfvf, struct otx2_qos_node *node) argument 352 otx2_qos_prepare_txschq_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *parent, struct otx2_qos_cfg *cfg) argument 392 otx2_qos_read_txschq_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 402 otx2_qos_alloc_root(struct otx2_nic *pfvf) argument 454 otx2_qos_alloc_txschq_node(struct otx2_nic *pfvf, struct otx2_qos_node *node) argument 499 otx2_qos_sw_create_leaf_node(struct otx2_nic *pfvf, struct otx2_qos_node *parent, u16 classid, u32 prio, u64 rate, u64 ceil, u32 quantum, u16 qid, bool static_cfg) argument 549 otx2_sw_node_find(struct otx2_nic *pfvf, u32 classid) argument 562 otx2_sw_node_find_rcu(struct otx2_nic *pfvf, u32 classid) argument 574 otx2_get_txq_by_classid(struct otx2_nic *pfvf, u16 classid) argument 596 otx2_qos_txschq_config(struct otx2_nic *pfvf, struct otx2_qos_node *node) argument 620 otx2_qos_txschq_alloc(struct otx2_nic *pfvf, struct otx2_qos_cfg *cfg) argument 676 otx2_qos_free_unused_txschq(struct otx2_nic *pfvf, struct otx2_qos_cfg *cfg) argument 691 otx2_qos_txschq_fill_cfg_schq(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 705 otx2_qos_txschq_fill_cfg_tl(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 725 otx2_qos_txschq_fill_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 736 __otx2_qos_assign_base_idx_tl(struct otx2_nic *pfvf, struct otx2_qos_node *tmp, unsigned long *child_idx_bmap, int child_cnt) argument 762 otx2_qos_assign_base_idx_tl(struct otx2_nic *pfvf, struct otx2_qos_node *node) argument 801 otx2_qos_assign_base_idx(struct otx2_nic *pfvf, struct otx2_qos_node *node) argument 813 otx2_qos_txschq_push_cfg_schq(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 832 otx2_qos_txschq_push_cfg_tl(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 858 otx2_qos_txschq_push_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 874 otx2_qos_txschq_update_config(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 883 otx2_qos_txschq_update_root_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *root, struct otx2_qos_cfg *cfg) argument 891 otx2_qos_free_cfg(struct otx2_nic *pfvf, struct otx2_qos_cfg *cfg) argument 912 otx2_qos_enadis_sq(struct otx2_nic *pfvf, struct otx2_qos_node *node, u16 qid) argument 923 otx2_qos_update_smq_schq(struct otx2_nic *pfvf, struct otx2_qos_node *node, bool action) argument 942 __otx2_qos_update_smq(struct otx2_nic *pfvf, struct otx2_qos_node *node, bool action) argument 963 otx2_qos_update_smq(struct otx2_nic *pfvf, struct otx2_qos_node *node, bool action) argument 973 otx2_qos_push_txschq_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 1003 otx2_qos_update_tree(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) argument 1011 otx2_qos_root_add(struct otx2_nic *pfvf, u16 htb_maj_id, u16 htb_defcls, struct netlink_ext_ack *extack) argument 1079 otx2_qos_root_destroy(struct otx2_nic *pfvf) argument 1096 otx2_qos_validate_quantum(struct otx2_nic *pfvf, u32 quantum) argument 1112 otx2_qos_validate_dwrr_cfg(struct otx2_qos_node *parent, struct netlink_ext_ack *extack, struct otx2_nic *pfvf, u64 prio, u64 quantum) argument 1135 otx2_qos_validate_configuration(struct otx2_qos_node *parent, struct netlink_ext_ack *extack, struct otx2_nic *pfvf, u64 prio, bool static_cfg) argument 1166 is_qos_node_dwrr(struct otx2_qos_node *parent, struct otx2_nic *pfvf, u64 prio) argument 1203 otx2_qos_leaf_alloc_queue(struct otx2_nic *pfvf, u16 classid, u32 parent_classid, u64 rate, u64 ceil, u64 prio, u32 quantum, struct netlink_ext_ack *extack) argument 1342 otx2_qos_leaf_to_inner(struct otx2_nic *pfvf, u16 classid, u16 child_classid, u64 rate, u64 ceil, u64 prio, u32 quantum, struct netlink_ext_ack *extack) argument 1478 otx2_qos_leaf_del(struct otx2_nic *pfvf, u16 *classid, struct netlink_ext_ack *extack) argument 1523 otx2_qos_leaf_del_last(struct otx2_nic *pfvf, u16 classid, bool force, struct netlink_ext_ack *extack) argument 1605 otx2_clean_qos_queues(struct otx2_nic *pfvf) argument 1616 otx2_qos_config_txschq(struct otx2_nic *pfvf) argument 1650 struct otx2_nic *pfvf = netdev_priv(ndev); local [all...] |
H A D | otx2_ethtool.c | 72 static struct cgx_fw_data *otx2_get_fwdata(struct otx2_nic *pfvf); 77 struct otx2_nic *pfvf = netdev_priv(netdev); local 80 strscpy(info->bus_info, pci_name(pfvf->pdev), sizeof(info->bus_info)); 83 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) argument 85 int start_qidx = qset * pfvf->hw.rx_queues; 88 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) { 96 for (qidx = 0; qidx < otx2_get_total_tx_queues(pfvf); qidx++) { 98 if (qidx >= pfvf->hw.non_qos_queues) 100 qidx + start_qidx - pfvf->hw.non_qos_queues, 112 struct otx2_nic *pfvf local 150 otx2_get_qset_stats(struct otx2_nic *pfvf, struct ethtool_stats *stats, u64 **data) argument 180 otx2_get_phy_fec_stats(struct otx2_nic *pfvf) argument 201 struct otx2_nic *pfvf = netdev_priv(netdev); local 256 struct otx2_nic *pfvf = netdev_priv(netdev); local 276 struct otx2_nic *pfvf = netdev_priv(dev); local 289 struct otx2_nic *pfvf = netdev_priv(dev); local 330 struct otx2_nic *pfvf = netdev_priv(netdev); local 355 struct otx2_nic *pfvf = netdev_priv(netdev); local 381 struct otx2_nic *pfvf = netdev_priv(netdev); local 397 struct otx2_nic *pfvf = netdev_priv(netdev); local 465 struct otx2_nic *pfvf = netdev_priv(netdev); local 489 struct otx2_nic *pfvf = netdev_priv(netdev); local 572 otx2_get_rss_hash_opts(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) argument 622 otx2_set_rss_hash_opts(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) argument 734 struct otx2_nic *pfvf = netdev_priv(dev); local 767 struct otx2_nic *pfvf = netdev_priv(dev); local 792 struct otx2_nic *pfvf = netdev_priv(netdev); local 805 otx2_rss_ctx_delete(struct otx2_nic *pfvf, int ctx_id) argument 816 otx2_rss_ctx_create(struct otx2_nic *pfvf, u32 *rss_context) argument 843 struct otx2_nic *pfvf = netdev_priv(dev); local 894 struct otx2_nic *pfvf = netdev_priv(dev); local 934 struct otx2_nic *pfvf = netdev_priv(netdev); local 941 struct otx2_nic *pfvf = netdev_priv(netdev); local 948 struct otx2_nic *pfvf = netdev_priv(netdev); local 959 struct otx2_nic *pfvf = netdev_priv(netdev); local 983 otx2_get_fwdata(struct otx2_nic *pfvf) argument 1011 struct otx2_nic *pfvf = netdev_priv(netdev); local 1038 struct otx2_nic *pfvf = netdev_priv(netdev); local 1190 struct otx2_nic *pfvf = netdev_priv(netdev); local 1281 struct otx2_nic *pfvf = netdev_priv(netdev); local 1422 struct otx2_nic *pfvf = netdev_priv(netdev); local [all...] |
H A D | otx2_common.h | 71 otx2_read64(pfvf, NIX_LF_RX_STATX(reg)) 73 otx2_read64(pfvf, NIX_LF_TX_STATX(reg)) 181 struct otx2_nic *pfvf; member in struct:mbox 579 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) argument 581 struct otx2_hw *hw = &pfvf->hw; 583 pfvf->hw.cq_time_wait = CQ_TIMER_THRESH_DEFAULT; 584 pfvf->hw.cq_ecount_wait = CQ_CQE_THRESH_DEFAULT; 585 pfvf->hw.cq_qcount_wait = CQ_QCOUNT_DEFAULT; 589 if (is_96xx_A0(pfvf->pdev)) { 593 pfvf 726 __cn10k_aura_freeptr(struct otx2_nic *pfvf, u64 aura, u64 *ptrs, u64 num_ptrs) argument 760 struct otx2_nic *pfvf = dev; local 771 otx2_aura_allocptr(struct otx2_nic *pfvf, int aura) argument 782 struct otx2_nic *pfvf = dev; local 788 otx2_get_pool_idx(struct otx2_nic *pfvf, int type, int idx) argument 891 otx2_dma_map_page(struct otx2_nic *pfvf, struct page *page, size_t offset, size_t size, enum dma_data_direction dir) argument 905 otx2_dma_unmap_page(struct otx2_nic *pfvf, dma_addr_t addr, size_t size, enum dma_data_direction dir) argument 913 otx2_get_smq_idx(struct otx2_nic *pfvf, u16 qidx) argument 929 otx2_get_total_tx_queues(struct otx2_nic *pfvf) argument 945 otx2_tc_flower_rule_cnt(struct otx2_nic *pfvf) argument 1101 cn10k_mcs_init(struct otx2_nic *pfvf) argument 1102 cn10k_mcs_free(struct otx2_nic *pfvf) argument 1103 cn10k_handle_mcs_event(struct otx2_nic *pfvf, struct mcs_intr_info *event) argument 1109 otx2_qos_init(struct otx2_nic *pfvf, int qos_txqs) argument 1118 otx2_shutdown_qos(struct otx2_nic *pfvf) argument [all...] |
H A D | cn10k_macsec.c | 49 static int cn10k_ecb_aes_encrypt(struct otx2_nic *pfvf, u8 *sak, argument 61 dev_err(pfvf->dev, "failed to allocate transform for ecb-aes\n"); 67 dev_err(pfvf->dev, "failed to allocate request for skcipher\n"); 74 dev_err(pfvf->dev, "failed to set key for skcipher\n"); 141 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, argument 144 struct mbox *mbox = &pfvf->mbox; 163 rsp = (struct mcs_alloc_rsrc_rsp *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, 193 dev_err(pfvf->dev, "Failed to allocate %s %s resource\n", 199 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, argument 204 struct mbox *mbox = &pfvf 239 cn10k_mcs_alloc_txsa(struct otx2_nic *pfvf, u16 *hw_sa_id) argument 244 cn10k_mcs_alloc_rxsa(struct otx2_nic *pfvf, u16 *hw_sa_id) argument 249 cn10k_mcs_free_txsa(struct otx2_nic *pfvf, u16 hw_sa_id) argument 254 cn10k_mcs_free_rxsa(struct otx2_nic *pfvf, u16 hw_sa_id) argument 259 cn10k_mcs_write_rx_secy(struct otx2_nic *pfvf, struct macsec_secy *secy, u8 hw_secy_id) argument 311 cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf, struct cn10k_mcs_rxsc *rxsc, u8 hw_secy_id) argument 357 cn10k_mcs_write_sc_cam(struct otx2_nic *pfvf, struct cn10k_mcs_rxsc *rxsc, u8 hw_secy_id) argument 384 cn10k_mcs_write_keys(struct otx2_nic *pfvf, struct macsec_secy *secy, struct mcs_sa_plcy_write_req *req, u8 *sak, u8 *salt, ssci_t ssci) argument 421 cn10k_mcs_write_rx_sa_plcy(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_rxsc *rxsc, u8 assoc_num, bool sa_in_use) argument 470 cn10k_mcs_write_rx_sa_pn(struct otx2_nic *pfvf, struct cn10k_mcs_rxsc *rxsc, u8 assoc_num, u64 next_pn) argument 497 cn10k_mcs_write_tx_secy(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) argument 579 cn10k_mcs_write_tx_flowid(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) argument 625 cn10k_mcs_link_tx_sa2sc(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc, u8 sa_num, bool sa_active) argument 659 cn10k_mcs_write_tx_sa_plcy(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc, u8 assoc_num) argument 695 cn10k_write_tx_sa_pn(struct otx2_nic *pfvf, struct cn10k_mcs_txsc *txsc, u8 assoc_num, u64 next_pn) argument 722 cn10k_mcs_ena_dis_flowid(struct otx2_nic *pfvf, u16 hw_flow_id, bool enable, enum mcs_direction dir) argument 748 cn10k_mcs_sa_stats(struct otx2_nic *pfvf, u8 hw_sa_id, struct mcs_sa_stats *rsp_p, enum mcs_direction dir, bool clear) argument 803 cn10k_mcs_sc_stats(struct otx2_nic *pfvf, u8 hw_sc_id, struct mcs_sc_stats *rsp_p, enum mcs_direction dir, bool clear) argument 858 cn10k_mcs_secy_stats(struct otx2_nic *pfvf, u8 hw_secy_id, struct mcs_secy_stats *rsp_p, enum mcs_direction dir, bool clear) argument 913 cn10k_mcs_create_txsc(struct otx2_nic *pfvf) argument 960 cn10k_mcs_delete_txsc(struct otx2_nic *pfvf, struct cn10k_mcs_txsc *txsc) argument 986 cn10k_mcs_create_rxsc(struct otx2_nic *pfvf) argument 1016 cn10k_mcs_delete_rxsc(struct otx2_nic *pfvf, struct cn10k_mcs_rxsc *rxsc) argument 1038 cn10k_mcs_secy_tx_cfg(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc, struct macsec_tx_sa *sw_tx_sa, u8 sa_num) argument 1057 cn10k_mcs_secy_rx_cfg(struct otx2_nic *pfvf, struct macsec_secy *secy, u8 hw_secy_id) argument 1090 cn10k_mcs_disable_rxscs(struct otx2_nic *pfvf, struct macsec_secy *secy, bool delete) argument 1120 cn10k_mcs_sync_stats(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) argument 1174 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1198 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1216 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1244 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1279 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1298 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1343 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1378 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1398 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1432 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1451 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1469 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1512 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1548 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1571 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1607 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1628 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1651 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1693 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); local 1740 cn10k_handle_mcs_event(struct otx2_nic *pfvf, struct mcs_intr_info *event) argument 1767 cn10k_mcs_init(struct otx2_nic *pfvf) argument 1807 cn10k_mcs_free(struct otx2_nic *pfvf) argument [all...] |
H A D | otx2_flows.c | 15 static int otx2_mcam_entry_init(struct otx2_nic *pfvf); 35 static void otx2_clear_ntuple_flow_info(struct otx2_nic *pfvf, struct otx2_flow_config *flow_cfg) argument 37 devm_kfree(pfvf->dev, flow_cfg->flow_ent); 42 static int otx2_free_ntuple_mcam_entries(struct otx2_nic *pfvf) argument 44 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; 51 mutex_lock(&pfvf->mbox.lock); 53 req = otx2_mbox_alloc_msg_npc_mcam_free_entry(&pfvf->mbox); 60 err = otx2_sync_mbox_msg(&pfvf->mbox); 64 mutex_unlock(&pfvf->mbox.lock); 65 otx2_clear_ntuple_flow_info(pfvf, flow_cf 74 otx2_alloc_mcam_entries(struct otx2_nic *pfvf, u16 count) argument 164 otx2_mcam_entry_init(struct otx2_nic *pfvf) argument 261 otx2vf_mcam_flow_init(struct otx2_nic *pfvf) argument 449 otx2_find_flow(struct otx2_nic *pfvf, u32 location) argument 461 otx2_add_flow_to_list(struct otx2_nic *pfvf, struct otx2_flow *flow) argument 489 otx2_get_flow(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc, u32 location) argument 508 otx2_get_all_flows(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc, u32 *rule_locs) argument 940 otx2_is_flow_rule_dmacfilter(struct otx2_nic *pfvf, struct ethtool_rx_flow_spec *fsp) argument 966 otx2_add_flow_msg(struct otx2_nic *pfvf, struct otx2_flow *flow) argument 1052 otx2_add_flow_with_pfmac(struct otx2_nic *pfvf, struct otx2_flow *flow) argument 1083 otx2_add_flow(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) argument 1206 otx2_remove_flow_msg(struct otx2_nic *pfvf, u16 entry, bool all) argument 1228 otx2_update_rem_pfmac(struct otx2_nic *pfvf, int req) argument 1259 otx2_remove_flow(struct otx2_nic *pfvf, u32 location) argument 1310 otx2_rss_ctx_flow_del(struct otx2_nic *pfvf, int ctx_id) argument 1326 otx2_destroy_ntuple_flows(struct otx2_nic *pfvf) argument 1359 otx2_destroy_mcam_flows(struct otx2_nic *pfvf) argument 1401 otx2_install_rxvlan_offload_flow(struct otx2_nic *pfvf) argument 1430 otx2_delete_rxvlan_offload_flow(struct otx2_nic *pfvf) argument 1514 otx2_dmacflt_update_pfmac_flow(struct otx2_nic *pfvf) argument [all...] |
H A D | otx2_txrx.c | 29 static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf, 35 static int otx2_nix_cq_op_status(struct otx2_nic *pfvf, argument 41 status = otx2_atomic64_fetch_add(incr, pfvf->cq_op_addr); 45 dev_err(pfvf->dev, "CQ stopped due to error"); 83 static dma_addr_t otx2_dma_map_skb_frag(struct otx2_nic *pfvf, argument 101 return otx2_dma_map_page(pfvf, page, offset, *len, DMA_TO_DEVICE); 104 static void otx2_dma_unmap_skb_frags(struct otx2_nic *pfvf, struct sg_list *sg) argument 109 otx2_dma_unmap_page(pfvf, sg->dma_addr[seg], 115 static void otx2_xdp_snd_pkt_handler(struct otx2_nic *pfvf, argument 126 pa = otx2_iova_to_phys(pfvf 133 otx2_snd_pkt_handler(struct otx2_nic *pfvf, struct otx2_cq_queue *cq, struct otx2_snd_queue *sq, struct nix_cqe_tx_s *cqe, int budget, int *tx_pkts, int *tx_bytes) argument 176 otx2_set_rxtstamp(struct otx2_nic *pfvf, struct sk_buff *skb, void *data) argument 194 otx2_skb_add_frag(struct otx2_nic *pfvf, struct sk_buff *skb, u64 iova, int len, struct nix_rx_parse_s *parse, int qidx) argument 232 otx2_set_rxhash(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, struct sk_buff *skb) argument 254 otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, int qidx) argument 274 otx2_check_rcv_errors(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, int qidx) argument 338 otx2_rcv_pkt_handler(struct otx2_nic *pfvf, struct napi_struct *napi, struct otx2_cq_queue *cq, struct nix_cqe_rx_s *cqe, bool *need_xdp_flush) argument 388 otx2_rx_napi_handler(struct otx2_nic *pfvf, struct napi_struct *napi, struct otx2_cq_queue *cq, int budget) argument 433 struct otx2_nic *pfvf = dev; local 447 otx2_tx_napi_handler(struct otx2_nic *pfvf, struct otx2_cq_queue *cq, int budget) argument 511 otx2_adjust_adaptive_coalese(struct otx2_nic *pfvf, struct otx2_cq_poll *cq_poll) argument 537 struct otx2_nic *pfvf; local 614 otx2_sqe_add_sg(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, int num_segs, int *offset) argument 659 otx2_sqe_add_ext(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, int *offset) argument 750 otx2_sqe_add_hdr(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct nix_sqe_hdr_s *sqe_hdr, struct sk_buff *skb, u16 qidx) argument 798 otx2_dma_map_tso_skb(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, int sqe, int hdr_len) argument 880 otx2_sq_append_tso(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, u16 qidx) argument 965 is_hw_tso_supported(struct otx2_nic *pfvf, struct sk_buff *skb) argument 990 otx2_get_sqe_count(struct otx2_nic *pfvf, struct sk_buff *skb) argument 1078 otx2_set_txtstamp(struct otx2_nic *pfvf, struct sk_buff *skb, struct otx2_snd_queue *sq, int *offset) argument 1145 struct otx2_nic *pfvf = netdev_priv(netdev); local 1210 otx2_cleanup_rx_cqes(struct otx2_nic *pfvf, struct otx2_cq_queue *cq, int qidx) argument 1248 otx2_cleanup_tx_cqes(struct otx2_nic *pfvf, struct otx2_cq_queue *cq) argument 1294 otx2_rxtx_enable(struct otx2_nic *pfvf, bool enable) argument 1315 otx2_free_pending_sqe(struct otx2_nic *pfvf) argument 1367 otx2_xdp_sq_append_pkt(struct otx2_nic *pfvf, u64 iova, int len, u16 qidx) argument 1400 otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf, struct bpf_prog *prog, struct nix_cqe_rx_s *cqe, struct otx2_cq_queue *cq, bool *need_xdp_flush) argument [all...] |
H A D | otx2_ptp.c | 51 struct otx2_nic *pfvf = ptp->nic; local 58 mutex_lock(&pfvf->mbox.lock); 61 mutex_unlock(&pfvf->mbox.lock); 67 mutex_unlock(&pfvf->mbox.lock); 117 struct otx2_nic *pfvf = ptp->nic; local 127 mutex_lock(&pfvf->mbox.lock); 130 mutex_unlock(&pfvf->mbox.lock); 137 mutex_unlock(&pfvf->mbox.lock); 234 struct otx2_nic *pfvf = ptp->nic; local 236 mutex_lock(&pfvf 326 struct otx2_nic *pfvf = ptp->nic; local 382 otx2_ptp_init(struct otx2_nic *pfvf) argument 487 otx2_ptp_destroy(struct otx2_nic *pfvf) argument 502 otx2_ptp_clock_index(struct otx2_nic *pfvf) argument 511 otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) argument [all...] |
H A D | qos.h | 26 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 D | otx2_dmac_flt.c | 89 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, argument 95 mutex_lock(&pfvf->mbox.lock); 96 req = otx2_mbox_alloc_msg_cgx_mac_addr_del(&pfvf->mbox); 98 mutex_unlock(&pfvf->mbox.lock); 104 err = otx2_sync_mbox_msg(&pfvf->mbox); 105 mutex_unlock(&pfvf->mbox.lock);
|
H A D | otx2_pf.c | 51 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable); 52 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable); 459 pf = vf_mbox->pfvf; 494 struct otx2_nic *pf = vf_mbox->pfvf; 621 mbox->pfvf = pf; 821 pf = af_mbox->pfvf; 934 struct otx2_nic *pf = af_mbox->pfvf; 1090 mbox->pfvf = pf; 1679 static bool otx2_promisc_use_mce_list(struct otx2_nic *pfvf) argument 1684 if (is_otx2_vf(pfvf 1733 otx2_set_irq_coalesce(struct otx2_nic *pfvf) argument 1745 struct otx2_nic *pfvf; local 2198 otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable) argument 2230 otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable) argument 2264 struct otx2_nic *pfvf = netdev_priv(netdev); local 2329 struct otx2_nic *pfvf = netdev_priv(netdev); local [all...] |
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npa.c | 70 struct rvu_pfvf *pfvf; local 74 pfvf = rvu_get_pfvf(rvu, pcifunc); 75 if (!pfvf->aura_ctx || req->aura_id >= pfvf->aura_ctx->qsize) 79 if (!pfvf->npalf || blkaddr < 0) 130 if (req->aura.pool_addr >= pfvf->pool_ctx->qsize) { 135 req->aura.pool_addr = pfvf->pool_ctx->iova + 136 (req->aura.pool_addr * pfvf->pool_ctx->entry_sz); 167 __set_bit(req->aura_id, pfvf->aura_bmap); 170 (test_bit(req->aura_id, pfvf 212 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); local 309 npa_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) argument 335 struct rvu_pfvf *pfvf; local 441 struct rvu_pfvf *pfvf; local 543 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local [all...] |
H A D | rvu_sdp.c | 56 struct rvu_pfvf *pfvf; local 61 pfvf = &rvu->pf[sdp_pf_num[0]]; 62 pfvf->sdp_info = &rvu->fwdata->channel_data.info; 72 pfvf = &rvu->pf[sdp_pf_num[i]]; 74 pfvf->sdp_info = devm_kzalloc(rvu->dev, 77 if (!pfvf->sdp_info) { 97 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); local 99 memcpy(pfvf->sdp_info, &req->info, sizeof(struct sdp_node_info));
|
H A D | rvu_switch.c | 13 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 16 nix_hw = get_nix_hw(rvu->hw, pfvf->nix_blkaddr); 18 rvu_nix_tx_tl2_cfg(rvu, pfvf->nix_blkaddr, pcifunc, 27 struct rvu_pfvf *pfvf; local 29 pfvf = rvu_get_pfvf(rvu, pcifunc); 34 if (!test_bit(NIXLF_INITIALIZED, &pfvf->flags)) 37 ether_addr_copy(req.packet.dmac, pfvf->mac_addr); 42 req.channel = pfvf->rx_chan_base; 44 req.intf = pfvf->nix_rx_intf; 55 struct rvu_pfvf *pfvf; local [all...] |
H A D | rvu.c | 27 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, argument 369 pfvf->npalf = attach ? true : false; 370 num_lfs = pfvf->npalf; 374 pfvf->nixlf = attach ? true : false; 375 num_lfs = pfvf->nixlf; 378 attach ? pfvf->sso++ : pfvf->sso--; 379 num_lfs = pfvf 555 struct rvu_pfvf *pfvf; local 610 struct rvu_pfvf *pfvf; local 727 struct rvu_pfvf *pfvf; local 769 struct rvu_pfvf *pfvf; local 1249 rvu_get_rsrc_mapcount(struct rvu_pfvf *pfvf, int blkaddr) argument 1272 is_blktype_attached(struct rvu_pfvf *pfvf, int blktype) argument 1294 struct rvu_pfvf *pfvf; local 1332 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 1385 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 1480 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 1551 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 1589 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 1777 rvu_get_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, int blkaddr, int lf) argument 1792 rvu_set_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, struct rvu_block *block, int lf) argument 1817 rvu_clear_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, struct rvu_block *block, int lf) argument 1846 struct rvu_pfvf *pfvf; local 2034 struct rvu_pfvf *pfvf; local 2865 struct rvu_pfvf *pfvf = &rvu->pf[0]; local [all...] |
H A D | rvu_nix.c | 109 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 113 if (!pfvf->nixlf || blkaddr < 0) 134 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 139 if (!pfvf->nixlf || blkaddr < 0) 155 struct rvu_pfvf *pfvf; local 157 pfvf = rvu_get_pfvf(rvu, pcifunc); 159 if (!pfvf->nixlf || *blkaddr < 0) 330 struct rvu_pfvf *parent_pf, *pfvf = rvu_get_pfvf(rvu, pcifunc); local 346 pfvf->cgx_lmac = rvu->pf2cgxlmac_map[pf]; 347 rvu_get_cgx_lmac_id(pfvf 481 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 577 struct rvu_pfvf *pfvf; local 620 struct rvu_pfvf *pfvf; local 700 struct rvu_pfvf *pfvf; local 847 nix_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) argument 876 nixlf_rss_ctx_init(struct rvu *rvu, int blkaddr, struct rvu_pfvf *pfvf, int nixlf, int rss_sz, int rss_grps, int hwctx_size, u64 way_mask, bool tag_lsb_as_adder) argument 988 struct rvu_pfvf *pfvf; local 1324 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); local 1446 struct rvu_pfvf *pfvf; local 1675 struct rvu_pfvf *pfvf; local 1717 struct rvu_pfvf *pfvf; local 3413 struct rvu_pfvf *pfvf; local 3492 struct rvu_pfvf *pfvf; local 4335 struct rvu_pfvf *pfvf; local 4369 struct rvu_pfvf *pfvf; local 4386 struct rvu_pfvf *pfvf; local 4459 struct rvu_pfvf *pfvf; local 4508 struct rvu_pfvf *pfvf; local 5131 struct rvu_pfvf *pfvf; local 5157 struct rvu_pfvf *pfvf; local 5185 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 5316 struct rvu_pfvf *pfvf; local 5512 rvu_nix_reset_mac(struct rvu_pfvf *pfvf, int pcifunc) argument [all...] |
H A D | rvu_cn10k.c | 101 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 120 if (!pfvf->lmt_base_addr) 121 pfvf->lmt_base_addr = val; 138 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); local 209 if (!pfvf->lmt_map_ent_w1) 210 pfvf->lmt_map_ent_w1 = val; 242 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); local 249 if (pfvf->lmt_base_addr || pfvf->lmt_map_ent_w1) { 255 if (pfvf [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | smt.h | 60 u16 pfvf; member in struct:smt_entry
|