Lines Matching refs:apc

20 	struct mana_port_context *apc = netdev_priv(ndev);  in mana_get_sset_count()  local
21 unsigned int num_queues = apc->num_queues; in mana_get_sset_count()
31 struct mana_port_context *apc = netdev_priv(ndev); in mana_get_strings() local
32 unsigned int num_queues = apc->num_queues; in mana_get_strings()
70 struct mana_port_context *apc = netdev_priv(ndev); in mana_get_ethtool_stats() local
71 unsigned int num_queues = apc->num_queues; in mana_get_ethtool_stats()
72 void *eth_stats = &apc->eth_stats; in mana_get_ethtool_stats()
83 if (!apc->port_is_up) in mana_get_ethtool_stats()
90 rx_stats = &apc->rxqs[q]->stats; in mana_get_ethtool_stats()
109 tx_stats = &apc->tx_qp[q].txq.stats; in mana_get_ethtool_stats()
127 struct mana_port_context *apc = netdev_priv(ndev); in mana_get_rxnfc() local
131 cmd->data = apc->num_queues; in mana_get_rxnfc()
151 struct mana_port_context *apc = netdev_priv(ndev); in mana_get_rxfh() local
159 indir[i] = apc->indir_table[i]; in mana_get_rxfh()
163 memcpy(key, apc->hashkey, MANA_HASH_KEY_SIZE); in mana_get_rxfh()
171 struct mana_port_context *apc = netdev_priv(ndev); in mana_set_rxfh() local
177 if (!apc->port_is_up) in mana_set_rxfh()
185 if (indir[i] >= apc->num_queues) in mana_set_rxfh()
190 save_table[i] = apc->indir_table[i]; in mana_set_rxfh()
191 apc->indir_table[i] = indir[i]; in mana_set_rxfh()
197 memcpy(save_key, apc->hashkey, MANA_HASH_KEY_SIZE); in mana_set_rxfh()
198 memcpy(apc->hashkey, key, MANA_HASH_KEY_SIZE); in mana_set_rxfh()
201 err = mana_config_rss(apc, TRI_STATE_TRUE, update_hash, update_table); in mana_set_rxfh()
206 apc->indir_table[i] = save_table[i]; in mana_set_rxfh()
210 memcpy(apc->hashkey, save_key, MANA_HASH_KEY_SIZE); in mana_set_rxfh()
212 mana_config_rss(apc, TRI_STATE_TRUE, update_hash, update_table); in mana_set_rxfh()
221 struct mana_port_context *apc = netdev_priv(ndev); in mana_get_channels() local
223 channel->max_combined = apc->max_queues; in mana_get_channels()
224 channel->combined_count = apc->num_queues; in mana_get_channels()
230 struct mana_port_context *apc = netdev_priv(ndev); in mana_set_channels() local
232 unsigned int old_count = apc->num_queues; in mana_set_channels()
241 apc->num_queues = new_count; in mana_set_channels()
249 apc->num_queues = old_count; in mana_set_channels()