[SCSI] hpsa: factor out cmd pool allocation functions