Searched refs:ae_algo (Results 1 – 9 of 9) sorted by relevance
/drivers/net/ethernet/hisilicon/hns3/ |
D | hnae3.c | 13 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() 198 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo) in hnae3_register_ae_algo() argument 205 if (!ae_algo) in hnae3_register_ae_algo() 210 list_add_tail(&ae_algo->node, &hnae3_ae_algo_list); in hnae3_register_ae_algo() 214 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_register_ae_algo() 218 if (!ae_algo->ops) { in hnae3_register_ae_algo() 222 ae_dev->ops = ae_algo->ops; in hnae3_register_ae_algo() 224 ret = ae_algo->ops->init_ae_dev(ae_dev); in hnae3_register_ae_algo() [all …]
|
D | hns3_ethtool.c | 87 if (!h->ae_algo->ops->set_loopback || in hns3_lp_setup() 88 !h->ae_algo->ops->set_promisc_mode) in hns3_lp_setup() 96 ret = h->ae_algo->ops->set_loopback(h, loop, en); in hns3_lp_setup() 107 h->ae_algo->ops->set_promisc_mode(h, true, true); in hns3_lp_setup() 337 if (h->ae_algo->ops->enable_vlan_filter && in hns3_selftest_prepare() 339 h->ae_algo->ops->enable_vlan_filter(h, false); in hns3_selftest_prepare() 346 if (h->ae_algo->ops->halt_autoneg) in hns3_selftest_prepare() 347 h->ae_algo->ops->halt_autoneg(h, true); in hns3_selftest_prepare() 359 if (h->ae_algo->ops->halt_autoneg) in hns3_selftest_restore() 360 h->ae_algo->ops->halt_autoneg(h, false); in hns3_selftest_restore() [all …]
|
D | hns3_enet.c | 652 h->ae_algo->ops->get_tqps_and_rss_info(h, &alloc_tqps, &max_rss_size); in hns3_get_max_available_channels() 732 ret = h->ae_algo->ops->start ? h->ae_algo->ops->start(h) : 0; in hns3_nic_net_up() 799 if (h->ae_algo->ops->set_timer_task) in hns3_nic_net_open() 800 h->ae_algo->ops->set_timer_task(priv->ae_handle, true); in hns3_nic_net_open() 839 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down() 863 if (h->ae_algo->ops->set_timer_task) in hns3_nic_net_stop() 864 h->ae_algo->ops->set_timer_task(priv->ae_handle, false); in hns3_nic_net_stop() 879 if (h->ae_algo->ops->add_uc_addr) in hns3_nic_uc_sync() 880 return h->ae_algo->ops->add_uc_addr(h, addr); in hns3_nic_uc_sync() 897 if (h->ae_algo->ops->rm_uc_addr) in hns3_nic_uc_unsync() [all …]
|
D | hnae3.h | 166 struct hnae3_ae_algo *ae_algo; member 822 struct hnae3_ae_algo *ae_algo; /* the class who provides this handle */ member 877 void hnae3_unregister_ae_algo_prepare(struct hnae3_ae_algo *ae_algo); 878 void hnae3_unregister_ae_algo(struct hnae3_ae_algo *ae_algo); 879 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo);
|
D | hns3_debugfs.c | 682 if (!h->ae_algo->ops->get_global_queue_id) in hns3_dbg_queue_map() 697 h->ae_algo->ops->get_global_queue_id(h, i)); in hns3_dbg_queue_map() 986 const struct hnae3_ae_ops *ops = dbg_data->handle->ae_algo->ops; in hns3_dbg_read_cmd()
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_hw_v2.c | 645 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_write512() 1034 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_v2_cmd_hw_resetting() 1066 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_v2_cmd_sw_resetting() 1082 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in check_aedev_reset_status() 1119 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in check_device_is_in_reset() 1405 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in func_clr_hw_resetting_state() 1430 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in func_clr_sw_resetting_state() 1458 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_func_clr_rst_proc() 6318 hr_dev->reset_cnt = handle->ae_algo->ops->ae_dev_reset_cnt(handle); in hns_roce_hw_v2_get_cfg() 6378 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_hw_v2_init_instance()
|
D | hns_roce_hw_v2.h | 1537 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns_roce_write64()
|
/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 414 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps() 538 nic->ae_algo = &ae_algovf; in hclgevf_set_handle_info() 2590 roce->ae_algo = nic->ae_algo; in hclgevf_init_roce_base_info()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 77 static struct hnae3_ae_algo ae_algo; variable 1663 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps() 1818 nic->ae_algo = &ae_algo; in hclge_vport_setup() 2510 roce->ae_algo = nic->ae_algo; in hclge_init_roce_base_info() 13220 static struct hnae3_ae_algo ae_algo = { variable 13235 hnae3_register_ae_algo(&ae_algo); in hclge_init() 13242 hnae3_unregister_ae_algo_prepare(&ae_algo); in hclge_exit() 13243 hnae3_unregister_ae_algo(&ae_algo); in hclge_exit()
|