Home
last modified time | relevance | path

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

/drivers/net/ethernet/huawei/hinic/
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 …]
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()
934 err = hinic_get_rss_type(nic_dev, nic_dev->rss_tmpl_idx, in hinic_get_rxfh_fields()
1052 err = hinic_set_rss_type(nic_dev, nic_dev->rss_tmpl_idx, in hinic_set_rxfh_fields()
[all …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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);
/drivers/net/ethernet/huawei/hinic3/
A Dhinic3_main.c65 nic_dev->netdev = netdev; in hinic3_init_nic_dev()
67 nic_dev->hwdev = hwdev; in hinic3_init_nic_dev()
68 nic_dev->pdev = pdev; in hinic3_init_nic_dev()
171 nic_dev->link_status_up = true; in hinic3_link_status_change()
178 nic_dev->link_status_up = false; in hinic3_link_status_change()
190 netdev = nic_dev->netdev; in hinic3_nic_event()
211 struct hinic3_nic_dev *nic_dev; in hinic3_nic_probe() local
238 nic_dev = netdev_priv(netdev); in hinic3_nic_probe()
275 hinic3_free_nic_io(nic_dev); in hinic3_nic_probe()
295 netdev = nic_dev->netdev; in hinic3_nic_remove()
[all …]
A Dhinic3_tx.c22 struct hinic3_hwdev *hwdev = nic_dev->hwdev; in hinic3_alloc_txqs()
23 u16 q_id, num_txqs = nic_dev->max_qps; in hinic3_alloc_txqs()
24 struct pci_dev *pdev = nic_dev->pdev; in hinic3_alloc_txqs()
32 nic_dev->txqs = kcalloc(num_txqs, sizeof(*nic_dev->txqs), GFP_KERNEL); in hinic3_alloc_txqs()
33 if (!nic_dev->txqs) in hinic3_alloc_txqs()
37 txq = &nic_dev->txqs[q_id]; in hinic3_alloc_txqs()
40 txq->q_depth = nic_dev->q_params.sq_depth; in hinic3_alloc_txqs()
52 kfree(nic_dev->txqs); in hinic3_free_txqs()
72 struct pci_dev *pdev = nic_dev->pdev; in hinic3_tx_map_skb()
127 struct pci_dev *pdev = nic_dev->pdev; in hinic3_tx_unmap_skb()
[all …]
A Dhinic3_nic_cfg.c42 int hinic3_set_nic_feature_to_hw(struct hinic3_nic_dev *nic_dev) in hinic3_set_nic_feature_to_hw() argument
44 return hinic3_feature_nego(nic_dev->hwdev, MGMT_MSG_CMD_OP_SET, in hinic3_set_nic_feature_to_hw()
45 &nic_dev->nic_io->feature_cap, 1); in hinic3_set_nic_feature_to_hw()
48 bool hinic3_test_support(struct hinic3_nic_dev *nic_dev, in hinic3_test_support() argument
51 return (nic_dev->nic_io->feature_cap & feature_bits) == feature_bits; in hinic3_test_support()
54 void hinic3_update_nic_feature(struct hinic3_nic_dev *nic_dev, u64 feature_cap) in hinic3_update_nic_feature() argument
56 nic_dev->nic_io->feature_cap = feature_cap; in hinic3_update_nic_feature()
87 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_set_port_mtu() local
89 struct hinic3_hwdev *hwdev = nic_dev->hwdev; in hinic3_set_port_mtu()
A Dhinic3_irq.c17 struct hinic3_nic_dev *nic_dev; in hinic3_poll() local
21 nic_dev = netdev_priv(irq_cfg->netdev); in hinic3_poll()
35 hinic3_set_msix_state(nic_dev->hwdev, irq_cfg->msix_entry_idx, in hinic3_poll()
43 struct hinic3_nic_dev *nic_dev = netdev_priv(irq_cfg->netdev); in qp_add_napi() local
49 netif_napi_add(nic_dev->netdev, &irq_cfg->napi, hinic3_poll); in qp_add_napi()
A Dhinic3_nic_cfg.h25 int hinic3_set_nic_feature_to_hw(struct hinic3_nic_dev *nic_dev);
26 bool hinic3_test_support(struct hinic3_nic_dev *nic_dev,
28 void hinic3_update_nic_feature(struct hinic3_nic_dev *nic_dev, u64 feature_cap);
A Dhinic3_netdev_ops.c45 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_set_mac_addr() local
55 err = hinic3_update_mac(nic_dev->hwdev, netdev->dev_addr, in hinic3_set_mac_addr()
57 hinic3_global_func_id(nic_dev->hwdev)); in hinic3_set_mac_addr()
A Dhinic3_nic_io.c12 int hinic3_init_nic_io(struct hinic3_nic_dev *nic_dev) in hinic3_init_nic_io() argument
18 void hinic3_free_nic_io(struct hinic3_nic_dev *nic_dev) in hinic3_free_nic_io() argument
A Dhinic3_nic_io.h117 int hinic3_init_nic_io(struct hinic3_nic_dev *nic_dev);
118 void hinic3_free_nic_io(struct hinic3_nic_dev *nic_dev);
A Dhinic3_rx.c304 struct hinic3_nic_dev *nic_dev = netdev_priv(rxq->netdev); in hinic3_rx_poll() local
333 if (num_wqe >= nic_dev->lro_replenish_thld) in hinic3_rx_poll()

Completed in 45 milliseconds