Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 469) sorted by relevance

12345678910>>...19

/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhpi_vmac.c81 cfg.bits.tx_en = 1; in hpi_vmac_tx_config()
85 cfg.bits.tx_pad = 1; in hpi_vmac_tx_config()
91 cfg.bits.tx_en = 0; in hpi_vmac_tx_config()
95 cfg.bits.tx_pad = 0; in hpi_vmac_tx_config()
99 cfg.bits.tx_en = 1; in hpi_vmac_tx_config()
101 cfg.bits.tx_en = 0; in hpi_vmac_tx_config()
109 cfg.bits.tx_pad = 1; in hpi_vmac_tx_config()
111 cfg.bits.tx_pad = 0; in hpi_vmac_tx_config()
170 cfg.bits.rx_en = 1; in hpi_vmac_rx_config()
186 cfg.bits.rx_en = 0; in hpi_vmac_rx_config()
[all …]
H A Dhpi_pfc.c275 config.bits.mac_addr_en_l = config.bits.mac_addr_en_l | bit; in hpi_pfc_mac_addr_enable()
278 config.bits.mac_addr_en = config.bits.mac_addr_en | bit; in hpi_pfc_mac_addr_enable()
298 config.bits.mac_addr_en_l = config.bits.mac_addr_en_l & ~bit; in hpi_pfc_mac_addr_disable()
301 config.bits.mac_addr_en = config.bits.mac_addr_en & ~bit; in hpi_pfc_mac_addr_disable()
356 vlan_tbl_entry.bits.member = vlan_tbl_entry.bits.member & ~bit; in hpi_pfc_cfg_vlan_table_entry_clear()
379 vlan_tbl_entry.bits.member = vlan_tbl_entry.bits.member | bit; in hpi_pfc_cfg_vlan_table_entry_set()
707 tcp.bits.fin = 1; in hpi_pfc_set_tcp_control_fin()
709 tcp.bits.fin = 0; in hpi_pfc_set_tcp_control_fin()
727 tcp.bits.syn = 1; in hpi_pfc_set_tcp_control_syn()
729 tcp.bits.syn = 0; in hpi_pfc_set_tcp_control_syn()
[all …]
H A Dhpi_rxdma.c76 if (cfg.bits.qst == 0) in hpi_rxdma_cfg_rdc_wait_for_qst()
100 cfg.bits.enable = 1; in hpi_rxdma_cfg_rdc_ctl()
117 cfg.bits.enable = 0; in hpi_rxdma_cfg_rdc_ctl()
133 cfg.bits.reset = 1; in hpi_rxdma_cfg_rdc_ctl()
340 cfgb.bits.vld0 = 1; in hpi_rxdma_cfg_rdc_ring()
342 cfgb.bits.vld0 = 0; in hpi_rxdma_cfg_rdc_ring()
360 cfgb.bits.vld1 = 1; in hpi_rxdma_cfg_rdc_ring()
362 cfgb.bits.vld1 = 0; in hpi_rxdma_cfg_rdc_ring()
380 cfgb.bits.vld2 = 1; in hpi_rxdma_cfg_rdc_ring()
382 cfgb.bits.vld2 = 0; in hpi_rxdma_cfg_rdc_ring()
[all …]
H A Dhxge_peu_hw.h207 } bits; member
310 } bits; member
338 } bits; member
369 } bits; member
407 } bits; member
427 } bits; member
464 } bits; member
484 } bits; member
520 } bits; member
540 } bits; member
[all …]
H A Dhxge_rdc_hw.h105 } bits; member
158 } bits; member
191 } bits; member
242 } bits; member
301 } bits; member
331 } bits; member
354 } bits; member
382 } bits; member
427 } bits; member
462 } bits; member
[all …]
H A Dhxge_pfc_hw.h91 } bits; member
125 } bits; member
155 } bits; member
182 } bits; member
210 } bits; member
238 } bits; member
269 } bits; member
290 } bits; member
313 } bits; member
334 } bits; member
[all …]
/illumos-gate/usr/src/uts/common/io/xge/hal/include/
H A Dxgehal-types.h45 #define bVAL1(bits, loc) ((((u64)bits) >> (64-(loc+1))) & 0x1) argument
46 #define bVAL2(bits, loc) ((((u64)bits) >> (64-(loc+2))) & 0x3) argument
47 #define bVAL3(bits, loc) ((((u64)bits) >> (64-(loc+3))) & 0x7) argument
48 #define bVAL4(bits, loc) ((((u64)bits) >> (64-(loc+4))) & 0xF) argument
49 #define bVAL5(bits, loc) ((((u64)bits) >> (64-(loc+5))) & 0x1F) argument
50 #define bVAL6(bits, loc) ((((u64)bits) >> (64-(loc+6))) & 0x3F) argument
51 #define bVAL7(bits, loc) ((((u64)bits) >> (64-(loc+7))) & 0x7F) argument
52 #define bVAL8(bits, loc) ((((u64)bits) >> (64-(loc+8))) & 0xFF) argument
53 #define bVAL12(bits, loc) ((((u64)bits) >> (64-(loc+12))) & 0xFFF) argument
54 #define bVAL14(bits, loc) ((((u64)bits) >> (64-(loc+14))) & 0x3FFF) argument
[all …]
/illumos-gate/usr/src/contrib/zlib/
H A Dinffast.c93 bits = state->bits; in inflate_fast()
102 if (bits < 15) { in inflate_fast()
104 bits += 8; in inflate_fast()
106 bits += 8; in inflate_fast()
112 bits -= op; in inflate_fast()
135 bits += 8; in inflate_fast()
137 bits += 8; in inflate_fast()
143 bits -= op; in inflate_fast()
291 len = bits >> 3; in inflate_fast()
293 bits -= len << 3; in inflate_fast()
[all …]
H A Dinfback.c98 bits = 9; in fixedtables()
105 bits = 5; in fixedtables()
130 bits = state->bits; \
141 state->bits = bits; \
199 bits -= bits & 7; \
276 bits = 0; in inflateBack()
393 if ((unsigned)(here.bits) <= bits) break; in inflateBack()
486 if ((unsigned)(here.bits) <= bits) break; in inflateBack()
494 if ((unsigned)(last.bits + here.bits) <= bits) break; in inflateBack()
540 if ((unsigned)(here.bits) <= bits) break; in inflateBack()
[all …]
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_fflp.c1483 tst1.bits.ldw.dat = data->bits.ldw.dat; in npi_fflp_fcram_err_data_test()
1484 tst2.bits.ldw.dat = data->bits.hdw.dat; in npi_fflp_fcram_err_data_test()
1560 cfg.bits.ldw.vpr0 + cfg.bits.ldw.vpr1; in npi_fflp_cfg_enet_vlan_table_assoc()
1572 cfg.bits.ldw.vpr0 + cfg.bits.ldw.vpr1; in npi_fflp_cfg_enet_vlan_table_assoc()
1585 cfg.bits.ldw.vpr2 + cfg.bits.ldw.vpr3; in npi_fflp_cfg_enet_vlan_table_assoc()
1598 cfg.bits.ldw.vpr2 + cfg.bits.ldw.vpr3; in npi_fflp_cfg_enet_vlan_table_assoc()
1687 cfg.bits.ldw.parity1++; in npi_fflp_cfg_enet_vlan_table_set_pri()
1689 cfg.bits.ldw.parity0++; in npi_fflp_cfg_enet_vlan_table_set_pri()
2976 p_err.bits.ldw.err = 0; in npi_fflp_vlan_error_clear()
3000 p_err.bits.ldw.mult = 0; in npi_fflp_tcam_error_clear()
[all …]
H A Dnpi_rxdma.c380 cfg.bits.ldw.en = 1; in npi_rxdma_cfg_rdc_ctl()
1427 wred_reg.bits.ldw.win = wred_params->bits.ldw.win; in npi_rxdma_cfg_wred_param()
1428 wred_reg.bits.ldw.thre = wred_params->bits.ldw.thre; in npi_rxdma_cfg_wred_param()
1429 wred_reg.bits.ldw.win_syn = wred_params->bits.ldw.win_syn; in npi_rxdma_cfg_wred_param()
1430 wred_reg.bits.ldw.thre_sync = wred_params->bits.ldw.thre_sync; in npi_rxdma_cfg_wred_param()
1637 hdptr->bits.ldw = hl_ptr.bits.ldw.head_l << 2; in npi_rxdma_rdc_rbr_head_get()
1638 hdptr->bits.hdw = hh_ptr.bits.ldw.head_h; in npi_rxdma_rdc_rbr_head_get()
1688 tail_addr->bits.ldw = tl_ptr.bits.ldw.tlptr_l << 3; in npi_rxdma_rdc_rcr_tail_get()
1689 tail_addr->bits.hdw = th_ptr.bits.ldw.tlptr_h; in npi_rxdma_rdc_rcr_tail_get()
1856 cs.bits.ldw.ptrread, cs.bits.ldw.pktread)); in npi_rxdma_rdc_rcr_read_update()
[all …]
H A Dnpi_zcp.c327 val.qw0.bits.ldw.buf_size = in npi_zcp_tt_static_entry()
332 val.qw0.bits.ldw.num_buf = sflow->qw0.bits.ldw.num_buf; in npi_zcp_tt_static_entry()
336 val.qw0.bits.ldw.ulp_end = sflow->qw0.bits.ldw.ulp_end; in npi_zcp_tt_static_entry()
340 val.qw1.bits.ldw.ulp_end = sflow->qw1.bits.ldw.ulp_end; in npi_zcp_tt_static_entry()
354 val.qw1.bits.ldw.tmode = sflow->qw1.bits.ldw.tmode; in npi_zcp_tt_static_entry()
358 val.qw1.bits.ldw.skip = sflow->qw1.bits.ldw.skip; in npi_zcp_tt_static_entry()
377 val.qw2.bits.ldw.busy = sflow->qw2.bits.ldw.busy; in npi_zcp_tt_static_entry()
381 val.qw3.bits.ldw.toq = sflow->qw3.bits.ldw.toq; in npi_zcp_tt_static_entry()
482 val.qw3.bits.ldw.err_stat = in npi_zcp_tt_dynamic_entry()
487 val.qw3.bits.ldw.wr_ptr = dflow->qw3.bits.ldw.wr_ptr; in npi_zcp_tt_dynamic_entry()
[all …]
H A Dnpi_vir.c304 sr.bits.ldw.tas = 0; in npi_dev_func_sr_init()
311 sr.bits.ldw.sr)); in npi_dev_func_sr_init()
316 sr.bits.ldw)); in npi_dev_func_sr_init()
422 if (sr.bits.ldw.funcid == NPI_GET_LOCK_OWNER(sr.bits.ldw.sr)) { in npi_dev_func_sr_lock_free()
473 sr.bits.ldw.tas = 0; in npi_dev_func_sr_funcid_get()
507 sr.bits.ldw.tas = 0; in npi_dev_func_sr_sr_raw_get()
547 sr.bits.ldw.tas = 0; in npi_dev_func_sr_sr_get()
618 if (sr.bits.ldw.funcid == NPI_GET_LOCK_OWNER(sr.bits.ldw.sr)) { in npi_dev_func_sr_sr_set_only()
652 sr.bits.ldw.tas = 0; in npi_dev_func_sr_busy()
686 sr.bits.ldw.tas = 0; in npi_dev_func_sr_tas_get()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_cidr_pton.c48 int *bits));
111 bits = -1; in inet_cidr_pton_ipv4()
114 if (bits == -2) in inet_cidr_pton_ipv4()
120 if (bits == -1) { in inet_cidr_pton_ipv4()
139 *pbits = bits; in inet_cidr_pton_ipv4()
159 int bits; in inet_cidr_pton_ipv6() local
171 bits = -1; in inet_cidr_pton_ipv6()
242 *pbits = bits; in inet_cidr_pton_ipv6()
256 int bits = 0; in getbits() local
266 bits *= 10; in getbits()
[all …]
H A Dinet_net_ntop.c61 int bits;
92 int bits;
101 if (bits < 0 || bits > 32) {
106 if (bits == 0) {
128 b = bits % 8;
182 if (bits < 0 || bits > 128) { in inet_net_ntop_ipv6()
189 if (bits == 0) { in inet_net_ntop_ipv6()
195 p = (bits + 7) / 8; in inet_net_ntop_ipv6()
198 b = bits % 8; in inet_net_ntop_ipv6()
207 words = (bits + 15) / 16; in inet_net_ntop_ipv6()
[all …]
H A Dinet_net_pton.c125 bits = -1; in inet_net_pton_ipv4()
130 bits = 0; in inet_net_pton_ipv4()
135 bits += n; in inet_net_pton_ipv4()
153 bits = 32; in inet_net_pton_ipv4()
155 bits = 8; in inet_net_pton_ipv4()
157 bits = 24; in inet_net_pton_ipv4()
159 bits = 16; in inet_net_pton_ipv4()
161 bits = 8; in inet_net_pton_ipv4()
170 bits = 4; in inet_net_pton_ipv4()
271 int bits; in inet_net_pton_ipv6() local
[all …]
H A Dinet_cidr_ntop.c66 return (inet_cidr_ntop_ipv4(src, bits, dst, size)); in inet_cidr_ntop()
115 if ((bits < -1) || (bits > 32)) { in inet_cidr_ntop_ipv4()
121 if (bits == -1) in inet_cidr_ntop_ipv4()
129 bytes = (((bits <= 0) ? 1 : bits) + 7) / 8; in inet_cidr_ntop_ipv4()
138 if (bits != -1) { in inet_cidr_ntop_ipv4()
142 dst += SPRINTF((dst, "/%u", bits)); in inet_cidr_ntop_ipv4()
167 if ((bits < -1) || (bits > 128)) { in inet_cidr_ntop_ipv6()
226 if (src[15] || bits == -1 || bits > 120) in inet_cidr_ntop_ipv6()
228 else if (src[14] || bits > 112) in inet_cidr_ntop_ipv6()
249 if (bits != -1) in inet_cidr_ntop_ipv6()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dfill6bits.c12 void fill6bits(bits, msk) in fill6bits() argument
13 int bits; in fill6bits()
16 if (bits == 0) {
29 if (bits == 128)
31 if (bits > 96) {
32 msk[3] = htonl(msk[3] << (128 - bits));
33 } else if (bits > 64) {
35 msk[2] = htonl(msk[2] << (96 - bits));
36 } else if (bits > 32) {
39 msk[1] = htonl(msk[1] << (64 - bits));
[all …]
H A Dgenmask.c17 int bits; local
34 bits = (int)strtol(msk, &endptr, 0);
37 ((bits > 32) && !use_inet6) || (bits < 0) ||
38 ((bits > 128) && use_inet6))
40 if (*endptr != '\0' || bits > 32 || bits < 0)
45 fill6bits(bits, mskp);
48 if (bits == 0)
51 *mskp = htonl(0xffffffff << (32 - bits));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dffs.c32 ffs_impl(uint64_t bits) in ffs_impl() argument
37 if (bits == 0) in ffs_impl()
40 if ((bits32 = (uint32_t)bits) == 0) { in ffs_impl()
41 bits32 = (uint32_t)(bits >> 32); in ffs_impl()
68 ffs(int bits) in ffs() argument
70 return (ffs_impl((uint64_t)(uint_t)bits)); in ffs()
74 ffsl(long bits) in ffsl() argument
76 return (ffs_impl((uint64_t)(ulong_t)bits)); in ffsl()
80 ffsll(long long bits) in ffsll() argument
82 return (ffs_impl((uint64_t)(u_longlong_t)bits)); in ffsll()
H A Dfls.c32 fls_impl(uint64_t bits) in fls_impl() argument
37 if (bits == 0) in fls_impl()
40 if ((bits32 = (uint32_t)(bits >> 32)) != 0) in fls_impl()
43 bits32 = (uint32_t)bits; in fls_impl()
68 fls(int bits) in fls() argument
70 return (fls_impl((uint64_t)(uint_t)bits)); in fls()
74 flsl(long bits) in flsl() argument
76 return (fls_impl((uint64_t)(ulong_t)bits)); in flsl()
80 flsll(long long bits) in flsll() argument
82 return (fls_impl((uint64_t)(u_longlong_t)bits)); in flsll()
/illumos-gate/usr/src/common/atomic/
H A Datomic.c135 { *target |= bits; } in atomic_or_8()
139 { *target |= bits; } in atomic_or_uchar()
143 { *target |= bits; } in atomic_or_16()
147 { *target |= bits; } in atomic_or_ushort()
151 { *target |= bits; } in atomic_or_32()
155 { *target |= bits; } in atomic_or_uint()
159 { *target |= bits; } in atomic_or_ulong()
163 { *target |= bits; } in atomic_or_64()
167 { *target &= bits; } in atomic_and_8()
171 { *target &= bits; } in atomic_and_uchar()
[all …]
/illumos-gate/usr/src/cmd/fm/scripts/
H A Dbustcode.pl87 my $bits;
148 $bits .= sprintf('%05b', $i);
151 die "no code type in bits \"$bits\"\n"
152 unless $bits =~ /^(..)/;
157 unless $bits =~ /^..(..)/;
164 die "no dictval in bits \"$bits\"\n"
198 die "no checksum in bits \"$bits\"\n"
206 my $bitscopy = $bits;
249 my $bits = shift;
253 while ($bits =~ /(.)$/) {
[all …]
/illumos-gate/usr/src/cmd/ptools/pflags/
H A Dpflags.c142 uint32_t *bits; in look() local
206 bits = ((uint32_t *)&entryset); in look()
207 if (bits[0] | bits[1] | bits[2] | bits[3] | in look()
208 bits[4] | bits[5] | bits[6] | bits[7]) in look()
214 bits[0], bits[1], bits[2], bits[3], in look()
215 bits[4], bits[5], bits[6], bits[7]); in look()
217 bits = ((uint32_t *)&exitset); in look()
218 if (bits[0] | bits[1] | bits[2] | bits[3] | in look()
219 bits[4] | bits[5] | bits[6] | bits[7]) in look()
225 bits[0], bits[1], bits[2], bits[3], in look()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Denum-bitwise.c4 typedef long long __bitwise bits; typedef
7 RZ = (__force bits) 0,
8 RO = (__force bits) 1,
9 RM = (__force bits) -1,
12 _Static_assert([typeof(RZ)] == [bits], "RZ");
13 _Static_assert([typeof(RO)] == [bits], "RO");
14 _Static_assert([typeof(RM)] == [bits], "RM");
15 _Static_assert(sizeof(enum r) == sizeof(bits), "bits");

12345678910>>...19