Lines Matching refs:ae_algo

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()
363 if (h->ae_algo->ops->enable_vlan_filter && in hns3_selftest_restore()
365 h->ae_algo->ops->enable_vlan_filter(h, true); in hns3_selftest_restore()
446 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_sset_count()
513 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_strings()
585 if (!h->ae_algo->ops->get_stats || !h->ae_algo->ops->update_stats) { in hns3_get_stats()
590 h->ae_algo->ops->update_stats(h, &netdev->stats); in hns3_get_stats()
596 h->ae_algo->ops->get_stats(h, p); in hns3_get_stats()
606 if (!h->ae_algo->ops->get_fw_version) { in hns3_get_drvinfo()
619 fw_version = priv->ae_handle->ae_algo->ops->get_fw_version(h); in hns3_get_drvinfo()
637 if (h->ae_algo->ops->get_status) in hns3_get_link()
638 return h->ae_algo->ops->get_status(h); in hns3_get_link()
671 if (h->ae_algo->ops->get_pauseparam) in hns3_get_pauseparam()
672 h->ae_algo->ops->get_pauseparam(h, &param->autoneg, in hns3_get_pauseparam()
689 if (h->ae_algo->ops->set_pauseparam) in hns3_set_pauseparam()
690 return h->ae_algo->ops->set_pauseparam(h, param->autoneg, in hns3_set_pauseparam()
699 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_ksettings()
730 ops = h->ae_algo->ops; in hns3_get_link_ksettings()
785 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_check_ksettings_param()
832 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_set_link_ksettings()
889 if (!h->ae_algo->ops->get_rss_key_size) in hns3_get_rss_key_size()
892 return h->ae_algo->ops->get_rss_key_size(h); in hns3_get_rss_key_size()
908 if (!h->ae_algo->ops->get_rss) in hns3_get_rss()
911 return h->ae_algo->ops->get_rss(h, indir, key, hfunc); in hns3_get_rss()
920 if (!h->ae_algo->ops->set_rss) in hns3_set_rss()
936 return h->ae_algo->ops->set_rss(h, indir, key, hfunc); in hns3_set_rss()
950 if (h->ae_algo->ops->get_rss_tuple) in hns3_get_rxnfc()
951 return h->ae_algo->ops->get_rss_tuple(h, cmd); in hns3_get_rxnfc()
954 if (h->ae_algo->ops->get_fd_rule_cnt) in hns3_get_rxnfc()
955 return h->ae_algo->ops->get_fd_rule_cnt(h, cmd); in hns3_get_rxnfc()
958 if (h->ae_algo->ops->get_fd_rule_info) in hns3_get_rxnfc()
959 return h->ae_algo->ops->get_fd_rule_info(h, cmd); in hns3_get_rxnfc()
962 if (h->ae_algo->ops->get_fd_all_rules) in hns3_get_rxnfc()
963 return h->ae_algo->ops->get_fd_all_rules(h, cmd, in hns3_get_rxnfc()
986 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_set_reset()
1151 if (h->ae_algo->ops->set_rss_tuple) in hns3_set_rxnfc()
1152 return h->ae_algo->ops->set_rss_tuple(h, cmd); in hns3_set_rxnfc()
1155 if (h->ae_algo->ops->add_fd_entry) in hns3_set_rxnfc()
1156 return h->ae_algo->ops->add_fd_entry(h, cmd); in hns3_set_rxnfc()
1159 if (h->ae_algo->ops->del_fd_entry) in hns3_set_rxnfc()
1160 return h->ae_algo->ops->del_fd_entry(h, cmd); in hns3_set_rxnfc()
1170 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_nway_reset()
1206 if (h->ae_algo->ops->get_channels) in hns3_get_channels()
1207 h->ae_algo->ops->get_channels(h, ch); in hns3_get_channels()
1451 if (!h->ae_algo->ops->get_regs_len) in hns3_get_regs_len()
1454 return h->ae_algo->ops->get_regs_len(h); in hns3_get_regs_len()
1462 if (!h->ae_algo->ops->get_regs) in hns3_get_regs()
1465 h->ae_algo->ops->get_regs(h, &cmd->version, data); in hns3_get_regs()
1473 if (!h->ae_algo->ops->set_led_id) in hns3_set_phys_id()
1476 return h->ae_algo->ops->set_led_id(h, state); in hns3_set_phys_id()
1535 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_fecparam()
1558 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_set_fecparam()
1580 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_module_info()
1630 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_module_eeprom()
1757 if (handle->ae_algo->ops->get_ts_info) in hns3_get_ts_info()
1758 return handle->ae_algo->ops->get_ts_info(handle, info); in hns3_get_ts_info()
1809 if (!h->ae_algo->ops->get_link_diagnosis_info) in hns3_get_link_ext_state()
1812 ret = h->ae_algo->ops->get_link_diagnosis_info(h, &status_code); in hns3_get_link_ext_state()