Lines Matching refs:this

360   ENTITY  * this = NULL;  in DivasOut()  local
390 this = entity_ptr(a, e_no); in DivasOut()
393 if ( !this ) in DivasOut()
403 DPRINTF(("IDI: >A%d Id=0x%x Req=0x%x", io->ANum, this->Id, this->Req)) in DivasOut()
406 DPRINTF(("IDI: >REQ=%x,Id=%x,Ch=%x",this->Req,this->Id,this->ReqCh)); in DivasOut()
415 i = this->XCurrent; in DivasOut()
416 X = PTR_X(a,this); in DivasOut()
417 while(i<this->XNum && length<270) { in DivasOut()
419 if (clength > X[i].PLength-this->XOffset) in DivasOut()
420 clength = X[i].PLength-this->XOffset; in DivasOut()
423 PTR_P(a,this,&X[i].P[this->XOffset]), in DivasOut()
427 this->XOffset +=clength; in DivasOut()
428 if(this->XOffset==X[i].PLength) { in DivasOut()
429 this->XCurrent = (byte)++i; in DivasOut()
430 this->XOffset = 0; in DivasOut()
435 a->ram_out(a, &ReqOut->ReqId, this->Id); in DivasOut()
436 a->ram_out(a, &ReqOut->ReqCh, this->ReqCh); in DivasOut()
440 if(this->Id &0x1f) { in DivasOut()
445 this->More++; in DivasOut()
446 if(i<this->XNum && this->MInd) { in DivasOut()
447 a->ram_out(a, &ReqOut->Req, this->MInd); in DivasOut()
451 this->More |=XMOREF; in DivasOut()
452 a->ram_out(a, &ReqOut->Req, this->Req); in DivasOut()
460 req_queue(a,this->No); in DivasOut()
470 this->MInd = 0; in DivasOut()
471 if (this->Id==BLLC_ID) this->MInd = LL_MDATA; in DivasOut()
472 if (this->Id==NL_ID || in DivasOut()
473 this->Id==TASK_ID || in DivasOut()
474 this->Id==MAN_ID in DivasOut()
475 ) this->MInd = N_MDATA; in DivasOut()
479 this->More |=XMOREF; in DivasOut()
480 a->ram_out(a, &ReqOut->Req, this->Req); in DivasOut()
484 assign_queue(a, this->No, a->ram_inw(a, &ReqOut->Reference)); in DivasOut()
500 if(this->Req==UREMOVE && this->Id) { in DivasOut()
501 Id = this->Id; in DivasOut()
505 this->Id = 0; in DivasOut()
636 ENTITY * this; in isdn_rc() local
661 this = entity_ptr(a,e_no); in isdn_rc()
663 this->RcCh = Ch; in isdn_rc()
667 if(this->Req==REMOVE && Rc==OK) { in isdn_rc()
670 this->Id = 0; in isdn_rc()
672 if ((this->More & XMOREC) > 1) { in isdn_rc()
673 this->More &= ~XMOREC; in isdn_rc()
674 this->More |= 1; in isdn_rc()
680 this->Rc = Rc; in isdn_rc()
681 this->More = (this->More & (~XBUSY | XMOREC)) | 1; in isdn_rc()
682 this->complete = 0xFF; in isdn_rc()
683 CALLBACK(a, this); in isdn_rc()
686 if(this->More &XMOREC) in isdn_rc()
687 this->More--; in isdn_rc()
690 if(this->More &XMOREF && !(this->More &XMOREC)) { in isdn_rc()
691 this->Rc = Rc; in isdn_rc()
692 this->More &=~XBUSY; in isdn_rc()
693 this->complete=0xff; in isdn_rc()
694 CALLBACK(a, this); in isdn_rc()
707 this = entity_ptr(a,e_no); in isdn_rc()
709 this->Id = Id; in isdn_rc()
712 this->Rc = Rc; in isdn_rc()
713 this->More &=~XBUSY; in isdn_rc()
714 this->complete=0xff; in isdn_rc()
715 CALLBACK(a, this); in isdn_rc()
724 this->Id = 0; in isdn_rc()
745 ENTITY * this; in isdn_ind() local
761 this = entity_ptr(a,a->IdTable[Id]); in isdn_ind()
763 this->IndCh = Ch; in isdn_ind()
767 if(this->RCurrent==0xff) { in isdn_ind()
770 if(Ind==this->MInd) { in isdn_ind()
771 this->complete = 0; in isdn_ind()
772 this->Ind = MInd; in isdn_ind()
775 this->complete = 1; in isdn_ind()
776 this->Ind = Ind; in isdn_ind()
781 this->RLength = MLength; in isdn_ind()
783 a->ram_look_ahead(a, RBuffer, this); in isdn_ind()
785 this->RNum = 0; in isdn_ind()
786 CALLBACK(a, this); in isdn_ind()
790 this = entity_ptr(a,a->IdTable[Id]); in isdn_ind()
793 if(this->RNR==1) { in isdn_ind()
794 this->RNR = 0; in isdn_ind()
801 if(!this->RNR && !this->RNum) { in isdn_ind()
806 this->RCurrent = 0; in isdn_ind()
807 this->ROffset = 0; in isdn_ind()
810 if(this->RNR==2) { in isdn_ind()
811 if(Ind!=this->MInd) { in isdn_ind()
812 this->RCurrent = 0xff; in isdn_ind()
813 this->RNR = 0; in isdn_ind()
820 R = PTR_R(a,this); in isdn_ind()
822 if(this->ROffset==R[this->RCurrent].PLength) { in isdn_ind()
823 this->ROffset = 0; in isdn_ind()
824 this->RCurrent++; in isdn_ind()
827 if (clength > R[this->RCurrent].PLength-this->ROffset) in isdn_ind()
828 clength = R[this->RCurrent].PLength-this->ROffset; in isdn_ind()
829 if(R[this->RCurrent].P) { in isdn_ind()
832 PTR_P(a,this,&R[this->RCurrent].P[this->ROffset]), in isdn_ind()
836 this->ROffset +=clength; in isdn_ind()
842 if(Ind!=this->MInd) { in isdn_ind()
843 R[this->RCurrent].PLength = this->ROffset; in isdn_ind()
844 if(this->ROffset) this->RCurrent++; in isdn_ind()
845 this->RNum = this->RCurrent; in isdn_ind()
846 this->RCurrent = 0xff; in isdn_ind()
847 this->Ind = Ind; in isdn_ind()
848 this->complete = 2; in isdn_ind()
849 CALLBACK(a, this); in isdn_ind()