Lines Matching refs:llq_info

345 			ena_dev->llq_info.desc_list_entry_size;  in ena_com_init_io_sq()
363 memcpy(&io_sq->llq_info, &ena_dev->llq_info, in ena_com_init_io_sq()
364 sizeof(io_sq->llq_info)); in ena_com_init_io_sq()
370 0x0, io_sq->llq_info.desc_list_entry_size); in ena_com_init_io_sq()
372 io_sq->llq_info.descs_num_before_header; in ena_com_init_io_sq()
374 io_sq->llq_info.disable_meta_caching; in ena_com_init_io_sq()
376 if (io_sq->llq_info.max_entries_in_tx_burst > 0) in ena_com_init_io_sq()
378 io_sq->llq_info.max_entries_in_tx_burst; in ena_com_init_io_sq()
584 struct ena_com_llq_info *llq_info = &ena_dev->llq_info; in ena_com_set_llq() local
593 cmd.u.llq.header_location_ctrl_enabled = llq_info->header_location_ctrl; in ena_com_set_llq()
594 cmd.u.llq.entry_size_ctrl_enabled = llq_info->desc_list_entry_size_ctrl; in ena_com_set_llq()
595 cmd.u.llq.desc_num_before_header_enabled = llq_info->descs_num_before_header; in ena_com_set_llq()
596 cmd.u.llq.descriptors_stride_ctrl_enabled = llq_info->desc_stride_ctrl; in ena_com_set_llq()
618 struct ena_com_llq_info *llq_info = &ena_dev->llq_info; in ena_com_config_llq_info() local
623 memset(llq_info, 0, sizeof(*llq_info)); in ena_com_config_llq_info()
628 llq_info->header_location_ctrl = in ena_com_config_llq_info()
636 if (likely(llq_info->header_location_ctrl == ENA_ADMIN_INLINE_HEADER)) { in ena_com_config_llq_info()
639 llq_info->desc_stride_ctrl = llq_default_cfg->llq_stride_ctrl; in ena_com_config_llq_info()
642 llq_info->desc_stride_ctrl = ENA_ADMIN_MULTIPLE_DESCS_PER_ENTRY; in ena_com_config_llq_info()
644 llq_info->desc_stride_ctrl = ENA_ADMIN_SINGLE_DESC_PER_ENTRY; in ena_com_config_llq_info()
655 llq_info->desc_stride_ctrl); in ena_com_config_llq_info()
658 llq_info->desc_stride_ctrl = 0; in ena_com_config_llq_info()
663 llq_info->desc_list_entry_size_ctrl = llq_default_cfg->llq_ring_entry_size; in ena_com_config_llq_info()
664 llq_info->desc_list_entry_size = llq_default_cfg->llq_ring_entry_size_value; in ena_com_config_llq_info()
667 llq_info->desc_list_entry_size_ctrl = ENA_ADMIN_LIST_ENTRY_SIZE_128B; in ena_com_config_llq_info()
668 llq_info->desc_list_entry_size = 128; in ena_com_config_llq_info()
670 llq_info->desc_list_entry_size_ctrl = ENA_ADMIN_LIST_ENTRY_SIZE_192B; in ena_com_config_llq_info()
671 llq_info->desc_list_entry_size = 192; in ena_com_config_llq_info()
673 llq_info->desc_list_entry_size_ctrl = ENA_ADMIN_LIST_ENTRY_SIZE_256B; in ena_com_config_llq_info()
674 llq_info->desc_list_entry_size = 256; in ena_com_config_llq_info()
684 llq_info->desc_list_entry_size); in ena_com_config_llq_info()
686 if (unlikely(llq_info->desc_list_entry_size & 0x7)) { in ena_com_config_llq_info()
691 llq_info->desc_list_entry_size); in ena_com_config_llq_info()
695 if (llq_info->desc_stride_ctrl == ENA_ADMIN_MULTIPLE_DESCS_PER_ENTRY) in ena_com_config_llq_info()
696 llq_info->descs_per_entry = llq_info->desc_list_entry_size / in ena_com_config_llq_info()
699 llq_info->descs_per_entry = 1; in ena_com_config_llq_info()
703 llq_info->descs_num_before_header = llq_default_cfg->llq_num_decs_before_header; in ena_com_config_llq_info()
706 llq_info->descs_num_before_header = ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_2; in ena_com_config_llq_info()
708 llq_info->descs_num_before_header = ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_1; in ena_com_config_llq_info()
710 llq_info->descs_num_before_header = ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_4; in ena_com_config_llq_info()
712 llq_info->descs_num_before_header = ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_8; in ena_com_config_llq_info()
723 llq_info->descs_num_before_header); in ena_com_config_llq_info()
728 llq_info->disable_meta_caching = in ena_com_config_llq_info()
733 llq_info->max_entries_in_tx_burst = in ena_com_config_llq_info()
2989 struct ena_com_llq_info *llq_info = &ena_dev->llq_info; in ena_com_config_dev_mode() local
3001 ena_dev->tx_max_header_size = llq_info->desc_list_entry_size - in ena_com_config_dev_mode()
3002 (llq_info->descs_num_before_header * sizeof(struct ena_eth_io_tx_desc)); in ena_com_config_dev_mode()