Lines Matching refs:ena_dev
218 struct ena_com_dev *ena_dev; member
377 int ena_com_mmio_reg_read_request_init(struct ena_com_dev *ena_dev);
383 void ena_com_set_mmio_read_mode(struct ena_com_dev *ena_dev,
390 void ena_com_mmio_reg_read_request_write_dev_addr(struct ena_com_dev *ena_dev);
395 void ena_com_mmio_reg_read_request_destroy(struct ena_com_dev *ena_dev);
406 int ena_com_admin_init(struct ena_com_dev *ena_dev,
416 void ena_com_admin_destroy(struct ena_com_dev *ena_dev);
424 int ena_com_dev_reset(struct ena_com_dev *ena_dev,
435 int ena_com_create_io_queue(struct ena_com_dev *ena_dev,
442 void ena_com_destroy_io_queue(struct ena_com_dev *ena_dev, u16 qid);
452 int ena_com_get_io_handlers(struct ena_com_dev *ena_dev, u16 qid,
461 void ena_com_admin_aenq_enable(struct ena_com_dev *ena_dev);
468 void ena_com_set_admin_running_state(struct ena_com_dev *ena_dev, bool state);
477 bool ena_com_get_admin_running_state(struct ena_com_dev *ena_dev);
485 void ena_com_set_admin_polling_mode(struct ena_com_dev *ena_dev, bool polling);
495 void ena_com_set_admin_auto_polling_mode(struct ena_com_dev *ena_dev,
506 void ena_com_admin_q_comp_intr_handler(struct ena_com_dev *ena_dev);
514 void ena_com_aenq_intr_handler(struct ena_com_dev *ena_dev, void *data);
523 void ena_com_abort_admin_commands(struct ena_com_dev *ena_dev);
530 void ena_com_wait_for_abort_completion(struct ena_com_dev *ena_dev);
542 int ena_com_validate_version(struct ena_com_dev *ena_dev);
553 int ena_com_get_link_params(struct ena_com_dev *ena_dev,
564 int ena_com_get_dma_width(struct ena_com_dev *ena_dev);
574 int ena_com_set_aenq_config(struct ena_com_dev *ena_dev, u32 groups_flag);
582 int ena_com_get_dev_attr_feat(struct ena_com_dev *ena_dev,
591 int ena_com_get_dev_basic_stats(struct ena_com_dev *ena_dev,
600 int ena_com_get_eni_stats(struct ena_com_dev *ena_dev,
609 int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, u32 mtu);
617 int ena_com_get_offload_settings(struct ena_com_dev *ena_dev,
630 int ena_com_rss_init(struct ena_com_dev *ena_dev, u16 log_size);
637 void ena_com_rss_destroy(struct ena_com_dev *ena_dev);
645 int ena_com_get_current_hash_function(struct ena_com_dev *ena_dev);
661 int ena_com_fill_hash_function(struct ena_com_dev *ena_dev,
676 int ena_com_set_hash_function(struct ena_com_dev *ena_dev);
689 int ena_com_get_hash_function(struct ena_com_dev *ena_dev,
703 int ena_com_get_hash_key(struct ena_com_dev *ena_dev, u8 *key);
716 int ena_com_fill_hash_ctrl(struct ena_com_dev *ena_dev,
729 int ena_com_set_hash_ctrl(struct ena_com_dev *ena_dev);
743 int ena_com_get_hash_ctrl(struct ena_com_dev *ena_dev,
757 int ena_com_set_default_hash_ctrl(struct ena_com_dev *ena_dev);
771 int ena_com_indirect_table_fill_entry(struct ena_com_dev *ena_dev,
782 int ena_com_indirect_table_set(struct ena_com_dev *ena_dev);
795 int ena_com_indirect_table_get(struct ena_com_dev *ena_dev, u32 *ind_tbl);
802 int ena_com_allocate_host_info(struct ena_com_dev *ena_dev);
810 int ena_com_allocate_debug_area(struct ena_com_dev *ena_dev,
818 void ena_com_delete_debug_area(struct ena_com_dev *ena_dev);
825 void ena_com_delete_host_info(struct ena_com_dev *ena_dev);
833 int ena_com_set_host_attributes(struct ena_com_dev *ena_dev);
843 int ena_com_create_io_cq(struct ena_com_dev *ena_dev,
854 int ena_com_destroy_io_cq(struct ena_com_dev *ena_dev,
881 int ena_com_init_interrupt_moderation(struct ena_com_dev *ena_dev);
888 bool ena_com_interrupt_moderation_supported(struct ena_com_dev *ena_dev);
897 int ena_com_update_nonadaptive_moderation_interval_tx(struct ena_com_dev *ena_dev,
907 int ena_com_update_nonadaptive_moderation_interval_rx(struct ena_com_dev *ena_dev,
916 unsigned int ena_com_get_nonadaptive_moderation_interval_tx(struct ena_com_dev *ena_dev);
924 unsigned int ena_com_get_nonadaptive_moderation_interval_rx(struct ena_com_dev *ena_dev);
932 int ena_com_config_dev_mode(struct ena_com_dev *ena_dev,
956 static inline bool ena_com_get_adaptive_moderation_enabled(struct ena_com_dev *ena_dev) in ena_com_get_adaptive_moderation_enabled() argument
958 return ena_dev->adaptive_coalescing; in ena_com_get_adaptive_moderation_enabled()
961 static inline void ena_com_enable_adaptive_moderation(struct ena_com_dev *ena_dev) in ena_com_enable_adaptive_moderation() argument
963 ena_dev->adaptive_coalescing = true; in ena_com_enable_adaptive_moderation()
966 static inline void ena_com_disable_adaptive_moderation(struct ena_com_dev *ena_dev) in ena_com_disable_adaptive_moderation() argument
968 ena_dev->adaptive_coalescing = false; in ena_com_disable_adaptive_moderation()
977 static inline bool ena_com_get_cap(struct ena_com_dev *ena_dev, in ena_com_get_cap() argument
980 return !!(ena_dev->capabilities & BIT(cap_id)); in ena_com_get_cap()