/* Returns the number of IOCB entries needed to store @dsds.  */
static uint16_t qla24xx_calc_iocbs(uint16_t dsds)
/* Returns the number of IOCB entries needed to store @dsds.  */
static uint16_t qla24xx_calc_iocbs(uint16_t dsds)
{
	uint16_t iocbs;
	iocbs = 1;
	if (dsds > 1) {
		iocbs += (dsds - 1) / 5;
		if ((dsds - 1) % 5)
			iocbs++;
	}
	return iocbs;
}