• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/isdn/hardware/eicon/

Lines Matching refs:this

22   along with this program; if not, write to the Free Software
81 ENTITY * this = NULL;
108 this = entity_ptr(a, e_no);
110 if ( !this )
119 DBG_TRC((">A%d Id=0x%x Req=0x%x", ((ISDN_ADAPTER *)a->io)->ANum, this->Id, this->Req))
122 dbug(dprintf("out:Req=%x,Id=%x,Ch=%x",this->Req,this->Id,this->ReqCh));
127 if (!(a->tx_stream[this->Id] &&
128 this->Req == N_DATA)) {
133 i = this->XCurrent;
134 X = PTR_X(a,this);
135 while(i<this->XNum && length<270) {
136 clength = min((word)(270-length),(word)(X[i].PLength-this->XOffset));
139 PTR_P(a,this,&X[i].P[this->XOffset]),
142 this->XOffset +=clength;
143 if(this->XOffset==X[i].PLength) {
144 this->XCurrent = (byte)++i;
145 this->XOffset = 0;
150 i = this->XCurrent;
151 X = PTR_X(a,this);
152 while (i < this->XNum) {
154 this->Id,
155 PTR_P(a,this,&X[i].P[0]),
157 ((i+1) == this->XNum),
159 this->XCurrent = (byte)++i;
165 a->ram_out(a, &ReqOut->ReqId, this->Id);
166 a->ram_out(a, &ReqOut->ReqCh, this->ReqCh);
168 if(this->Id &0x1f) {
171 this->More++;
172 if(i<this->XNum && this->MInd) {
173 xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->MInd,
174 a->IdTypeTable[this->No]);
175 a->ram_out(a, &ReqOut->Req, this->MInd);
179 xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->Req,
180 a->IdTypeTable[this->No]);
181 this->More |=XMOREF;
182 a->ram_out(a, &ReqOut->Req, this->Req);
184 if (a->FlowControlIdTable[this->ReqCh] == this->Id)
185 a->FlowControlSkipTable[this->ReqCh] = true;
189 if (this->Req == REMOVE) {
193 /* if we did chaining, this entity is put back into the */
196 req_queue(a,this->No);
202 this->MInd = 0;
203 if (this->Id==BLLC_ID) this->MInd = LL_MDATA;
204 if (this->Id==NL_ID ||
205 this->Id==TASK_ID ||
206 this->Id==MAN_ID
207 ) this->MInd = N_MDATA;
209 a->IdTypeTable[this->No] = this->Id;
210 xdi_xlog_request (XDI_A_NR(a),this->Id,this->ReqCh,this->Req, this->Id);
211 this->More |=XMOREF;
212 a->ram_out(a, &ReqOut->Req, this->Req);
214 assign_queue(a, this->No, a->ram_inw(a, &ReqOut->Reference));
226 if(this && (this->Req==UREMOVE) && this->Id) {
227 Id = this->Id;
236 this->Id = 0;
310 /* indications from the same Id delivered in this interrupt */
364 ENTITY * this;
384 /* if we know this Id ... */
387 this = entity_ptr(a,e_no);
388 xdi_xlog_rc_event (XDI_A_NR(a), Id, Ch, Rc, 0, a->IdTypeTable[this->No]);
389 this->RcCh = Ch;
413 this->Id = 0;
417 If we send N_REMOVE in this state we will receive only RC==OK
420 code corrects the counter of outstanding RC's in this case.
422 if ((this->More & XMOREC) > 1) {
423 this->More &= ~XMOREC;
424 this->More |= 1;
432 this->Rc = Rc;
433 this->More &= ~(XBUSY | XMOREC);
434 this->complete=0xff;
435 xdi_xlog_rc_event (XDI_A_NR(a), Id, Ch, Rc, 1, a->IdTypeTable[this->No]);
436 CALLBACK(a, this);
446 counter due to fact that it was no request for this return code,
451 this->Rc = Rc;
452 this->complete=0xff;
453 xdi_xlog_rc_event (XDI_A_NR(a), Id, Ch, Rc, 1, a->IdTypeTable[this->No]);
456 CALLBACK(a, this);
465 this->Rc = Rc;
466 if (Ch == this->ReqCh)
468 this->More &=~(XBUSY | XMOREC);
469 this->complete=0xff;
471 xdi_xlog_rc_event (XDI_A_NR(a), Id, Ch, Rc, 1, a->IdTypeTable[this->No]);
472 CALLBACK(a, this);
476 if (this->More &XMOREC)
477 this->More--;
479 if (((!cancel_rc) || (this->More & XMOREF)) && !(this->More & XMOREC)) {
480 this->Rc = Rc;
481 this->More &=~XBUSY;
482 this->complete=0xff;
483 xdi_xlog_rc_event (XDI_A_NR(a), Id, Ch, Rc, 1, a->IdTypeTable[this->No]);
484 CALLBACK(a, this);
493 this = entity_ptr(a,e_no);
494 this->Id = Id;
495 xdi_xlog_rc_event (XDI_A_NR(a), Id, Ch, Rc, 2, a->IdTypeTable[this->No]);
497 this->Rc = Rc;
498 this->More &=~XBUSY;
499 this->complete=0xff;
502 (a->IdTypeTable[this->No] == NL_ID) &&
519 a->misc_flags_table[this->No] |= DIVA_MISC_FLAGS_RX_DMA;
523 a->misc_flags_table[this->No] &= ~DIVA_MISC_FLAGS_RX_DMA;
532 a->misc_flags_table[this->No] &= ~DIVA_MISC_FLAGS_RX_DMA;
535 CALLBACK(a, this);
548 this->Id = 0;
566 ENTITY * this;
579 this = entity_ptr(a,a->IdTable[Id]);
580 this->IndCh = Ch;
582 0/* rnr_valid */, 0 /* rnr */, a->IdTypeTable[this->No]);
583 /* if the Receive More flag is not yet set, this is the */
585 if(this->RCurrent==0xff) {
587 if(Ind==this->MInd) {
588 this->complete = 0;
589 this->Ind = MInd;
592 this->complete = 1;
593 this->Ind = Ind;
597 this->RLength = MLength;
599 if ((a->rx_stream[this->Id] ||
600 (a->misc_flags_table[this->No] & DIVA_MISC_FLAGS_RX_DMA)) &&
604 if (a->misc_flags_table[this->No] & DIVA_MISC_FLAGS_RX_DMA) {
609 (int)a->rx_stream[this->Id], (void**)&cma, &d);
614 this->RLength = MLength = (word)*(dword*)cma;
619 this->RLength = MLength = (word)diva_istream_read (a,
627 this->complete = 0;
629 this->complete = 1;
632 this->RBuffer = (DBUFFER *)&IoAdapter->RBuffer ;
636 a->ram_look_ahead(a, RBuffer, this);
638 this->RNum = 0;
639 CALLBACK(a, this);
642 this = entity_ptr(a,a->IdTable[Id]);
644 1/* rnr_valid */, this->RNR/* rnr */, a->IdTypeTable[this->No]);
646 if(this->RNR==1) {
647 this->RNR = 0;
653 if(!this->RNR && !this->RNum) {
655 2/* rnr_valid */, 0/* rnr */, a->IdTypeTable[this->No]);
659 this->RCurrent = 0;
660 this->ROffset = 0;
662 if(this->RNR==2) {
663 if(Ind!=this->MInd) {
664 this->RCurrent = 0xff;
665 this->RNR = 0;
672 R = PTR_R(a,this);
674 if(this->ROffset==R[this->RCurrent].PLength) {
675 this->ROffset = 0;
676 this->RCurrent++;
679 clength = min(MLength, (word)(R[this->RCurrent].PLength-this->ROffset));
682 R[this->RCurrent].PLength-this->ROffset);
684 if(R[this->RCurrent].P) {
686 memcpy (PTR_P(a,this,&R[this->RCurrent].P[this->ROffset]),
692 PTR_P(a,this,&R[this->RCurrent].P[this->ROffset]),
697 this->ROffset +=clength;
708 if(Ind!=this->MInd) {
709 R[this->RCurrent].PLength = this->ROffset;
710 if(this->ROffset) this->RCurrent++;
711 this->RNum = this->RCurrent;
712 this->RCurrent = 0xff;
713 this->Ind = Ind;
714 this->complete = 2;
716 3/* rnr_valid */, 0/* rnr */, a->IdTypeTable[this->No]);
717 CALLBACK(a, this);
737 Id - Id of the entity that had sent this return code
738 Ch - Channel of the entity that had sent this return code
746 DELIVERY - have entered isdn_rc with this RC
748 for this RC
751 before of this message
752 type - the Id that was sent by the ASSIGN of this entity.
755 In this case the log.c is to be extended.
773 Id - Id of the entity that had sent this request
774 Ch - Channel of the entity that had sent this request
776 type - the Id that was sent by the ASSIGN of this entity.
779 In this case the log.c is to be extended.
796 Id - Id of the entity that had sent this indication
797 Ch - Channel of the entity that had sent this indication
810 this indication and will copy it self
815 type: the Id that was sent by the ASSIGN of this entity. This should
817 cause "?-" in the front of the request. In this case the