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

/system/core/toolbox/upstream-netbsd/lib/libutil/
H A Draise_default_signal.c56 * The original signal mask and signal handler is restored on exit
67 sigset_t origmask, fullmask, mask; local
79 (sigemptyset(&mask) == -1) ||
80 (sigaddset(&mask, sig) == -1))
95 (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1))
107 /* Restore the original mask */
/system/netd/server/
H A Dmain.cpp106 sigset_t mask; local
108 sigemptyset(&mask);
109 sigaddset(&mask, SIGPIPE);
110 if (sigprocmask(SIG_BLOCK, &mask, NULL) != 0)
H A DRouteController.cpp248 // + If |mask| is non-zero, the rule matches the specified fwmark and mask. Otherwise, |fwmark| is
257 uint32_t fwmark, uint32_t mask, const char* iif,
259 // Ensure that if you set a bit in the fwmark, it's not being ignored by the mask.
260 if (fwmark & ~mask) {
261 ALOGE("mask 0x%x does not select all the bits set in fwmark 0x%x", mask, fwmark);
300 { &FRATTR_FWMARK, mask ? sizeof(FRATTR_FWMARK) : 0 },
301 { &fwmark, mask ? sizeof(fwmark) : 0 },
302 { &FRATTR_FWMASK, mask
256 modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, uint32_t fwmark, uint32_t mask, const char* iif, const char* oif, uid_t uidStart, uid_t uidEnd) argument
327 modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, uint32_t fwmark, uint32_t mask) argument
467 Fwmark mask; local
495 Fwmark mask; local
520 Fwmark mask; local
543 Fwmark mask; local
560 Fwmark mask; local
589 Fwmark mask; local
607 Fwmark mask; local
638 Fwmark mask; local
654 Fwmark mask; local
747 Fwmark mask; local
[all...]
/system/core/libpixelflinger/
H A Dclear.cpp27 static void ggl_clear(void* c, GGLbitfield mask);
92 static void ggl_clear(void* con, GGLbitfield mask) argument
109 mask &= ~GGL_COLOR_BUFFER_BIT;
112 mask &= ~GGL_DEPTH_BUFFER_BIT;
115 mask &= ~GGL_STENCIL_BUFFER_BIT;
117 if (mask & GGL_COLOR_BUFFER_BIT) {
133 if (mask & GGL_DEPTH_BUFFER_BIT) {
H A Dbuffer.cpp177 uint32_t mask = 0; local
188 if (h && (c->state.mask.color & component_mask)) {
189 mask |= (((1<<(h-l))-1)<<l);
200 if ((c->state.mask.color != 0xF) ||
211 v &= mask;
213 v |= (d & ~mask);
H A Dpixelflinger.cpp518 int mask = 0; local
519 if (a) mask |= 1 << GGLFormat::ALPHA;
520 if (r) mask |= 1 << GGLFormat::RED;
521 if (g) mask |= 1 << GGLFormat::GREEN;
522 if (b) mask |= 1 << GGLFormat::BLUE;
523 if (c->state.mask.color != mask) {
524 c->state.mask.color = mask;
532 if (c->state.mask
538 ggl_stencilMask(void* con, GGLuint mask) argument
716 const uint32_t mask = 1UL << tmu; local
[all...]
H A Dscanline.cpp261 "(nop) color mask", scanline_noop, init_y_noop },
896 if (c->state.mask.depth) {
1824 const uint32_t mask = local
1828 if (enables & mask) {
/system/core/libpixelflinger/codeflinger/
H A DArm64Disassembler.cpp35 uint32_t mask; member in struct:disasm_table_entry_t
91 uint32_t mask = (1 << width) - 1; local
92 return ((instr >> lsb) & mask);
284 if((code & entry->mask) == entry->value)
H A Dload_store.cpp121 const int mask = (1<<maskLen)-1; local
126 } else if (!l && isValidImmediate(mask)) {
127 AND(AL, 0, d.reg, s, imm(mask)); // component = packed & mask;
128 } else if (!l && isValidImmediate(~mask)) {
129 BIC(AL, 0, d.reg, s, imm(~mask)); // component = packed & mask;
131 UBFX(AL, d.reg, s, l, maskLen); // component = (packed & mask) >> l;
135 const int mask = ((1<<maskLen)-1) << l; local
136 if (isValidImmediate(mask)) {
289 const uint32_t mask = ((1<<dbits)-1) << offset; local
300 const uint32_t mask = ((1<<sbits)-1) << sl; local
[all...]
H A Ddisassem.c109 u_int mask; member in struct:arm32_insn
316 if ((insn & i_ptr->mask) == i_ptr->pattern) {
329 if ((i_ptr->mask & 0xf0000000) == 0xf0000000)
H A Dtexturing.cpp128 parts.packed = (!mTextureMachine.mask && !mBlending
142 // pre-mask the iterated color
145 uint32_t mask = 0; local
152 mask |= ((1<<(h-l))-1) << l;
157 if (mMasking && ((mask & size)==0)) {
158 // none of the components are present in the mask
170 // pre-mask the iterated color
173 mask, bits);
269 mTextureMachine.mask = 0;
276 tmu.mask
772 uint32_t mask = 0; local
1011 int mask = scratches.obtain(); local
[all...]
H A DGGLAssembler.cpp158 const int mask = 1<<i; local
164 info.masked = !!(masking & mask);
173 info.replaced = !!(mTextureMachine.replaced & mask);
179 mBlending |= (info.blend ? mask : 0);
180 mMasking |= (mCbFormat.c[i].h && info.masked) ? mask : 0;
181 fbComponents |= mCbFormat.c[i].h ? mask : 0;
263 const int mask = GGL_DITHER_SIZE-1; local
265 AND(AL, 0, parts.dither.reg, parts.count.reg, imm(mask));
523 need_extract |= (mTextureMachine.mask != mTextureMachine.replaced);
608 if ((tmu.mask
723 build_depth_test( const fragment_parts_t& parts, uint32_t mask) argument
884 build_and_immediate(int d, int s, uint32_t mask, int bits) argument
950 int mask = 0; local
[all...]
H A DGGLAssembler.h245 inline int mask(int c) const { return ((1<<size(c))-1) << low(c); } function in struct:android::GGLAssembler::pixel_t
322 uint8_t mask; member in struct:android::GGLAssembler::texture_unit_t
328 uint8_t mask; member in struct:android::GGLAssembler::texture_machine_t
506 void build_depth_test(const fragment_parts_t& parts, uint32_t mask);
515 void build_and_immediate(int d, int s, uint32_t mask, int bits);
/system/core/libmincrypt/
H A Dp256.c108 // top, c[] -= MOD[] & mask (0 or -1)
113 p256_digit mask) {
118 borrow -= P256_DIGIT(MOD, i) & mask;
125 // top, c[] += MOD[] & mask (0 or -1)
130 p256_digit mask) {
135 carry += P256_DIGIT(MOD, i) & mask;
110 subM(const p256_int* MOD, p256_digit top, p256_digit* c, p256_digit mask) argument
127 addM(const p256_int* MOD, p256_digit top, p256_digit* c, p256_digit mask) argument
H A Dp256_ec.c974 /* copy_conditional sets out=in if mask = 0xffffffff in constant time.
976 * On entry: mask is either 0 or 0xffffffff. */
977 static void copy_conditional(felem out, const felem in, limb mask) { argument
981 const limb tmp = mask & (in[i] ^ out[i]);
996 limb mask = i ^ index; local
997 mask |= mask >> 2;
998 mask |= mask >> 1;
999 mask
1026 limb mask = i ^ index; local
1049 limb n_is_infinity_mask = -1, p_is_noninfinite_mask, mask; local
1119 limb n_is_infinity_mask, index, p_is_noninfinite_mask, mask; local
[all...]
/system/core/libnetutils/
H A Ddhcp_utils.c121 snprintf(prop_name, sizeof(prop_name), "%s.%s.mask", DHCP_PROP_NAME_PREFIX, p2p_interface);
125 in_addr_t mask = ntohl(inet_addr(prop_value)); local
128 if (mask == INADDR_NONE && strcmp(prop_value, "255.255.255.255") != 0) {
129 snprintf(errmsg, sizeof(errmsg), "DHCP gave invalid net mask %s", prop_value);
133 if (mask == 0) break;
135 if ((mask & 0x80000000) == 0) {
136 snprintf(errmsg, sizeof(errmsg), "DHCP gave invalid net mask %s", prop_value);
139 mask = mask << 1;
H A Ddhcpclient.c96 extern int ipv4NetmaskToPrefixLength(in_addr_t mask);
153 char addr[20], gway[20], mask[20]; local
201 in_addr_t mask; local
202 memcpy(&mask, x, 4);
203 info->prefixLength = ipv4NetmaskToPrefixLength(mask);
H A Difc_utils.c68 in_addr_t mask = 0; local
75 mask = ~mask << (32 - prefix_length);
76 mask = htonl(mask);
78 return mask;
81 int ipv4NetmaskToPrefixLength(in_addr_t mask) argument
84 uint32_t m = (uint32_t)ntohl(mask);
433 int ifc_set_mask(const char *name, in_addr_t mask) argument
439 init_sockaddr_in(&ifr.ifr_addr, mask);
[all...]
/system/core/include/pixelflinger/
H A Dformat.h98 inline uint32_t mask(int i) const { function in struct:__anon43
/system/core/adb/
H A Dfile_sync_client.c889 mode_t mask=umask(0000); local
890 umask(mask);
891 int r2 = chmod(lpath, mode & ~mask);
H A Dsysdeps_win32.c105 int mask; member in struct:FHRec_
491 f->mask = 0;
502 f->mask = 0;
2025 if ( flags != fh->mask ) {
2034 fh->mask = flags;
/system/core/libutils/
H A DUnicode.cpp60 // -> (00-7f) 7bit. Bit mask for the first byte is 0x00000000
62 // -> (c0-df)(80-bf) 11bit. Bit mask is 0x000000C0
64 // -> (e0-ef)(80-bf)(80-bf) 16bit. Bit mask is 0x000000E0
66 // -> (f0-f7)(80-bf)(80-bf)(80-bf) 21bit. Bit mask is 0x000000F0
143 char32_t mask, to_ignore_mask; local
146 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0xFFFFFF80;
147 (first_char & mask);
148 num_to_read++, to_ignore_mask |= mask, mask >>= 1) {
152 to_ignore_mask |= mask;
380 int32_t mask, to_ignore_mask; local
465 int32_t mask; local
[all...]
/system/extras/f2fs_utils/
H A Df2fs_sparseblock.c474 int mask; local
478 mask = 1 << (7 - (nr & 0x07));
479 return (mask & *addr) != 0;
/system/keymaster/
H A Docb.c179 const __m128i mask = _mm_set_epi32(135, 1, 1, 1); local
181 tmp = _mm_and_si128(tmp, mask);
229 const vector unsigned char mask = {135, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; local
235 t = vec_and(t, mask);
267 const block mask = {135, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; local
269 tmp = vandq_s8(tmp, mask);
/system/core/include/private/pixelflinger/
H A Dggl_context.h260 needs_t mask; member in struct:android::needs_filter_t
265 ((filter.value.n ^ n) & filter.mask.n) |
266 ((filter.value.p ^ p) & filter.mask.p) |
267 ((filter.value.t[0] ^ t[0]) & filter.mask.t[0]) |
268 ((filter.value.t[1] ^ t[1]) & filter.mask.t[1]);
517 mask_state_t mask; member in struct:android::state_t

Completed in 556 milliseconds