Lines Matching refs:ae_algo
91 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()
367 if (h->ae_algo->ops->enable_vlan_filter && in hns3_selftest_restore()
369 h->ae_algo->ops->enable_vlan_filter(h, true); in hns3_selftest_restore()
491 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_sset_count()
542 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_strings()
610 if (!h->ae_algo->ops->get_stats || !h->ae_algo->ops->update_stats) { in hns3_get_stats()
615 h->ae_algo->ops->update_stats(h); in hns3_get_stats()
621 h->ae_algo->ops->get_stats(h, p); in hns3_get_stats()
631 if (!h->ae_algo->ops->get_fw_version) { in hns3_get_drvinfo()
642 fw_version = priv->ae_handle->ae_algo->ops->get_fw_version(h); in hns3_get_drvinfo()
660 if (h->ae_algo->ops->get_status) in hns3_get_link()
661 return h->ae_algo->ops->get_status(h); in hns3_get_link()
699 if (h->ae_algo->ops->get_pauseparam) in hns3_get_pauseparam()
700 h->ae_algo->ops->get_pauseparam(h, ¶m->autoneg, in hns3_get_pauseparam()
717 if (h->ae_algo->ops->set_pauseparam) in hns3_set_pauseparam()
718 return h->ae_algo->ops->set_pauseparam(h, param->autoneg, in hns3_set_pauseparam()
727 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_ksettings()
759 ops = h->ae_algo->ops; in hns3_get_link_ksettings()
816 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_check_ksettings_param()
864 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_set_link_ksettings()
925 if (!h->ae_algo->ops->get_rss_key_size) in hns3_get_rss_key_size()
928 return h->ae_algo->ops->get_rss_key_size(h); in hns3_get_rss_key_size()
944 if (!h->ae_algo->ops->get_rss) in hns3_get_rss()
947 return h->ae_algo->ops->get_rss(h, rxfh->indir, rxfh->key, in hns3_get_rss()
958 if (!h->ae_algo->ops->set_rss) in hns3_set_rss()
976 return h->ae_algo->ops->set_rss(h, rxfh->indir, rxfh->key, in hns3_set_rss()
991 if (h->ae_algo->ops->get_rss_tuple) in hns3_get_rxnfc()
992 return h->ae_algo->ops->get_rss_tuple(h, cmd); in hns3_get_rxnfc()
995 if (h->ae_algo->ops->get_fd_rule_cnt) in hns3_get_rxnfc()
996 return h->ae_algo->ops->get_fd_rule_cnt(h, cmd); in hns3_get_rxnfc()
999 if (h->ae_algo->ops->get_fd_rule_info) in hns3_get_rxnfc()
1000 return h->ae_algo->ops->get_fd_rule_info(h, cmd); in hns3_get_rxnfc()
1003 if (h->ae_algo->ops->get_fd_all_rules) in hns3_get_rxnfc()
1004 return h->ae_algo->ops->get_fd_all_rules(h, cmd, in hns3_get_rxnfc()
1027 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_set_reset()
1283 if (h->ae_algo->ops->set_rss_tuple) in hns3_set_rxnfc()
1284 return h->ae_algo->ops->set_rss_tuple(h, cmd); in hns3_set_rxnfc()
1287 if (h->ae_algo->ops->add_fd_entry) in hns3_set_rxnfc()
1288 return h->ae_algo->ops->add_fd_entry(h, cmd); in hns3_set_rxnfc()
1291 if (h->ae_algo->ops->del_fd_entry) in hns3_set_rxnfc()
1292 return h->ae_algo->ops->del_fd_entry(h, cmd); in hns3_set_rxnfc()
1302 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_nway_reset()
1338 if (h->ae_algo->ops->get_channels) in hns3_get_channels()
1339 h->ae_algo->ops->get_channels(h, ch); in hns3_get_channels()
1605 if (!h->ae_algo->ops->get_regs_len) in hns3_get_regs_len()
1608 return h->ae_algo->ops->get_regs_len(h); in hns3_get_regs_len()
1616 if (!h->ae_algo->ops->get_regs) in hns3_get_regs()
1619 h->ae_algo->ops->get_regs(h, &cmd->version, data); in hns3_get_regs()
1627 if (!h->ae_algo->ops->set_led_id) in hns3_set_phys_id()
1630 return h->ae_algo->ops->set_led_id(h, state); in hns3_set_phys_id()
1652 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_fec_stats()
1703 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_fecparam()
1728 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_set_fecparam()
1750 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_module_info()
1800 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_module_eeprom()
1996 if (handle->ae_algo->ops->get_ts_info) in hns3_get_ts_info()
1997 return handle->ae_algo->ops->get_ts_info(handle, info); in hns3_get_ts_info()
2048 if (!h->ae_algo->ops->get_link_diagnosis_info) in hns3_get_link_ext_state()
2051 ret = h->ae_algo->ops->get_link_diagnosis_info(h, &status_code); in hns3_get_link_ext_state()