/titanic_44/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_lro.c | 48 uint32_t csum; in myri10ge_csum_generic() local 49 csum = 0; in myri10ge_csum_generic() 51 csum += *raw; in myri10ge_csum_generic() 53 csum += *raw; in myri10ge_csum_generic() 57 csum = (csum >> 16) + (csum & 0xffff); in myri10ge_csum_generic() 58 csum = (csum >> 16) + (csum & 0xffff); in myri10ge_csum_generic() 59 return ((uint16_t)csum); in myri10ge_csum_generic() 66 uint64_t csum; in myri10ge_in_pseudo() local 68 csum = (uint64_t)a + b + c; in myri10ge_in_pseudo() 69 csum = (csum >> 16) + (csum & 0xffff); in myri10ge_in_pseudo() [all …]
|
H A D | myri10ge.c | 2314 myri10ge_rx_csum(mblk_t *mp, struct myri10ge_rx_ring_stats *s, uint32_t csum) in myri10ge_rx_csum() argument 2322 csum = ntohs((uint16_t)csum); in myri10ge_rx_csum() 2340 csum += ~partial; in myri10ge_rx_csum() 2341 csum += (csum < ~partial); in myri10ge_rx_csum() 2342 csum = (csum >> 16) + (csum & 0xFFFF); in myri10ge_rx_csum() 2343 csum = (csum >> 16) + (csum & 0xFFFF); in myri10ge_rx_csum() 2377 csum += ~partial; in myri10ge_rx_csum() 2378 csum += (csum < ~partial); in myri10ge_rx_csum() 2379 csum = (csum >> 16) + (csum & 0xFFFF); in myri10ge_rx_csum() 2380 csum = (csum >> 16) + (csum & 0xFFFF); in myri10ge_rx_csum() [all …]
|
/titanic_44/usr/src/cmd/fm/scripts/ |
H A D | bustcode.pl | 85 my $csum = 0; 128 $csum = crc($csum, $i); 208 $csum = crc($csum, oct('0b' . $1)); 212 printf("CRC: 0x%x\n", $csum) if $opt_c; 221 if ($csumfromcode eq substr(sprintf('%014b', $csum), 228 substr(sprintf('%014b', $csum), 233 substr(sprintf('%014b', $csum),
|
H A D | buildcode.pl | 94 my $csum = 0; 178 $csum = crc($csum, $i); 203 $csum = crc($csum, oct('0b' . $1)); 207 printf("CRC: 0x%x\n", $csum) if $opt_c; 211 print " Checksum: " . substr(sprintf("%014b", $csum), 214 substr(sprintf("%b", $csum),
|
/titanic_44/usr/src/cmd/fm/eversholt/common/ |
H A D | eftread.c | 84 uint32_t csum = 0; in eftread_fopen() local 109 hdr.csum = ntohl(hdr.csum); in eftread_fopen() 176 csum += (uint32_t)*ptr; in eftread_fopen() 185 if (hdr.csum != csum) { in eftread_fopen() 187 hdr.csum, csum); in eftread_fopen()
|
H A D | eftwrite.c | 147 hdr.csum += (uint32_t)*ptr; in eftwrite() 160 hdr.csum = htonl(hdr.csum); in eftwrite()
|
H A D | eft.h | 54 uint32_t csum; member
|
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_ioctl.c | 496 uint8_t csum; in ql_set_feature_bits() local 524 csum = 0; in ql_set_feature_bits() 527 csum = (uint8_t)(csum + (uint8_t)*wptr); in ql_set_feature_bits() 528 csum = (uint8_t)(csum + (uint8_t)(*wptr >> 8)); in ql_set_feature_bits() 535 if (csum) { in ql_set_feature_bits() 549 csum = (uint8_t)(csum + *bptr++); in ql_set_feature_bits() 551 csum = (uint8_t)(~csum + 1); in ql_set_feature_bits() 552 nv->checksum = csum; in ql_set_feature_bits() 566 csum = 0; in ql_set_feature_bits() 572 csum = (uint8_t)(csum + (uint8_t)*wptr); in ql_set_feature_bits() [all …]
|
/titanic_44/usr/src/grub/grub-0.97/stage2/ |
H A D | fs.h | 134 struct csum struct 207 struct csum fs_cstotal; /* cylinder summary information */ 219 struct csum *fs_csp[MAXCSBUFS]; /* list of fs_cs info buffers */ 283 struct csum cg_cs; /* cylinder summary information */ 332 struct csum cg_cs; /* cylinder summary information */
|
H A D | ufs.h | 54 struct csum { struct 138 struct csum fs_cstotal; /* cylinder summary information */ 155 struct csum *fs_csp;
|
H A D | ufs2.h | 225 struct csum { struct 299 struct csum fs_old_cstotal; /* cylinder summary information */ 310 struct csum *fs_csp; /* cg summary info buffer for fs_cs */
|
/titanic_44/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass5.c | 55 struct csum *cs; in pass5() 56 struct csum backup_cs; in pass5() 58 struct csum cstotal; in pass5() 109 (void) memset((void *)&cstotal, 0, sizeof (struct csum)); in pass5() 281 sizeof (struct csum)) != 0); in pass5() 430 sizeof (struct csum)) != 0)) { in pass5() 433 (void *)&cstotal, sizeof (struct csum)); in pass5()
|
/titanic_44/usr/src/uts/sun4u/starfire/os/ |
H A D | pda.c | 371 uint_t csum; in pda_is_valid() local 376 csum = p2o_calc_checksum(p2o); in pda_is_valid() 378 return (csum == p2o->p2o_csum); in pda_is_valid() 406 uint_t csum, o_csum; in p2o_calc_checksum() local 417 csum = 0; in p2o_calc_checksum() 419 csum += *csumptr++; in p2o_calc_checksum() 422 return (-csum); in p2o_calc_checksum()
|
/titanic_44/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode.c | 705 unsigned long csum = 0; /* checksum (CRC) of diagcode */ in buildcode() local 725 crc(&csum, (unsigned)*ptr); in buildcode() 802 crc(&csum, bitv_chunk(allbits, limbit, limbit - 5)); in buildcode() 807 bitv_setlo(allbits, infop->csumbits, (unsigned)csum); in buildcode() 839 unsigned long csum; /* our computed checksum */ in code2dictval() local 892 csum = 0; in code2dictval() 894 crc(&csum, (unsigned)*ptr); in code2dictval() 897 crc(&csum, bitv_chunk(allbits, limbit, limbit - 5)); in code2dictval() 900 csum &= (1 << infop->csumbits) - 1; in code2dictval() 902 if (csum != ocsum) { in code2dictval()
|
/titanic_44/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 177 struct csum { struct 318 struct csum fs_cstotal; /* cylinder summary information */ 335 struct csum *fs_csp; 445 struct csum cg_cs; /* cylinder summary information */ 509 struct csum cg_cs; /* cylinder summary information */
|
/titanic_44/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_phy.c | 123 u8 csum; in ixgbe_read_i2c_combined_generic_int() local 128 csum = ixgbe_ones_comp_byte_add(reg_high, reg & 0xFF); in ixgbe_read_i2c_combined_generic_int() 129 csum = ~csum; in ixgbe_read_i2c_combined_generic_int() 144 if (ixgbe_out_i2c_byte_ack(hw, csum)) in ixgbe_read_i2c_combined_generic_int() 231 u8 csum; in ixgbe_write_i2c_combined_generic_int() local 234 csum = ixgbe_ones_comp_byte_add(reg_high, reg & 0xFF); in ixgbe_write_i2c_combined_generic_int() 235 csum = ixgbe_ones_comp_byte_add(csum, val >> 8); in ixgbe_write_i2c_combined_generic_int() 236 csum = ixgbe_ones_comp_byte_add(csum, val & 0xFF); in ixgbe_write_i2c_combined_generic_int() 237 csum = ~csum; in ixgbe_write_i2c_combined_generic_int() 258 if (ixgbe_out_i2c_byte_ack(hw, csum)) in ixgbe_write_i2c_combined_generic_int()
|
/titanic_44/usr/src/uts/common/io/e1000api/ |
H A D | e1000_manage.c | 134 s32 ret_val, hdr_csum, csum; in e1000_enable_tx_pkt_filtering_generic() local 164 csum = e1000_calculate_checksum((u8 *)hdr, in e1000_enable_tx_pkt_filtering_generic() 170 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) { in e1000_enable_tx_pkt_filtering_generic()
|
H A D | e1000_hw.h | 379 __le16 csum; /* Packet checksum */ member 398 __le16 csum; /* Packet Checksum */ member 428 __le16 csum; /* Packet Checksum */ member
|
H A D | e1000_vf.h | 104 u16 csum; /* Packet Checksum */ member
|
H A D | e1000_82575.h | 213 __le16 csum; /* Packet Checksum */ member
|
/titanic_44/usr/src/cmd/fs.d/ufs/fstyp/ |
H A D | fstyp.c | 393 fsp->fs_u.fs_csp = (struct csum *)(void *)sip; in dumpfs() 406 struct csum *cs = &fsp->fs_cs(fsp, i); in dumpfs() 430 int32_t csum = 0; in setsum() local 435 csum += *lp++; in setsum() 436 *sp = csum; in setsum()
|
/titanic_44/usr/src/uts/common/xen/io/ |
H A D | xnbo.c | 152 uint32_t pflags, csum; in xnbo_cksum_to_peer() local 176 mac_hcksum_get(mp, NULL, NULL, NULL, &csum, &pflags); in xnbo_cksum_to_peer() 184 (csum == 0xffff))) in xnbo_cksum_to_peer()
|
/titanic_44/usr/src/cmd/fs.d/ufs/mkfs/ |
H A D | mkfs.c | 445 struct csum *fscs; 567 struct csum *grow_fscs; 614 static struct csum *read_summaryinfo(struct fs *); 2022 fragroundup(&sblock, sblock.fs_ncg * sizeof (struct csum)); in main() 2023 i = sblock.fs_bsize / sizeof (struct csum); in main() 2027 fscs = (struct csum *)calloc(1, sblock.fs_cssize); in main() 2487 struct csum *cs; in initcg() 3880 (longlong_t)(sblock.fs_bsize / sizeof (struct csum)); in checksummarysize() 4537 static struct csum * 4540 struct csum *csp; in read_summaryinfo() [all …]
|
/titanic_44/usr/src/uts/common/io/cxgbe/common/ |
H A D | t4_hw.c | 624 u8 vpd[VPD_LEN], csum; in get_vpd_params() local 653 for (csum = 0; i >= 0; i--) in get_vpd_params() 654 csum += vpd[i]; in get_vpd_params() 656 if (csum != 0) { in get_vpd_params() 657 CH_ERR(adapter, "corrupted VPD EEPROM, actual csum %u", csum); in get_vpd_params() 1073 u32 csum; in t4_load_fw() local 1101 for (csum = 0, i = 0; i < size / sizeof (csum); i++) in t4_load_fw() 1102 csum += ntohl(p[i]); in t4_load_fw() 1104 if (csum != 0xffffffff) { in t4_load_fw() 1106 csum); in t4_load_fw()
|
/titanic_44/usr/src/uts/common/fs/ufs/ |
H A D | lufs.c | 187 int32_t csum = 0; in setsum() local 192 csum += *lp++; in setsum() 193 *sp = csum; in setsum()
|