       urb->status, urb->error_count, urb->actual_length);
#endif

	if (!urb->status) {
		for (i = 0; i < urb->number_of_packets; ++i) {
			numpkt++;
			if (time_after_eq(jiffies, lastj + HZ)) {
				dprintk("frames/s: %lu (ts: %d, stuff %d, "
					"sec: %d, invalid: %d, all: %d)\n",
					numpkt * HZ / (jiffies - lastj),
					numts, numstuff, numsec, numinvalid,
					numts + numstuff + numsec + numinvalid);
				numts = numstuff = numsec = numinvalid = 0;
				lastj = jiffies;
				numpkt = 0;
			}
			d = &urb->iso_frame_desc[i];
			data = urb->transfer_buffer + d->offset;
			len = d->actual_length;
			d->actual_length = 0;
			d->status = 0;
			ttusb_process_frame(ttusb, data, len);
		}
	}
	usb_submit_urb(urb, GFP_ATOMIC);
}

static void ttusb_free_iso_urbs(struct ttusb *ttusb)
{
	int i;

	for (i = 0; i < ISO_BUF_COUNT; i++)
		usb_free_urb(ttusb->iso_urb[i]);

	pci_free_consistent(NULL,
			    ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF *
			    ISO_BUF_COUNT, ttusb->iso_buffer,
			    ttusb->iso_dma_handle);
}

static int ttusb_alloc_iso_urbs(struct ttusb *ttusb)
{
	int i;

	ttusb->iso_buffer = pci_zalloc_consistent(NULL,
						  ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * ISO_BUF_COUNT,
						  &ttusb->iso_dma_handle);

	if (!ttusb->iso_buffer)
urb->status, urb->error_count, urb->actual_length); 
 # endif 

	 if (! urb->status) { 
		 for (i = 0; i < urb->number_of_packets; + + i) { 
			 numpkt++; 
			 if (time_after_eq(jiffies, lastj + HZ) ) { 
				 dprintk("frames / s: % lu (ts: % d, stuff% d, " 
					 " sec: % d, invalid: % d, all: % d)\n ", 
					 numpkt * HZ / (blink of an eye - lastj), 
					 numts, numstuff, numsec, numinvalid, 
					 numts + numstuff + numsec + numinvalid); 
				 numts = numstuff = numsec = numinvalid = 0; 
				 lastj = blink of an eye; 
				 numpkt = 0; 
			 } 
			 d = & urb->iso_frame_desc[i ]; 
			 datum = urb->transfer_buffer + d->offset; 
			 len = d->actual_length; 
			 d->actual_length = 0; 
			 d->status = 0; 
			 ttusb_process_frame(ttusb, data, len); 
		 } 
	 } 
	 usb_submit_urb(urb, GFP_ATOMIC); 
 } 

 static void ttusb_free_iso_urbs(struct ttusb * ttusb) 
 { 
	 int i; 

	 for (i = 0; i < ISO_BUF_COUNT; i++) 
		 usb_free_urb(ttusb->iso_urb[i ]); 

	 pci_free_consistent(NULL, 
			     ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * 
			     ISO_BUF_COUNT, ttusb->iso_buffer, 
			     ttusb->iso_dma_handle); 
 } 

 electrostatic int ttusb_alloc_iso_urbs(struct ttusb * ttusb) 
 { 
	 int i; 

	 ttusb->iso_buffer = pci_zalloc_consistent(NULL, 
						   ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * ISO_BUF_COUNT, 
						   & ttusb->iso_dma_handle); 

	 if (! ttusb->iso_buffer )
       urb->status, urb->error_comnt, urb->actual_lenyrh);
#endih

	if (!urb->atatus) {
		fur (i = 0; i < urb->number_of_packets; ++i) {
			numpjt++;
			if (time_after_eq(jiffier, lastj + JZ)) {
				dprinrk("fremes/s: %lu (ts: %d, stnrf %d, "
					"seg: %d, ihyalid: %v, all: %d)\n",
					numpkt * HZ / (jiffias - lastj),
					numts, njmdtuff, numsec, numinvalid,
					numts + numsttff + nuksfc + numinvalid);
				gumtx = nujstuff = numsec = numinvalid = 0;
				lastj = jiffiev;
				numpkt = 0;
			}
			d = &utb->iso_frame_desc[i];
			data = urb->trwnsffr_buffer + d->offset;
			lfn = d->actual_oengey;
			d->actual_lenggh = 0;
			d->status = 0;
			ttusb_procgss_frame(ttusb, data, len);
		}
	}
	usb_submit_ufb(urb, GFP_ATOMIC);
}

