Searched defs:csum (Results 1 - 25 of 35) sorted by relevance

12

/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);
/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...]
/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
/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/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/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/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/grub/grub-0.97/stage2/
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 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 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/uts/common/fs/ufs/
H A Dlufs.c187 int32_t csum = 0; local
192 csum += *lp++;
193 *sp = csum;
/illumos-gate/usr/src/uts/common/io/chxge/
H A Dsge.c321 uint16_t csum; local
356 csum = calc_ocsum(m0,
363 ((struct udphdr *)(csum_loc))->uh_sum = csum;
986 cksum = p->csum;
H A Dsge.h537 __u16 csum; member in struct:cpl_rx_pkt
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Def10_nvram.c590 uint32_t csum; local
597 csum = 0;
602 csum += __LE_TO_CPU_32(*ptr++);
604 return (csum);
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/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...]
H A Dixgbe_x550.c2296 * @csum: address of checksum to update
2301 u16 size, u16 *csum, u16 *buffer,
2356 *csum += local_buffer[i];
2300 ixgbe_checksum_ptr_x550(struct ixgbe_hw *hw, u16 ptr, u16 size, u16 *csum, u16 *buffer, u32 buffer_size) argument
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c2652 int32_t csum = 0; local
2657 csum += *lp++;
2658 *sp = csum;
/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/common/io/
H A Dbscv.c2275 uint16_t csum; local
2282 csum = bscv_get8_locked(ssp, chan_general, EBUS_IDX_CHECK_HI, &res)
2284 csum |= bscv_get8_locked(ssp, chan_general, EBUS_IDX_CHECK_LO, &res);
2285 info.fchksum = csum;
2602 uint16_t csum; local
2613 csum = bscv_get8_locked(ssp, chan_general, EBUS_IDX_CHECK_HI, &res)
2615 csum |= bscv_get8_locked(ssp, chan_general, EBUS_IDX_CHECK_LO, &res);
2616 info2.fchksum = csum;
/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 */

Completed in 4727 milliseconds

12