Searched refs:maxDeviceNum (Results 1 - 6 of 6) sorted by relevance
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_device.c | 465 void SetMaxDeviceNum(uint32_t maxDeviceNum) in SetMaxDeviceNum() argument 468 if (maxDeviceNum < NSTACKX_MIN_DEVICE_NUM || maxDeviceNum > NSTACKX_MAX_DEVICE_NUM) { in SetMaxDeviceNum() 470 maxDeviceNum = NSTACKX_DEFAULT_DEVICE_NUM; in SetMaxDeviceNum() 473 if (maxDeviceNum < remoteNodeCnt) { in SetMaxDeviceNum() 474 uint32_t diffNum = remoteNodeCnt - maxDeviceNum; in SetMaxDeviceNum() 475 DFINDER_LOGI(TAG, "maxDeviceNum is less than remoteNodeCount, remove %u oldest nodes", diffNum); in SetMaxDeviceNum() 479 maxDeviceNum = NSTACKX_MAX_DEVICE_NUM; in SetMaxDeviceNum() 481 g_maxDeviceNum = maxDeviceNum; in SetMaxDeviceNum() 482 DFINDER_LOGD(TAG, "the maxDeviceNum i in SetMaxDeviceNum() 490 DeviceModuleInit(EpollDesc epollfd, uint32_t maxDeviceNum) DeviceModuleInit() argument [all...] |
H A D | nstackx_device_remote.c | 696 uint32_t maxDeviceNum, uint32_t *deviceCountPtr, bool doFilter) in CopyRemoteNodeListToDeviceInfo() 702 if (*deviceCountPtr >= maxDeviceNum) { in CopyRemoteNodeListToDeviceInfo() 716 uint32_t maxDeviceNum, uint32_t *deviceCountPtr, bool doFilter) in CopyRxIfaceListToDeviceInfo() 722 if (CopyRemoteNodeListToDeviceInfo(&rxIface->remoteNodeList, deviceList, maxDeviceNum, in CopyRxIfaceListToDeviceInfo() 731 static int32_t CopyRemoteDeviceListToDeviceInfo(NSTACKX_DeviceInfo *deviceList, uint32_t maxDeviceNum, in CopyRemoteDeviceListToDeviceInfo() argument 738 if (CopyRxIfaceListToDeviceInfo(&device->rxIfaceList, deviceList, maxDeviceNum, in CopyRemoteDeviceListToDeviceInfo() 880 uint32_t maxDeviceNum = *deviceListLen; in GetDeviceList() local 882 (void)CopyRemoteDeviceListToDeviceInfo(deviceList, maxDeviceNum, &count, doFilter); in GetDeviceList() 695 CopyRemoteNodeListToDeviceInfo(List *rxIfaceList, NSTACKX_DeviceInfo *deviceList, uint32_t maxDeviceNum, uint32_t *deviceCountPtr, bool doFilter) CopyRemoteNodeListToDeviceInfo() argument 715 CopyRxIfaceListToDeviceInfo(List *rxIfaceList, NSTACKX_DeviceInfo *deviceList, uint32_t maxDeviceNum, uint32_t *deviceCountPtr, bool doFilter) CopyRxIfaceListToDeviceInfo() argument
|
H A D | nstackx_common.c | 322 static int32_t InternalInit(EpollDesc epollfd, uint32_t maxDeviceNum) in InternalInit() argument 329 ret = DeviceModuleInit(epollfd, maxDeviceNum); in InternalInit() 352 static int32_t NstackxInitInner(uint32_t maxDeviceNum) in NstackxInitInner() argument 354 int32_t ret = InternalInit(g_epollfd, maxDeviceNum); in NstackxInitInner() 413 ret = NstackxInitInner(parameter != NULL ? parameter->maxDeviceNum : NSTACKX_DEFAULT_DEVICE_NUM); in NstackxInitEx() 415 ret = NstackxInitInner(parameter != NULL ? parameter->maxDeviceNum : NSTACKX_MAX_DEVICE_NUM); in NstackxInitEx() 1129 uint32_t maxDeviceNum; member 1136 SetMaxDeviceNum(msg->maxDeviceNum); in SetMaxDeviceNumInner() 1140 int32_t NSTACKX_SetMaxDeviceNum(uint32_t maxDeviceNum) in NSTACKX_SetMaxDeviceNum() argument 1143 .maxDeviceNum in NSTACKX_SetMaxDeviceNum() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/ |
H A D | nstackx_device.h | 144 int32_t DeviceModuleInit(EpollDesc epollfd, uint32_t maxDeviceNum); 168 void SetMaxDeviceNum(uint32_t maxDeviceNum);
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/interface/ |
H A D | nstackx.h | 228 uint32_t maxDeviceNum; // the size of the device list configured by the caller member 370 DFINDER_EXPORT int32_t NSTACKX_SetMaxDeviceNum(uint32_t maxDeviceNum);
|
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/ |
H A D | disc_nstackx_adapter.c | 600 if (SoftbusGetConfig(SOFTBUS_INT_DISC_COAP_MAX_DEVICE_NUM, (unsigned char *)&g_nstackxCallBack.maxDeviceNum,
in DiscNstackxInit() 601 sizeof(g_nstackxCallBack.maxDeviceNum)) != SOFTBUS_OK) {
in DiscNstackxInit() 603 g_nstackxCallBack.maxDeviceNum = DEFAULT_MAX_DEVICE_NUM;
in DiscNstackxInit()
|
Completed in 8 milliseconds