/titanic_41/usr/src/uts/common/io/hxge/ |
H A D | hpi_vmac.c | 41 reset.bits.tx_reset = 1; in hpi_tx_vmac_reset() 55 reset.bits.rx_reset = 1; in hpi_rx_vmac_reset() 81 cfg.bits.tx_en = 1; in hpi_vmac_tx_config() 83 cfg.bits.crc_insert = 1; in hpi_vmac_tx_config() 85 cfg.bits.tx_pad = 1; in hpi_vmac_tx_config() 87 cfg.bits.tx_max_frame_length = max_frame_length; in hpi_vmac_tx_config() 91 cfg.bits.tx_en = 0; in hpi_vmac_tx_config() 93 cfg.bits.crc_insert = 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() [all …]
|
H A D | hpi_pfc.c | 46 (tctl.bits.status != TCAM_CTL_RWC_RWC_STAT)) { in hpi_pfc_tcam_check_completion() 65 (tctl.bits.match != TCAM_CTL_RWC_RWC_MATCH)) { in hpi_pfc_tcam_check_completion() 103 tctl.bits.addr = location; in hpi_pfc_tcam_entry_read() 104 tctl.bits.cmd = TCAM_CTL_RWC_TCAM_CMP; in hpi_pfc_tcam_entry_read() 110 if (tctl_rv.bits.match) in hpi_pfc_tcam_entry_read() 124 tctl.bits.addr = location; in hpi_pfc_tcam_asc_ram_entry_read() 125 tctl.bits.cmd = TCAM_CTL_RWC_RAM_RD; in hpi_pfc_tcam_asc_ram_entry_read() 152 tctl.bits.addr = location; in hpi_pfc_tcam_asc_ram_entry_write() 153 tctl.bits.cmd = TCAM_CTL_RWC_RAM_WR; in hpi_pfc_tcam_asc_ram_entry_write() 203 config.bits.tcam_en = 1; in hpi_pfc_set_tcam_enable() [all …]
|
H A D | hpi_rxdma.c | 55 page_hdl.bits.handle = (uint32_t)page_handle; in hpi_rxdma_cfg_logical_page_handle() 71 while ((count--) && (cfg.bits.qst == 0)) { in hpi_rxdma_cfg_rdc_wait_for_qst() 76 if (cfg.bits.qst == 0) in hpi_rxdma_cfg_rdc_wait_for_qst() 100 cfg.bits.enable = 1; in hpi_rxdma_cfg_rdc_ctl() 106 while ((count--) && (cfg.bits.qst == 1)) { in hpi_rxdma_cfg_rdc_ctl() 110 if (cfg.bits.qst == 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() 138 while ((count--) && (cfg.bits.qst == 0)) { in hpi_rxdma_cfg_rdc_ctl() 191 rcr_cfgb.bits.timeout = (uint8_t)param; in hpi_rxdma_cfg_rdc_rcr_ctl() [all …]
|
H A D | hxge_peu_hw.h | 207 } 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 D | hxge_rdc_hw.h | 105 } 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 D | hxge_pfc_hw.h | 91 } 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 …]
|
H A D | hxge_tdc_hw.h | 97 } bits; member 172 } bits; member 207 } bits; member 239 } bits; member 273 } bits; member 350 } bits; member 490 } bits; member 515 } bits; member 541 } bits; member 565 } bits; member [all …]
|
/titanic_41/usr/src/uts/common/io/xge/hal/include/ |
H A D | xgehal-types.h | 45 #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 …]
|
/titanic_41/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_fflp.c | 237 (tctl.bits.ldw.stat != TCAM_CTL_RWC_RWC_STAT)) { in npi_fflp_tcam_check_completion() 257 (tctl.bits.ldw.match != TCAM_CTL_RWC_RWC_MATCH)) { in npi_fflp_tcam_check_completion() 314 tctl.bits.ldw.location = location; in npi_fflp_tcam_entry_invalidate() 315 tctl.bits.ldw.rwc = TCAM_CTL_RWC_TCAM_WR; in npi_fflp_tcam_entry_invalidate() 361 tctl.bits.ldw.rwc = TCAM_CTL_RWC_TCAM_CMP; in npi_fflp_tcam_entry_match() 373 if (tctl_stat.bits.ldw.match == TCAM_CTL_RWC_RWC_MATCH) { in npi_fflp_tcam_entry_match() 374 return (uint32_t)(tctl_stat.bits.ldw.location); in npi_fflp_tcam_entry_match() 406 tctl.bits.ldw.location = location; in npi_fflp_tcam_entry_read() 407 tctl.bits.ldw.rwc = TCAM_CTL_RWC_TCAM_RD; in npi_fflp_tcam_entry_read() 476 tctl.bits.ldw.location = location; in npi_fflp_tcam_entry_write() [all …]
|
H A D | npi_rxdma.c | 242 page_vld.bits.ldw.page0 = 0; in npi_rxdma_cfg_logical_page_disable() 245 page_vld.bits.ldw.page1 = 0; in npi_rxdma_cfg_logical_page_disable() 286 page_vld.bits.ldw.page0 = 0; in npi_rxdma_cfg_logical_page() 289 page_vld.bits.ldw.page1 = 0; in npi_rxdma_cfg_logical_page() 298 page_vld.bits.ldw.page0 = 1; in npi_rxdma_cfg_logical_page() 305 page_vld.bits.ldw.page1 = 1; in npi_rxdma_cfg_logical_page() 309 page_vld.bits.ldw.func = pg_cfg->func_num; in npi_rxdma_cfg_logical_page() 316 page_mask.bits.ldw.mask = pg_cfg->mask >> LOG_PAGE_ADDR_SHIFT; in npi_rxdma_cfg_logical_page() 317 page_value.bits.ldw.value = pg_cfg->value >> LOG_PAGE_ADDR_SHIFT; in npi_rxdma_cfg_logical_page() 318 page_reloc.bits.ldw.relo = pg_cfg->reloc >> LOG_PAGE_ADDR_SHIFT; in npi_rxdma_cfg_logical_page() [all …]
|
H A D | npi_zcp.c | 324 val.qw0.bits.ldw.rdc_tbl_offset = in npi_zcp_tt_static_entry() 325 sflow->qw0.bits.ldw.rdc_tbl_offset; in npi_zcp_tt_static_entry() 329 val.qw0.bits.ldw.buf_size = in npi_zcp_tt_static_entry() 330 sflow->qw0.bits.ldw.buf_size; in npi_zcp_tt_static_entry() 334 val.qw0.bits.ldw.num_buf = sflow->qw0.bits.ldw.num_buf; in npi_zcp_tt_static_entry() 338 val.qw0.bits.ldw.ulp_end = sflow->qw0.bits.ldw.ulp_end; in npi_zcp_tt_static_entry() 342 val.qw1.bits.ldw.ulp_end = sflow->qw1.bits.ldw.ulp_end; in npi_zcp_tt_static_entry() 346 val.qw1.bits.ldw.ulp_end_en = in npi_zcp_tt_static_entry() 347 sflow->qw1.bits.ldw.ulp_end_en; in npi_zcp_tt_static_entry() 351 val.qw1.bits.ldw.unmap_all_en = in npi_zcp_tt_static_entry() [all …]
|
H A D | npi_vir.c | 296 if (!sr.bits.ldw.tas) { in npi_dev_func_sr_init() 302 if (!sr.bits.ldw.sr) { in npi_dev_func_sr_init() 304 sr.bits.ldw.sr |= NPI_DEV_SR_LOCK_ST_FREE; in npi_dev_func_sr_init() 306 sr.bits.ldw.tas = 0; in npi_dev_func_sr_init() 313 sr.bits.ldw.sr)); in npi_dev_func_sr_init() 318 sr.bits.ldw)); in npi_dev_func_sr_init() 319 status = NPI_VIR_TAS_BUSY(sr.bits.ldw.funcid); in npi_dev_func_sr_init() 350 if (!sr.bits.ldw.tas) { in npi_dev_func_sr_lock_enter() 355 state = sr.bits.ldw.sr & NPI_DEV_SR_LOCK_ST_MASK; in npi_dev_func_sr_lock_enter() 361 sr.bits.ldw.sr |= (NPI_DEV_SR_LOCK_ST_BUSY | in npi_dev_func_sr_lock_enter() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_cidr_pton.c | 46 int *bits, int ipv6)); 48 int *bits)); 70 inet_cidr_pton(int af, const char *src, void *dst, int *bits) { in inet_cidr_pton() argument 73 return (inet_cidr_pton_ipv4(src, dst, bits, 0)); in inet_cidr_pton() 75 return (inet_cidr_pton_ipv6(src, dst, bits)); in inet_cidr_pton() 87 int n, ch, tmp, bits; in inet_cidr_pton_ipv4() local 111 bits = -1; in inet_cidr_pton_ipv4() 113 bits = getbits(src, ipv6); in inet_cidr_pton_ipv4() 114 if (bits == -2) in inet_cidr_pton_ipv4() 120 if (bits == -1) { in inet_cidr_pton_ipv4() [all …]
|
H A D | inet_net_ntop.c | 42 static char * inet_net_ntop_ipv4 __P((const u_char *src, int bits, 44 static char * inet_net_ntop_ipv6 __P((const u_char *src, int bits, 58 inet_net_ntop(af, src, bits, dst, size) in inet_net_ntop() argument 61 int bits; 67 return (inet_net_ntop_ipv4(src, bits, dst, size)); 69 return (inet_net_ntop_ipv6(src, bits, dst, size)); 90 inet_net_ntop_ipv4(src, bits, dst, size) in inet_net_ntop_ipv4() argument 92 int bits; 101 if (bits < 0 || bits > 32) { 106 if (bits == 0) { [all …]
|
H A D | inet_net_pton.c | 65 int n, ch, tmp = 0, dirty, bits; in inet_net_pton_ipv4() local 125 bits = -1; in inet_net_pton_ipv4() 130 bits = 0; in inet_net_pton_ipv4() 134 bits *= 10; in inet_net_pton_ipv4() 135 bits += n; in inet_net_pton_ipv4() 136 if (bits > 32) in inet_net_pton_ipv4() 151 if (bits == -1) { 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() [all …]
|
H A D | inet_cidr_ntop.c | 44 inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size); 46 inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size); 63 inet_cidr_ntop(int af, const void *src, int bits, char *dst, size_t size) { in inet_cidr_ntop() argument 66 return (inet_cidr_ntop_ipv4(src, bits, dst, size)); in inet_cidr_ntop() 68 return (inet_cidr_ntop_ipv6(src, bits, dst, size)); in inet_cidr_ntop() 109 inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) { in inet_cidr_ntop_ipv4() argument 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() [all …]
|
/titanic_41/usr/src/uts/common/zmod/ |
H A D | inffast.c | 87 unsigned bits; /* local strm->bits */ local 114 bits = state->bits; 123 if (bits < 15) { 124 hold += (unsigned long)(PUP(in)) << bits; 125 bits += 8; 126 hold += (unsigned long)(PUP(in)) << bits; 127 bits += 8; 131 op = (unsigned)(this.bits); 133 bits -= op; 145 if (bits < op) { [all …]
|
/titanic_41/usr/src/cmd/ipf/lib/common/ |
H A D | fill6bits.c | 12 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 D | genmask.c | 17 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));
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | ffs.c | 32 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 D | fls.c | 32 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()
|
/titanic_41/usr/src/cmd/fm/scripts/ |
H A D | bustcode.pl | 87 my $bits; 148 $bits .= sprintf('%05b', $i); 151 die "no code type in bits \"$bits\"\n" 152 unless $bits =~ /^(..)/; 156 die "no code length in bits \"$bits\"\n" 157 unless $bits =~ /^..(..)/; 163 $dictval = substr($bits, 4, $Dictvalbits[$codelen]); 164 die "no dictval in bits \"$bits\"\n" 197 substr($bits, - $Csumbits[$codelen], $Csumbits[$codelen]); 198 die "no checksum in bits \"$bits\"\n" [all …]
|
/titanic_41/usr/src/common/atomic/ |
H A D | atomic.c | 134 atomic_or_8(volatile uint8_t *target, uint8_t bits) in atomic_or_8() argument 135 { *target |= bits; } in atomic_or_8() 138 atomic_or_uchar(volatile uchar_t *target, uchar_t bits) in atomic_or_uchar() argument 139 { *target |= bits; } in atomic_or_uchar() 142 atomic_or_16(volatile uint16_t *target, uint16_t bits) in atomic_or_16() argument 143 { *target |= bits; } in atomic_or_16() 146 atomic_or_ushort(volatile ushort_t *target, ushort_t bits) in atomic_or_ushort() argument 147 { *target |= bits; } in atomic_or_ushort() 150 atomic_or_32(volatile uint32_t *target, uint32_t bits) in atomic_or_32() argument 151 { *target |= bits; } in atomic_or_32() [all …]
|
/titanic_41/usr/src/cmd/ptools/pflags/ |
H A D | pflags.c | 142 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 …]
|
/titanic_41/usr/src/uts/sun4u/cherrystone/ml/ |
H A D | cherrystone_asm.s | 82 sllx %o0, 32, %o0 ! shift upper 32 bits 83 srl %o1, 0, %o1 ! clear upper 32 bits 88 wrpr %o5, 0, %pstate ! clear IE, AM bits 93 srlx %g1, 32, %o0 ! put the high 32 bits in low part of o0 94 srl %g1, 0, %o1 ! put lower 32 bits in o1, clear upper 32 bits 106 sllx %o0, 32, %o0 ! shift upper 32 bits 107 srl %o1, 0, %o1 ! clear upper 32 bits 112 wrpr %o5, 0, %pstate ! clear IE, AM bits 117 srlx %g1, 32, %o0 ! put the high 32 bits in low part of o0 118 srl %g1, 0, %o1 ! put lower 32 bits in o1, clear upper 32 bits
|