/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_common.c | 20 struct otx2_nic *pfvf, int qidx) in otx2_nix_rq_op_stats() 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() 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 in otx2_update_lmac_stats() 19 otx2_nix_rq_op_stats(struct queue_stats *stats, struct otx2_nic *pfvf, int qidx) otx2_nix_rq_op_stats() argument 32 otx2_nix_sq_op_stats(struct queue_stats *stats, struct otx2_nic *pfvf, int qidx) otx2_nix_sq_op_stats() argument 63 otx2_update_lmac_fec_stats(struct otx2_nic *pfvf) otx2_update_lmac_fec_stats() argument 76 otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) otx2_update_rq_stats() argument 87 otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) otx2_update_sq_stats() argument 103 otx2_get_dev_stats(struct otx2_nic *pfvf) otx2_get_dev_stats() argument 129 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_stats64() local 147 otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) otx2_hw_set_mac_addr() argument 166 otx2_hw_get_mac_addr(struct otx2_nic *pfvf, struct net_device *netdev) otx2_hw_get_mac_addr() argument 201 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_mac_address() local 224 otx2_hw_set_mtu(struct otx2_nic *pfvf, int mtu) otx2_hw_set_mtu() argument 250 otx2_config_pause_frm(struct otx2_nic *pfvf) otx2_config_pause_frm() argument 276 otx2_set_flowkey_cfg(struct otx2_nic *pfvf) otx2_set_flowkey_cfg() argument 310 otx2_set_rss_table(struct otx2_nic *pfvf, int ctx_id) otx2_set_rss_table() argument 352 otx2_set_rss_key(struct otx2_nic *pfvf) otx2_set_rss_key() argument 375 otx2_rss_init(struct otx2_nic *pfvf) otx2_rss_init() argument 454 otx2_setup_segmentation(struct otx2_nic *pfvf) otx2_setup_segmentation() argument 509 otx2_config_irq_coalescing(struct otx2_nic *pfvf, int qidx) otx2_config_irq_coalescing() argument 523 otx2_alloc_pool_buf(struct otx2_nic *pfvf, struct otx2_pool *pool, dma_addr_t *dma) otx2_alloc_pool_buf() argument 541 __otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool, dma_addr_t *dma) __otx2_alloc_rbuf() argument 563 otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool, dma_addr_t *dma) otx2_alloc_rbuf() argument 574 otx2_alloc_buffer(struct otx2_nic *pfvf, struct otx2_cq_queue *cq, dma_addr_t *dma) otx2_alloc_buffer() argument 584 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_tx_timeout() local 592 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_mac_from_af() local 605 otx2_txschq_config(struct otx2_nic *pfvf, int lvl, int prio, bool txschq_for_pfc) otx2_txschq_config() argument 712 otx2_smq_flush(struct otx2_nic *pfvf, int smq) otx2_smq_flush() argument 736 otx2_txsch_alloc(struct otx2_nic *pfvf) otx2_txsch_alloc() argument 771 otx2_txschq_free_one(struct otx2_nic *pfvf, u16 lvl, u16 schq) otx2_txschq_free_one() argument 799 otx2_txschq_stop(struct otx2_nic *pfvf) otx2_txschq_stop() argument 816 otx2_sqb_flush(struct otx2_nic *pfvf) otx2_sqb_flush() argument 853 otx2_rq_init(struct otx2_nic *pfvf, u16 qidx, u16 lpb_aura) otx2_rq_init() argument 888 struct otx2_nic *pfvf = dev; otx2_sq_aq_init() local 923 otx2_sq_init(struct otx2_nic *pfvf, u16 qidx, u16 sqb_aura) otx2_sq_init() argument 985 otx2_cq_init(struct otx2_nic *pfvf, u16 qidx) otx2_cq_init() argument 1079 struct otx2_nic *pfvf; otx2_pool_refill_task() local 1094 otx2_config_nix_queues(struct otx2_nic *pfvf) otx2_config_nix_queues() argument 1140 otx2_config_nix(struct otx2_nic *pfvf) otx2_config_nix() argument 1185 otx2_sq_free_sqbs(struct otx2_nic *pfvf) otx2_sq_free_sqbs() argument 1211 otx2_free_bufs(struct otx2_nic *pfvf, struct otx2_pool *pool, u64 iova, int size) otx2_free_bufs() argument 1231 otx2_free_aura_ptr(struct otx2_nic *pfvf, int type) otx2_free_aura_ptr() argument 1263 otx2_aura_pool_free(struct otx2_nic *pfvf) otx2_aura_pool_free() argument 1282 otx2_aura_init(struct otx2_nic *pfvf, int aura_id, int pool_id, int numptrs) otx2_aura_init() argument 1359 otx2_pool_init(struct otx2_nic *pfvf, u16 pool_id, int stack_pages, int numptrs, int buf_size, int type) otx2_pool_init() argument 1426 otx2_sq_aura_pool_init(struct otx2_nic *pfvf) otx2_sq_aura_pool_init() argument 1498 otx2_rq_aura_pool_init(struct otx2_nic *pfvf) otx2_rq_aura_pool_init() argument 1548 otx2_config_npa(struct otx2_nic *pfvf) otx2_config_npa() argument 1601 otx2_attach_npa_nix(struct otx2_nic *pfvf) otx2_attach_npa_nix() argument 1683 otx2_nix_config_bp(struct otx2_nic *pfvf, bool enable) otx2_nix_config_bp() argument 1709 mbox_handler_cgx_stats(struct otx2_nic *pfvf, struct cgx_stats_rsp *rsp) mbox_handler_cgx_stats() argument 1720 mbox_handler_cgx_fec_stats(struct otx2_nic *pfvf, struct cgx_fec_stats_rsp *rsp) mbox_handler_cgx_fec_stats() argument 1727 mbox_handler_npa_lf_alloc(struct otx2_nic *pfvf, struct npa_lf_alloc_rsp *rsp) mbox_handler_npa_lf_alloc() argument 1735 mbox_handler_nix_lf_alloc(struct otx2_nic *pfvf, struct nix_lf_alloc_rsp *rsp) mbox_handler_nix_lf_alloc() argument 1749 mbox_handler_msix_offset(struct otx2_nic *pfvf, struct msix_offset_rsp *rsp) mbox_handler_msix_offset() argument 1757 mbox_handler_nix_bp_enable(struct otx2_nic *pfvf, struct nix_bp_cfg_rsp *rsp) mbox_handler_nix_bp_enable() argument 1769 otx2_free_cints(struct otx2_nic *pfvf, int n) otx2_free_cints() argument 1786 otx2_set_cints_affinity(struct otx2_nic *pfvf) otx2_set_cints_affinity() argument 1810 get_dwrr_mtu(struct otx2_nic *pfvf, struct nix_hw_info *hw) get_dwrr_mtu() argument 1821 otx2_get_max_mtu(struct otx2_nic *pfvf) otx2_get_max_mtu() argument 1869 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_handle_ntuple_tc_features() local [all...] |
H A D | otx2_dcbnl.c | 10 static int otx2_check_pfc_config(struct otx2_nic *pfvf) in otx2_check_pfc_config() argument 12 u8 tx_queues = pfvf->hw.tx_queues, prio; in otx2_check_pfc_config() 13 u8 pfc_en = pfvf->pfc_en; in otx2_check_pfc_config() 18 dev_warn(pfvf->dev, in otx2_check_pfc_config() 28 int otx2_pfc_txschq_config(struct otx2_nic *pfvf) in otx2_pfc_txschq_config() argument 33 pfc_en = pfvf->pfc_en; in otx2_pfc_txschq_config() 40 if (!pfc_bit_set || !pfvf->pfc_alloc_status[prio]) in otx2_pfc_txschq_config() 45 err = otx2_txschq_config(pfvf, lvl, prio, true); in otx2_pfc_txschq_config() 47 dev_err(pfvf->dev, in otx2_pfc_txschq_config() 58 static int otx2_pfc_txschq_alloc_one(struct otx2_nic *pfvf, u argument 103 otx2_pfc_txschq_alloc(struct otx2_nic *pfvf) otx2_pfc_txschq_alloc() argument 126 otx2_pfc_txschq_stop_one(struct otx2_nic *pfvf, u8 prio) otx2_pfc_txschq_stop_one() argument 139 otx2_pfc_update_sq_smq_mapping(struct otx2_nic *pfvf, int prio) otx2_pfc_update_sq_smq_mapping() argument 197 otx2_pfc_txschq_update(struct otx2_nic *pfvf) otx2_pfc_txschq_update() argument 264 otx2_pfc_txschq_stop(struct otx2_nic *pfvf) otx2_pfc_txschq_stop() argument 286 otx2_config_priority_flow_ctrl(struct otx2_nic *pfvf) otx2_config_priority_flow_ctrl() argument 325 otx2_update_bpid_in_rqctx(struct otx2_nic *pfvf, int vlan_prio, int qidx, bool pfc_enable) otx2_update_bpid_in_rqctx() argument 391 struct otx2_nic *pfvf = netdev_priv(dev); otx2_dcbnl_ieee_getpfc() local 401 struct otx2_nic *pfvf = netdev_priv(dev); otx2_dcbnl_ieee_setpfc() local 465 struct otx2_nic *pfvf = netdev_priv(dev); otx2_dcbnl_set_ops() local [all...] |
H A D | qos_sq.c | 19 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 in otx2_qos_sq_aura_pool_init() 116 otx2_qos_sq_free_sqbs(struct otx2_nic *pfvf, int qidx) otx2_qos_sq_free_sqbs() argument 151 otx2_qos_sqb_flush(struct otx2_nic *pfvf, int qidx) otx2_qos_sqb_flush() argument 165 otx2_qos_ctx_disable(struct otx2_nic *pfvf, u16 qidx, int aura_id) otx2_qos_ctx_disable() argument 220 otx2_qos_get_qid(struct otx2_nic *pfvf) otx2_qos_get_qid() argument 230 otx2_qos_free_qid(struct otx2_nic *pfvf, int qidx) otx2_qos_free_qid() argument 235 otx2_qos_enable_sq(struct otx2_nic *pfvf, int qidx) otx2_qos_enable_sq() argument 259 otx2_qos_disable_sq(struct otx2_nic *pfvf, int qidx) otx2_qos_disable_sq() argument [all...] |
H A D | qos.c | 26 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, pfv in otx2_config_sched_shaping() 136 __otx2_qos_txschq_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct nix_txschq_config *cfg) __otx2_qos_txschq_cfg() argument 193 otx2_qos_txschq_set_parent_topology(struct otx2_nic *pfvf, struct otx2_qos_node *parent) otx2_qos_txschq_set_parent_topology() argument 234 otx2_qos_free_hw_node_schq(struct otx2_nic *pfvf, struct otx2_qos_node *parent) otx2_qos_free_hw_node_schq() argument 243 otx2_qos_free_hw_node(struct otx2_nic *pfvf, struct otx2_qos_node *parent) otx2_qos_free_hw_node() argument 255 otx2_qos_free_hw_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node) otx2_qos_free_hw_cfg() argument 270 otx2_qos_sw_node_delete(struct otx2_nic *pfvf, struct otx2_qos_node *node) otx2_qos_sw_node_delete() argument 284 otx2_qos_free_sw_node_schq(struct otx2_nic *pfvf, struct otx2_qos_node *parent) otx2_qos_free_sw_node_schq() argument 295 __otx2_qos_free_sw_node(struct otx2_nic *pfvf, struct otx2_qos_node *parent) __otx2_qos_free_sw_node() argument 307 otx2_qos_free_sw_node(struct otx2_nic *pfvf, struct otx2_qos_node *node) otx2_qos_free_sw_node() argument 319 otx2_qos_destroy_node(struct otx2_nic *pfvf, struct otx2_qos_node *node) otx2_qos_destroy_node() argument 352 otx2_qos_prepare_txschq_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *parent, struct otx2_qos_cfg *cfg) otx2_qos_prepare_txschq_cfg() argument 391 otx2_qos_read_txschq_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_read_txschq_cfg() argument 401 otx2_qos_alloc_root(struct otx2_nic *pfvf) otx2_qos_alloc_root() argument 453 otx2_qos_alloc_txschq_node(struct otx2_nic *pfvf, struct otx2_qos_node *node) otx2_qos_alloc_txschq_node() argument 498 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) otx2_qos_sw_create_leaf_node() argument 548 otx2_sw_node_find(struct otx2_nic *pfvf, u32 classid) otx2_sw_node_find() argument 561 otx2_sw_node_find_rcu(struct otx2_nic *pfvf, u32 classid) otx2_sw_node_find_rcu() argument 573 otx2_get_txq_by_classid(struct otx2_nic *pfvf, u16 classid) otx2_get_txq_by_classid() argument 595 otx2_qos_txschq_config(struct otx2_nic *pfvf, struct otx2_qos_node *node) otx2_qos_txschq_config() argument 619 otx2_qos_txschq_alloc(struct otx2_nic *pfvf, struct otx2_qos_cfg *cfg) otx2_qos_txschq_alloc() argument 675 otx2_qos_free_unused_txschq(struct otx2_nic *pfvf, struct otx2_qos_cfg *cfg) otx2_qos_free_unused_txschq() argument 690 otx2_qos_txschq_fill_cfg_schq(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_txschq_fill_cfg_schq() argument 704 otx2_qos_txschq_fill_cfg_tl(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_txschq_fill_cfg_tl() argument 724 otx2_qos_txschq_fill_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_txschq_fill_cfg() argument 735 __otx2_qos_assign_base_idx_tl(struct otx2_nic *pfvf, struct otx2_qos_node *tmp, unsigned long *child_idx_bmap, int child_cnt) __otx2_qos_assign_base_idx_tl() argument 761 otx2_qos_assign_base_idx_tl(struct otx2_nic *pfvf, struct otx2_qos_node *node) otx2_qos_assign_base_idx_tl() argument 800 otx2_qos_assign_base_idx(struct otx2_nic *pfvf, struct otx2_qos_node *node) otx2_qos_assign_base_idx() argument 812 otx2_qos_txschq_push_cfg_schq(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_txschq_push_cfg_schq() argument 831 otx2_qos_txschq_push_cfg_tl(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_txschq_push_cfg_tl() argument 857 otx2_qos_txschq_push_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_txschq_push_cfg() argument 873 otx2_qos_txschq_update_config(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_txschq_update_config() argument 882 otx2_qos_txschq_update_root_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *root, struct otx2_qos_cfg *cfg) otx2_qos_txschq_update_root_cfg() argument 890 otx2_qos_free_cfg(struct otx2_nic *pfvf, struct otx2_qos_cfg *cfg) otx2_qos_free_cfg() argument 911 otx2_qos_enadis_sq(struct otx2_nic *pfvf, struct otx2_qos_node *node, u16 qid) otx2_qos_enadis_sq() argument 922 otx2_qos_update_smq_schq(struct otx2_nic *pfvf, struct otx2_qos_node *node, bool action) otx2_qos_update_smq_schq() argument 941 __otx2_qos_update_smq(struct otx2_nic *pfvf, struct otx2_qos_node *node, bool action) __otx2_qos_update_smq() argument 962 otx2_qos_update_smq(struct otx2_nic *pfvf, struct otx2_qos_node *node, bool action) otx2_qos_update_smq() argument 972 otx2_qos_push_txschq_cfg(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_push_txschq_cfg() argument 1002 otx2_qos_update_tree(struct otx2_nic *pfvf, struct otx2_qos_node *node, struct otx2_qos_cfg *cfg) otx2_qos_update_tree() argument 1010 otx2_qos_root_add(struct otx2_nic *pfvf, u16 htb_maj_id, u16 htb_defcls, struct netlink_ext_ack *extack) otx2_qos_root_add() argument 1078 otx2_qos_root_destroy(struct otx2_nic *pfvf) otx2_qos_root_destroy() argument 1095 otx2_qos_validate_quantum(struct otx2_nic *pfvf, u32 quantum) otx2_qos_validate_quantum() argument 1111 otx2_qos_validate_dwrr_cfg(struct otx2_qos_node *parent, struct netlink_ext_ack *extack, struct otx2_nic *pfvf, u64 prio, u64 quantum) otx2_qos_validate_dwrr_cfg() argument 1134 otx2_qos_validate_configuration(struct otx2_qos_node *parent, struct netlink_ext_ack *extack, struct otx2_nic *pfvf, u64 prio, bool static_cfg) otx2_qos_validate_configuration() argument 1165 is_qos_node_dwrr(struct otx2_qos_node *parent, struct otx2_nic *pfvf, u64 prio) is_qos_node_dwrr() argument 1202 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) otx2_qos_leaf_alloc_queue() argument 1341 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) otx2_qos_leaf_to_inner() argument 1477 otx2_qos_leaf_del(struct otx2_nic *pfvf, u16 *classid, struct netlink_ext_ack *extack) otx2_qos_leaf_del() argument 1522 otx2_qos_leaf_del_last(struct otx2_nic *pfvf, u16 classid, bool force, struct netlink_ext_ack *extack) otx2_qos_leaf_del_last() argument 1604 otx2_clean_qos_queues(struct otx2_nic *pfvf) otx2_clean_qos_queues() argument 1615 otx2_qos_config_txschq(struct otx2_nic *pfvf) otx2_qos_config_txschq() argument 1649 struct otx2_nic *pfvf = netdev_priv(ndev); otx2_setup_tc_htb() 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); 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() 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() 100 qidx + start_qidx - pfvf->hw.non_qos_queues, in otx2_get_qset_strings() 112 struct otx2_nic *pfvf in otx2_get_strings() local 150 otx2_get_qset_stats(struct otx2_nic *pfvf, struct ethtool_stats *stats, u64 **data) otx2_get_qset_stats() argument 180 otx2_get_phy_fec_stats(struct otx2_nic *pfvf) otx2_get_phy_fec_stats() argument 201 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_ethtool_stats() local 256 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_sset_count() local 276 struct otx2_nic *pfvf = netdev_priv(dev); otx2_get_channels() local 289 struct otx2_nic *pfvf = netdev_priv(dev); otx2_set_channels() local 330 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_pauseparam() local 355 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_pauseparam() local 381 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_ringparam() local 397 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_ringparam() local 465 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_coalesce() local 489 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_coalesce() local 572 otx2_get_rss_hash_opts(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) otx2_get_rss_hash_opts() argument 622 otx2_set_rss_hash_opts(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) otx2_set_rss_hash_opts() argument 734 struct otx2_nic *pfvf = netdev_priv(dev); otx2_get_rxnfc() local 767 struct otx2_nic *pfvf = netdev_priv(dev); otx2_set_rxnfc() local 792 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_rxfh_key_size() local 805 otx2_rss_ctx_delete(struct otx2_nic *pfvf, int ctx_id) otx2_rss_ctx_delete() argument 816 otx2_rss_ctx_create(struct otx2_nic *pfvf, u32 *rss_context) otx2_rss_ctx_create() argument 842 struct otx2_nic *pfvf = netdev_priv(dev); otx2_set_rxfh_context() local 886 struct otx2_nic *pfvf = netdev_priv(dev); otx2_get_rxfh_context() local 942 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_msglevel() local 949 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_msglevel() local 956 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_link() local 967 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_ts_info() local 991 otx2_get_fwdata(struct otx2_nic *pfvf) otx2_get_fwdata() argument 1019 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_fecparam() local 1046 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_fecparam() local 1198 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_link_ksettings() local 1289 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_fec_stats() local 1431 struct otx2_nic *pfvf = netdev_priv(netdev); otx2vf_get_link_ksettings() local [all...] |
H A D | cn10k.c | 26 int cn10k_lmtst_init(struct otx2_nic *pfvf) in cn10k_lmtst_init() argument 33 if (!test_bit(CN10K_LMTST, &pfvf->hw.cap_flag)) { in cn10k_lmtst_init() 34 pfvf->hw_ops = &otx2_hw_ops; in cn10k_lmtst_init() 38 pfvf->hw_ops = &cn10k_hw_ops; in cn10k_lmtst_init() 40 pfvf->tot_lmt_lines = (num_online_cpus() * LMT_BURST_SIZE); in cn10k_lmtst_init() 41 pfvf->hw.lmt_info = alloc_percpu(struct otx2_lmt_info); in cn10k_lmtst_init() 43 mutex_lock(&pfvf->mbox.lock); in cn10k_lmtst_init() 44 req = otx2_mbox_alloc_msg_lmtst_tbl_setup(&pfvf->mbox); in cn10k_lmtst_init() 46 mutex_unlock(&pfvf->mbox.lock); in cn10k_lmtst_init() 52 err = qmem_alloc(pfvf in cn10k_lmtst_init() 78 struct otx2_nic *pfvf = dev; cn10k_sq_aq_init() local 112 struct otx2_nic *pfvf = dev; cn10k_refill_pool_ptrs() local 141 struct otx2_nic *pfvf = dev; cn10k_sqe_flush() local 163 cn10k_free_all_ipolicers(struct otx2_nic *pfvf) cn10k_free_all_ipolicers() argument 188 cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf) cn10k_alloc_leaf_profile() argument 221 cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf) cn10k_alloc_matchall_ipolicer() argument 301 cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx, u16 policer, bool map) cn10k_map_unmap_rq_policer() argument 328 cn10k_free_leaf_profile(struct otx2_nic *pfvf, u16 leaf) cn10k_free_leaf_profile() argument 342 cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf) cn10k_free_matchall_ipolicer() argument 360 cn10k_set_ipolicer_rate(struct otx2_nic *pfvf, u16 profile, u32 burst, u64 rate, bool pps) cn10k_set_ipolicer_rate() argument 464 cn10k_set_matchall_ipolicer_rate(struct otx2_nic *pfvf, u32 burst, u64 rate) cn10k_set_matchall_ipolicer_rate() argument [all...] |
H A D | cn10k_macsec.c | 49 static int cn10k_ecb_aes_encrypt(struct otx2_nic *pfvf, u8 *sak, in cn10k_ecb_aes_encrypt() argument 61 dev_err(pfvf->dev, "failed to allocate transform for ecb-aes\n"); in cn10k_ecb_aes_encrypt() 67 dev_err(pfvf->dev, "failed to allocate request for skcipher\n"); in cn10k_ecb_aes_encrypt() 74 dev_err(pfvf->dev, "failed to set key for skcipher\n"); in cn10k_ecb_aes_encrypt() 141 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_alloc_rsrc() argument 144 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_alloc_rsrc() 163 rsp = (struct mcs_alloc_rsrc_rsp *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, in cn10k_mcs_alloc_rsrc() 193 dev_err(pfvf->dev, "Failed to allocate %s %s resource\n", in cn10k_mcs_alloc_rsrc() 199 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_free_rsrc() argument 204 struct mbox *mbox = &pfvf in cn10k_mcs_free_rsrc() 239 cn10k_mcs_alloc_txsa(struct otx2_nic *pfvf, u16 *hw_sa_id) cn10k_mcs_alloc_txsa() argument 244 cn10k_mcs_alloc_rxsa(struct otx2_nic *pfvf, u16 *hw_sa_id) cn10k_mcs_alloc_rxsa() argument 249 cn10k_mcs_free_txsa(struct otx2_nic *pfvf, u16 hw_sa_id) cn10k_mcs_free_txsa() argument 254 cn10k_mcs_free_rxsa(struct otx2_nic *pfvf, u16 hw_sa_id) cn10k_mcs_free_rxsa() argument 259 cn10k_mcs_write_rx_secy(struct otx2_nic *pfvf, struct macsec_secy *secy, u8 hw_secy_id) cn10k_mcs_write_rx_secy() argument 311 cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf, struct cn10k_mcs_rxsc *rxsc, u8 hw_secy_id) cn10k_mcs_write_rx_flowid() argument 357 cn10k_mcs_write_sc_cam(struct otx2_nic *pfvf, struct cn10k_mcs_rxsc *rxsc, u8 hw_secy_id) cn10k_mcs_write_sc_cam() 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) cn10k_mcs_write_keys() 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) cn10k_mcs_write_rx_sa_plcy() argument 470 cn10k_mcs_write_rx_sa_pn(struct otx2_nic *pfvf, struct cn10k_mcs_rxsc *rxsc, u8 assoc_num, u64 next_pn) cn10k_mcs_write_rx_sa_pn() argument 497 cn10k_mcs_write_tx_secy(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) cn10k_mcs_write_tx_secy() argument 579 cn10k_mcs_write_tx_flowid(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) cn10k_mcs_write_tx_flowid() 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) cn10k_mcs_link_tx_sa2sc() argument 659 cn10k_mcs_write_tx_sa_plcy(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc, u8 assoc_num) cn10k_mcs_write_tx_sa_plcy() argument 695 cn10k_write_tx_sa_pn(struct otx2_nic *pfvf, struct cn10k_mcs_txsc *txsc, u8 assoc_num, u64 next_pn) cn10k_write_tx_sa_pn() argument 722 cn10k_mcs_ena_dis_flowid(struct otx2_nic *pfvf, u16 hw_flow_id, bool enable, enum mcs_direction dir) cn10k_mcs_ena_dis_flowid() 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) cn10k_mcs_sa_stats() 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) cn10k_mcs_sc_stats() 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) cn10k_mcs_secy_stats() argument 913 cn10k_mcs_create_txsc(struct otx2_nic *pfvf) cn10k_mcs_create_txsc() argument 960 cn10k_mcs_delete_txsc(struct otx2_nic *pfvf, struct cn10k_mcs_txsc *txsc) cn10k_mcs_delete_txsc() argument 986 cn10k_mcs_create_rxsc(struct otx2_nic *pfvf) cn10k_mcs_create_rxsc() argument 1016 cn10k_mcs_delete_rxsc(struct otx2_nic *pfvf, struct cn10k_mcs_rxsc *rxsc) cn10k_mcs_delete_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) cn10k_mcs_secy_tx_cfg() argument 1057 cn10k_mcs_secy_rx_cfg(struct otx2_nic *pfvf, struct macsec_secy *secy, u8 hw_secy_id) cn10k_mcs_secy_rx_cfg() argument 1090 cn10k_mcs_disable_rxscs(struct otx2_nic *pfvf, struct macsec_secy *secy, bool delete) cn10k_mcs_disable_rxscs() argument 1120 cn10k_mcs_sync_stats(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) cn10k_mcs_sync_stats() argument 1174 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_open() local 1198 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_stop() local 1216 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_add_secy() local 1244 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_upd_secy() local 1279 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_del_secy() local 1298 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_add_txsa() local 1343 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_upd_txsa() local 1378 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_del_txsa() local 1398 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_add_rxsc() local 1432 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_upd_rxsc() local 1451 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_del_rxsc() local 1469 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_add_rxsa() local 1512 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_upd_rxsa() local 1548 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_del_rxsa() local 1571 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_get_dev_stats() local 1607 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_get_tx_sc_stats() local 1628 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_get_tx_sa_stats() local 1651 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_get_rx_sc_stats() local 1693 struct otx2_nic *pfvf = macsec_netdev_priv(ctx->netdev); cn10k_mdo_get_rx_sa_stats() local 1740 cn10k_handle_mcs_event(struct otx2_nic *pfvf, struct mcs_intr_info *event) cn10k_handle_mcs_event() argument 1767 cn10k_mcs_init(struct otx2_nic *pfvf) cn10k_mcs_init() argument 1807 cn10k_mcs_free(struct otx2_nic *pfvf) cn10k_mcs_free() argument [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 579 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings() argument 581 struct otx2_hw *hw = &pfvf->hw; in otx2_setup_dev_hw_settings() 583 pfvf->hw.cq_time_wait = CQ_TIMER_THRESH_DEFAULT; in otx2_setup_dev_hw_settings() 584 pfvf->hw.cq_ecount_wait = CQ_CQE_THRESH_DEFAULT; in otx2_setup_dev_hw_settings() 585 pfvf->hw.cq_qcount_wait = CQ_QCOUNT_DEFAULT; in otx2_setup_dev_hw_settings() 589 if (is_96xx_A0(pfvf->pdev)) { in otx2_setup_dev_hw_settings() 593 pfvf in otx2_setup_dev_hw_settings() 726 __cn10k_aura_freeptr(struct otx2_nic *pfvf, u64 aura, u64 *ptrs, u64 num_ptrs) __cn10k_aura_freeptr() argument 760 struct otx2_nic *pfvf = dev; cn10k_aura_freeptr() local 771 otx2_aura_allocptr(struct otx2_nic *pfvf, int aura) otx2_aura_allocptr() argument 782 struct otx2_nic *pfvf = dev; otx2_aura_freeptr() local 788 otx2_get_pool_idx(struct otx2_nic *pfvf, int type, int idx) otx2_get_pool_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) otx2_dma_map_page() argument 905 otx2_dma_unmap_page(struct otx2_nic *pfvf, dma_addr_t addr, size_t size, enum dma_data_direction dir) otx2_dma_unmap_page() argument 913 otx2_get_smq_idx(struct otx2_nic *pfvf, u16 qidx) otx2_get_smq_idx() argument 929 otx2_get_total_tx_queues(struct otx2_nic *pfvf) otx2_get_total_tx_queues() argument 945 otx2_tc_flower_rule_cnt(struct otx2_nic *pfvf) otx2_tc_flower_rule_cnt() argument 1101 cn10k_mcs_init(struct otx2_nic *pfvf) cn10k_mcs_init() argument 1102 cn10k_mcs_free(struct otx2_nic *pfvf) cn10k_mcs_free() argument 1103 cn10k_handle_mcs_event(struct otx2_nic *pfvf, struct mcs_intr_info *event) cn10k_handle_mcs_event() argument 1109 otx2_qos_init(struct otx2_nic *pfvf, int qos_txqs) otx2_qos_init() argument 1118 otx2_shutdown_qos(struct otx2_nic *pfvf) otx2_shutdown_qos() argument [all...] |
H A D | otx2_devlink.c | 15 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() 20 "pfvf->flow_cfg not initialized"); 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() 43 otx2_alloc_mcam_entries(pfvf, ctx->val.vu16); in otx2_dl_mcam_count_set() 52 struct otx2_nic *pfvf in otx2_dl_mcam_count_get() local 82 otx2_register_dl(struct otx2_nic *pfvf) otx2_register_dl() argument 116 otx2_unregister_dl(struct otx2_nic *pfvf) otx2_unregister_dl() 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) in otx2_clear_ntuple_flow_info() argument 37 devm_kfree(pfvf->dev, flow_cfg->flow_ent); in otx2_clear_ntuple_flow_info() 42 static int otx2_free_ntuple_mcam_entries(struct otx2_nic *pfvf) in otx2_free_ntuple_mcam_entries() argument 44 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_free_ntuple_mcam_entries() 51 mutex_lock(&pfvf->mbox.lock); in otx2_free_ntuple_mcam_entries() 53 req = otx2_mbox_alloc_msg_npc_mcam_free_entry(&pfvf->mbox); in otx2_free_ntuple_mcam_entries() 60 err = otx2_sync_mbox_msg(&pfvf->mbox); in otx2_free_ntuple_mcam_entries() 64 mutex_unlock(&pfvf->mbox.lock); in otx2_free_ntuple_mcam_entries() 65 otx2_clear_ntuple_flow_info(pfvf, flow_cf in otx2_free_ntuple_mcam_entries() 74 otx2_alloc_mcam_entries(struct otx2_nic *pfvf, u16 count) otx2_alloc_mcam_entries() argument 164 otx2_mcam_entry_init(struct otx2_nic *pfvf) otx2_mcam_entry_init() argument 261 otx2vf_mcam_flow_init(struct otx2_nic *pfvf) otx2vf_mcam_flow_init() argument 449 otx2_find_flow(struct otx2_nic *pfvf, u32 location) otx2_find_flow() argument 461 otx2_add_flow_to_list(struct otx2_nic *pfvf, struct otx2_flow *flow) otx2_add_flow_to_list() argument 489 otx2_get_flow(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc, u32 location) otx2_get_flow() argument 508 otx2_get_all_flows(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc, u32 *rule_locs) otx2_get_all_flows() argument 940 otx2_is_flow_rule_dmacfilter(struct otx2_nic *pfvf, struct ethtool_rx_flow_spec *fsp) otx2_is_flow_rule_dmacfilter() argument 966 otx2_add_flow_msg(struct otx2_nic *pfvf, struct otx2_flow *flow) otx2_add_flow_msg() argument 1052 otx2_add_flow_with_pfmac(struct otx2_nic *pfvf, struct otx2_flow *flow) otx2_add_flow_with_pfmac() argument 1083 otx2_add_flow(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) otx2_add_flow() argument 1206 otx2_remove_flow_msg(struct otx2_nic *pfvf, u16 entry, bool all) otx2_remove_flow_msg() argument 1228 otx2_update_rem_pfmac(struct otx2_nic *pfvf, int req) otx2_update_rem_pfmac() argument 1259 otx2_remove_flow(struct otx2_nic *pfvf, u32 location) otx2_remove_flow() argument 1310 otx2_rss_ctx_flow_del(struct otx2_nic *pfvf, int ctx_id) otx2_rss_ctx_flow_del() argument 1326 otx2_destroy_ntuple_flows(struct otx2_nic *pfvf) otx2_destroy_ntuple_flows() argument 1359 otx2_destroy_mcam_flows(struct otx2_nic *pfvf) otx2_destroy_mcam_flows() argument 1401 otx2_install_rxvlan_offload_flow(struct otx2_nic *pfvf) otx2_install_rxvlan_offload_flow() argument 1430 otx2_delete_rxvlan_offload_flow(struct otx2_nic *pfvf) otx2_delete_rxvlan_offload_flow() argument 1514 otx2_dmacflt_update_pfmac_flow(struct otx2_nic *pfvf) otx2_dmacflt_update_pfmac_flow() 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, in otx2_nix_cq_op_status() argument 41 status = otx2_atomic64_fetch_add(incr, pfvf->cq_op_addr); in otx2_nix_cq_op_status() 45 dev_err(pfvf->dev, "CQ stopped due to error"); in otx2_nix_cq_op_status() 83 static dma_addr_t otx2_dma_map_skb_frag(struct otx2_nic *pfvf, in otx2_dma_map_skb_frag() argument 101 return otx2_dma_map_page(pfvf, page, offset, *len, DMA_TO_DEVICE); in otx2_dma_map_skb_frag() 104 static void otx2_dma_unmap_skb_frags(struct otx2_nic *pfvf, struct sg_list *sg) in otx2_dma_unmap_skb_frags() argument 109 otx2_dma_unmap_page(pfvf, sg->dma_addr[seg], in otx2_dma_unmap_skb_frags() 115 static void otx2_xdp_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_xdp_snd_pkt_handler() argument 126 pa = otx2_iova_to_phys(pfvf in otx2_xdp_snd_pkt_handler() 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) otx2_snd_pkt_handler() argument 176 otx2_set_rxtstamp(struct otx2_nic *pfvf, struct sk_buff *skb, void *data) otx2_set_rxtstamp() 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) otx2_skb_add_frag() argument 232 otx2_set_rxhash(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, struct sk_buff *skb) otx2_set_rxhash() argument 254 otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, int qidx) otx2_free_rcv_seg() argument 274 otx2_check_rcv_errors(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, int qidx) otx2_check_rcv_errors() 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) otx2_rcv_pkt_handler() argument 388 otx2_rx_napi_handler(struct otx2_nic *pfvf, struct napi_struct *napi, struct otx2_cq_queue *cq, int budget) otx2_rx_napi_handler() argument 433 struct otx2_nic *pfvf = dev; otx2_refill_pool_ptrs() local 447 otx2_tx_napi_handler(struct otx2_nic *pfvf, struct otx2_cq_queue *cq, int budget) otx2_tx_napi_handler() argument 511 otx2_adjust_adaptive_coalese(struct otx2_nic *pfvf, struct otx2_cq_poll *cq_poll) otx2_adjust_adaptive_coalese() argument 537 struct otx2_nic *pfvf; otx2_napi_handler() local 614 otx2_sqe_add_sg(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, int num_segs, int *offset) otx2_sqe_add_sg() argument 659 otx2_sqe_add_ext(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, int *offset) otx2_sqe_add_ext() 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) otx2_sqe_add_hdr() 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) otx2_dma_map_tso_skb() argument 880 otx2_sq_append_tso(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, u16 qidx) otx2_sq_append_tso() argument 965 is_hw_tso_supported(struct otx2_nic *pfvf, struct sk_buff *skb) is_hw_tso_supported() argument 990 otx2_get_sqe_count(struct otx2_nic *pfvf, struct sk_buff *skb) otx2_get_sqe_count() argument 1078 otx2_set_txtstamp(struct otx2_nic *pfvf, struct sk_buff *skb, struct otx2_snd_queue *sq, int *offset) otx2_set_txtstamp() argument 1145 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_sq_append_skb() local 1210 otx2_cleanup_rx_cqes(struct otx2_nic *pfvf, struct otx2_cq_queue *cq, int qidx) otx2_cleanup_rx_cqes() argument 1248 otx2_cleanup_tx_cqes(struct otx2_nic *pfvf, struct otx2_cq_queue *cq) otx2_cleanup_tx_cqes() argument 1294 otx2_rxtx_enable(struct otx2_nic *pfvf, bool enable) otx2_rxtx_enable() argument 1315 otx2_free_pending_sqe(struct otx2_nic *pfvf) otx2_free_pending_sqe() argument 1367 otx2_xdp_sq_append_pkt(struct otx2_nic *pfvf, u64 iova, int len, u16 qidx) otx2_xdp_sq_append_pkt() 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) otx2_xdp_rcv_pkt_handler() argument [all...] |
H A D | cn10k.h | 13 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, u1 [all...] |
H A D | otx2_ptp.c | 51 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() 233 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_tc_adjtime() local 235 mutex_lock(&pfvf in otx2_ptp_tc_adjtime() 325 struct otx2_nic *pfvf = ptp->nic; otx2_sync_tstamp() local 368 otx2_ptp_init(struct otx2_nic *pfvf) otx2_ptp_init() argument 472 otx2_ptp_destroy(struct otx2_nic *pfvf) otx2_ptp_destroy() argument 487 otx2_ptp_clock_index(struct otx2_nic *pfvf) otx2_ptp_clock_index() argument 496 otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) otx2_ptp_tstamp2time() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_common.c | 20 struct otx2_nic *pfvf, int qidx) in otx2_nix_rq_op_stats() 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() 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 in otx2_update_lmac_stats() 19 otx2_nix_rq_op_stats(struct queue_stats *stats, struct otx2_nic *pfvf, int qidx) otx2_nix_rq_op_stats() argument 32 otx2_nix_sq_op_stats(struct queue_stats *stats, struct otx2_nic *pfvf, int qidx) otx2_nix_sq_op_stats() argument 63 otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) otx2_update_rq_stats() argument 74 otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) otx2_update_sq_stats() argument 85 otx2_get_dev_stats(struct otx2_nic *pfvf) otx2_get_dev_stats() argument 116 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_stats64() local 134 otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) otx2_hw_set_mac_addr() argument 153 otx2_hw_get_mac_addr(struct otx2_nic *pfvf, struct net_device *netdev) otx2_hw_get_mac_addr() argument 188 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_mac_address() local 203 otx2_hw_set_mtu(struct otx2_nic *pfvf, int mtu) otx2_hw_set_mtu() argument 223 otx2_config_pause_frm(struct otx2_nic *pfvf) otx2_config_pause_frm() argument 248 otx2_set_flowkey_cfg(struct otx2_nic *pfvf) otx2_set_flowkey_cfg() argument 269 otx2_set_rss_table(struct otx2_nic *pfvf) otx2_set_rss_table() argument 308 otx2_set_rss_key(struct otx2_nic *pfvf) otx2_set_rss_key() argument 331 otx2_rss_init(struct otx2_nic *pfvf) otx2_rss_init() argument 402 otx2_setup_segmentation(struct otx2_nic *pfvf) otx2_setup_segmentation() argument 457 otx2_config_irq_coalescing(struct otx2_nic *pfvf, int qidx) otx2_config_irq_coalescing() argument 471 __otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool) __otx2_alloc_rbuf() argument 491 otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool) otx2_alloc_rbuf() argument 503 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_tx_timeout() local 511 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_mac_from_af() local 524 otx2_get_link(struct otx2_nic *pfvf) otx2_get_link() argument 541 otx2_txschq_config(struct otx2_nic *pfvf, int lvl) otx2_txschq_config() argument 622 otx2_txsch_alloc(struct otx2_nic *pfvf) otx2_txsch_alloc() argument 639 otx2_txschq_stop(struct otx2_nic *pfvf) otx2_txschq_stop() argument 664 otx2_sqb_flush(struct otx2_nic *pfvf) otx2_sqb_flush() argument 704 otx2_rq_init(struct otx2_nic *pfvf, u16 qidx, u16 lpb_aura) otx2_rq_init() argument 737 otx2_sq_init(struct otx2_nic *pfvf, u16 qidx, u16 sqb_aura) otx2_sq_init() argument 814 otx2_cq_init(struct otx2_nic *pfvf, u16 qidx) otx2_cq_init() argument 889 struct otx2_nic *pfvf; otx2_pool_refill_task() local 922 otx2_config_nix_queues(struct otx2_nic *pfvf) otx2_config_nix_queues() argument 965 otx2_config_nix(struct otx2_nic *pfvf) otx2_config_nix() argument 1010 otx2_sq_free_sqbs(struct otx2_nic *pfvf) otx2_sq_free_sqbs() argument 1036 otx2_free_aura_ptr(struct otx2_nic *pfvf, int type) otx2_free_aura_ptr() argument 1069 otx2_aura_pool_free(struct otx2_nic *pfvf) otx2_aura_pool_free() argument 1086 otx2_aura_init(struct otx2_nic *pfvf, int aura_id, int pool_id, int numptrs) otx2_aura_init() argument 1159 otx2_pool_init(struct otx2_nic *pfvf, u16 pool_id, int stack_pages, int numptrs, int buf_size) otx2_pool_init() argument 1208 otx2_sq_aura_pool_init(struct otx2_nic *pfvf) otx2_sq_aura_pool_init() argument 1276 otx2_rq_aura_pool_init(struct otx2_nic *pfvf) otx2_rq_aura_pool_init() argument 1327 otx2_config_npa(struct otx2_nic *pfvf) otx2_config_npa() argument 1380 otx2_attach_npa_nix(struct otx2_nic *pfvf) otx2_attach_npa_nix() argument 1462 otx2_nix_config_bp(struct otx2_nic *pfvf, bool enable) otx2_nix_config_bp() argument 1482 mbox_handler_cgx_stats(struct otx2_nic *pfvf, struct cgx_stats_rsp *rsp) mbox_handler_cgx_stats() argument 1506 mbox_handler_npa_lf_alloc(struct otx2_nic *pfvf, struct npa_lf_alloc_rsp *rsp) mbox_handler_npa_lf_alloc() argument 1514 mbox_handler_nix_lf_alloc(struct otx2_nic *pfvf, struct nix_lf_alloc_rsp *rsp) mbox_handler_nix_lf_alloc() argument 1525 mbox_handler_msix_offset(struct otx2_nic *pfvf, struct msix_offset_rsp *rsp) mbox_handler_msix_offset() argument 1533 mbox_handler_nix_bp_enable(struct otx2_nic *pfvf, struct nix_bp_cfg_rsp *rsp) mbox_handler_nix_bp_enable() argument 1545 otx2_free_cints(struct otx2_nic *pfvf, int n) otx2_free_cints() argument 1562 otx2_set_cints_affinity(struct otx2_nic *pfvf) otx2_set_cints_affinity() argument [all...] |
H A D | otx2_txrx.c | 46 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 137 otx2_skb_add_frag(struct otx2_nic *pfvf, struct sk_buff *skb, u64 iova, int len, struct nix_rx_parse_s *parse) otx2_skb_add_frag() argument 166 otx2_set_rxhash(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, struct sk_buff *skb) otx2_set_rxhash() argument 188 otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, int qidx) otx2_free_rcv_seg() argument 207 otx2_check_rcv_errors(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, int qidx) otx2_check_rcv_errors() argument 272 otx2_rcv_pkt_handler(struct otx2_nic *pfvf, struct napi_struct *napi, struct otx2_cq_queue *cq, struct nix_cqe_rx_s *cqe) otx2_rcv_pkt_handler() argument 301 otx2_rx_napi_handler(struct otx2_nic *pfvf, struct napi_struct *napi, struct otx2_cq_queue *cq, int budget) otx2_rx_napi_handler() argument 358 otx2_tx_napi_handler(struct otx2_nic *pfvf, struct otx2_cq_queue *cq, int budget) otx2_tx_napi_handler() argument 403 struct otx2_nic *pfvf; otx2_napi_handler() local 460 otx2_sqe_add_sg(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, int num_segs, int *offset) otx2_sqe_add_sg() argument 505 otx2_sqe_add_ext(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, int *offset) otx2_sqe_add_ext() argument 575 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) otx2_sqe_add_hdr() argument 622 otx2_dma_map_tso_skb(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, int sqe, int hdr_len) otx2_dma_map_tso_skb() argument 704 otx2_sq_append_tso(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, struct sk_buff *skb, u16 qidx) otx2_sq_append_tso() argument 789 is_hw_tso_supported(struct otx2_nic *pfvf, struct sk_buff *skb) is_hw_tso_supported() argument 812 otx2_get_sqe_count(struct otx2_nic *pfvf, struct sk_buff *skb) otx2_get_sqe_count() argument 825 otx2_set_txtstamp(struct otx2_nic *pfvf, struct sk_buff *skb, struct otx2_snd_queue *sq, int *offset) otx2_set_txtstamp() argument 844 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_sq_append_skb() local 906 otx2_cleanup_rx_cqes(struct otx2_nic *pfvf, struct otx2_cq_queue *cq) otx2_cleanup_rx_cqes() argument 931 otx2_cleanup_tx_cqes(struct otx2_nic *pfvf, struct otx2_cq_queue *cq) otx2_cleanup_tx_cqes() argument 957 otx2_rxtx_enable(struct otx2_nic *pfvf, bool enable) otx2_rxtx_enable() argument [all...] |
H A D | otx2_ethtool.c | 72 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() 167 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_ethtool_stats() local 190 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_sset_count() local 207 struct otx2_nic *pfvf = netdev_priv(dev); otx2_get_channels() local 220 struct otx2_nic *pfvf = netdev_priv(dev); otx2_set_channels() local 251 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_pauseparam() local 276 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_pauseparam() local 300 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_ringparam() local 312 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_ringparam() local 356 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_coalesce() local 370 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_coalesce() local 423 otx2_get_rss_hash_opts(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) otx2_get_rss_hash_opts() argument 468 otx2_set_rss_hash_opts(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc) otx2_set_rss_hash_opts() argument 549 struct otx2_nic *pfvf = netdev_priv(dev); otx2_get_rxnfc() local 567 struct otx2_nic *pfvf = netdev_priv(dev); otx2_set_rxnfc() local 583 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_rxfh_key_size() local 593 struct otx2_nic *pfvf = netdev_priv(dev); otx2_get_rxfh_indir_size() local 602 struct otx2_nic *pfvf = netdev_priv(dev); otx2_get_rxfh() local 626 struct otx2_nic *pfvf = netdev_priv(dev); otx2_set_rxfh() local 656 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_msglevel() local 663 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_set_msglevel() local 670 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_link() local 681 struct otx2_nic *pfvf = netdev_priv(netdev); otx2_get_ts_info() local [all...] |
H A D | otx2_ptp.c | 66 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 184 otx2_ptp_destroy(struct otx2_nic *pfvf) otx2_ptp_destroy() argument 196 otx2_ptp_clock_index(struct otx2_nic *pfvf) otx2_ptp_clock_index() argument 204 otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) otx2_ptp_tstamp2time() argument [all...] |
H A D | otx2_common.h | 148 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 in otx2_setup_dev_hw_settings() 442 otx2_aura_allocptr(struct otx2_nic *pfvf, int aura) otx2_aura_allocptr() argument 452 otx2_aura_freeptr(struct otx2_nic *pfvf, int aura, s64 buf) otx2_aura_freeptr() argument 459 otx2_get_pool_idx(struct otx2_nic *pfvf, int type, int idx) otx2_get_pool_idx() argument 556 otx2_dma_map_page(struct otx2_nic *pfvf, struct page *page, size_t offset, size_t size, enum dma_data_direction dir) otx2_dma_map_page() argument 570 otx2_dma_unmap_page(struct otx2_nic *pfvf, dma_addr_t addr, size_t size, enum dma_data_direction dir) otx2_dma_unmap_page() argument [all...] |
H A D | otx2_ptp.h | 7 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);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npa.c | 64 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 in rvu_npa_aq_enq_inst() 206 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); npa_lf_hwctx_disable() local 303 npa_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) npa_ctx_free() argument 329 struct rvu_pfvf *pfvf; rvu_mbox_handler_npa_lf_alloc() local 431 struct rvu_pfvf *pfvf; rvu_mbox_handler_npa_lf_free() local 530 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_npa_lf_teardown() local [all...] |
H A D | rvu_nix.c | 73 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 in nix_interface_init() 274 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); nix_interface_deinit() local 298 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_bp_disable() local 326 struct rvu_pfvf *pfvf; rvu_nix_get_bpid() local 385 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_bp_enable() local 528 nix_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) nix_ctx_free() argument 557 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) nixlf_rss_ctx_init() argument 635 struct rvu_pfvf *pfvf; rvu_nix_aq_enq_inst() local 863 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); nix_lf_hwctx_disable() local 977 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_lf_alloc() local 1192 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_lf_free() local 1225 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_mark_format_cfg() local 1493 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_txsch_alloc() local 2044 struct rvu_pfvf *pfvf; nix_update_bcast_mce_list() local 2113 struct rvu_pfvf *pfvf; nix_setup_bcast_tables() local 2701 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_set_mac_addr() local 2724 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_get_mac_addr() local 2742 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_set_rx_mode() local 2772 struct rvu_pfvf *pfvf; nix_find_link_frs() local 2910 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_rxvlan_alloc() local 3321 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_nix_lf_teardown() local 3407 struct rvu_pfvf *pfvf; rvu_mbox_handler_nix_lso_format_cfg() local [all...] |
H A D | rvu.c | 30 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, 293 static void rvu_update_rsrc_map(struct rvu *rvu, struct rvu_pfvf *pfvf, in rvu_update_rsrc_map() argument 321 pfvf->npalf = attach ? true : false; in rvu_update_rsrc_map() 322 num_lfs = pfvf->npalf; in rvu_update_rsrc_map() 326 pfvf->nixlf = attach ? true : false; in rvu_update_rsrc_map() 327 num_lfs = pfvf->nixlf; in rvu_update_rsrc_map() 330 attach ? pfvf->sso++ : pfvf->sso--; in rvu_update_rsrc_map() 331 num_lfs = pfvf in rvu_update_rsrc_map() 495 struct rvu_pfvf *pfvf; rvu_scan_block() local 550 struct rvu_pfvf *pfvf; rvu_setup_msix_resources() local 667 struct rvu_pfvf *pfvf; rvu_free_hw_resources() local 709 struct rvu_pfvf *pfvf; rvu_setup_pfvf_macaddress() local 1043 rvu_get_rsrc_mapcount(struct rvu_pfvf *pfvf, int blkaddr) rvu_get_rsrc_mapcount() argument 1066 is_blktype_attached(struct rvu_pfvf *pfvf, int blktype) is_blktype_attached() argument 1088 struct rvu_pfvf *pfvf; is_pffunc_map_valid() local 1125 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_detach_block() local 1213 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_get_nix_blkaddr() local 1266 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_attach_block() local 1304 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_check_rsrc_availability() local 1466 rvu_get_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, int blkaddr, int lf) rvu_get_msix_offset() argument 1481 rvu_set_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, struct rvu_block *block, int lf) rvu_set_msix_offset() argument 1506 rvu_clear_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, struct rvu_block *block, int lf) rvu_clear_msix_offset() argument 1535 struct rvu_pfvf *pfvf; rvu_mbox_handler_msix_offset() local 2260 struct rvu_pfvf *pfvf = &rvu->pf[0]; rvu_afvf_msix_vectors_num_ok() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npa.c | 70 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 in rvu_npa_aq_enq_inst() 212 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); npa_lf_hwctx_disable() local 309 npa_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) npa_ctx_free() argument 335 struct rvu_pfvf *pfvf; rvu_mbox_handler_npa_lf_alloc() local 441 struct rvu_pfvf *pfvf; rvu_mbox_handler_npa_lf_free() local 543 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_npa_lf_teardown() 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, 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 in rvu_update_rsrc_map() 555 struct rvu_pfvf *pfvf; rvu_scan_block() local 610 struct rvu_pfvf *pfvf; rvu_setup_msix_resources() local 727 struct rvu_pfvf *pfvf; rvu_free_hw_resources() local 769 struct rvu_pfvf *pfvf; rvu_setup_pfvf_macaddress() local 1244 rvu_get_rsrc_mapcount(struct rvu_pfvf *pfvf, int blkaddr) rvu_get_rsrc_mapcount() argument 1267 is_blktype_attached(struct rvu_pfvf *pfvf, int blktype) is_blktype_attached() argument 1289 struct rvu_pfvf *pfvf; is_pffunc_map_valid() local 1327 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_get_blkaddr_from_slot() local 1380 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_detach_block() local 1475 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_get_nix_blkaddr() local 1546 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_attach_block() local 1584 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); rvu_check_rsrc_availability() local 1772 rvu_get_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, int blkaddr, int lf) rvu_get_msix_offset() argument 1787 rvu_set_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, struct rvu_block *block, int lf) rvu_set_msix_offset() argument 1812 rvu_clear_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, struct rvu_block *block, int lf) rvu_clear_msix_offset() argument 1841 struct rvu_pfvf *pfvf; rvu_mbox_handler_msix_offset() local 2029 struct rvu_pfvf *pfvf; rvu_mbox_handler_set_vf_perm() local 2853 struct rvu_pfvf *pfvf = &rvu->pf[0]; rvu_afvf_msix_vectors_num_ok() local [all...] |
H A D | rvu_switch.c | 13 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...] |