Lines Matching refs:ae_algo

92 	if (!h->ae_algo->ops->set_loopback ||  in hns3_lp_setup()
93 !h->ae_algo->ops->set_promisc_mode) in hns3_lp_setup()
102 ret = h->ae_algo->ops->set_loopback(h, loop, en); in hns3_lp_setup()
113 h->ae_algo->ops->set_promisc_mode(h, true, true); in hns3_lp_setup()
342 if (h->ae_algo->ops->enable_vlan_filter && in hns3_selftest_prepare()
344 h->ae_algo->ops->enable_vlan_filter(h, false); in hns3_selftest_prepare()
351 if (h->ae_algo->ops->halt_autoneg) in hns3_selftest_prepare()
352 h->ae_algo->ops->halt_autoneg(h, true); in hns3_selftest_prepare()
364 if (h->ae_algo->ops->halt_autoneg) in hns3_selftest_restore()
365 h->ae_algo->ops->halt_autoneg(h, false); in hns3_selftest_restore()
368 if (h->ae_algo->ops->enable_vlan_filter && in hns3_selftest_restore()
370 h->ae_algo->ops->enable_vlan_filter(h, true); in hns3_selftest_restore()
492 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_sset_count()
543 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_strings()
611 if (!h->ae_algo->ops->get_stats || !h->ae_algo->ops->update_stats) { in hns3_get_stats()
616 h->ae_algo->ops->update_stats(h); in hns3_get_stats()
622 h->ae_algo->ops->get_stats(h, p); in hns3_get_stats()
632 if (!h->ae_algo->ops->get_fw_version) { in hns3_get_drvinfo()
643 fw_version = priv->ae_handle->ae_algo->ops->get_fw_version(h); in hns3_get_drvinfo()
661 if (h->ae_algo->ops->get_status) in hns3_get_link()
662 return h->ae_algo->ops->get_status(h); in hns3_get_link()
700 if (h->ae_algo->ops->get_pauseparam) in hns3_get_pauseparam()
701 h->ae_algo->ops->get_pauseparam(h, &param->autoneg, in hns3_get_pauseparam()
718 if (h->ae_algo->ops->set_pauseparam) in hns3_set_pauseparam()
719 return h->ae_algo->ops->set_pauseparam(h, param->autoneg, in hns3_set_pauseparam()
728 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_get_ksettings()
760 ops = h->ae_algo->ops; in hns3_get_link_ksettings()
817 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_check_ksettings_param()
865 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_set_link_ksettings()
926 if (!h->ae_algo->ops->get_rss_key_size) in hns3_get_rss_key_size()
929 return h->ae_algo->ops->get_rss_key_size(h); in hns3_get_rss_key_size()
945 if (!h->ae_algo->ops->get_rss) in hns3_get_rss()
948 return h->ae_algo->ops->get_rss(h, rxfh->indir, rxfh->key, in hns3_get_rss()
959 if (!h->ae_algo->ops->set_rss) in hns3_set_rss()
977 return h->ae_algo->ops->set_rss(h, rxfh->indir, rxfh->key, in hns3_set_rss()
992 if (h->ae_algo->ops->get_rss_tuple) in hns3_get_rxnfc()
993 return h->ae_algo->ops->get_rss_tuple(h, cmd); in hns3_get_rxnfc()
996 if (h->ae_algo->ops->get_fd_rule_cnt) in hns3_get_rxnfc()
997 return h->ae_algo->ops->get_fd_rule_cnt(h, cmd); in hns3_get_rxnfc()
1000 if (h->ae_algo->ops->get_fd_rule_info) in hns3_get_rxnfc()
1001 return h->ae_algo->ops->get_fd_rule_info(h, cmd); in hns3_get_rxnfc()
1004 if (h->ae_algo->ops->get_fd_all_rules) in hns3_get_rxnfc()
1005 return h->ae_algo->ops->get_fd_all_rules(h, cmd, in hns3_get_rxnfc()
1028 const struct hnae3_ae_ops *ops = h->ae_algo->ops; in hns3_set_reset()
1284 if (h->ae_algo->ops->set_rss_tuple) in hns3_set_rxnfc()
1285 return h->ae_algo->ops->set_rss_tuple(h, cmd); in hns3_set_rxnfc()
1288 if (h->ae_algo->ops->add_fd_entry) in hns3_set_rxnfc()
1289 return h->ae_algo->ops->add_fd_entry(h, cmd); in hns3_set_rxnfc()
1292 if (h->ae_algo->ops->del_fd_entry) in hns3_set_rxnfc()
1293 return h->ae_algo->ops->del_fd_entry(h, cmd); in hns3_set_rxnfc()
1303 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_nway_reset()
1339 if (h->ae_algo->ops->get_channels) in hns3_get_channels()
1340 h->ae_algo->ops->get_channels(h, ch); in hns3_get_channels()
1606 if (!h->ae_algo->ops->get_regs_len) in hns3_get_regs_len()
1609 return h->ae_algo->ops->get_regs_len(h); in hns3_get_regs_len()
1617 if (!h->ae_algo->ops->get_regs) in hns3_get_regs()
1620 h->ae_algo->ops->get_regs(h, &cmd->version, data); in hns3_get_regs()
1628 if (!h->ae_algo->ops->set_led_id) in hns3_set_phys_id()
1631 return h->ae_algo->ops->set_led_id(h, state); in hns3_set_phys_id()
1653 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_fec_stats()
1704 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_fecparam()
1729 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_set_fecparam()
1751 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_module_info()
1801 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_get_module_eeprom()
1997 if (handle->ae_algo->ops->get_ts_info) in hns3_get_ts_info()
1998 return handle->ae_algo->ops->get_ts_info(handle, info); in hns3_get_ts_info()
2049 if (!h->ae_algo->ops->get_link_diagnosis_info) in hns3_get_link_ext_state()
2052 ret = h->ae_algo->ops->get_link_diagnosis_info(h, &status_code); in hns3_get_link_ext_state()