Searched refs:csum (Results 1 - 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c48 uint32_t csum; local
49 csum = 0;
51 csum += *raw;
53 csum += *raw;
57 csum = (csum >> 16) + (csum & 0xffff);
58 csum = (csum >> 16) + (csum
66 uint64_t csum; local
136 myri10ge_lro_rx(struct myri10ge_slice_state *ss, mblk_t *m_head, uint32_t csum, struct myri10ge_mblk_list *mbl) argument
[all...]
H A Dmyri10ge.c2314 myri10ge_rx_csum(mblk_t *mp, struct myri10ge_rx_ring_stats *s, uint32_t csum) argument
2322 csum = ntohs((uint16_t)csum);
2340 csum += ~partial;
2341 csum += (csum < ~partial);
2342 csum = (csum >> 16) + (csum & 0xFFFF);
2343 csum
2394 myri10ge_rx_done_small(struct myri10ge_slice_state *ss, uint32_t len, uint32_t csum) argument
2431 myri10ge_rx_done_big(struct myri10ge_slice_state *ss, uint32_t len, uint32_t csum) argument
[all...]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Deft.h54 uint32_t csum; member in struct:eftheader
H A Deftread.c84 uint32_t csum = 0; local
109 hdr.csum = ntohl(hdr.csum);
176 csum += (uint32_t)*ptr;
185 if (hdr.csum != csum) {
187 hdr.csum, csum);
H A Deftwrite.c147 hdr.csum += (uint32_t)*ptr;
160 hdr.csum = htonl(hdr.csum);
/illumos-gate/usr/src/cmd/fm/scripts/
H A Dbustcode.pl85 my $csum = 0;
128 $csum = crc($csum, $i);
205 # compute csum by taking 5 bits at a time from left to right
208 $csum = crc($csum, oct('0b' . $1));
212 printf("CRC: 0x%x\n", $csum) if $opt_c;
214 # changed the zeroed csum bits to the computed value, masking
221 if ($csumfromcode eq substr(sprintf('%014b', $csum),
228 substr(sprintf('%014b', $csum),
[all...]
H A Dbuildcode.pl94 my $csum = 0;
178 $csum = crc($csum, $i);
197 # csum bits, zeroed
200 # compute csum by taking 5 bits at a time from left to right
203 $csum = crc($csum, oct('0b' . $1));
207 printf("CRC: 0x%x\n", $csum) if $opt_c;
209 # change the zeroed csum bits to the computed value, masking
211 print " Checksum: " . substr(sprintf("%014b", $csum),
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_ioctl.c496 uint8_t csum; local
524 csum = 0;
527 csum = (uint8_t)(csum + (uint8_t)*wptr);
528 csum = (uint8_t)(csum + (uint8_t)(*wptr >> 8));
535 if (csum) {
549 csum = (uint8_t)(csum + *bptr++);
551 csum
611 uint32_t csum = 0; local
688 uint8_t csum; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dufs.h51 * N.B. sizeof (struct csum) must be a power of two in order for
54 struct csum { struct
94 grub_int32_t fs_csmask; /* csum block offset */
95 grub_int32_t fs_csshift; /* csum block number */
138 struct csum fs_cstotal; /* cylinder summary information */
153 union { /* fs_cs (csum) info */
155 struct csum *fs_csp;
H A Dfs.h131 * N.B. sizeof(struct csum) must be a power of two in order for
134 struct csum struct
179 int fs_csmask; /* csum block offset */
180 int fs_csshift; /* csum block number */
207 struct csum fs_cstotal; /* cylinder summary information */
219 struct csum *fs_csp[MAXCSBUFS]; /* list of fs_cs info buffers */
265 * N.B. This macro assumes that sizeof(struct csum) is a power of two.
283 struct csum cg_cs; /* cylinder summary information */
332 struct csum cg_cs; /* cylinder summary information */
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 */
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass5.c55 struct csum *cs;
56 struct csum backup_cs;
58 struct csum cstotal;
109 (void) memset((void *)&cstotal, 0, sizeof (struct csum));
281 sizeof (struct csum)) != 0);
430 sizeof (struct csum)) != 0)) {
433 (void *)&cstotal, sizeof (struct csum));
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Dsiena_flash.h137 efx_byte_t csum; /* over header area (i.e. not including VPD) */ member in struct:siena_mc_static_config_hdr_s
172 efx_byte_t csum; /* over header area (i.e. not including VPD) */ member in struct:siena_mc_dynamic_config_hdr_s
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_fs.h174 * N.B. sizeof (struct csum) must be a power of two in order for
177 struct csum { struct
270 int32_t fs_csmask; /* csum block offset */
271 int32_t fs_csshift; /* csum block number */
318 struct csum fs_cstotal; /* cylinder summary information */
333 union { /* fs_cs (csum) info */
335 struct csum *fs_csp;
424 * N.B. This macro assumes that sizeof (struct csum) is a power of two.
445 struct csum cg_cs; /* cylinder summary information */
509 struct csum cg_c
[all...]
/illumos-gate/usr/src/uts/sun4u/starfire/os/
H A Dpda.c371 uint_t csum; local
376 csum = p2o_calc_checksum(p2o);
378 return (csum == p2o->p2o_csum);
406 uint_t csum, o_csum; local
417 csum = 0;
419 csum += *csumptr++;
422 return (-csum);
/illumos-gate/usr/src/lib/fm/libdiagcode/common/
H A Ddiagcode.c705 unsigned long csum = 0; /* checksum (CRC) of diagcode */ local
725 crc(&csum, (unsigned)*ptr);
802 crc(&csum, bitv_chunk(allbits, limbit, limbit - 5));
807 bitv_setlo(allbits, infop->csumbits, (unsigned)csum);
839 unsigned long csum; /* our computed checksum */ local
885 /* now pull out the csum */
888 /* set the csum bits to zero */
892 csum = 0;
894 crc(&csum, (unsigned)*ptr);
897 crc(&csum, bitv_chun
[all...]
/illumos-gate/usr/src/boot/sys/ufs/ffs/
H A Dfs.h130 * of pointers to blocks of struct csum; now there are just a few
134 * is taken away to point to a contiguous array of struct csum for
242 struct csum { struct
315 struct csum fs_old_cstotal; /* cylinder summary information */
329 struct csum *fs_csp; /* (u) cg summary info buffer */
481 struct csum cg_cs; /* cylinder summary information */
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_manage.c134 s32 ret_val, hdr_csum, csum; local
164 csum = e1000_calculate_checksum((u8 *)hdr,
170 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) {
H A De1000_vf.h104 u16 csum; /* Packet Checksum */ member in struct:e1000_adv_rx_desc::__anon150::__anon151::__anon154::__anon155
H A De1000_82575.h213 __le16 csum; /* Packet Checksum */ member in struct:e1000_adv_rx_desc::__anon112::__anon113::__anon116::__anon117
H A De1000_hw.h383 __le16 csum; /* Packet checksum */ member in struct:e1000_rx_desc
402 __le16 csum; /* Packet Checksum */ member in struct:e1000_rx_desc_extended::__anon213::__anon214::__anon215::__anon216
432 __le16 csum; /* Packet Checksum */ member in struct:e1000_rx_desc_packet_split::__anon219::__anon220::__anon221::__anon222
/illumos-gate/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_phy.c123 u8 csum; local
128 csum = ixgbe_ones_comp_byte_add(reg_high, reg & 0xFF);
129 csum = ~csum;
143 /* Write csum */
144 if (ixgbe_out_i2c_byte_ack(hw, csum))
157 /* Get csum */
231 u8 csum; local
234 csum = ixgbe_ones_comp_byte_add(reg_high, reg & 0xFF);
235 csum
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c393 fsp->fs_u.fs_csp = (struct csum *)(void *)sip;
406 struct csum *cs = &fsp->fs_cs(fsp, i);
430 int32_t csum = 0; local
435 csum += *lp++;
436 *sp = csum;
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxnbo.c152 uint32_t pflags, csum; local
176 mac_hcksum_get(mp, NULL, NULL, NULL, &csum, &pflags);
184 (csum == 0xffff)))
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c445 struct csum *fscs;
570 struct csum *grow_fscs;
617 static struct csum *read_summaryinfo(struct fs *);
2038 * The csum records are stored in cylinder group 0, starting at
2043 fragroundup(&sblock, sblock.fs_ncg * sizeof (struct csum));
2044 i = sblock.fs_bsize / sizeof (struct csum);
2048 fscs = (struct csum *)calloc(1, sblock.fs_cssize);
2314 * write the superblock and csum information
2508 struct csum *cs;
3872 * divided by (sizeof csum) {1
[all...]

Completed in 221 milliseconds

12