Searched refs:io_sq (Results 1 – 3 of 3) sorted by relevance
35 static void *get_sq_desc_regular_queue(struct ena_com_io_sq *io_sq) in get_sq_desc_regular_queue() argument40 tail_masked = io_sq->tail & (io_sq->q_depth - 1); in get_sq_desc_regular_queue()42 offset = tail_masked * io_sq->desc_entry_size; in get_sq_desc_regular_queue()44 return (void *)((uintptr_t)io_sq->desc_addr.virt_addr + offset); in get_sq_desc_regular_queue()47 static int ena_com_write_bounce_buffer_to_dev(struct ena_com_io_sq *io_sq, in ena_com_write_bounce_buffer_to_dev() argument50 struct ena_com_llq_info *llq_info = &io_sq->llq_info; in ena_com_write_bounce_buffer_to_dev()55 dst_tail_mask = io_sq->tail & (io_sq->q_depth - 1); in ena_com_write_bounce_buffer_to_dev()58 if (is_llq_max_tx_burst_exists(io_sq)) { in ena_com_write_bounce_buffer_to_dev()59 if (unlikely(!io_sq->entries_in_tx_burst_left)) { in ena_com_write_bounce_buffer_to_dev()60 netdev_err(ena_com_io_sq_to_ena_dev(io_sq)->net_device, in ena_com_write_bounce_buffer_to_dev()[all …]
54 int ena_com_prepare_tx(struct ena_com_io_sq *io_sq,59 struct ena_com_io_sq *io_sq,62 int ena_com_add_single_rx_desc(struct ena_com_io_sq *io_sq,74 static inline int ena_com_free_q_entries(struct ena_com_io_sq *io_sq) in ena_com_free_q_entries() argument78 next_to_comp = io_sq->next_to_comp; in ena_com_free_q_entries()79 tail = io_sq->tail; in ena_com_free_q_entries()82 return io_sq->q_depth - 1 - cnt; in ena_com_free_q_entries()86 static inline bool ena_com_sq_have_enough_space(struct ena_com_io_sq *io_sq, in ena_com_sq_have_enough_space() argument91 if (io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST) in ena_com_sq_have_enough_space()92 return ena_com_free_q_entries(io_sq) >= required_buffers; in ena_com_sq_have_enough_space()[all …]
543 struct ena_com_io_sq **io_sq,1034 static inline struct ena_com_dev *ena_com_io_sq_to_ena_dev(struct ena_com_io_sq *io_sq) in ena_com_io_sq_to_ena_dev() argument1036 return container_of(io_sq, struct ena_com_dev, io_sq_queues[io_sq->qid]); in ena_com_io_sq_to_ena_dev()