Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 111) sorted by relevance

12345

/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/
Dxf-hal.h91 static inline int xf_atomic_test_and_set(volatile u32 *bitmap, u32 mask) in xf_atomic_test_and_set() argument
98 v = *bitmap, *bitmap = v | mask; in xf_atomic_test_and_set()
101 return !(v & mask); in xf_atomic_test_and_set()
104 static inline int xf_atomic_test_and_clear(volatile u32 *bitmap, u32 mask) in xf_atomic_test_and_clear() argument
111 v = *bitmap, *bitmap = v & ~mask; in xf_atomic_test_and_clear()
114 return (v & mask); in xf_atomic_test_and_clear()
117 static inline u32 xf_atomic_set(volatile u32 *bitmap, u32 mask) in xf_atomic_set() argument
124 v = *bitmap, *bitmap = (v |= mask); in xf_atomic_set()
130 static inline u32 xf_atomic_clear(volatile u32 *bitmap, u32 mask) in xf_atomic_clear() argument
137 v = *bitmap, *bitmap = (v &= ~mask); in xf_atomic_clear()
/device/google/cuttlefish/host/frontend/gcastv2/https/
DWebSocketHandler.cpp59 uint32_t mask = 0; in handleRequest() local
65 mask = U32_AT(&packet[packetOffset]); in handleRequest()
73 if (mask) { in handleRequest()
75 packet[packetOffset + i] ^= ((mask >> (8 * (3 - (i % 4)))) & 0xff); in handleRequest()
181 uint32_t mask = rand(); in sendMessage() local
182 msg[numHeaderBytes - 4] = (mask >> 24) & 0xff; in sendMessage()
183 msg[numHeaderBytes - 3] = (mask >> 16) & 0xff; in sendMessage()
184 msg[numHeaderBytes - 2] = (mask >> 8) & 0xff; in sendMessage()
185 msg[numHeaderBytes - 1] = mask & 0xff; in sendMessage()
190 ^ ((mask >> (8 * (3 - (i % 4)))) & 0xff); in sendMessage()
/device/google/contexthub/firmware/os/cpu/cortexm4/
DatomicBitset.c46 uint32_t idx = num / 32, mask = 1UL << (num & 31), status, tmp; in atomicBitsetClearBit() local
57 :"=r"(tmp), "=r"(status), "=r"(wordPtr), "=r"(mask) in atomicBitsetClearBit()
58 :"2"(wordPtr), "3"(mask) in atomicBitsetClearBit()
66 uint32_t idx = num / 32, mask = 1UL << (num & 31), status, tmp; in atomicBitsetSetBit() local
77 :"=r"(tmp), "=r"(status), "=r"(wordPtr), "=r"(mask) in atomicBitsetSetBit()
78 :"2"(wordPtr), "3"(mask) in atomicBitsetSetBit()
/device/google/crosshatch/sdm845/kernel-headers/linux/mfd/
Dmsm-adie-codec.h35 #define ADIE_CODEC_PACK_ENTRY(reg,mask,val) ((val) | (mask << 8) | (reg << 16)) argument
36 #define ADIE_CODEC_UNPACK_ENTRY(packed,reg,mask,val) do { ((reg) = ((packed >> 16) & (0xff))); ((ma… argument
54 u8 mask; member
/device/google/bonito/sdm710/kernel-headers/linux/mfd/
Dmsm-adie-codec.h35 #define ADIE_CODEC_PACK_ENTRY(reg,mask,val) ((val) | (mask << 8) | (reg << 16)) argument
36 #define ADIE_CODEC_UNPACK_ENTRY(packed,reg,mask,val) do { ((reg) = ((packed >> 16) & (0xff))); ((ma… argument
54 u8 mask; member
/device/google/cuttlefish/guest/services/suspend_blocker/
Dsuspend_blocker.cpp23 sigset_t mask; in main() local
24 sigemptyset(&mask); in main()
25 return sigsuspend(&mask); // Infinite sleep in main()
/device/google/bonito/sdm710/original-kernel-headers/linux/mfd/
Dmsm-adie-codec.h52 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument
54 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) \ argument
57 ((mask) = ((packed >> 8) & (0xff))); \
84 u8 mask; member
/device/google/crosshatch/sdm845/original-kernel-headers/linux/mfd/
Dmsm-adie-codec.h52 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument
54 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) \ argument
57 ((mask) = ((packed >> 8) & (0xff))); \
84 u8 mask; member
/device/google/wahoo/usb/
DUsbGadget.cpp71 if (i->mask & IN_ACCESS) ALOGE("IN_ACCESS "); in displayInotifyEvent()
72 if (i->mask & IN_ATTRIB) ALOGE("IN_ATTRIB "); in displayInotifyEvent()
73 if (i->mask & IN_CLOSE_NOWRITE) ALOGE("IN_CLOSE_NOWRITE "); in displayInotifyEvent()
74 if (i->mask & IN_CLOSE_WRITE) ALOGE("IN_CLOSE_WRITE "); in displayInotifyEvent()
75 if (i->mask & IN_CREATE) ALOGE("IN_CREATE "); in displayInotifyEvent()
76 if (i->mask & IN_DELETE) ALOGE("IN_DELETE "); in displayInotifyEvent()
77 if (i->mask & IN_DELETE_SELF) ALOGE("IN_DELETE_SELF "); in displayInotifyEvent()
78 if (i->mask & IN_IGNORED) ALOGE("IN_IGNORED "); in displayInotifyEvent()
79 if (i->mask & IN_ISDIR) ALOGE("IN_ISDIR "); in displayInotifyEvent()
80 if (i->mask & IN_MODIFY) ALOGE("IN_MODIFY "); in displayInotifyEvent()
[all …]
/device/google/bonito/usb/
DUsbGadget.cpp72 if (i->mask & IN_ACCESS) ALOGE("IN_ACCESS "); in displayInotifyEvent()
73 if (i->mask & IN_ATTRIB) ALOGE("IN_ATTRIB "); in displayInotifyEvent()
74 if (i->mask & IN_CLOSE_NOWRITE) ALOGE("IN_CLOSE_NOWRITE "); in displayInotifyEvent()
75 if (i->mask & IN_CLOSE_WRITE) ALOGE("IN_CLOSE_WRITE "); in displayInotifyEvent()
76 if (i->mask & IN_CREATE) ALOGE("IN_CREATE "); in displayInotifyEvent()
77 if (i->mask & IN_DELETE) ALOGE("IN_DELETE "); in displayInotifyEvent()
78 if (i->mask & IN_DELETE_SELF) ALOGE("IN_DELETE_SELF "); in displayInotifyEvent()
79 if (i->mask & IN_IGNORED) ALOGE("IN_IGNORED "); in displayInotifyEvent()
80 if (i->mask & IN_ISDIR) ALOGE("IN_ISDIR "); in displayInotifyEvent()
81 if (i->mask & IN_MODIFY) ALOGE("IN_MODIFY "); in displayInotifyEvent()
[all …]
/device/google/crosshatch/usb/
DUsbGadget.cpp72 if (i->mask & IN_ACCESS) ALOGE("IN_ACCESS "); in displayInotifyEvent()
73 if (i->mask & IN_ATTRIB) ALOGE("IN_ATTRIB "); in displayInotifyEvent()
74 if (i->mask & IN_CLOSE_NOWRITE) ALOGE("IN_CLOSE_NOWRITE "); in displayInotifyEvent()
75 if (i->mask & IN_CLOSE_WRITE) ALOGE("IN_CLOSE_WRITE "); in displayInotifyEvent()
76 if (i->mask & IN_CREATE) ALOGE("IN_CREATE "); in displayInotifyEvent()
77 if (i->mask & IN_DELETE) ALOGE("IN_DELETE "); in displayInotifyEvent()
78 if (i->mask & IN_DELETE_SELF) ALOGE("IN_DELETE_SELF "); in displayInotifyEvent()
79 if (i->mask & IN_IGNORED) ALOGE("IN_IGNORED "); in displayInotifyEvent()
80 if (i->mask & IN_ISDIR) ALOGE("IN_ISDIR "); in displayInotifyEvent()
81 if (i->mask & IN_MODIFY) ALOGE("IN_MODIFY "); in displayInotifyEvent()
[all …]
/device/generic/goldfish/audio/
Dio_thread.cpp26 bool IOThread::notify(const uint32_t mask) { in notify() argument
29 if (NO_ERROR == evf->wake(mask)) { in notify()
Dstream_common.cpp84 Result StreamCommon::setChannelMask(hidl_bitfield<AudioChannelMask> mask) const { in setChannelMask()
85 (void)mask; in setChannelMask()
Dio_thread.h32 virtual bool notify(uint32_t mask);
Dutil.cpp100 size_t countChannels(hidl_bitfield<AudioChannelMask> mask) { in countChannels() argument
101 return popcount(mask); in countChannels()
Dstream_common.h50 Result setChannelMask(hidl_bitfield<AudioChannelMask> mask) const;
/device/generic/goldfish/network/netmgr/
Dpoller.cpp71 sigset_t blockMask, mask; in run() local
77 status = ::sigprocmask(SIG_SETMASK, &blockMask, &mask); in run()
104 status = ::ppoll(fds.data(), fds.size(), tsPtr, &mask); in run()
/device/generic/goldfish/network/wifi_forwarder/
Dpoller.cpp70 sigset_t blockMask, mask; in run() local
76 status = ::sigprocmask(SIG_SETMASK, &blockMask, &mask); in run()
103 status = ::ppoll(fds.data(), fds.size(), tsPtr, &mask); in run()
/device/google/contexthub/firmware/os/cpu/x86/
DatomicBitset.c47 uint32_t idx = num / 32, mask = 1UL << (num & 31); in atomicBitsetClearBit() local
57 new = old &~ mask; in atomicBitsetClearBit()
/device/generic/goldfish/sensors/
Dmultihal_sensors_qemu.cpp73 uint32_t mask = m_availableSensorsMask; in setAllQemuSensors() local
74 for (int i = 0; mask; ++i, mask >>= 1) { in setAllQemuSensors()
75 if (mask & 1) { in setAllQemuSensors()
Dmultihal_sensors.cpp106 uint32_t mask = m_availableSensorsMask; in getSensorsList() local
107 for (int i = 0; mask; ++i, mask >>= 1) { in getSensorsList()
108 if (mask & 1) { in getSensorsList()
/device/generic/goldfish/camera/
DEmulatedCameraHotplugThread.cpp155 if (event->mask & IN_IGNORED) { in threadLoop()
166 } else if (event->mask & IN_CLOSE_WRITE) { in threadLoop()
196 __FUNCTION__, event->mask); in threadLoop()
/device/google/cuttlefish/guest/hals/camera/
DEmulatedCameraHotplugThread.cpp154 if (event->mask & IN_IGNORED) { in threadLoop()
164 } else if (event->mask & IN_CLOSE_WRITE) { in threadLoop()
191 ALOGW("%s: Unknown mask 0x%x", __FUNCTION__, event->mask); in threadLoop()
/device/google/contexthub/firmware/os/platform/stm32/
Ddma.c184 static inline void dmaClearIsr(uint8_t busId, uint8_t stream, uint8_t mask) in dmaClearIsr() argument
188 dev->regs->LIFCR = mask << STM_DMA_FEIFx_OFFSET[stream]; in dmaClearIsr()
190 dev->regs->HIFCR = mask << STM_DMA_FEIFx_OFFSET[stream - 4]; in dmaClearIsr()
/device/generic/opengl-transport/host/libs/virglrenderer/OpenGLESDispatch/
Dgles2_core.entries20 void glClear(GLbitfield mask);
104 void glStencilFunc(GLenum func, GLint ref, GLuint mask);
105 void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
106 void glStencilMask(GLuint mask);
107 void glStencilMaskSeparate(GLenum face, GLuint mask);

12345