Home
last modified time | relevance | path

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

/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.c13 void hnae3_unregister_ae_algo_prepare(struct hnae3_ae_algo *ae_algo) in hnae3_unregister_ae_algo_prepare() argument
18 if (!ae_algo) in hnae3_unregister_ae_algo_prepare()
25 pci_id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_unregister_ae_algo_prepare()
216 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo) in hnae3_register_ae_algo() argument
223 if (!ae_algo) in hnae3_register_ae_algo()
228 list_add_tail(&ae_algo->node, &hnae3_ae_algo_list); in hnae3_register_ae_algo()
232 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_register_ae_algo()
236 if (!ae_algo->ops) { in hnae3_register_ae_algo()
240 ae_dev->ops = ae_algo->ops; in hnae3_register_ae_algo()
242 ret = ae_algo->ops->init_ae_dev(ae_dev); in hnae3_register_ae_algo()
[all …]
Dhns3_ethtool.c91 if (!h->ae_algo->ops->set_loopback || in hns3_lp_setup()
92 !h->ae_algo->ops->set_promisc_mode) in hns3_lp_setup()
101 ret = h->ae_algo->ops->set_loopback(h, loop, en); in hns3_lp_setup()
112 h->ae_algo->ops->set_promisc_mode(h, true, true); in hns3_lp_setup()
341 if (h->ae_algo->ops->enable_vlan_filter && in hns3_selftest_prepare()
343 h->ae_algo->ops->enable_vlan_filter(h, false); in hns3_selftest_prepare()
350 if (h->ae_algo->ops->halt_autoneg) in hns3_selftest_prepare()
351 h->ae_algo->ops->halt_autoneg(h, true); in hns3_selftest_prepare()
363 if (h->ae_algo->ops->halt_autoneg) in hns3_selftest_restore()
364 h->ae_algo->ops->halt_autoneg(h, false); in hns3_selftest_restore()
[all …]
Dhns3_enet.c647 h->ae_algo->ops->get_tqps_and_rss_info(h, &alloc_tqps, &max_rss_size); in hns3_get_max_available_channels()
752 ret = h->ae_algo->ops->start ? h->ae_algo->ops->start(h) : 0; in hns3_nic_net_up()
815 if (h->ae_algo->ops->set_timer_task) in hns3_nic_net_open()
816 h->ae_algo->ops->set_timer_task(priv->ae_handle, true); in hns3_nic_net_open()
847 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
871 if (h->ae_algo->ops->set_timer_task) in hns3_nic_net_stop()
872 h->ae_algo->ops->set_timer_task(priv->ae_handle, false); in hns3_nic_net_stop()
887 if (h->ae_algo->ops->add_uc_addr) in hns3_nic_uc_sync()
888 return h->ae_algo->ops->add_uc_addr(h, addr); in hns3_nic_uc_sync()
905 if (h->ae_algo->ops->rm_uc_addr) in hns3_nic_uc_unsync()
[all …]
Dhnae3.h201 struct hnae3_ae_algo *ae_algo; member
904 struct hnae3_ae_algo *ae_algo; /* the class who provides this handle */ member
956 void hnae3_unregister_ae_algo_prepare(struct hnae3_ae_algo *ae_algo);
957 void hnae3_unregister_ae_algo(struct hnae3_ae_algo *ae_algo);
958 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo);
Dhns3_debugfs.c846 if (!h->ae_algo->ops->get_global_queue_id) in hns3_dbg_queue_map()
861 h->ae_algo->ops->get_global_queue_id(h, i)); in hns3_dbg_queue_map()
1238 const struct hnae3_ae_ops *ops = dbg_data->handle->ae_algo->ops; in hns3_dbg_read_cmd()
Dhns3_enet.h706 ((handle)->ae_algo->ops)
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c658 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_write512()
1033 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_v2_cmd_hw_resetting()
1065 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_v2_cmd_sw_resetting()
1081 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in check_aedev_reset_status()
1118 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in check_device_is_in_reset()
1453 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in func_clr_hw_resetting_state()
1478 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in func_clr_sw_resetting_state()
1506 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_func_clr_rst_proc()
4963 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_hw_v2_get_dscp()
7046 hr_dev->reset_cnt = handle->ae_algo->ops->ae_dev_reset_cnt(handle); in hns_roce_hw_v2_get_cfg()
[all …]
Dhns_roce_hw_v2.h1483 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_write64()
/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c318 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
450 nic->ae_algo = &ae_algovf; in hclgevf_set_handle_info()
2160 roce->ae_algo = nic->ae_algo; in hclgevf_init_roce_base_info()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c70 static struct hnae3_ae_algo ae_algo; variable
1654 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps()
1817 nic->ae_algo = &ae_algo; in hclge_vport_setup()
2510 roce->ae_algo = nic->ae_algo; in hclge_init_roce_base_info()
12916 static struct hnae3_ae_algo ae_algo = { variable
12931 hnae3_register_ae_algo(&ae_algo); in hclge_init()
12939 hnae3_unregister_ae_algo_prepare(&ae_algo); in hclge_exit()
12940 hnae3_unregister_ae_algo(&ae_algo); in hclge_exit()