Searched refs:mask (Results 1 - 25 of 445) sorted by relevance

1234567891011>>

/haiku/src/add-ons/kernel/drivers/graphics/et6x00/
H A Dbits.c11 * Set bits in a byte pointed by addr; mask must contain 0s at the bits
15 __inline void set8(volatile char *addr, char mask, char val) argument
17 if (mask == 0)
20 *addr = (*addr & mask) | (val & ~mask);
23 __inline void set16(volatile short *addr, short mask, short val) argument
25 if (mask == 0)
28 *addr = (*addr & mask) | (val & ~mask);
31 __inline void set32(volatile int *addr, int mask, in argument
39 ioSet8(short port, char mask, char val) argument
[all...]
H A Dbits.h10 __inline void set8(volatile char *addr, char mask, char val);
11 __inline void set16(volatile short *addr, short mask, short val);
12 __inline void set32(volatile int *addr, int mask, int val);
13 __inline void ioSet8(short port, char mask, char val);
/haiku/src/system/libroot/posix/unistd/
H A Dpause.c22 sigset_t mask; local
23 sigemptyset(&mask);
25 __set_errno(_kern_sigsuspend(&mask));
/haiku/src/libs/bsd/
H A Dsignal.c14 sigsetmask(int mask) argument
16 sigset_t set = mask;
27 sigblock(int mask) argument
29 sigset_t set = mask;
/haiku/headers/private/shared/
H A Dbinary-utils.h62 #define MASKOFFSET(mask) (MaskOffset<mask, (mask & 1UL)>::count)
64 template<const unsigned long mask, unsigned int firstBit>
67 enum { count = MaskOffset<(mask >> 1), ((mask >> 1) & 1UL)>::count + 1 }; enumerator in enum:MaskOffset::__anon1176
71 template<const unsigned long mask>
72 struct MaskOffset<mask, 1>
/haiku/headers/compatibility/bsd/
H A Dsignal.h23 int sigsetmask(int mask);
24 int sigblock(int mask);
/haiku/src/system/libroot/posix/signal/
H A Dsigsuspend.cpp28 sigset_t mask = from_beos_sigset(*beosMask); local
29 return __sigsuspend(&mask);
34 __sigsuspend(const sigset_t* mask) argument
36 __set_errno(_kern_sigsuspend(mask));
/haiku/src/system/libroot/posix/glibc/arch/x86_64/
H A Ds_copysignf.S30 ASM_TYPE_DIRECTIVE(mask,@object)
31 mask: label
33 ASM_SIZE_DIRECTIVE(mask)
43 movss MO(mask),%xmm3
/haiku/src/tests/system/libroot/posix/
H A Dpthread_signal_test.cpp22 sigset_t mask; local
28 sigfillset(&mask);
29 sigdelset(&mask, SIGUSR1);
30 sigdelset(&mask, SIGTERM);
33 sigsuspend(&mask);
50 sigset_t mask; local
57 sigemptyset(&mask);
58 sigaddset(&mask, SIGQUIT);
59 sigaddset(&mask, SIGINT);
60 sigaddset(&mask, SIGPIP
68 sigset_t mask; local
[all...]
H A DSyslogTest.cpp20 int mask = setlogmask_team(LOG_MASK(LOG_CRIT)); local
21 printf("team mask == %d\n", mask);
26 setlogmask_team(mask);
/haiku/src/libs/glut/
H A Dbeos_x11.cpp98 int mask = NoValue; local
104 if ( (string == NULL) || (*string == '\0')) return(mask);
114 mask |= WidthValue;
123 mask |= HeightValue;
133 mask |= XNegative;
143 mask |= XValue;
151 mask |= YNegative;
162 mask |= YValue;
171 if (mask & XValue)
173 if (mask
[all...]
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DTheater.cpp53 int CTheater::Register(int index, int mask) argument
55 return fPort.Register(fDevice, index) & mask;
63 void CTheater::SetRegister(int index, int mask, int value) argument
65 if ((value & ~mask) != 0)
66 PRINT(("WARNING: CTheater::SetRegister(0x%04x, 0x%08x, 0x%08x)\n", index, mask, value));
69 (fPort.Register(fDevice, index) & ~mask) | (value & mask));
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5210/
H A Dar5210_interrupts.c95 uint32_t mask; local
102 * the mask so that the ISR does not modify the mask
110 mask = ints & (HAL_INT_COMMON - HAL_INT_BNR);
112 mask |= AR_IMR_RXOK_INT | AR_IMR_RXERR_INT;
115 mask |= AR_IMR_TXOK_INT;
117 mask |= AR_IMR_TXERR_INT;
119 mask |= AR_IMR_TXDESC_INT;
121 mask |= AR_IMR_TXEOL_INT;
125 HALDEBUG(ah, HAL_DEBUG_INTERRUPT, "%s: new IMR 0x%x\n", __func__, mask);
[all...]
/haiku/headers/private/graphics/radeon/
H A Dmmio.h21 // write partial 32-bit register, keeping bits "mask"
22 #define OUTREGP( regs, addr, val, mask ) \
25 tmp &= (mask); \
26 tmp |= (val) & ~(mask); \
/haiku/headers/private/interface/
H A Dutf8_functions.h60 uint8 mask = 0x20; local
62 while ((bytes[0] & mask) != 0) {
63 if (mask == 0x02) {
69 mask >>= 1;
192 uint8 mask = 0x80; local
196 while (result & mask) {
197 if (mask == 0x02) {
202 result &= ~mask;
203 mask >>= 1;
211 mask <<
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/iwm/
H A Dif_iwm_config.h95 static inline uint8_t num_of_ant(uint8_t mask) argument
97 return !!((mask) & IWM_ANT_A) +
98 !!((mask) & IWM_ANT_B) +
99 !!((mask) & IWM_ANT_C);
/haiku/src/add-ons/accelerants/ati/
H A Dmach64_dpms.cpp59 int mask = (CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); local
64 OUTREGM(CRTC_GEN_CNTL, 0, mask);
69 OUTREGM(CRTC_GEN_CNTL, CRTC_HSYNC_DIS, mask);
74 OUTREGM(CRTC_GEN_CNTL, CRTC_VSYNC_DIS, mask);
79 OUTREGM(CRTC_GEN_CNTL, mask, mask);
H A Drage128_dpms.cpp62 int mask = (R128_CRTC_DISPLAY_DIS local
69 OUTREGM(R128_CRTC_EXT_CNTL, 0, mask);
75 R128_CRTC_DISPLAY_DIS | R128_CRTC_HSYNC_DIS, mask);
81 R128_CRTC_DISPLAY_DIS | R128_CRTC_VSYNC_DIS, mask);
86 OUTREGM(R128_CRTC_EXT_CNTL, mask, mask);
/haiku/src/add-ons/kernel/drivers/network/syskonnect/
H A Dglue.c46 u_int32_t mask; local
49 mask = sc->sk_intrmask;
61 mask &= ~SK_INTRS1;
66 mask &= ~SK_INTRS2;
69 mask &= ~SK_ISR_EXTERNAL_REG;
70 CSR_WRITE_4(sc, SK_IMR, mask);
/haiku/headers/libs/libc++/support/win32/
H A Dsupport.h126 _LIBCPP_ALWAYS_INLINE int __builtin_ctzll(unsigned long long mask) argument
132 if (_BitScanForward64(&where, mask))
137 if (_BitScanForward(&where, static_cast<unsigned long>(mask)))
140 if (_BitScanForward(&where, static_cast<unsigned long>(mask >> 32)))
148 _LIBCPP_ALWAYS_INLINE int __builtin_ctzl(unsigned long mask) argument
153 if (_BitScanForward(&where, mask))
158 _LIBCPP_ALWAYS_INLINE int __builtin_ctz(unsigned int mask) argument
161 static_assert(sizeof(mask) == 4, "");
163 return __builtin_ctzl(static_cast<unsigned long>(mask));
168 _LIBCPP_ALWAYS_INLINE int __builtin_clzll(unsigned long long mask) argument
190 __builtin_clzl(unsigned long mask) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DBitmapBlock.cpp85 uint32 mask = (1 << (startBit + length)) - 1; local
86 mask &= ~((1 << startBit) - 1);
88 return (bits & mask) == (marked ? mask : 0);
97 uint32 mask = ~((1 << startBit) - 1); local
100 if ((bits & mask) != (marked ? mask : 0)) {
101 TRACE("BitmapBlock::_Check(): start %" B_PRIx32 " mask %" B_PRIx32
102 "\n", bits, mask);
119 uint32 mask local
157 uint32 mask = (1 << (startBit + length)) - 1; local
187 uint32 mask = ~((1 << startBit) - 1); local
220 uint32 mask = (1 << remainingBits) - 1; local
262 uint32 mask = ~((1 << bit) - 1); local
331 uint32 mask = (1 << bit) - 1; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5211/
H A Dar5211_interrupts.c112 uint32_t mask; local
119 * the mask so that the ISR does not modify the mask
129 mask = ints & HAL_INT_COMMON;
132 mask |= AR_IMR_TXOK;
134 mask |= AR_IMR_TXERR;
136 mask |= AR_IMR_TXDESC;
138 mask |= AR_IMR_TXEOL;
141 mask |= AR_IMR_RXOK | AR_IMR_RXERR | AR_IMR_RXDESC;
147 mask |
[all...]
/haiku/src/servers/app/drawing/
H A DAlphaMaskCache.cpp50 AlphaMaskCache::Put(ShapeAlphaMask* mask) argument
54 size_t maskStackSize = mask->BitmapSize();
55 maskStackSize += _FindUncachedPreviousMasks(mask, true);
58 _FindUncachedPreviousMasks(mask, false);
88 _FindUncachedPreviousMasks(mask, false);
95 ShapeMaskElement element(mask->fShape, mask, mask->fPreviousMask.Get(),
96 mask->fInverse);
98 mask
150 _FindUncachedPreviousMasks(AlphaMask* mask, bool reference) argument
[all...]
/haiku/src/apps/icon-o-matic/import_export/svg/
H A DPathTokenizer.cpp104 PathTokenizer::init_char_mask(char* mask, const char* char_set) argument
106 memset(mask, 0, 256/8);
109 mask[c >> 3] |= 1 << (c & 7);
115 PathTokenizer::contains(const char* mask, unsigned c) const argument
117 return (mask[(c >> 3) & (256 / 8 - 1)] & (1 << (c & 7))) != 0;
/haiku/src/add-ons/kernel/drivers/audio/sb16/
H A Dsb16_hw.c83 int mask = hw_codec_reg_read(dev, SB16_IRQ_SETUP); local
87 if (mask & 0x01)
89 if (mask & 0x02)
91 if (mask & 0x04)
93 if (mask & 0x08)
101 int mask = hw_codec_reg_read(dev, SB16_DMA_SETUP); local
105 if (mask & 0x01)
107 if (mask & 0x02)
109 if (mask & 0x08)
113 if (mask
125 int mask = 0x02; local
[all...]

Completed in 376 milliseconds

1234567891011>>