/* Return unit size power of 2 given number of bytes to transfer.  */
static uint32_t qlen_shift(uint32_t len)
/* Return unit size power of 2 given number of bytes to transfer.  */
static uint32_t qlen_shift(uint32_t len)
{
	uint32_t ushift;
	if ((len & 0x0F) == 0) {
		ushift = 4;
	} else if ((len & 0x03) == 0) {
		ushift = 2;
	} else {
		ushift = 0;
	}
	return ushift;
}