Home
last modified time | relevance | path

Searched refs:nic_dev (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/drivers/net/ethernet/huawei/hinic/
H A Dhinic_main.c347 hinic_rss_cfg(nic_dev, 0, nic_dev->rss_tmpl_idx); in hinic_rss_deinit()
374 nic_dev->rss_limit = nic_dev->max_qps; in hinic_enable_rss()
375 nic_dev->num_qps = nic_dev->max_qps; in hinic_enable_rss()
376 nic_dev->num_rss = nic_dev->max_qps; in hinic_enable_rss()
387 nic_dev->rss_limit = nic_dev->max_qps; in hinic_enable_rss()
388 nic_dev->num_qps = nic_dev->max_qps; in hinic_enable_rss()
389 nic_dev->num_rss = nic_dev->max_qps; in hinic_enable_rss()
408 nic_dev->rss_limit = nic_dev->num_qps; in hinic_enable_rss()
409 nic_dev->num_rss = nic_dev->num_qps; in hinic_enable_rss()
453 netif_err(nic_dev, drv, nic_dev->netdev, in hinic_open()
[all …]
H A Dhinic_ethtool.c407 netif_err(nic_dev, drv, nic_dev->netdev, "Not support autoneg\n"); in get_link_settings_type()
434 netif_err(nic_dev, drv, nic_dev->netdev, "%s autoneg failed\n", in set_link_settings_separate_cmd()
438 netif_info(nic_dev, drv, nic_dev->netdev, "%s autoneg successfully\n", in set_link_settings_separate_cmd()
447 netif_err(nic_dev, drv, nic_dev->netdev, "Set speed %d failed\n", in set_link_settings_separate_cmd()
565 netif_err(nic_dev, drv, nic_dev->netdev, in check_ringparam_valid()
574 netif_err(nic_dev, drv, nic_dev->netdev, in check_ringparam_valid()
605 nic_dev->sq_depth, nic_dev->rq_depth, in hinic_set_ringparam()
732 netif_err(nic_dev, drv, nic_dev->netdev, in __set_hw_coal_param()
933 err = hinic_get_rss_type(nic_dev, nic_dev->rss_tmpl_idx, in hinic_get_rss_hash_opts()
1049 err = hinic_set_rss_type(nic_dev, nic_dev->rss_tmpl_idx, in hinic_set_rss_hash_opts()
[all …]
H A Dhinic_debugfs.c104 netif_err(nic_dev, drv, nic_dev->netdev, in hinic_dbg_get_func_table()
273 nic_dev->sq_dbgfs = debugfs_create_dir("SQs", nic_dev->dbgfs_root); in hinic_sq_dbgfs_init()
278 debugfs_remove_recursive(nic_dev->sq_dbgfs); in hinic_sq_dbgfs_uninit()
283 nic_dev->rq_dbgfs = debugfs_create_dir("RQs", nic_dev->dbgfs_root); in hinic_rq_dbgfs_init()
288 debugfs_remove_recursive(nic_dev->rq_dbgfs); in hinic_rq_dbgfs_uninit()
293 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_init()
294 nic_dev->func_tbl_dbgfs = debugfs_create_dir("func_table", nic_dev->dbgfs_root); in hinic_func_tbl_dbgfs_init()
299 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_uninit()
303 void hinic_dbg_init(struct hinic_dev *nic_dev) in hinic_dbg_init() argument
305 nic_dev->dbgfs_root = debugfs_create_dir(pci_name(nic_dev->hwdev->hwif->pdev), in hinic_dbg_init()
[all …]
H A Dhinic_rx.c208 free_wqebbs = nic_dev->rx_weight; in rx_alloc_pkts()
319 int lb_len = nic_dev->lb_pkt_len; in hinic_copy_lp_data()
324 nic_dev->lb_test_rx_idx = 0; in hinic_copy_lp_data()
330 nic_dev->lb_test_rx_idx++; in hinic_copy_lp_data()
344 nic_dev->lb_test_rx_idx++; in hinic_copy_lp_data()
361 struct hinic_dev *nic_dev; in rxq_recv() local
374 nic_dev = netdev_priv(netdev); in rxq_recv()
419 hinic_copy_lp_data(nic_dev, skb); in rxq_recv()
483 nic_dev->rx_weight); in rx_add_napi()
497 struct hinic_dev *nic_dev; in rx_irq() local
[all …]
H A Dhinic_port.c37 struct hinic_hwdev *hwdev = nic_dev->hwdev; in change_mac()
116 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_mac()
147 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_mtu()
178 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_add_vlan()
198 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_del_vlan()
218 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_rx_mode()
239 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_link_state()
270 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_state()
587 if (HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_set_rx_lro_state()
611 hwdev = nic_dev->hwdev; in hinic_rss_set_indir_tbl()
[all …]
H A Dhinic_sriov.c520 return &nic_dev->sriov_info; in hinic_get_sriov_info_by_pcidev()
603 sriov_info = &nic_dev->sriov_info; in hinic_ndo_get_vf_config()
648 sriov_info = &nic_dev->sriov_info; in hinic_ndo_set_vf_mac()
870 nic_dev->sriov_info.num_vfs); in hinic_ndo_set_vf_bw()
876 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_bw()
882 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_bw()
901 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_bw()
909 netif_info(nic_dev, drv, netdev, in hinic_ndo_set_vf_bw()
971 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_spoofchk()
1021 netif_err(nic_dev, drv, netdev, in hinic_ndo_set_vf_link_state()
[all …]
H A Dhinic_debugfs.h93 void hinic_sq_dbgfs_init(struct hinic_dev *nic_dev);
95 void hinic_sq_dbgfs_uninit(struct hinic_dev *nic_dev);
97 void hinic_rq_dbgfs_init(struct hinic_dev *nic_dev);
99 void hinic_rq_dbgfs_uninit(struct hinic_dev *nic_dev);
101 void hinic_func_tbl_dbgfs_init(struct hinic_dev *nic_dev);
103 void hinic_func_tbl_dbgfs_uninit(struct hinic_dev *nic_dev);
105 void hinic_dbg_init(struct hinic_dev *nic_dev);
107 void hinic_dbg_uninit(struct hinic_dev *nic_dev);
H A Dhinic_port.h773 int hinic_port_get_mac(struct hinic_dev *nic_dev, u8 *addr);
775 int hinic_port_set_mtu(struct hinic_dev *nic_dev, int new_mtu);
783 int hinic_port_link_state(struct hinic_dev *nic_dev,
786 int hinic_port_set_state(struct hinic_dev *nic_dev,
789 int hinic_port_set_func_state(struct hinic_dev *nic_dev,
792 int hinic_port_get_cap(struct hinic_dev *nic_dev,
795 int hinic_set_max_qnum(struct hinic_dev *nic_dev, u8 num_rqs);
804 int hinic_set_rss_type(struct hinic_dev *nic_dev, u32 tmpl_idx,
836 int hinic_get_phy_port_stats(struct hinic_dev *nic_dev,
839 int hinic_get_vport_stats(struct hinic_dev *nic_dev,
[all …]
H A Dhinic_tx.c502 txq = &nic_dev->txqs[q_id]; in hinic_lb_xmit_frame()
522 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
563 txq = &nic_dev->txqs[q_id]; in hinic_xmit_frame()
606 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
634 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
656 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb()
749 if (!netif_testing(nic_dev->netdev)) in free_tx_poll()
780 struct hinic_dev *nic_dev; in tx_irq() local
782 nic_dev = netdev_priv(txq->netdev); in tx_irq()
811 nic_dev->tx_weight); in tx_request_irq()
[all …]