Lines Matching refs:ae_algo

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()
898 return h->ae_algo->ops->rm_uc_addr(h, addr); in hns3_nic_uc_unsync()
908 if (h->ae_algo->ops->add_mc_addr) in hns3_nic_mc_sync()
909 return h->ae_algo->ops->add_mc_addr(h, addr); in hns3_nic_mc_sync()
919 if (h->ae_algo->ops->rm_mc_addr) in hns3_nic_mc_unsync()
920 return h->ae_algo->ops->rm_mc_addr(h, addr); in hns3_nic_mc_unsync()
956 const struct hnae3_ae_ops *ops = handle->ae_algo->ops; in hns3_request_update_promisc_mode()
2137 if (!(h->ae_algo->ops->set_tx_hwts_info && in hns3_tsyn()
2138 h->ae_algo->ops->set_tx_hwts_info(h, skb))) in hns3_tsyn()
2386 ret = h->ae_algo->ops->set_mac_addr(h, mac_addr->sa_data, false); in hns3_nic_net_set_mac_address()
2405 if (!h->ae_algo->ops->do_ioctl) in hns3_nic_do_ioctl()
2408 return h->ae_algo->ops->do_ioctl(h, ifr, cmd); in hns3_nic_do_ioctl()
2420 if (changed & (NETIF_F_GRO_HW) && h->ae_algo->ops->set_gro_en) { in hns3_nic_set_features()
2422 ret = h->ae_algo->ops->set_gro_en(h, enable); in hns3_nic_set_features()
2428 h->ae_algo->ops->enable_hw_strip_rxvtag) { in hns3_nic_set_features()
2430 ret = h->ae_algo->ops->enable_hw_strip_rxvtag(h, enable); in hns3_nic_set_features()
2435 if ((changed & NETIF_F_NTUPLE) && h->ae_algo->ops->enable_fd) { in hns3_nic_set_features()
2437 h->ae_algo->ops->enable_fd(h, enable); in hns3_nic_set_features()
2441 h->ae_algo->ops->cls_flower_active(h)) { in hns3_nic_set_features()
2448 h->ae_algo->ops->enable_vlan_filter) { in hns3_nic_set_features()
2450 ret = h->ae_algo->ops->enable_vlan_filter(h, enable); in hns3_nic_set_features()
2546 handle->ae_algo->ops->update_stats(handle); in hns3_nic_get_stats64()
2622 if (h->ae_algo->ops->add_cls_flower) in hns3_setup_tc_cls_flower()
2623 return h->ae_algo->ops->add_cls_flower(h, flow, tc); in hns3_setup_tc_cls_flower()
2626 if (h->ae_algo->ops->del_cls_flower) in hns3_setup_tc_cls_flower()
2627 return h->ae_algo->ops->del_cls_flower(h, flow); in hns3_setup_tc_cls_flower()
2683 if (h->ae_algo->ops->set_vlan_filter) in hns3_vlan_rx_add_vid()
2684 ret = h->ae_algo->ops->set_vlan_filter(h, proto, vid, false); in hns3_vlan_rx_add_vid()
2695 if (h->ae_algo->ops->set_vlan_filter) in hns3_vlan_rx_kill_vid()
2696 ret = h->ae_algo->ops->set_vlan_filter(h, proto, vid, true); in hns3_vlan_rx_kill_vid()
2711 if (h->ae_algo->ops->set_vf_vlan_filter) in hns3_ndo_set_vf_vlan()
2712 ret = h->ae_algo->ops->set_vf_vlan_filter(h, vf, vlan, in hns3_ndo_set_vf_vlan()
2725 if (!handle->ae_algo->ops->set_vf_spoofchk) in hns3_set_vf_spoofchk()
2728 return handle->ae_algo->ops->set_vf_spoofchk(handle, vf, enable); in hns3_set_vf_spoofchk()
2735 if (!handle->ae_algo->ops->set_vf_trust) in hns3_set_vf_trust()
2738 return handle->ae_algo->ops->set_vf_trust(handle, vf, enable); in hns3_set_vf_trust()
2749 if (!h->ae_algo->ops->set_mtu) in hns3_nic_change_mtu()
2755 ret = h->ae_algo->ops->set_mtu(h, new_mtu); in hns3_nic_change_mtu()
2866 if (h->ae_algo->ops->get_mac_stats) { in hns3_get_tx_timeo_queue_info()
2869 h->ae_algo->ops->get_mac_stats(h, &mac_stats); in hns3_get_tx_timeo_queue_info()
2890 if (h->ae_algo->ops->reset_event) in hns3_nic_net_timeout()
2891 h->ae_algo->ops->reset_event(h->pdev, h); in hns3_nic_net_timeout()
2901 if (!h->ae_algo->ops->add_arfs_entry) in hns3_rx_flow_steer()
2916 return h->ae_algo->ops->add_arfs_entry(h, rxq_index, flow_id, &fkeys); in hns3_rx_flow_steer()
2925 if (!h->ae_algo->ops->get_vf_config) in hns3_nic_get_vf_config()
2928 return h->ae_algo->ops->get_vf_config(h, vf, ivf); in hns3_nic_get_vf_config()
2936 if (!h->ae_algo->ops->set_vf_link_state) in hns3_nic_set_vf_link_state()
2939 return h->ae_algo->ops->set_vf_link_state(h, vf, link_state); in hns3_nic_set_vf_link_state()
2947 if (!h->ae_algo->ops->set_vf_rate) in hns3_nic_set_vf_rate()
2950 return h->ae_algo->ops->set_vf_rate(h, vf, min_tx_rate, max_tx_rate, in hns3_nic_set_vf_rate()
2959 if (!h->ae_algo->ops->set_vf_mac) in hns3_nic_set_vf_mac()
2970 return h->ae_algo->ops->set_vf_mac(h, vf_id, mac); in hns3_nic_set_vf_mac()
3000 !h->ae_algo->ops->get_dscp_prio) in hns3_nic_select_queue()
4230 if (h->ae_algo->ops->get_rx_hwts) in hns3_handle_rx_ts_info()
4231 h->ae_algo->ops->get_rx_hwts(h, skb, nsec, sec); in hns3_handle_rx_ts_info()
4721 ret = h->ae_algo->ops->map_ring_to_vector(h, in hns3_nic_init_vector_data()
4791 vector_num = h->ae_algo->ops->get_vector(h, vector_num, vector); in hns3_nic_alloc_vector_data()
4842 h->ae_algo->ops->unmap_ring_from_vector(h, in hns3_nic_uninit_vector_data()
4863 ret = h->ae_algo->ops->put_vector(h, tqp_vector->vector_irq); in hns3_nic_dealloc_vector_data()
5145 if (h->ae_algo->ops->get_mac_addr) in hns3_init_mac_addr()
5146 h->ae_algo->ops->get_mac_addr(h, mac_addr_temp); in hns3_init_mac_addr()
5161 if (h->ae_algo->ops->set_mac_addr) in hns3_init_mac_addr()
5162 ret = h->ae_algo->ops->set_mac_addr(h, netdev->dev_addr, true); in hns3_init_mac_addr()
5172 if (h->ae_algo->ops->mac_connect_phy) in hns3_init_phy()
5173 ret = h->ae_algo->ops->mac_connect_phy(h); in hns3_init_phy()
5182 if (h->ae_algo->ops->mac_disconnect_phy) in hns3_uninit_phy()
5183 h->ae_algo->ops->mac_disconnect_phy(h); in hns3_uninit_phy()
5188 if (!handle->ae_algo->ops->client_start) in hns3_client_start()
5191 return handle->ae_algo->ops->client_start(handle); in hns3_client_start()
5196 if (!handle->ae_algo->ops->client_stop) in hns3_client_stop()
5199 handle->ae_algo->ops->client_stop(handle); in hns3_client_stop()
5296 handle->ae_algo->ops->get_tqps_and_rss_info(handle, &alloc_tqps, in hns3_client_init()
5578 ret = h->ae_algo->ops->reset_queue(h); in hns3_nic_reset_all_ring()
5781 ret = handle->ae_algo->ops->set_channels(handle, new_tqp_num, in hns3_change_channels()
5924 if (h->ae_algo->ops->get_status(h)) in hns3_external_lb_restore()