/* Calculates the number of flits needed for a scatter/gather list that can hold the given number of entries.  */
static unsigned int sgl_len(unsigned int n)
/* Calculates the number of flits needed for a scatter/gather list that can hold the given number of entries.  */
static unsigned int sgl_len(unsigned int n)
{
	return (3 * n) / 2 + (n & 1);
}