Lines Matching refs:ena_dev
171 ptr = (u64 *)&adapter->ena_dev->admin_queue.stats + in ena_dev_admin_queue_stats()
215 struct ena_com_dev *dev = adapter->ena_dev; in ena_get_ethtool_stats()
229 bool supported = ena_com_get_cap(adapter->ena_dev, ENA_ADMIN_ENI_STATS); in ena_get_hw_stats_count()
321 struct ena_com_dev *dev = adapter->ena_dev; in ena_get_ethtool_strings()
334 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_get_link_ksettings() local
339 rc = ena_com_get_link_params(ena_dev, &feat_resp); in ena_get_link_ksettings()
368 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_get_coalesce() local
370 if (!ena_com_interrupt_moderation_supported(ena_dev)) in ena_get_coalesce()
374 ena_com_get_nonadaptive_moderation_interval_tx(ena_dev) * in ena_get_coalesce()
375 ena_dev->intr_delay_resolution; in ena_get_coalesce()
378 ena_com_get_nonadaptive_moderation_interval_rx(ena_dev) in ena_get_coalesce()
379 * ena_dev->intr_delay_resolution; in ena_get_coalesce()
382 ena_com_get_adaptive_moderation_enabled(ena_dev); in ena_get_coalesce()
392 val = ena_com_get_nonadaptive_moderation_interval_tx(adapter->ena_dev); in ena_update_tx_rings_nonadaptive_intr_moderation()
403 val = ena_com_get_nonadaptive_moderation_interval_rx(adapter->ena_dev); in ena_update_rx_rings_nonadaptive_intr_moderation()
415 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_set_coalesce() local
418 if (!ena_com_interrupt_moderation_supported(ena_dev)) in ena_set_coalesce()
421 rc = ena_com_update_nonadaptive_moderation_interval_tx(ena_dev, in ena_set_coalesce()
428 rc = ena_com_update_nonadaptive_moderation_interval_rx(ena_dev, in ena_set_coalesce()
436 !ena_com_get_adaptive_moderation_enabled(ena_dev)) in ena_set_coalesce()
437 ena_com_enable_adaptive_moderation(ena_dev); in ena_set_coalesce()
440 ena_com_get_adaptive_moderation_enabled(ena_dev)) in ena_set_coalesce()
441 ena_com_disable_adaptive_moderation(ena_dev); in ena_set_coalesce()
550 static int ena_get_rss_hash(struct ena_com_dev *ena_dev, in ena_get_rss_hash() argument
592 rc = ena_com_get_hash_ctrl(ena_dev, proto, &hash_fields); in ena_get_rss_hash()
601 static int ena_set_rss_hash(struct ena_com_dev *ena_dev, in ena_set_rss_hash() argument
642 return ena_com_fill_hash_ctrl(ena_dev, proto, hash_fields); in ena_set_rss_hash()
652 rc = ena_set_rss_hash(adapter->ena_dev, info); in ena_set_rxnfc()
677 rc = ena_get_rss_hash(adapter->ena_dev, info); in ena_get_rxnfc()
704 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_indirection_table_set() local
708 rc = ena_com_indirect_table_fill_entry(ena_dev, in ena_indirection_table_set()
718 rc = ena_com_indirect_table_set(ena_dev); in ena_indirection_table_set()
729 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_indirection_table_get() local
735 rc = ena_com_indirect_table_get(ena_dev, indir); in ena_indirection_table_get()
764 rc = ena_com_get_hash_function(adapter->ena_dev, &ena_func); in ena_get_rxfh()
772 rc = ena_com_get_hash_key(adapter->ena_dev, key); in ena_get_rxfh()
799 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_set_rxfh() local
811 func = ena_com_get_current_hash_function(ena_dev); in ena_set_rxfh()
826 rc = ena_com_fill_hash_function(ena_dev, func, key, in ena_set_rxfh()