|
@@ -1794,6 +1794,9 @@ hal_srng_src_done_val(void *hal_soc, hal_ring_handle_t hal_ring_hdl)
|
|
|
* hal_get_entrysize_from_srng() - Retrieve ring entry size
|
|
|
* @hal_ring_hdl: Source ring pointer
|
|
|
*
|
|
|
+ * srng->entry_size value is in 4 byte dwords so left shifting
|
|
|
+ * this by 2 to return the value of entry_size in bytes.
|
|
|
+ *
|
|
|
* Return: uint8_t
|
|
|
*/
|
|
|
static inline
|
|
@@ -1801,7 +1804,7 @@ uint8_t hal_get_entrysize_from_srng(hal_ring_handle_t hal_ring_hdl)
|
|
|
{
|
|
|
struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl;
|
|
|
|
|
|
- return srng->entry_size;
|
|
|
+ return srng->entry_size << 2;
|
|
|
}
|
|
|
|
|
|
/**
|