Home
last modified time | relevance | path

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

123

/system/bt/bta/ar/
Dbta_ar.c46 UINT8 mask = 0; in bta_ar_id() local
49 mask = BTA_AR_AV_MASK; in bta_ar_id()
53 mask = BTA_AR_AVK_MASK; in bta_ar_id()
56 return mask; in bta_ar_id()
103 UINT8 mask = 0; in bta_ar_reg_avdt() local
108 mask = BTA_AR_AV_MASK; in bta_ar_reg_avdt()
113 mask = BTA_AR_AVK_MASK; in bta_ar_reg_avdt()
122 if (mask) in bta_ar_reg_avdt()
128 bta_ar_cb.avdt_registered |= mask; in bta_ar_reg_avdt()
143 UINT8 mask = 0; in bta_ar_dereg_avdt() local
[all …]
/system/netd/server/
DRouteController.cpp258 uint32_t fwmark, uint32_t mask, const char* iif, in modifyIpRule() argument
261 if (fwmark & ~mask) { in modifyIpRule()
262 ALOGE("mask 0x%x does not select all the bits set in fwmark 0x%x", mask, fwmark); in modifyIpRule()
311 { &FRATTR_FWMARK, mask ? sizeof(FRATTR_FWMARK) : 0 }, in modifyIpRule()
312 { &fwmark, mask ? sizeof(fwmark) : 0 }, in modifyIpRule()
313 { &FRATTR_FWMASK, mask ? sizeof(FRATTR_FWMASK) : 0 }, in modifyIpRule()
314 { &mask, mask ? sizeof(mask) : 0 }, in modifyIpRule()
339 uint32_t fwmark, uint32_t mask) { in modifyIpRule() argument
340 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule()
478 Fwmark mask; in modifyVpnUidRangeRule() local
[all …]
Dmain.cpp150 sigset_t mask; in blockSigpipe() local
152 sigemptyset(&mask); in blockSigpipe()
153 sigaddset(&mask, SIGPIPE); in blockSigpipe()
154 if (sigprocmask(SIG_BLOCK, &mask, NULL) != 0) in blockSigpipe()
/system/extras/ext4_utils/
Djbd2.h117 …e JBD2_HAS_COMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature… argument
118 …2_HAS_RO_COMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_r… argument
119 …BD2_HAS_INCOMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_… argument
Dext4.h471 #define EXT4_HAS_COMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask argument
472 #define EXT4_HAS_RO_COMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le3… argument
473 #define EXT4_HAS_INCOMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_incompat & cpu_to_le32( argument
474 #define EXT4_SET_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) argument
475 #define EXT4_SET_RO_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32… argument
476 #define EXT4_SET_INCOMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(m… argument
477 #define EXT4_CLEAR_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(ma… argument
478 #define EXT4_CLEAR_RO_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_l… argument
479 #define EXT4_CLEAR_INCOMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_incompat &= ~cpu_to_le3… argument
/system/core/toolbox/upstream-netbsd/lib/libutil/
Draise_default_signal.c67 sigset_t origmask, fullmask, mask; in raise_default_signal() local
79 (sigemptyset(&mask) == -1) || in raise_default_signal()
80 (sigaddset(&mask, sig) == -1)) in raise_default_signal()
95 (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)) in raise_default_signal()
/system/media/audio_utils/
Dfifo.c50 uint32_t mask = fifo->mFrameCountP2 - 1; in audio_utils_fifo_sum() local
51 ALOG_ASSERT((index & mask) < fifo->mFrameCount); in audio_utils_fifo_sum()
53 if ((index & mask) + increment >= fifo->mFrameCount) { in audio_utils_fifo_sum()
57 ALOG_ASSERT((index & mask) < fifo->mFrameCount); in audio_utils_fifo_sum()
70 uint32_t mask = ~(fifo->mFrameCountP2 - 1); in audio_utils_fifo_diff() local
71 int32_t genDiff = (rear & mask) - (front & mask); in audio_utils_fifo_diff()
/system/core/libutils/
DUnicode.cpp137 char32_t mask, to_ignore_mask; in utf32_at_internal() local
140 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0xFFFFFF80; in utf32_at_internal()
141 (first_char & mask); in utf32_at_internal()
142 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf32_at_internal()
146 to_ignore_mask |= mask; in utf32_at_internal()
374 int32_t mask, to_ignore_mask; in utf8_length() local
377 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0x80; in utf8_length()
378 num_to_read < 5 && (first_char & mask); in utf8_length()
379 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf8_length()
390 to_ignore_mask |= mask; in utf8_length()
[all …]
/system/media/alsa_utils/
Dalsa_format.c86 enum pcm_format get_pcm_format_for_mask(struct pcm_mask* mask) in get_pcm_format_for_mask() argument
88 int num_slots = ARRAY_SIZE(mask->bits); in get_pcm_format_for_mask()
89 int bits_per_slot = sizeof(mask->bits[0]) * 8; in get_pcm_format_for_mask()
100 if (table_index >= 2 && (mask->bits[slot_index] & bit_mask) != 0) { in get_pcm_format_for_mask()
Dalsa_logging.c31 void log_pcm_mask(const char* mask_name, struct pcm_mask* mask) in log_pcm_mask() argument
33 const size_t num_slots = ARRAY_SIZE(mask->bits); in log_pcm_mask()
34 const size_t bits_per_slot = (sizeof(mask->bits[0]) * 8); in log_pcm_mask()
47 strcat(buff, (mask->bits[slot_index] & bit_mask) != 0 ? "1" : "0"); in log_pcm_mask()
/system/core/libpixelflinger/codeflinger/
DGGLAssembler.cpp158 const int mask = 1<<i; in scanline_core() local
164 info.masked = !!(masking & mask); in scanline_core()
173 info.replaced = !!(mTextureMachine.replaced & mask); in scanline_core()
179 mBlending |= (info.blend ? mask : 0); in scanline_core()
180 mMasking |= (mCbFormat.c[i].h && info.masked) ? mask : 0; in scanline_core()
181 fbComponents |= mCbFormat.c[i].h ? mask : 0; in scanline_core()
263 const int mask = GGL_DITHER_SIZE-1; in scanline_core() local
265 AND(AL, 0, parts.dither.reg, parts.count.reg, imm(mask)); in scanline_core()
523 need_extract |= (mTextureMachine.mask != mTextureMachine.replaced); in build_incoming_component()
608 if ((tmu.mask & component_mask) && in build_incoming_component()
[all …]
Dtexturing.cpp124 parts.packed = (!mTextureMachine.mask && !mBlending in init_iterated_color()
141 uint32_t mask = 0; in init_iterated_color() local
148 mask |= ((1<<(h-l))-1) << l; in init_iterated_color()
153 if (mMasking && ((mask & size)==0)) { in init_iterated_color()
169 mask, bits); in init_iterated_color()
265 mTextureMachine.mask = 0; in decodeTMUNeeds()
272 tmu.mask = 0; in decodeTMUNeeds()
290 tmu.mask = 0; in decodeTMUNeeds()
295 if (tmu.format.c[0].h) tmu.mask |= 0x1; in decodeTMUNeeds()
296 if (tmu.format.c[1].h) tmu.mask |= 0x2; in decodeTMUNeeds()
[all …]
Dload_store.cpp117 const int mask = ((1<<maskLen)-1) << l; in extract() local
118 if (isValidImmediate(mask)) { in extract()
119 AND(AL, 0, d.reg, s, imm(mask)); // component = packed & mask; in extract()
120 } else if (isValidImmediate(~mask)) { in extract()
121 BIC(AL, 0, d.reg, s, imm(~mask)); // component = packed & mask; in extract()
270 const uint32_t mask = ((1<<dbits)-1) << offset; in downshift() local
271 if (isValidImmediate(mask) || isValidImmediate(~mask)) { in downshift()
272 build_and_immediate(ireg, s.reg, mask, 32); in downshift()
281 const uint32_t mask = ((1<<sbits)-1) << sl; in downshift() local
282 if (isValidImmediate(mask) || isValidImmediate(~mask)) { in downshift()
[all …]
/system/core/libpixelflinger/
Dclear.cpp27 static void ggl_clear(void* c, GGLbitfield mask);
92 static void ggl_clear(void* con, GGLbitfield mask) in ggl_clear() argument
109 mask &= ~GGL_COLOR_BUFFER_BIT; in ggl_clear()
112 mask &= ~GGL_DEPTH_BUFFER_BIT; in ggl_clear()
115 mask &= ~GGL_STENCIL_BUFFER_BIT; in ggl_clear()
117 if (mask & GGL_COLOR_BUFFER_BIT) { in ggl_clear()
133 if (mask & GGL_DEPTH_BUFFER_BIT) { in ggl_clear()
Dpixelflinger.cpp518 int mask = 0; in ggl_colorMask() local
519 if (a) mask |= 1 << GGLFormat::ALPHA; in ggl_colorMask()
520 if (r) mask |= 1 << GGLFormat::RED; in ggl_colorMask()
521 if (g) mask |= 1 << GGLFormat::GREEN; in ggl_colorMask()
522 if (b) mask |= 1 << GGLFormat::BLUE; in ggl_colorMask()
523 if (c->state.mask.color != mask) { in ggl_colorMask()
524 c->state.mask.color = mask; in ggl_colorMask()
532 if (c->state.mask.depth != flag?1:0) { in ggl_depthMask()
533 c->state.mask.depth = flag?1:0; in ggl_depthMask()
538 static void ggl_stencilMask(void* con, GGLuint mask) in ggl_stencilMask() argument
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Dbitalloc.c270 OI_UINT32 mask; in adjustToFitBitpool() local
272 mask = 0x7F7F7F7F + ((n & 0x40404040) >> 6); in adjustToFitBitpool()
273 n &= mask; in adjustToFitBitpool()
274 mask = 0x0F0F0F0F + ((n & 0x10101010) >> 4); in adjustToFitBitpool()
275 n &= mask; in adjustToFitBitpool()
276 mask = (((n + 0x0E0E0E0E) >> 4) | 0x1E1E1E1E); in adjustToFitBitpool()
277 n &= mask; in adjustToFitBitpool()
/system/bt/stack/btm/
Dbtm_pm.c134 tBTM_STATUS BTM_PmRegister (UINT8 mask, UINT8 *p_pm_id, tBTM_PM_STATUS_CBACK *p_cb) in BTM_PmRegister() argument
139 if(mask & BTM_PM_DEREG) in BTM_PmRegister()
143 btm_cb.pm_reg_db[*p_pm_id].mask = BTM_PM_REC_NOT_USED; in BTM_PmRegister()
150 if(btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) in BTM_PmRegister()
153 if(mask & BTM_PM_REG_NOTIF) in BTM_PmRegister()
159 btm_cb.pm_reg_db[xx].mask = mask; in BTM_PmRegister()
233 (btm_cb.pm_reg_db[pm_id].mask & BTM_PM_REG_SET)) in BTM_SetPowerMode()
240 btm_cb.pm_reg_db[temp_pm_id].mask |= BTM_PM_REG_SET; in BTM_SetPowerMode()
361 (btm_cb.pm_reg_db[btm_cb.pm_pend_id].mask & BTM_PM_REG_NOTIF) ) in btm_pm_reset()
370 btm_cb.pm_reg_db[xx].mask = BTM_PM_REC_NOT_USED; in btm_pm_reset()
[all …]
/system/core/libmincrypt/
Dp256_ec.c977 static void copy_conditional(felem out, const felem in, limb mask) { in copy_conditional() argument
981 const limb tmp = mask & (in[i] ^ out[i]); in copy_conditional()
996 limb mask = i ^ index; in select_affine_point() local
997 mask |= mask >> 2; in select_affine_point()
998 mask |= mask >> 1; in select_affine_point()
999 mask &= 1; in select_affine_point()
1000 mask--; in select_affine_point()
1002 out_x[j] |= *table & mask; in select_affine_point()
1005 out_y[j] |= *table & mask; in select_affine_point()
1026 limb mask = i ^ index; in select_jacobian_point() local
[all …]
/system/core/libnetutils/
Difc_utils.c68 in_addr_t mask = 0; in prefixLengthToIpv4Netmask() local
75 mask = ~mask << (32 - prefix_length); in prefixLengthToIpv4Netmask()
76 mask = htonl(mask); in prefixLengthToIpv4Netmask()
78 return mask; in prefixLengthToIpv4Netmask()
81 int ipv4NetmaskToPrefixLength(in_addr_t mask) in ipv4NetmaskToPrefixLength() argument
84 uint32_t m = (uint32_t)ntohl(mask); in ipv4NetmaskToPrefixLength()
432 int ifc_set_mask(const char *name, in_addr_t mask) in ifc_set_mask() argument
438 init_sockaddr_in(&ifr.ifr_addr, mask); in ifc_set_mask()
451 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); in ifc_set_prefixLength() local
453 init_sockaddr_in(&ifr.ifr_addr, mask); in ifc_set_prefixLength()
Ddhcp_utils.c127 in_addr_t mask = ntohl(inet_addr(prop_value)); in fill_ip_info() local
130 if (mask == INADDR_NONE && strcmp(prop_value, "255.255.255.255") != 0) { in fill_ip_info()
135 if (mask == 0) break; in fill_ip_info()
137 if ((mask & 0x80000000) == 0) { in fill_ip_info()
141 mask = mask << 1; in fill_ip_info()
/system/bt/bta/av/
Dbta_av_act.c458 UINT8 mask; in bta_av_find_lcb() local
463 mask = 1 << xx; /* the used mask for this lcb */ in bta_av_find_lcb()
464 if((mask & p_cb->conn_lcb) && 0 ==( bdcmp(p_cb->lcb[xx].addr, addr))) in bta_av_find_lcb()
469 p_cb->conn_lcb &= ~mask; /* clear the connect mask */ in bta_av_find_lcb()
1170 UINT8 mask; in bta_av_conn_chg() local
1185 mask = BTA_AV_HNDL_TO_MSK(index); in bta_av_conn_chg()
1211 p_cb->conn_audio |= mask; in bta_av_conn_chg()
1216 p_cb->conn_video |= mask; in bta_av_conn_chg()
1219 if ((old_msk & mask) == 0) in bta_av_conn_chg()
1275 if ((p_cb->conn_audio & mask) && bta_av_cb.audio_open_cnt) in bta_av_conn_chg()
[all …]
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h25 #define __PERF_ALIGN_MASK(x,mask) (((x) + (mask)) & ~(mask)) argument
/system/bt/btif/src/
Dbtif_gatt_multi_adv_util.c276 p_multi_adv_data_cb->inst_cb[cbindex].mask = 0; in btif_gattc_copy_datacb()
281 p_multi_adv_data_cb->inst_cb[cbindex].mask = BTM_BLE_AD_BIT_FLAGS; in btif_gattc_copy_datacb()
289 p_multi_adv_data_cb->inst_cb[cbindex].mask = 0; in btif_gattc_copy_datacb()
293 p_multi_adv_data_cb->inst_cb[cbindex].mask |= BTM_BLE_AD_BIT_DEV_NAME; in btif_gattc_copy_datacb()
296 p_multi_adv_data_cb->inst_cb[cbindex].mask |= BTM_BLE_AD_BIT_TX_PWR; in btif_gattc_copy_datacb()
301 p_multi_adv_data_cb->inst_cb[cbindex].mask |= BTM_BLE_AD_BIT_INT_RANGE; in btif_gattc_copy_datacb()
330 p_multi_adv_data_cb->inst_cb[cbindex].mask |= BTM_BLE_AD_BIT_APPEARANCE; in btif_gattc_copy_datacb()
344 p_multi_adv_data_cb->inst_cb[cbindex].mask |= BTM_BLE_AD_BIT_MANU; in btif_gattc_copy_datacb()
383 p_multi_adv_data_cb->inst_cb[cbindex].mask |= BTM_BLE_AD_BIT_PROPRIETARY; in btif_gattc_copy_datacb()
425 p_multi_adv_data_cb->inst_cb[cbindex].mask |= BTM_BLE_AD_BIT_SERVICE; in btif_gattc_copy_datacb()
[all …]
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h12 #define __PERF_ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) argument
/system/extras/perfprofd/quipper/
Dperf_utils.cc92 uint64_t mask = kuint64max; in GetSampleFieldsForEventType() local
104 mask = PERF_SAMPLE_TID | PERF_SAMPLE_TIME | PERF_SAMPLE_ID | in GetSampleFieldsForEventType()
112 return sample_type & mask; in GetSampleFieldsForEventType()

123