Lines Matching defs:lsapId
516 UByte lsapId;
524 lsapId = (UByte)random() & 0x1F; // Random starting point between 0 and 31
531 lsapId = (UByte)desiredLSAPId; // Try to get the one requested
534 while ((lsapId == 0) || (fLSAPIdsInUse & (1 << lsapId))) {
535 lsapId = (lsapId + 1) & 0x1F;
538 if ((desiredLSAPId != kAssignDynamicLSAPId) && (lsapId != desiredLSAPId)) {
539 // Wanted a specific lsapId, but its already being taken
543 desiredLSAPId = (ULong)lsapId;
544 fLSAPIdsInUse |= (1 << lsapId);
545 XTRACE(kObtainLSAPIdEvent, lsapId, fLSAPIdsInUse);
555 void TIrGlue::ReleaseLSAPId( UInt32 lsapId)
557 check( lsapId != kNameServerLSAPId );
558 check( lsapId < 32 );
559 check( fLSAPIdsInUse & (1 << lsapId) );
561 fLSAPIdsInUse &= ~(1 << lsapId);
562 XTRACE( kReleaseLSAPIdEvent, lsapId, fLSAPIdsInUse );
578 // Obtain the lsapId
662 UInt32 lsapId, // Preallocated LSAP Id
669 XTRACE(kListenStartEvent, lsapId, 0);
679 lsap->AssignId( lsapId ); // Assign the lsap-id for the LSAPConn