3232
3333#include "ena_eth_com.h"
3434
35- static inline struct ena_eth_io_rx_cdesc_base * ena_com_get_next_rx_cdesc (
35+ static struct ena_eth_io_rx_cdesc_base * ena_com_get_next_rx_cdesc (
3636 struct ena_com_io_cq * io_cq )
3737{
3838 struct ena_eth_io_rx_cdesc_base * cdesc ;
@@ -59,7 +59,7 @@ static inline struct ena_eth_io_rx_cdesc_base *ena_com_get_next_rx_cdesc(
5959 return cdesc ;
6060}
6161
62- static inline void * get_sq_desc_regular_queue (struct ena_com_io_sq * io_sq )
62+ static void * get_sq_desc_regular_queue (struct ena_com_io_sq * io_sq )
6363{
6464 u16 tail_masked ;
6565 u32 offset ;
@@ -71,7 +71,7 @@ static inline void *get_sq_desc_regular_queue(struct ena_com_io_sq *io_sq)
7171 return (void * )((uintptr_t )io_sq -> desc_addr .virt_addr + offset );
7272}
7373
74- static inline int ena_com_write_bounce_buffer_to_dev (struct ena_com_io_sq * io_sq ,
74+ static int ena_com_write_bounce_buffer_to_dev (struct ena_com_io_sq * io_sq ,
7575 u8 * bounce_buffer )
7676{
7777 struct ena_com_llq_info * llq_info = & io_sq -> llq_info ;
@@ -111,7 +111,7 @@ static inline int ena_com_write_bounce_buffer_to_dev(struct ena_com_io_sq *io_sq
111111 return 0 ;
112112}
113113
114- static inline int ena_com_write_header_to_bounce (struct ena_com_io_sq * io_sq ,
114+ static int ena_com_write_header_to_bounce (struct ena_com_io_sq * io_sq ,
115115 u8 * header_src ,
116116 u16 header_len )
117117{
@@ -142,7 +142,7 @@ static inline int ena_com_write_header_to_bounce(struct ena_com_io_sq *io_sq,
142142 return 0 ;
143143}
144144
145- static inline void * get_sq_desc_llq (struct ena_com_io_sq * io_sq )
145+ static void * get_sq_desc_llq (struct ena_com_io_sq * io_sq )
146146{
147147 struct ena_com_llq_pkt_ctrl * pkt_ctrl = & io_sq -> llq_buf_ctrl ;
148148 u8 * bounce_buffer ;
@@ -162,7 +162,7 @@ static inline void *get_sq_desc_llq(struct ena_com_io_sq *io_sq)
162162 return sq_desc ;
163163}
164164
165- static inline int ena_com_close_bounce_buffer (struct ena_com_io_sq * io_sq )
165+ static int ena_com_close_bounce_buffer (struct ena_com_io_sq * io_sq )
166166{
167167 struct ena_com_llq_pkt_ctrl * pkt_ctrl = & io_sq -> llq_buf_ctrl ;
168168 struct ena_com_llq_info * llq_info = & io_sq -> llq_info ;
@@ -189,15 +189,15 @@ static inline int ena_com_close_bounce_buffer(struct ena_com_io_sq *io_sq)
189189 return 0 ;
190190}
191191
192- static inline void * get_sq_desc (struct ena_com_io_sq * io_sq )
192+ static void * get_sq_desc (struct ena_com_io_sq * io_sq )
193193{
194194 if (io_sq -> mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_DEV )
195195 return get_sq_desc_llq (io_sq );
196196
197197 return get_sq_desc_regular_queue (io_sq );
198198}
199199
200- static inline int ena_com_sq_update_llq_tail (struct ena_com_io_sq * io_sq )
200+ static int ena_com_sq_update_llq_tail (struct ena_com_io_sq * io_sq )
201201{
202202 struct ena_com_llq_pkt_ctrl * pkt_ctrl = & io_sq -> llq_buf_ctrl ;
203203 struct ena_com_llq_info * llq_info = & io_sq -> llq_info ;
@@ -225,7 +225,7 @@ static inline int ena_com_sq_update_llq_tail(struct ena_com_io_sq *io_sq)
225225 return 0 ;
226226}
227227
228- static inline int ena_com_sq_update_tail (struct ena_com_io_sq * io_sq )
228+ static int ena_com_sq_update_tail (struct ena_com_io_sq * io_sq )
229229{
230230 if (io_sq -> mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_DEV )
231231 return ena_com_sq_update_llq_tail (io_sq );
@@ -239,7 +239,7 @@ static inline int ena_com_sq_update_tail(struct ena_com_io_sq *io_sq)
239239 return 0 ;
240240}
241241
242- static inline struct ena_eth_io_rx_cdesc_base *
242+ static struct ena_eth_io_rx_cdesc_base *
243243 ena_com_rx_cdesc_idx_to_ptr (struct ena_com_io_cq * io_cq , u16 idx )
244244{
245245 idx &= (io_cq -> q_depth - 1 );
@@ -248,7 +248,7 @@ static inline struct ena_eth_io_rx_cdesc_base *
248248 idx * io_cq -> cdesc_entry_size_in_bytes );
249249}
250250
251- static inline u16 ena_com_cdesc_rx_pkt_get (struct ena_com_io_cq * io_cq ,
251+ static u16 ena_com_cdesc_rx_pkt_get (struct ena_com_io_cq * io_cq ,
252252 u16 * first_cdesc_idx )
253253{
254254 struct ena_eth_io_rx_cdesc_base * cdesc ;
@@ -285,7 +285,7 @@ static inline u16 ena_com_cdesc_rx_pkt_get(struct ena_com_io_cq *io_cq,
285285 return count ;
286286}
287287
288- static inline int ena_com_create_and_store_tx_meta_desc (struct ena_com_io_sq * io_sq ,
288+ static int ena_com_create_and_store_tx_meta_desc (struct ena_com_io_sq * io_sq ,
289289 struct ena_com_tx_ctx * ena_tx_ctx )
290290{
291291 struct ena_eth_io_tx_meta_desc * meta_desc = NULL ;
@@ -334,7 +334,7 @@ static inline int ena_com_create_and_store_tx_meta_desc(struct ena_com_io_sq *io
334334 return ena_com_sq_update_tail (io_sq );
335335}
336336
337- static inline void ena_com_rx_set_flags (struct ena_com_rx_ctx * ena_rx_ctx ,
337+ static void ena_com_rx_set_flags (struct ena_com_rx_ctx * ena_rx_ctx ,
338338 struct ena_eth_io_rx_cdesc_base * cdesc )
339339{
340340 ena_rx_ctx -> l3_proto = cdesc -> status &
0 commit comments