/* The sequence number and current window are not cleared (see qset_reset()).  */
void qset_clear(struct whc *whc, struct whc_qset *qset)
/* The sequence number and current window are not cleared (see qset_reset()).  */
void qset_clear(struct whc *whc, struct whc_qset *qset)
{
	qset->td_start = qset->td_end = qset->ntds = 0;
	qset->qh.link = cpu_to_le32(QH_LINK_NTDS(8) | QH_LINK_T);
	qset->qh.status = qset->qh.status & QH_STATUS_SEQ_MASK;
	qset->qh.err_count = 0;
	qset->qh.scratch[0] = 0;
	qset->qh.scratch[1] = 0;
	qset->qh.scratch[2] = 0;
	memset(&qset->qh.overlay, 0, sizeof(qset->qh.overlay));
	init_completion(&qset->remove_complete);
}