Home
last modified time | relevance | path

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

12345678910>>...40

/illumos-gate/usr/src/test/util-tests/tests/mdb/format/
H A Dtst.format-j.mdb.out5 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+-- bit 0 mask 0x0000000000000001
6 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+--- bit 1 mask 0x0000000000000002
7 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+---- bit 2 mask 0x0000000000000004
8 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+----- bit 3 mask 0x0000000000000008
9 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+------ bit 4 mask 0x0000000000000010
10 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+------- bit 5 mask 0x0000000000000020
11 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||||+-------- bit 6 mask 0x0000000000000040
12 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||||+--------- bit 7 mask 0x0000000000000080
13 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||+---------- bit 8 mask 0x0000000000000100
14 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||+----------- bit 9 mask 0x0000000000000200
[all …]
/illumos-gate/usr/src/common/bitext/
H A Dbitext.c29 uint8_t mask; in bitx8() local
35 mask = (1 << (high - low + 1)) - 1; in bitx8()
36 return ((reg >> low) & mask); in bitx8()
42 uint16_t mask; in bitx16() local
48 mask = (1 << (high - low + 1)) - 1; in bitx16()
49 return ((reg >> low) & mask); in bitx16()
56 uint32_t mask; in bitx32() local
62 mask = (1UL << (high - low + 1)) - 1; in bitx32()
64 return ((reg >> low) & mask); in bitx32()
70 uint64_t mask; in bitx64() local
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dalt_prof.c439 if (params_in->mask & KADM5_CONFIG_REALM) {
442 params.mask |= KADM5_CONFIG_REALM;
448 params.mask |= KADM5_CONFIG_REALM;
485 if (params_in->mask & KADM5_CONFIG_ADMIN_SERVER) {
488 params.mask |= KADM5_CONFIG_ADMIN_SERVER;
492 params.mask |= KADM5_CONFIG_ADMIN_SERVER;
509 params.mask |= KADM5_CONFIG_ADMIN_SERVER;
511 params.mask |= KADM5_CONFIG_KADMIND_PORT;
516 if ((params.mask & KADM5_CONFIG_ADMIN_SERVER) && dnsret) {
521 params.mask |= KADM5_CONFIG_KADMIND_PORT;
[all …]
/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_mca_disp.in31 mask on = AMD_BANK_STAT_CECC
32 mask off = MSR_MC_STATUS_UC, AMD_BANK_STAT_UECC
47 mask on = AMD_BANK_STAT_CECC
48 mask off = MSR_MC_STATUS_UC, AMD_BANK_STAT_UECC
63 mask on = MSR_MC_STATUS_UC, AMD_BANK_STAT_UECC
64 mask off = AMD_BANK_STAT_CECC
79 mask on = MSR_MC_STATUS_UC, AMD_BANK_STAT_UECC
80 mask off = AMD_BANK_STAT_CECC
95 mask on = AMD_BANK_STAT_CECC, AMD_BANK_STAT_SCRUB
96 mask off = MSR_MC_STATUS_UC, AMD_BANK_STAT_UECC
[all …]
/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx_endint.h123 get_bit8(bits8_t v, uint8_t mask) in get_bit8() argument
125 return ((v.bit_val & mask) != 0); in get_bit8()
128 set_bit8(bits8_t *v, uint8_t mask) in set_bit8() argument
130 v->bit_val |= mask; in set_bit8()
133 clear_bit8(bits8_t *v, uint8_t mask) in clear_bit8() argument
135 v->bit_val &= ~mask; in clear_bit8()
161 get_bit16(bits16_t v, uint16_t mask) in get_bit16() argument
163 return ((BE_16(v.bit_val) & mask) != 0); in get_bit16()
166 set_bit16(bits16_t *v, uint16_t mask) in set_bit16() argument
168 v->bit_val |= BE_16(mask); in set_bit16()
[all …]
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dmisc.c126 uint32_t mask, i; in rtsa_to_str() local
131 mask = rtsa->rtsa_mask; in rtsa_to_str()
133 for (i = 1; mask != 0 && i != 0 && slen < len - 1; i <<= 1) { in rtsa_to_str()
136 if (!(i & mask)) in rtsa_to_str()
140 switch (i & mask) { in rtsa_to_str()
142 if ((mask & RTSA_MAXSL) && in rtsa_to_str()
152 mask ^= RTSA_MAXSL; in rtsa_to_str()
185 uint32_t mask = 0, doi; in rtsa_keyword() local
239 if (mask & RTSA_MINSL) { in rtsa_keyword()
252 mask |= RTSA_MINSL; in rtsa_keyword()
[all …]
/illumos-gate/usr/src/compat/bhyve/amd64/machine/
H A Dcpufunc.h22 bsfq(u_long mask) in bsfq() argument
26 __asm __volatile("bsfq %1,%0" : "=r" (result) : "rm" (mask)); in bsfq()
31 bsrl(u_int mask) in bsrl() argument
35 __asm __volatile("bsrl %1,%0" : "=r" (result) : "rm" (mask)); in bsrl()
40 bsrq(u_long mask) in bsrq() argument
44 __asm __volatile("bsrq %1,%0" : "=r" (result) : "rm" (mask)); in bsrq()
83 ffsl(long mask) in ffsl() argument
85 return (mask == 0 ? mask : (int)bsfq((u_long)mask) + 1); in ffsl()
89 fls(int mask) in fls() argument
91 return (mask == 0 ? mask : (int)bsrl((u_int)mask) + 1); in fls()
[all …]
/illumos-gate/usr/src/head/
H A Ddeflt.h73 #define TURNON(flags, mask) ((flags) |= (mask)) argument
74 #define TURNOFF(flags, mask) ((flags) &= ~(mask)) argument
75 #define ISON(flags, mask) (((flags) & (mask)) == (mask)) argument
76 #define ISOFF(flags, mask) (((flags) & (mask)) != (mask)) argument
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_policy.c64 kadm5_policy_ent_t entry, long mask) in kadm5_create_policy() argument
70 if (mask & KADM5_REF_COUNT) in kadm5_create_policy()
73 return kadm5_create_policy_internal(server_handle, entry, mask); in kadm5_create_policy()
98 kadm5_policy_ent_t entry, long mask) in kadm5_create_policy_internal() argument
111 if (!(mask & KADM5_POLICY)) in kadm5_create_policy_internal()
122 if (!(mask & KADM5_PW_MAX_LIFE)) in kadm5_create_policy_internal()
126 if (!(mask & KADM5_PW_MIN_LIFE)) in kadm5_create_policy_internal()
129 if((mask & KADM5_PW_MAX_LIFE)) { in kadm5_create_policy_internal()
135 if (!(mask & KADM5_PW_MIN_LENGTH)) in kadm5_create_policy_internal()
142 if (!(mask & KADM5_PW_MIN_CLASSES)) in kadm5_create_policy_internal()
[all …]
H A Dsvr_principal.c196 kadm5_principal_ent_t entry, long mask, in kadm5_create_principal() argument
200 kadm5_create_principal_3(server_handle, entry, mask, in kadm5_create_principal()
205 kadm5_principal_ent_t entry, long mask, in kadm5_create_principal_3() argument
224 if(!(mask & KADM5_PRINCIPAL) || (mask & KADM5_MOD_NAME) || in kadm5_create_principal_3()
225 (mask & KADM5_MOD_TIME) || (mask & KADM5_LAST_PWD_CHANGE) || in kadm5_create_principal_3()
226 (mask & KADM5_MKVNO) || (mask & KADM5_POLICY_CLR) || in kadm5_create_principal_3()
227 (mask & KADM5_AUX_ATTRIBUTES) || (mask & KADM5_KEY_DATA) || in kadm5_create_principal_3()
228 (mask & KADM5_LAST_SUCCESS) || (mask & KADM5_LAST_FAILED) || in kadm5_create_principal_3()
229 (mask & KADM5_FAIL_AUTH_COUNT)) in kadm5_create_principal_3()
231 if((mask & ~ALL_PRINC_MASK)) in kadm5_create_principal_3()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dfmtmsglib.c46 unsigned int mask;
189 display(register const MM_table_t* tab, int value, int mask)
193 if (value == tab->value || mask && (value & tab->value))
211 unsigned int mask;
219 mm.mask = MM_default;
226 mm.mask = MM_default;
231 mm.mask |= p->value;
282 mask = MM_all;
289 mask = mm.mask;
292 if ((mask & MM_label) && label)
[all …]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_pfc.h70 #define WRITE_TCAM_REG_MASK0(handle, mask) \ argument
71 REG_PIO_WRITE64(handle, PFC_TCAM_MASK0, mask)
72 #define WRITE_TCAM_REG_MASK1(handle, mask) \ argument
73 REG_PIO_WRITE64(handle, PFC_TCAM_MASK1, mask)
218 } key, mask; member
225 #define mask_reg0 mask.regs.reg0
226 #define mask_reg1 mask.regs.reg1
230 #define mask0 mask.regs.reg0
231 #define mask1 mask.regs.reg1
242 #define ip4_class_mask mask.ipv4.class_code
[all …]
/illumos-gate/usr/src/cmd/bhyve/amd64/
H A Dvga.c415 uint8_t mask; in vga_mem_wr_handler() local
463 mask = sc->vga_gc.gc_bit_mask; in vga_mem_wr_handler()
470 m0 = (set_reset & 1) ? mask : 0x00; in vga_mem_wr_handler()
471 m1 = (set_reset & 2) ? mask : 0x00; in vga_mem_wr_handler()
472 m2 = (set_reset & 4) ? mask : 0x00; in vga_mem_wr_handler()
473 m3 = (set_reset & 8) ? mask : 0x00; in vga_mem_wr_handler()
475 c0 = (enb_set_reset & 1) ? (c0 & ~mask) : (val & mask); in vga_mem_wr_handler()
476 c1 = (enb_set_reset & 2) ? (c1 & ~mask) : (val & mask); in vga_mem_wr_handler()
477 c2 = (enb_set_reset & 4) ? (c2 & ~mask) : (val & mask); in vga_mem_wr_handler()
478 c3 = (enb_set_reset & 8) ? (c3 & ~mask) : (val & mask); in vga_mem_wr_handler()
[all …]
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dtrie.c64 buf->mask = 0; in create_node()
162 SETBIT(nodep->zero->mask, in t_split()
188 SETBIT(nodep->one->mask, in t_split()
198 UNSETBIT(nodep->mask, i, key_len); in t_split()
214 t_insert(trie_id_t *tid, key_t id, uint32_t key, uint32_t mask) in t_insert() argument
222 if (mask == 0) { in t_insert()
229 key &= mask; /* apply mask */ in t_insert()
234 if (EXTRACTBIT(mask, (pos - 1), key_len) != 1) { in t_insert()
285 SETBIT(c_node->mask, (pos - 1), 1, key_len); in t_insert()
299 SETBIT(c_node->mask, (pos - 1), 1, key_len); in t_insert()
[all …]
H A Dba_table.c43 ba_insert(ba_table_id_t *bataid, int filter_id, uint8_t val, uint8_t mask) in ba_insert() argument
45 uint8_t mskd_val = val & mask; in ba_insert()
49 if (mask == 0) { in ba_insert()
64 (void) ipgpc_list_insert(&table->masks, mask); in ba_insert()
96 if ((num_found = ipgpc_mark_found(bataid->info.mask, in ba_retrieve()
112 if ((ret = ipgpc_mark_found(bataid->info.mask, filter_list, in ba_retrieve()
129 ba_remove(ba_table_id_t *bataid, int filter_id, uint8_t value, uint8_t mask) in ba_remove() argument
131 uint8_t masked_value = value & mask; in ba_remove()
135 if (mask == 0) { in ba_remove()
153 (void) ipgpc_list_remove(&table->masks, mask); in ba_remove()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_realm.c263 int l=0, i=0, j=0, mask=0; local
278 if ((st=krb5_ldap_read_realm_params(context, lrealm, &rparam, &mask)) != 0)
389 krb5_ldap_modify_realm(context, rparams, mask) in krb5_ldap_modify_realm() argument
392 int mask;
415 if (mask == 0)
429 ((mask & LDAP_REALM_SUBTREE) && rparams->subtree == NULL) ||
430 ((mask & LDAP_REALM_CONTREF) && rparams->containerref == NULL) ||
432 ((mask & LDAP_REALM_KDCSERVERS) && rparams->kdcservers == NULL) ||
433 ((mask & LDAP_REALM_ADMINSERVERS) && rparams->adminservers == NULL) ||
434 ((mask & LDAP_REALM_PASSWDSERVERS) && rparams->passwdservers == NULL) ||
[all …]
/illumos-gate/usr/src/lib/lib9p/common/
H A Dgenacl.c56 static int l9p_check_aces(int32_t mask, struct l9p_acl *acl, struct stat *st,
103 l9p_check_aces(int32_t mask, struct l9p_acl *acl, struct stat *st, in l9p_check_aces() argument
115 if (mask == 0) in l9p_check_aces()
118 for (i = 0; mask != 0 && i < acl->acl_nace; i++) { in l9p_check_aces()
175 if (match && (ace->ace_mask & (uint32_t)mask) != 0) { in l9p_check_aces()
181 (u_int)mask, (u_int)ace->ace_mask); in l9p_check_aces()
186 (u_int)mask, (u_int)ace->ace_mask); in l9p_check_aces()
190 mask &= ~ace->ace_mask; in l9p_check_aces()
193 (u_int)ace->ace_mask, (u_int)mask); in l9p_check_aces()
202 (int)match, (u_int)mask, in l9p_check_aces()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dcommon.c42 in_addr_t mask; /* in host byte order */ in getnet() local
88 mask = std_mask(htonl(in.s_addr)); in getnet()
89 if ((~mask & in.s_addr) != 0) in getnet()
90 mask = HOST_MASK; in getnet()
92 mask = (uint32_t)strtoul(mname, &p, 0); in getnet()
93 if (*p != '\0' || mask > 32 || mname == p) in getnet()
95 if (mask != 0) in getnet()
96 mask = HOST_MASK << (32-mask); in getnet()
100 if (mask != 0 && in.s_addr == RIP_DEFAULT) in getnet()
103 if ((~mask & in.s_addr) != 0) in getnet()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dnetmasks.c93 getnetmaskbykey(const struct in_addr addr, struct in_addr *mask) in getnetmaskbykey() argument
108 NSS_XbyY_INIT(&arg, mask, NULL, 0, str2addr); in getnetmaskbykey()
125 getnetmaskbynet(const struct in_addr net, struct in_addr *mask) in getnetmaskbynet() argument
157 if (getnetmaskbykey(net1, mask) == 0) { in getnetmaskbynet()
160 if (getnetmaskbykey(net2, mask) == 0) { in getnetmaskbynet()
183 getnetmaskbyaddr(const struct in_addr addr, struct in_addr *mask) in getnetmaskbyaddr() argument
190 mask->s_addr = 0; in getnetmaskbyaddr()
196 if (getnetmaskbykey(net, mask) != 0) { in getnetmaskbyaddr()
197 mask->s_addr = 0; in getnetmaskbyaddr()
200 if (htonl(maskoff) == mask->s_addr) in getnetmaskbyaddr()
[all …]
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Defx_nic.c663 if (~(rsp->mask.eo_u32[bit >> 5]) & (1 << bit)) in efx_nic_test_registers()
668 EFX_AND_OWORD(reg, rsp->mask); in efx_nic_test_registers()
676 EFX_AND_OWORD(buf, rsp->mask); in efx_nic_test_registers()
683 EFX_OR_OWORD(reg, rsp->mask); in efx_nic_test_registers()
691 EFX_AND_OWORD(buf, rsp->mask); in efx_nic_test_registers()
742 EFX_AND_OWORD(reg, rsp->mask); in efx_nic_test_tables()
753 EFX_AND_OWORD(reg, rsp->mask); in efx_nic_test_tables()
784 efx_qword_t mask; in efx_loopback_mask() local
833 EFX_ZERO_QWORD(mask); in efx_loopback_mask()
837 EFX_SET_QWORD_BIT(mask, EFX_LOOPBACK_OFF); in efx_loopback_mask()
[all …]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_rshd.c177 struct au_mask mask; in selected() local
179 mask.am_success = mask.am_failure = 0; in selected()
182 (void) auditon(A_GETKMASK, (caddr_t)&mask, sizeof (mask)); in selected()
184 (void) au_user_mask(locuser, &mask); in selected()
195 return (au_preselect(event, &mask, sorf, AU_PRS_REREAD)); in selected()
203 au_mask_t mask; in setup_session() local
221 mask.am_success = 0; in setup_session()
222 mask.am_failure = 0; in setup_session()
223 (void) au_user_mask(locuser, &mask); in setup_session()
225 info.ai_mask.am_success = mask.am_success; in setup_session()
[all …]
H A Dau_usermask.c67 au_user_mask(char *user, au_mask_t *mask) in au_user_mask() argument
72 if (mask == NULL) { in au_user_mask()
81 if (auditon(A_GETAMASK, (caddr_t)mask, sizeof (*mask)) == -1) { in au_user_mask()
97 mask->as_success |= per_user.au_always.as_success; in au_user_mask()
98 mask->as_failure |= per_user.au_always.as_failure; in au_user_mask()
99 mask->as_success &= ~(per_user.au_never.as_success); in au_user_mask()
100 mask->as_failure &= ~(per_user.au_never.as_failure); in au_user_mask()
/illumos-gate/usr/src/lib/libsec/common/
H A Dacltext.c210 int mask; in aclent_printacl() local
220 mask = tp->a_perm; in aclent_printacl()
230 aclent_perms((tp->a_perm & mask), perm); in aclent_printacl()
242 aclent_perms(tp->a_perm & mask, perm); in aclent_printacl()
248 aclent_perms(tp->a_perm & mask, perm); in aclent_printacl()
482 ace_perm_txt(dynaclstr_t *dstr, uint32_t mask, in ace_perm_txt() argument
490 if (mask & ACE_READ_DATA) in ace_perm_txt()
494 if (mask & ACE_WRITE_DATA) in ace_perm_txt()
498 if (mask & ACE_EXECUTE) in ace_perm_txt()
502 if (mask & ACE_APPEND_DATA) in ace_perm_txt()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/signalfd/
H A Dcommon.c45 sigset_t mask; in test_basic_prep() local
47 assert(sigemptyset(&mask) == 0); in test_basic_prep()
48 assert(sigaddset(&mask, SIGUSR1) == 0); in test_basic_prep()
49 assert(sigaddset(&mask, SIGUSR2) == 0); in test_basic_prep()
50 assert(sigaddset(&mask, SIGALRM) == 0); in test_basic_prep()
52 int fd = signalfd(-1, &mask, sigfd_flags); in test_basic_prep()
55 assert(sigprocmask(SIG_BLOCK, &mask, NULL) == 0); in test_basic_prep()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Disdigit.c37 #define ISTYPE_L(c, mask, loc) \ argument
38 (isascii(c) ? (__ctype_mask[c] & (mask)) : \
40 (loc->ctype->lc_ctype_mask[c] & mask))
42 #define ISTYPE(c, mask) ISTYPE_L(c, mask, uselocale(NULL)) argument
44 #define DEFN_ISTYPE(type, mask) \ argument
48 return (ISTYPE_L(c, mask, l)); \
54 return (ISTYPE(c, mask)); \

12345678910>>...40