/openthread-2.7.6/examples/platforms/simulation/ |
D | trel.c | 116 otEXPECT_ACTION((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1, perror("socket(sTxFd)")); in initFds() 122 …otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &sockaddr.sin_addr, sizeof(sockaddr.si… in initFds() 125 otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &one, sizeof(one)) != -1, in initFds() 128 …otEXPECT_ACTION(bind(fd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) != -1, perror("bind(sTxFd… in initFds() 133 otEXPECT_ACTION((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1, perror("socket(sRxFd)")); in initFds() 135 otEXPECT_ACTION(setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) != -1, in initFds() 137 otEXPECT_ACTION(setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)) != -1, in initFds() 146 …otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &mreq.imr_address, sizeof(mreq.imr_add… in initFds() 148 otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) != -1, in initFds() 155 …otEXPECT_ACTION(bind(fd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) != -1, perror("bind(sRxFd… in initFds() [all …]
|
D | entropy.c | 99 otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet() 102 otEXPECT_ACTION(file != NULL, error = OT_ERROR_FAILED); in otPlatEntropyGet() 105 otEXPECT_ACTION(readLength == aOutputLength, error = OT_ERROR_FAILED); in otPlatEntropyGet() 124 otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
|
D | uart.c | 102 … otEXPECT_ACTION(tcgetattr(s_in_fd, &termios) == 0, perror("tcgetattr"); error = OT_ERROR_GENERIC); in otPlatUartEnable() 118 …otEXPECT_ACTION(cfsetispeed(&termios, OPENTHREAD_SIMULATION_UART_BAUDRATE) == 0, perror("cfsetispe… in otPlatUartEnable() 122 …otEXPECT_ACTION(tcsetattr(s_in_fd, TCSANOW, &termios) == 0, perror("tcsetattr"); error = OT_ERROR_… in otPlatUartEnable() 128 …otEXPECT_ACTION(tcgetattr(s_out_fd, &termios) == 0, perror("tcgetattr"); error = OT_ERROR_GENERIC); in otPlatUartEnable() 141 …otEXPECT_ACTION(cfsetospeed(&termios, OPENTHREAD_SIMULATION_UART_BAUDRATE) == 0, perror("cfsetospe… in otPlatUartEnable() 145 …otEXPECT_ACTION(tcsetattr(s_out_fd, TCSANOW, &termios) == 0, perror("tcsetattr"); error = OT_ERROR… in otPlatUartEnable() 170 otEXPECT_ACTION(s_write_length == 0, error = OT_ERROR_BUSY); in otPlatUartSend() 217 otEXPECT_ACTION(s_write_buffer != NULL && s_write_length > 0, error = OT_ERROR_INVALID_STATE); in otPlatUartFlush()
|
D | logging.c | 50 otEXPECT_ACTION(charsWritten >= 0, logString[offset] = 0); \ 52 otEXPECT_ACTION(offset < sizeof(logString), logString[sizeof(logString) - 1] = 0) 73 otEXPECT_ACTION(charsWritten >= 0, logString[offset] = 0); in otPlatLog()
|
D | radio.c | 171 otEXPECT_ACTION(sSrcMatchEnabled, rval = true); in hasFramePending() 283 otEXPECT_ACTION((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1, perror("socket(sTxFd)")); in initFds() 290 …otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &sockaddr.sin_addr, sizeof(sockaddr.si… in initFds() 293 otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &one, sizeof(one)) != -1, in initFds() 296 …otEXPECT_ACTION(bind(fd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) != -1, perror("bind(sTxFd… in initFds() 301 otEXPECT_ACTION((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1, perror("socket(sRxFd)")); in initFds() 303 otEXPECT_ACTION(setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) != -1, in initFds() 305 otEXPECT_ACTION(setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)) != -1, in initFds() 317 …otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &mreq.imr_address, sizeof(mreq.imr_add… in initFds() 319 otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) != -1, in initFds() [all …]
|
/openthread-2.7.6/examples/platforms/utils/ |
D | soft_source_match_table.c | 120 …otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM, error = OT_ERROR_NO_… in otPlatRadioAddSrcMatchShortEntry() 138 …otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM, error = OT_ERROR_NO_… in otPlatRadioClearSrcMatchShortEntry() 232 …otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM, error = OT_ERROR_NO_BU… in otPlatRadioAddSrcMatchExtEntry() 250 …otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM, error = OT_ERROR_NO_AD… in otPlatRadioClearSrcMatchExtEntry()
|
D | code_utils.h | 64 #define otEXPECT_ACTION(aCondition, aAction) \ macro
|
/openthread-2.7.6/examples/platforms/cc2538/ |
D | radio.c | 597 otEXPECT_ACTION(((HWREG(RFCORE_XREG_FSMSTAT1) & RFCORE_XREG_FSMSTAT1_CCA) && in otPlatRadioTransmit() 1084 otEXPECT_ACTION(entry >= 0, error = OT_ERROR_NO_BUFS); in otPlatRadioAddSrcMatchShortEntry() 1109 otEXPECT_ACTION(entry >= 0, error = OT_ERROR_NO_BUFS); in otPlatRadioAddSrcMatchExtEntry() 1133 otEXPECT_ACTION(entry >= 0, error = OT_ERROR_NO_ADDRESS); in otPlatRadioClearSrcMatchShortEntry() 1150 otEXPECT_ACTION(entry >= 0, error = OT_ERROR_NO_ADDRESS); in otPlatRadioClearSrcMatchExtEntry() 1226 otEXPECT_ACTION(aPower != NULL, error = OT_ERROR_INVALID_ARGS); in otPlatRadioGetTransmitPower()
|
D | entropy.c | 92 otEXPECT_ACTION(aOutput, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
|
D | uart.c | 149 otEXPECT_ACTION(sTransmitBuffer == NULL, error = OT_ERROR_BUSY); in otPlatUartSend()
|