/openthread-latest/src/posix/platform/ |
D | mdns_socket.hpp | 152 static otError SetReuseAddrPortOptions(int aFd); 155 …static otError SetSocketOption(int aFd, int aLevel, int aOption, const ValueType &aValue, const ch… in SetSocketOption() argument 157 return SetSocketOptionValue(aFd, aLevel, aOption, &aValue, sizeof(ValueType), aOptionName); in SetSocketOption() 160 static otError SetSocketOptionValue(int aFd,
|
D | settings_file.hpp | 120 void SwapWrite(int aFd, uint16_t aLength); 121 void SwapPersist(int aFd); 122 void SwapDiscard(int aFd);
|
D | spi_interface.hpp | 166 int SetupGpioHandle(int aFd, uint8_t aLine, uint32_t aHandleFlags, const char *aLabel); 167 …int SetupGpioEvent(int aFd, uint8_t aLine, uint32_t aHandleFlags, uint32_t aEventFlags, const … 168 void SetGpioValue(int aFd, uint8_t aValue); 169 uint8_t GetGpioValue(int aFd);
|
D | settings_file.cpp | 326 void SettingsFile::SwapWrite(int aFd, uint16_t aLength) in SwapWrite() argument 338 rval = write(aFd, buffer, count); in SwapWrite() 345 void SettingsFile::SwapPersist(int aFd) in SwapPersist() argument 354 VerifyOrDie(0 == fsync(aFd), OT_EXIT_ERROR_ERRNO); in SwapPersist() 357 mSettingsFd = aFd; in SwapPersist() 360 void SettingsFile::SwapDiscard(int aFd) in SwapDiscard() argument 364 VerifyOrDie(0 == close(aFd), OT_EXIT_ERROR_ERRNO); in SwapDiscard()
|
D | resolver.hpp | 116 Transaction *GetTransaction(int aFd); 122 void FinishTransaction(int aFd);
|
D | spi_interface.cpp | 200 int SpiInterface::SetupGpioHandle(int aFd, uint8_t aLine, uint32_t aHandleFlags, const char *aLabel) in SetupGpioHandle() argument 214 VerifyOrDie((ret = ioctl(aFd, GPIO_GET_LINEHANDLE_IOCTL, &req)) != -1, OT_EXIT_ERROR_ERRNO); in SetupGpioHandle() 219 int SpiInterface::SetupGpioEvent(int aFd, in SetupGpioEvent() argument 235 VerifyOrDie((ret = ioctl(aFd, GPIO_GET_LINEEVENT_IOCTL, &req)) != -1, OT_EXIT_ERROR_ERRNO); in SetupGpioEvent() 240 void SpiInterface::SetGpioValue(int aFd, uint8_t aValue) in SetGpioValue() argument 245 VerifyOrDie(ioctl(aFd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data) != -1, OT_EXIT_ERROR_ERRNO); in SetGpioValue() 248 uint8_t SpiInterface::GetGpioValue(int aFd) in GetGpioValue() argument 252 VerifyOrDie(ioctl(aFd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &data) != -1, OT_EXIT_ERROR_ERRNO); in GetGpioValue()
|
D | udp.cpp | 68 void *FdToHandle(int aFd) { return reinterpret_cast<void *>(aFd); } in FdToHandle() argument 72 otError transmitPacket(int aFd, uint8_t *aPayload, uint16_t aLength, const otMessageInfo &aMessageI… in transmitPacket() argument 149 rval = sendmsg(aFd, &msg, 0); in transmitPacket() 163 otError receivePacket(int aFd, uint8_t *aPayload, uint16_t &aLength, otMessageInfo &aMessageInfo) in receivePacket() argument 182 rval = recvmsg(aFd, &msg, 0); in receivePacket()
|
D | mdns_socket.cpp | 678 otError MdnsSocket::SetReuseAddrPortOptions(int aFd) in SetReuseAddrPortOptions() argument 682 SuccessOrExit(error = SetSocketOption<int>(aFd, SOL_SOCKET, SO_REUSEADDR, 1, "SO_REUSEADDR")); in SetReuseAddrPortOptions() 683 SuccessOrExit(error = SetSocketOption<int>(aFd, SOL_SOCKET, SO_REUSEPORT, 1, "SO_REUSEPORT")); in SetReuseAddrPortOptions() 689 otError MdnsSocket::SetSocketOptionValue(int aFd, in SetSocketOptionValue() argument 698 if (setsockopt(aFd, aLevel, aOption, aValue, aValueLength) != 0) in SetSocketOptionValue()
|
D | resolver.cpp | 225 Resolver::Transaction *Resolver::GetTransaction(int aFd) in GetTransaction() argument 231 if (txn.mThreadTxn != nullptr && txn.mUdpFd == aFd) in GetTransaction()
|
/openthread-latest/examples/platforms/simulation/ |
D | simul_utils.c | 56 void utilsAddFdToFdSet(int aFd, fd_set *aFdSet, int *aMaxFd) in utilsAddFdToFdSet() argument 58 otEXPECT(aFd >= 0); in utilsAddFdToFdSet() 61 FD_SET(aFd, aFdSet); in utilsAddFdToFdSet() 65 if (*aMaxFd < aFd) in utilsAddFdToFdSet() 67 *aMaxFd = aFd; in utilsAddFdToFdSet()
|
D | simul_utils.h | 63 void utilsAddFdToFdSet(int aFd, fd_set *aFdSet, int *aMaxFd);
|
D | mdns_socket.c | 80 static void SetReuseAddrPort(int aFd) in SetReuseAddrPort() argument 85 ret = setsockopt(aFd, SOL_SOCKET, SO_REUSEADDR, (char *)&yes, sizeof(yes)); in SetReuseAddrPort() 88 ret = setsockopt(aFd, SOL_SOCKET, SO_REUSEPORT, (char *)&yes, sizeof(yes)); in SetReuseAddrPort()
|