Searched refs:aRouterId (Results 1 – 10 of 10) sorted by relevance
/openthread-3.4.0/src/core/thread/ |
D | router_table.hpp | 93 Router *Allocate(uint8_t aRouterId); 105 Error Release(uint8_t aRouterId); 165 uint8_t GetLinkCost(uint8_t aRouterId) const; 213 …Router *FindRouterById(uint8_t aRouterId) { return AsNonConst(AsConst(this)->FindRouterById(aRoute… in FindRouterById() argument 223 const Router *FindRouterById(uint8_t aRouterId) const; 301 Error GetRouterInfo(uint16_t aRouterId, Router::Info &aRouterInfo); 348 bool IsAllocated(uint8_t aRouterId) const { return mRouterIdMap.IsAllocated(aRouterId); } in IsAllocated() 443 Router *AddRouter(uint8_t aRouterId); 468 … bool IsAllocated(uint8_t aRouterId) const { return (mIndexes[aRouterId] & kAllocatedFlag); } in IsAllocated() 469 uint8_t GetIndex(uint8_t aRouterId) const { return (mIndexes[aRouterId] & kIndexMask); } in GetIndex() [all …]
|
D | mle_types.hpp | 583 void SetLeaderRouterId(uint8_t aRouterId) { mLeaderRouterId = aRouterId; } in SetLeaderRouterId() argument 605 …bool Contains(uint8_t aRouterId) const { return (mRouterIdSet[aRouterId / 8] & MaskFor(aRouterId))… in Contains() 613 void Add(uint8_t aRouterId) { mRouterIdSet[aRouterId / 8] |= MaskFor(aRouterId); } in Add() argument 621 void Remove(uint8_t aRouterId) { mRouterIdSet[aRouterId / 8] &= ~MaskFor(aRouterId); } in Remove() argument 632 static uint8_t MaskFor(uint8_t aRouterId) { return (0x80 >> (aRouterId % 8)); } in MaskFor() argument 733 inline uint16_t Rloc16FromRouterId(uint8_t aRouterId) { return static_cast<uint16_t>(aRouterId << k… in Rloc16FromRouterId() argument
|
D | router_table.cpp | 89 Router *RouterTable::AddRouter(uint8_t aRouterId) in AddRouter() argument 99 router->SetRloc16(Mle::Rloc16FromRouterId(aRouterId)); in AddRouter() 102 mRouterIdMap.SetIndex(aRouterId, mRouters.IndexOf(*router)); in AddRouter() 173 Router *RouterTable::Allocate(uint8_t aRouterId) in Allocate() argument 177 VerifyOrExit(aRouterId <= Mle::kMaxRouterId && mRouterIdMap.CanAllocate(aRouterId)); in Allocate() 179 router = AddRouter(aRouterId); in Allocate() 188 LogNote("Allocate router id %d", aRouterId); in Allocate() 194 Error RouterTable::Release(uint8_t aRouterId) in Release() argument 199 OT_ASSERT(aRouterId <= Mle::kMaxRouterId); in Release() 203 router = FindRouterById(aRouterId); in Release() [all …]
|
D | mle_router.hpp | 212 Error SetPreferredRouterId(uint8_t aRouterId); 234 void SetRouterId(uint8_t aRouterId); 420 static bool IsRouterIdValid(uint8_t aRouterId) { return aRouterId <= kMaxRouterId; } in IsRouterIdValid() argument 734 static bool IsRouterIdValid(uint8_t aRouterId) { return aRouterId <= kMaxRouterId; } in IsRouterIdValid() argument
|
D | mle_tlvs.hpp | 317 bool IsRouterIdSet(uint8_t aRouterId) const { return mRouterIdMask.Contains(aRouterId); } in IsRouterIdSet() 477 bool IsRouterIdSet(uint8_t aRouterId) const { return mRouterIdMask.Contains(aRouterId); } in IsRouterIdSet() 494 void SetRouterId(uint8_t aRouterId) { mRouterIdMask.Add(aRouterId); } in SetRouterId() argument
|
D | address_resolver.hpp | 150 void RemoveEntriesForRouterId(uint8_t aRouterId);
|
D | address_resolver.cpp | 166 void AddressResolver::RemoveEntriesForRouterId(uint8_t aRouterId) in RemoveEntriesForRouterId() argument 168 Remove(Mle::Rloc16FromRouterId(aRouterId), /* aMatchRouterId */ true); in RemoveEntriesForRouterId()
|
D | mle_router.cpp | 3304 Error MleRouter::SetPreferredRouterId(uint8_t aRouterId) in SetPreferredRouterId() argument 3310 mPreviousRouterId = aRouterId; in SetPreferredRouterId() 3316 void MleRouter::SetRouterId(uint8_t aRouterId) in SetRouterId() argument 3318 mRouterId = aRouterId; in SetRouterId()
|
/openthread-3.4.0/src/core/api/ |
D | thread_ftd_api.cpp | 77 otError otThreadSetPreferredRouterId(otInstance *aInstance, uint8_t aRouterId) in otThreadSetPreferredRouterId() argument 79 return AsCoreType(aInstance).Get<Mle::MleRouter>().SetPreferredRouterId(aRouterId); in otThreadSetPreferredRouterId() 166 otError otThreadReleaseRouterId(otInstance *aInstance, uint8_t aRouterId) in otThreadReleaseRouterId() argument 170 VerifyOrExit(aRouterId <= Mle::kMaxRouterId, error = kErrorInvalidArgs); in otThreadReleaseRouterId() 172 error = AsCoreType(aInstance).Get<RouterTable>().Release(aRouterId); in otThreadReleaseRouterId() 276 otError otThreadGetRouterInfo(otInstance *aInstance, uint16_t aRouterId, otRouterInfo *aRouterInfo) in otThreadGetRouterInfo() argument 278 … return AsCoreType(aInstance).Get<RouterTable>().GetRouterInfo(aRouterId, AsCoreType(aRouterInfo)); in otThreadGetRouterInfo() 404 bool otThreadIsRouterIdAllocated(otInstance *aInstance, uint8_t aRouterId) in otThreadIsRouterIdAllocated() argument 406 return AsCoreType(aInstance).Get<RouterTable>().IsAllocated(aRouterId); in otThreadIsRouterIdAllocated()
|
/openthread-3.4.0/include/openthread/ |
D | thread_ftd.h | 198 otError otThreadSetPreferredRouterId(otInstance *aInstance, uint8_t aRouterId); 461 otError otThreadReleaseRouterId(otInstance *aInstance, uint8_t aRouterId); 626 otError otThreadGetRouterInfo(otInstance *aInstance, uint16_t aRouterId, otRouterInfo *aRouterInfo); 889 bool otThreadIsRouterIdAllocated(otInstance *aInstance, uint8_t aRouterId);
|