Lines Matching refs:llq_info
358 ena_dev->llq_info.desc_list_entry_size; in ena_com_init_io_sq()
381 memcpy(&io_sq->llq_info, &ena_dev->llq_info, in ena_com_init_io_sq()
382 sizeof(io_sq->llq_info)); in ena_com_init_io_sq()
388 0x0, io_sq->llq_info.desc_list_entry_size); in ena_com_init_io_sq()
390 io_sq->llq_info.descs_num_before_header; in ena_com_init_io_sq()
392 io_sq->llq_info.disable_meta_caching; in ena_com_init_io_sq()
394 if (io_sq->llq_info.max_entries_in_tx_burst > 0) in ena_com_init_io_sq()
396 io_sq->llq_info.max_entries_in_tx_burst; in ena_com_init_io_sq()
609 struct ena_com_llq_info *llq_info = &ena_dev->llq_info; in ena_com_set_llq() local
618 cmd.u.llq.header_location_ctrl_enabled = llq_info->header_location_ctrl; in ena_com_set_llq()
619 cmd.u.llq.entry_size_ctrl_enabled = llq_info->desc_list_entry_size_ctrl; in ena_com_set_llq()
620 cmd.u.llq.desc_num_before_header_enabled = llq_info->descs_num_before_header; in ena_com_set_llq()
621 cmd.u.llq.descriptors_stride_ctrl_enabled = llq_info->desc_stride_ctrl; in ena_com_set_llq()
644 struct ena_com_llq_info *llq_info = &ena_dev->llq_info; in ena_com_config_llq_info() local
649 memset(llq_info, 0, sizeof(*llq_info)); in ena_com_config_llq_info()
654 llq_info->header_location_ctrl = in ena_com_config_llq_info()
663 if (likely(llq_info->header_location_ctrl == ENA_ADMIN_INLINE_HEADER)) { in ena_com_config_llq_info()
666 llq_info->desc_stride_ctrl = llq_default_cfg->llq_stride_ctrl; in ena_com_config_llq_info()
669 llq_info->desc_stride_ctrl = ENA_ADMIN_MULTIPLE_DESCS_PER_ENTRY; in ena_com_config_llq_info()
671 llq_info->desc_stride_ctrl = ENA_ADMIN_SINGLE_DESC_PER_ENTRY; in ena_com_config_llq_info()
682 supported_feat, llq_info->desc_stride_ctrl); in ena_com_config_llq_info()
685 llq_info->desc_stride_ctrl = 0; in ena_com_config_llq_info()
690 llq_info->desc_list_entry_size_ctrl = llq_default_cfg->llq_ring_entry_size; in ena_com_config_llq_info()
691 llq_info->desc_list_entry_size = llq_default_cfg->llq_ring_entry_size_value; in ena_com_config_llq_info()
694 llq_info->desc_list_entry_size_ctrl = ENA_ADMIN_LIST_ENTRY_SIZE_128B; in ena_com_config_llq_info()
695 llq_info->desc_list_entry_size = 128; in ena_com_config_llq_info()
697 llq_info->desc_list_entry_size_ctrl = ENA_ADMIN_LIST_ENTRY_SIZE_192B; in ena_com_config_llq_info()
698 llq_info->desc_list_entry_size = 192; in ena_com_config_llq_info()
700 llq_info->desc_list_entry_size_ctrl = ENA_ADMIN_LIST_ENTRY_SIZE_256B; in ena_com_config_llq_info()
701 llq_info->desc_list_entry_size = 256; in ena_com_config_llq_info()
712 llq_info->desc_list_entry_size); in ena_com_config_llq_info()
714 if (unlikely(llq_info->desc_list_entry_size & 0x7)) { in ena_com_config_llq_info()
719 llq_info->desc_list_entry_size); in ena_com_config_llq_info()
723 if (llq_info->desc_stride_ctrl == ENA_ADMIN_MULTIPLE_DESCS_PER_ENTRY) in ena_com_config_llq_info()
724 llq_info->descs_per_entry = llq_info->desc_list_entry_size / in ena_com_config_llq_info()
727 llq_info->descs_per_entry = 1; in ena_com_config_llq_info()
731 llq_info->descs_num_before_header = llq_default_cfg->llq_num_decs_before_header; in ena_com_config_llq_info()
734 llq_info->descs_num_before_header = ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_2; in ena_com_config_llq_info()
736 llq_info->descs_num_before_header = ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_1; in ena_com_config_llq_info()
738 llq_info->descs_num_before_header = ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_4; in ena_com_config_llq_info()
740 llq_info->descs_num_before_header = ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_8; in ena_com_config_llq_info()
751 supported_feat, llq_info->descs_num_before_header); in ena_com_config_llq_info()
756 llq_info->disable_meta_caching = in ena_com_config_llq_info()
761 llq_info->max_entries_in_tx_burst = in ena_com_config_llq_info()
2985 struct ena_com_llq_info *llq_info = &ena_dev->llq_info; in ena_com_config_dev_mode() local
2997 ena_dev->tx_max_header_size = llq_info->desc_list_entry_size - in ena_com_config_dev_mode()
2998 (llq_info->descs_num_before_header * sizeof(struct ena_eth_io_tx_desc)); in ena_com_config_dev_mode()