Lines Matching refs:io_sq
81 int ena_com_prepare_tx(struct ena_com_io_sq *io_sq,
86 struct ena_com_io_sq *io_sq,
89 int ena_com_add_single_rx_desc(struct ena_com_io_sq *io_sq,
101 static inline int ena_com_free_desc(struct ena_com_io_sq *io_sq)
105 next_to_comp = io_sq->next_to_comp;
106 tail = io_sq->tail;
109 return io_sq->q_depth - 1 - cnt;
113 static inline bool ena_com_sq_have_enough_space(struct ena_com_io_sq *io_sq,
118 if (io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)
119 return ena_com_free_desc(io_sq) >= required_buffers;
126 temp = required_buffers / io_sq->llq_info.descs_per_entry + 2;
128 return ena_com_free_desc(io_sq) > temp;
131 static inline int ena_com_write_sq_doorbell(struct ena_com_io_sq *io_sq)
135 tail = io_sq->tail;
138 io_sq->qid, tail);
140 ENA_REG_WRITE32(io_sq->bus, tail, io_sq->db_addr);
178 static inline void ena_com_comp_ack(struct ena_com_io_sq *io_sq, u16 elem)
180 io_sq->next_to_comp += elem;