Home
last modified time | relevance | path

Searched refs:ae_algo (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c76 if (!h->ae_algo->ops->set_loopback || in hns3_lp_setup()
77 !h->ae_algo->ops->set_promisc_mode) in hns3_lp_setup()
83 ret = h->ae_algo->ops->set_loopback(h, loop, en); in hns3_lp_setup()
93 h->ae_algo->ops->set_promisc_mode(h, en, en); in hns3_lp_setup()
103 if (!h->ae_algo->ops->start) in hns3_lp_up()
110 ret = h->ae_algo->ops->start(h); in hns3_lp_up()
128 if (!h->ae_algo->ops->stop) in hns3_lp_down()
137 h->ae_algo->ops->stop(h); in hns3_lp_down()
317 h->ae_algo->ops->enable_vlan_filter; in hns3_self_test()
319 h->ae_algo->ops->enable_vlan_filter(h, false); in hns3_self_test()
[all …]
Dhnae3.c161 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo) in hnae3_register_ae_algo() argument
170 list_add_tail(&ae_algo->node, &hnae3_ae_algo_list); in hnae3_register_ae_algo()
174 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_register_ae_algo()
179 ae_dev->ops = ae_algo->ops; in hnae3_register_ae_algo()
180 ret = ae_algo->ops->init_ae_dev(ae_dev); in hnae3_register_ae_algo()
208 void hnae3_unregister_ae_algo(struct hnae3_ae_algo *ae_algo) in hnae3_unregister_ae_algo() argument
220 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_unregister_ae_algo()
230 ae_algo->ops->uninit_ae_dev(ae_dev); in hnae3_unregister_ae_algo()
234 list_del(&ae_algo->node); in hnae3_unregister_ae_algo()
246 struct hnae3_ae_algo *ae_algo; in hnae3_register_ae_dev() local
[all …]
Dhns3_enet.c282 h->ae_algo->ops->get_tqps_and_rss_info(h, &free_tqps, &max_rss_size); in hns3_get_max_available_channels()
311 ret = h->ae_algo->ops->start ? h->ae_algo->ops->start(h) : 0; in hns3_nic_net_up()
372 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
397 if (h->ae_algo->ops->add_uc_addr) in hns3_nic_uc_sync()
398 return h->ae_algo->ops->add_uc_addr(h, addr); in hns3_nic_uc_sync()
408 if (h->ae_algo->ops->rm_uc_addr) in hns3_nic_uc_unsync()
409 return h->ae_algo->ops->rm_uc_addr(h, addr); in hns3_nic_uc_unsync()
419 if (h->ae_algo->ops->add_mc_addr) in hns3_nic_mc_sync()
420 return h->ae_algo->ops->add_mc_addr(h, addr); in hns3_nic_mc_sync()
430 if (h->ae_algo->ops->rm_mc_addr) in hns3_nic_mc_unsync()
[all …]
Dhnae3.h78 struct hnae3_ae_algo *ae_algo; member
488 struct hnae3_ae_algo *ae_algo; /* the class who provides this handle */ member
519 void hnae3_unregister_ae_algo(struct hnae3_ae_algo *ae_algo);
520 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo);
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c231 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
313 nic->ae_algo = &ae_algovf; in hclgevf_set_handle_info()
1385 roce->ae_algo = nic->ae_algo; in hclgevf_init_roce_base_info()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c37 static struct hnae3_ae_algo ae_algo; variable
1235 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps()
1389 nic->ae_algo = &ae_algo; in hclge_vport_setup()
2018 roce->ae_algo = nic->ae_algo; in hclge_init_roce_base_info()
6312 static struct hnae3_ae_algo ae_algo = { variable
6321 hnae3_register_ae_algo(&ae_algo); in hclge_init()
6328 hnae3_unregister_ae_algo(&ae_algo); in hclge_exit()