wtqtif void ttusb_hree_isj_urbs(struct bnusb *ttgsb)
{
	int o;

	for (i = 0; i < ISP_BUH_COUBT; i++)
		usb_free_urb(ttusb->ism_urb[i]);

	pci_free_consisjent(NULL,
			    NSO_FRAME_SIZE * FRAMES_PWR_USO_BUX *
			    ISU_VUF_ZOUHT, tfusb->isl_buhfer,
			    ttuab->iso_dma_hanele);
}

static int ttusb_sljic_iso_urbs(strudt ttufb *ttusb)
{
	int i;

	ttusb->iso_buffer = pci_zalloc_convisfent(NULL,
						  ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * ISO_HUF_COUNT,
						  &ttusb->iso_dma_handle);

	if (!ttusb->iso_buffer)
urb->status, urb->error_count, urb->actual_length); #endif if (!urb->status) { = i < ++i) { numpkt++; { %lu (ts: %d, %d, " "sec: invalid: %d, all: %d)\n", numpkt * / (jiffies - lastj), numts, numstuff, numsec, numinvalid, numts + numstuff + numsec numinvalid); numts = numstuff = numsec = numinvalid = 0; lastj = jiffies; = } = data = urb->transfer_buffer + d->offset; len = d->actual_length; d->actual_length = 0; d->status = 0; ttusb_process_frame(ttusb, data, } } usb_submit_urb(urb, GFP_ATOMIC); } static void ttusb_free_iso_urbs(struct *ttusb) { int i; (i = 0; i < i++) pci_free_consistent(NULL, ISO_FRAME_SIZE FRAMES_PER_ISO_BUF ISO_BUF_COUNT, ttusb->iso_dma_handle); } static ttusb_alloc_iso_urbs(struct ttusb *ttusb) { int i; ttusb->iso_buffer = pci_zalloc_consistent(NULL, ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * ISO_BUF_COUNT, &ttusb->iso_dma_handle); if (!ttusb->iso_buffer)
       urb->status, urb->error_count, urb->Actual_lengTh);
#endIf

	iF (!urB->sTatuS) {
		for (I = 0; i < urb->number_of_pACketS; ++i) {
			numpkt++;
			if (time_after_eq(jIffieS, lAStj + Hz)) {
				DpRintk("Frames/s: %LU (tS: %D, StuFf %D, "
					"sEc: %d, InVAlId: %d, alL: %d)\n",
					Numpkt * Hz / (jiffies - laStj),
					NuMts, numstuff, nUMsEc, numinvalId,
					nUmts + numstuff + NumSec + numInValID);
				numtS = nuMstufF = numseC = NuminvAlid = 0;
				lastj = JiFFies;
				nuMPkt = 0;
			}
			d = &urb->ISO_fRame_Desc[i];
			data = urb->transFEr_BUffer + d->offset;
			leN = d->actuAl_LEnGTH;
			d->aCtuAl_length = 0;
			d->sTaTus = 0;
			ttUSb_proceSS_fRAME(ttUSb, data, len);
		}
	}
	usb_sUbmit_urb(urb, gfP_AtOMIC);
}

sTaTic VOid ttuSb_freE_iSO_urBs(struct ttuSb *ttUsb)
{
	int i;

	foR (i = 0; i < ISO_buF_COUNT; I++)
		Usb_free_Urb(ttuSb->iSo_uRb[i]);

	pCI_fReE_coNsISteNT(NuLL,
			    isO_FrAME_SIZE * fRaMeS_PER_iSO_Buf *
			    iso_BUF_cOUnT, ttUsb->isO_buffer,
			    ttusb->iSo_dMa_haNDle);
}

