Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.c177 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo) in hnae3_register_ae_algo() argument
184 if (!ae_algo) in hnae3_register_ae_algo()
189 list_add_tail(&ae_algo->node, &hnae3_ae_algo_list); in hnae3_register_ae_algo()
193 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_register_ae_algo()
197 if (!ae_algo->ops) { in hnae3_register_ae_algo()
201 ae_dev->ops = ae_algo->ops; in hnae3_register_ae_algo()
203 ret = ae_algo->ops->init_ae_dev(ae_dev); in hnae3_register_ae_algo()
232 void hnae3_unregister_ae_algo(struct hnae3_ae_algo *ae_algo) in hnae3_unregister_ae_algo() argument
238 if (!ae_algo) in hnae3_unregister_ae_algo()
247 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_unregister_ae_algo()
[all …]
Dhns3_ethtool.c79 if (!h->ae_algo->ops->set_loopback || in hns3_lp_setup()
80 !h->ae_algo->ops->set_promisc_mode) in hns3_lp_setup()
88 ret = h->ae_algo->ops->set_loopback(h, loop, en); in hns3_lp_setup()
99 h->ae_algo->ops->set_promisc_mode(h, true, true); in hns3_lp_setup()
344 h->ae_algo->ops->enable_vlan_filter; in hns3_self_test()
346 h->ae_algo->ops->enable_vlan_filter(h, false); in hns3_self_test()
353 if (h->ae_algo->ops->halt_autoneg) in hns3_self_test()
354 h->ae_algo->ops->halt_autoneg(h, true); in hns3_self_test()
378 if (h->ae_algo->ops->halt_autoneg) in hns3_self_test()
379 h->ae_algo->ops->halt_autoneg(h, false); in hns3_self_test()
[all …]
Dhns3_enet.c306 h->ae_algo->ops->get_tqps_and_rss_info(h, &alloc_tqps, &max_rss_size); in hns3_get_max_available_channels()
398 ret = h->ae_algo->ops->start ? h->ae_algo->ops->start(h) : 0; in hns3_nic_net_up()
467 if (h->ae_algo->ops->set_timer_task) in hns3_nic_net_open()
468 h->ae_algo->ops->set_timer_task(priv->ae_handle, true); in hns3_nic_net_open()
507 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
536 if (h->ae_algo->ops->set_timer_task) in hns3_nic_net_stop()
537 h->ae_algo->ops->set_timer_task(priv->ae_handle, false); in hns3_nic_net_stop()
552 if (h->ae_algo->ops->add_uc_addr) in hns3_nic_uc_sync()
553 return h->ae_algo->ops->add_uc_addr(h, addr); in hns3_nic_uc_sync()
563 if (h->ae_algo->ops->rm_uc_addr) in hns3_nic_uc_unsync()
[all …]
Dhns3_debugfs.c136 if (!h->ae_algo->ops->get_global_queue_id) in hns3_dbg_queue_map()
145 global_qid = h->ae_algo->ops->get_global_queue_id(h, i); in hns3_dbg_queue_map()
359 else if (handle->ae_algo->ops->dbg_run_cmd) in hns3_dbg_cmd_write()
360 ret = handle->ae_algo->ops->dbg_run_cmd(handle, cmd_buf); in hns3_dbg_cmd_write()
Dhnae3.h88 struct hnae3_ae_algo *ae_algo; member
632 struct hnae3_ae_algo *ae_algo; /* the class who provides this handle */ member
668 void hnae3_unregister_ae_algo(struct hnae3_ae_algo *ae_algo);
669 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo);
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c369 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
479 nic->ae_algo = &ae_algovf; in hclgevf_set_handle_info()
2039 roce->ae_algo = nic->ae_algo; in hclgevf_init_roce_base_info()
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c743 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_v2_cmd_hw_resetting()
769 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_v2_cmd_sw_resetting()
786 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_v2_rst_process_cmd()
1132 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_func_clr_chk_rst()
1152 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_func_clr_rst_prc()
6411 hr_dev->reset_cnt = handle->ae_algo->ops->ae_dev_reset_cnt(handle); in hns_roce_hw_v2_get_cfg()
6476 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_hw_v2_init_instance()
Dhns_roce_hw_v2.h1832 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_write64()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c71 static struct hnae3_ae_algo ae_algo; variable
1463 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps()
1605 nic->ae_algo = &ae_algo; in hclge_vport_setup()
2292 roce->ae_algo = nic->ae_algo; in hclge_init_roce_base_info()
10204 static struct hnae3_ae_algo ae_algo = { variable
10213 hnae3_register_ae_algo(&ae_algo); in hclge_init()
10220 hnae3_unregister_ae_algo(&ae_algo); in hclge_exit()