/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_main.c | 131 update_rx_stats(nic_dev, &nic_dev->rxqs[i]); in update_nic_stats() 134 update_tx_stats(nic_dev, &nic_dev->txqs[i]); in update_nic_stats() 388 nic_dev->rss_limit = nic_dev->max_qps; in hinic_enable_rss() 389 nic_dev->num_qps = nic_dev->max_qps; in hinic_enable_rss() 390 nic_dev->num_rss = nic_dev->max_qps; in hinic_enable_rss() 401 nic_dev->rss_limit = nic_dev->max_qps; in hinic_enable_rss() 402 nic_dev->num_qps = nic_dev->max_qps; in hinic_enable_rss() 403 nic_dev->num_rss = nic_dev->max_qps; in hinic_enable_rss() 422 nic_dev->rss_limit = nic_dev->num_qps; in hinic_enable_rss() 423 nic_dev->num_rss = nic_dev->num_qps; in hinic_enable_rss() [all …]
|
A D | hinic_ethtool.c | 408 netif_err(nic_dev, drv, nic_dev->netdev, "Not support autoneg\n"); in get_link_settings_type() 435 netif_err(nic_dev, drv, nic_dev->netdev, "%s autoneg failed\n", in set_link_settings_separate_cmd() 439 netif_info(nic_dev, drv, nic_dev->netdev, "%s autoneg successfully\n", in set_link_settings_separate_cmd() 448 netif_err(nic_dev, drv, nic_dev->netdev, "Set speed %d failed\n", in set_link_settings_separate_cmd() 564 netif_err(nic_dev, drv, nic_dev->netdev, in check_ringparam_valid() 573 netif_err(nic_dev, drv, nic_dev->netdev, in check_ringparam_valid() 602 nic_dev->sq_depth, nic_dev->rq_depth, in hinic_set_ringparam() 729 netif_err(nic_dev, drv, nic_dev->netdev, in __set_hw_coal_param() 930 err = hinic_get_rss_type(nic_dev, nic_dev->rss_tmpl_idx, in hinic_get_rss_hash_opts() 1046 err = hinic_set_rss_type(nic_dev, nic_dev->rss_tmpl_idx, in hinic_set_rss_hash_opts() [all …]
|
A D | hinic_debugfs.c | 103 netif_err(nic_dev, drv, nic_dev->netdev, in hinic_dbg_get_func_table() 267 nic_dev->sq_dbgfs = debugfs_create_dir("SQs", nic_dev->dbgfs_root); in hinic_sq_dbgfs_init() 272 debugfs_remove_recursive(nic_dev->sq_dbgfs); in hinic_sq_dbgfs_uninit() 277 nic_dev->rq_dbgfs = debugfs_create_dir("RQs", nic_dev->dbgfs_root); in hinic_rq_dbgfs_init() 282 debugfs_remove_recursive(nic_dev->rq_dbgfs); in hinic_rq_dbgfs_uninit() 287 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_init() 288 nic_dev->func_tbl_dbgfs = debugfs_create_dir("func_table", nic_dev->dbgfs_root); in hinic_func_tbl_dbgfs_init() 293 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_uninit() 297 void hinic_dbg_init(struct hinic_dev *nic_dev) in hinic_dbg_init() argument 299 nic_dev->dbgfs_root = debugfs_create_dir(pci_name(nic_dev->hwdev->hwif->pdev), in hinic_dbg_init() [all …]
|
A D | hinic_rx.c | 210 free_wqebbs = nic_dev->rx_weight; in rx_alloc_pkts() 321 int lb_len = nic_dev->lb_pkt_len; in hinic_copy_lp_data() 326 nic_dev->lb_test_rx_idx = 0; in hinic_copy_lp_data() 332 nic_dev->lb_test_rx_idx++; in hinic_copy_lp_data() 346 nic_dev->lb_test_rx_idx++; in hinic_copy_lp_data() 363 struct hinic_dev *nic_dev; in rxq_recv() local 376 nic_dev = netdev_priv(netdev); in rxq_recv() 421 hinic_copy_lp_data(nic_dev, skb); in rxq_recv() 498 struct hinic_dev *nic_dev; in rx_irq() local 501 nic_dev = netdev_priv(rxq->netdev); in rx_irq() [all …]
|
A D | hinic_port.c | 40 struct hinic_hwdev *hwdev = nic_dev->hwdev; in change_mac() 119 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_mac() 150 struct net_device *netdev = nic_dev->netdev; in hinic_port_set_mtu() 151 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_mtu() 193 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_add_vlan() 213 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_del_vlan() 233 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_rx_mode() 254 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_link_state() 572 if (HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_set_rx_lro_state() 596 hwdev = nic_dev->hwdev; in hinic_rss_set_indir_tbl() [all …]
|
A D | hinic_sriov.c | 501 return &nic_dev->sriov_info; in hinic_get_sriov_info_by_pcidev() 584 sriov_info = &nic_dev->sriov_info; in hinic_ndo_get_vf_config() 629 sriov_info = &nic_dev->sriov_info; in hinic_ndo_set_vf_mac() 851 nic_dev->sriov_info.num_vfs); in hinic_ndo_set_vf_bw() 863 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_bw() 869 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_bw() 888 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_bw() 896 netif_info(nic_dev, drv, netdev, in hinic_ndo_set_vf_bw() 958 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_spoofchk() 1008 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_link_state() [all …]
|
A D | hinic_port.h | 763 int hinic_port_get_mac(struct hinic_dev *nic_dev, u8 *addr); 765 int hinic_port_set_mtu(struct hinic_dev *nic_dev, int new_mtu); 773 int hinic_port_link_state(struct hinic_dev *nic_dev, 776 int hinic_port_set_state(struct hinic_dev *nic_dev, 779 int hinic_port_set_func_state(struct hinic_dev *nic_dev, 782 int hinic_port_get_cap(struct hinic_dev *nic_dev, 785 int hinic_set_max_qnum(struct hinic_dev *nic_dev, u8 num_rqs); 794 int hinic_set_rss_type(struct hinic_dev *nic_dev, u32 tmpl_idx, 814 int hinic_get_rss_type(struct hinic_dev *nic_dev, u32 tmpl_idx, 826 int hinic_get_phy_port_stats(struct hinic_dev *nic_dev, [all …]
|
A D | hinic_tx.c | 503 txq = &nic_dev->txqs[q_id]; in hinic_lb_xmit_frame() 523 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame() 564 txq = &nic_dev->txqs[q_id]; in hinic_xmit_frame() 607 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame() 635 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame() 657 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb() 750 if (!netif_testing(nic_dev->netdev)) in free_tx_poll() 781 struct hinic_dev *nic_dev; in tx_irq() local 783 nic_dev = netdev_priv(txq->netdev); in tx_irq() 785 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in tx_irq() [all …]
|
A D | hinic_debugfs.h | 94 void hinic_sq_dbgfs_init(struct hinic_dev *nic_dev); 96 void hinic_sq_dbgfs_uninit(struct hinic_dev *nic_dev); 98 void hinic_rq_dbgfs_init(struct hinic_dev *nic_dev); 100 void hinic_rq_dbgfs_uninit(struct hinic_dev *nic_dev); 102 void hinic_func_tbl_dbgfs_init(struct hinic_dev *nic_dev); 104 void hinic_func_tbl_dbgfs_uninit(struct hinic_dev *nic_dev); 106 void hinic_dbg_init(struct hinic_dev *nic_dev); 108 void hinic_dbg_uninit(struct hinic_dev *nic_dev);
|