Home
last modified time | relevance | path

Searched refs:csum (Results 1 – 25 of 41) sorted by relevance

12

/titanic_44/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c48 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 Dmyri10ge.c2314 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 Dbustcode.pl85 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 Dbuildcode.pl94 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 Deftread.c84 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 Deftwrite.c147 hdr.csum += (uint32_t)*ptr; in eftwrite()
160 hdr.csum = htonl(hdr.csum); in eftwrite()
H A Deft.h54 uint32_t csum; member
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_ioctl.c496 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 Dfs.h134 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 Dufs.h54 struct csum { struct
138 struct csum fs_cstotal; /* cylinder summary information */
155 struct csum *fs_csp;
H A Dufs2.h225 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 Dpass5.c55 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 Dpda.c371 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 Ddiagcode.c705 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 Dufs_fs.h177 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 Dixgbe_phy.c123 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 De1000_manage.c134 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 De1000_hw.h379 __le16 csum; /* Packet checksum */ member
398 __le16 csum; /* Packet Checksum */ member
428 __le16 csum; /* Packet Checksum */ member
H A De1000_vf.h104 u16 csum; /* Packet Checksum */ member
H A De1000_82575.h213 __le16 csum; /* Packet Checksum */ member
/titanic_44/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c393 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 Dxnbo.c152 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 Dmkfs.c445 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 Dt4_hw.c624 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 Dlufs.c187 int32_t csum = 0; in setsum() local
192 csum += *lp++; in setsum()
193 *sp = csum; in setsum()

12