Lines Matching refs:ae_algo
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()
201 void hnae3_register_ae_algo(struct hnae3_ae_algo *ae_algo) in hnae3_register_ae_algo() argument
208 if (!ae_algo) in hnae3_register_ae_algo()
213 list_add_tail(&ae_algo->node, &hnae3_ae_algo_list); in hnae3_register_ae_algo()
217 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_register_ae_algo()
221 if (!ae_algo->ops) { in hnae3_register_ae_algo()
225 ae_dev->ops = ae_algo->ops; in hnae3_register_ae_algo()
227 ret = ae_algo->ops->init_ae_dev(ae_dev); in hnae3_register_ae_algo()
256 void hnae3_unregister_ae_algo(struct hnae3_ae_algo *ae_algo) in hnae3_unregister_ae_algo() argument
262 if (!ae_algo) in hnae3_unregister_ae_algo()
271 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_unregister_ae_algo()
281 ae_algo->ops->uninit_ae_dev(ae_dev); in hnae3_unregister_ae_algo()
286 list_del(&ae_algo->node); in hnae3_unregister_ae_algo()
298 struct hnae3_ae_algo *ae_algo; in hnae3_register_ae_dev() local
310 list_for_each_entry(ae_algo, &hnae3_ae_algo_list, node) { in hnae3_register_ae_dev()
311 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_register_ae_dev()
315 if (!ae_algo->ops) { in hnae3_register_ae_dev()
320 ae_dev->ops = ae_algo->ops; in hnae3_register_ae_dev()
363 struct hnae3_ae_algo *ae_algo; in hnae3_unregister_ae_dev() local
371 list_for_each_entry(ae_algo, &hnae3_ae_algo_list, node) { in hnae3_unregister_ae_dev()
375 id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_unregister_ae_dev()
382 ae_algo->ops->uninit_ae_dev(ae_dev); in hnae3_unregister_ae_dev()