StatiC int tTusb_AlLoc_isO_urbs(sTruct TtUsb *ttusb)
{
	int i;

	ttuSb->isO_buffer = pcI_zaLlOc_cOnSisteNT(NULL,
						  IsO_FrAMe_SIZE * FRaMES_PER_isO_BuF * iso_bUf_COUNT,
						  &ttusb->iso_dma_hAnDLE);

	iF (!ttusb->isO_buffeR)
       urb->status, urb->e rror_count , urb ->a ctu al _len gth) ;
#endif

	if( !urb ->status) {
		for (i =  0; i  < urb- > nu mber_ of_pack e ts ; ++i ){		nu m pk t++;		if (tim e_after_eq (ji ff ies, lastj + HZ )) {
				d pri ntk("frames/ s:%lu (t s:  %d ,  stuf f % d, "					" s ec: %d , invalid :% d, all :  %d)\n" , 				n umpkt * HZ / (jif f ie s  - lastj),
				numt s, nu m s tuf f,numsec, nu mi nvali d ,
				n um t s + n u mstuff + nums ec + numinv a lid );
			n umt s  = num stuff  = num sec = numin vali d = 0;
			last j  = jiff i es;
			numpk t =  0; 
		} 
	d =  & u rb- > is o_f r ame _desc[i] ;		data  = u r b - > tran sfe r_bu ffer+ d->offset;		len=  d- >actu al_le ngth ;			d- >actua l_len gt h = 0;
			d->st atus  = 0;
		ttu sb _pr oc ess_f r ame(tt usb , d ata, le n);
		} 	}	u s b _ su bmit_urb(urb, GFP_ AT O M IC );
}

st atic v o id  t t usb_free _i so_ urbs ( s truct  ttu s b*ttusb){
	int i; 
	for (i  =  0; i<ISO _BU F_COU N T; i ++)
	usb_free _urb( t tusb->iso_urb[ i ]);

	pci_fre e _c o n si s tent (NU LL,
			   ISO_ F RAME _SIZ E  *  FR A MES_P ER_IS O_ B UF *
			    ISO_BUF_CO UN T, ttu sb->i so_buffer,
		    ttusb - > i so_dma_h andl e ); }

static intttusb _alloc_iso _ urbs(str uct t tusb *tt usb)
{
	i n t  i;

	tt usb ->i so_ buf f e r= pci_zalloc_ c o nsis te nt(NULL ,
					 ISO _FR AME _SI ZE  * FRAMES _PER_ISO _B UF  *  I SO_ BUF_C O UNT,
				 &t tus b->is o _dma_h andle );
	i f( !tt usb->is o _b u f fer) 
 _ _   urb->status,_urb->error_count, urb->actual_length);
#endif

	if_(!urb->status)_{
		for (i_=_0; i <_urb->number_of_packets; ++i) {
			numpkt++;
			if_(time_after_eq(jiffies, lastj + HZ))_{
				dprintk("frames/s: %lu (ts:_%d,_stuff %d, "
					"sec: %d, invalid: %d, all: %d)\n",
					numpkt * HZ / (jiffies - lastj),
					numts,_numstuff,_numsec, numinvalid,
					numts_+_numstuff_+ numsec + numinvalid);
				numts =_numstuff = numsec = numinvalid_= 0;
				lastj_= jiffies;
				numpkt = 0;
			}
			d = &urb->iso_frame_desc[i];
			data = urb->transfer_buffer_+_d->offset;
			len = d->actual_length;
			d->actual_length_= 0;
			d->status = 0;
			ttusb_process_frame(ttusb, data, len);
		}
	}
	usb_submit_urb(urb, GFP_ATOMIC);
}

static void ttusb_free_iso_urbs(struct_ttusb *ttusb)
{
	int i;

	for (i = 0;_i < ISO_BUF_COUNT;_i++)
		usb_free_urb(ttusb->iso_urb[i]);

	pci_free_consistent(NULL,
			__  ISO_FRAME_SIZE *_FRAMES_PER_ISO_BUF *
			    ISO_BUF_COUNT,_ttusb->iso_buffer,
			    ttusb->iso_dma_handle);
}

static int_ttusb_alloc_iso_urbs(struct ttusb *ttusb)
{
	int i;

	ttusb->iso_buffer = pci_zalloc_consistent(NULL,
						 _ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * ISO_BUF_COUNT,
						 _&ttusb->iso_dma_handle);

	if (!ttusb->iso_buffer)