/titanic_44/usr/src/cmd/lp/lib/msgs/ |
H A D | write_fifo.c | 57 unsigned short chksum = 0; local 63 CALC_CHKSUM (buf, size, chksum); 64 (void)htos (buf + TAIL_CHKSUM(size), chksum);
|
H A D | read_fifo.c | 135 chksum, local 213 chksum = stoh(fbp->psave + TAIL_CHKSUM(real_size)); 215 if (real_chksum != chksum)
|
/titanic_44/usr/src/uts/i86pc/i86hvm/io/ |
H A D | pv_cmdk.c | 217 uint_t *ip, chksum; in xdfs_devid_read() local 234 chksum = 0; in xdfs_devid_read() 237 chksum ^= ip[i]; in xdfs_devid_read() 238 if (DKD_GETCHKSUM(dkdevidp) != chksum) in xdfs_devid_read() 272 uint_t *ip, chksum; in xdfs_devid_fabricate() local 296 chksum = 0; in xdfs_devid_fabricate() 299 chksum ^= ip[i]; in xdfs_devid_fabricate() 302 DKD_FORMCHKSUM(chksum, dkdevidp); in xdfs_devid_fabricate()
|
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlge/ |
H A D | qlge_flash.c | 468 uint16_t chksum, *bp, data; in ql_flash_fltds() local 483 chksum = 0; in ql_flash_fltds() 489 chksum += data; in ql_flash_fltds() 509 if (chksum != 0 || qlge->fltds.signature != FLASH_FLTDS_SIGNATURE) { in ql_flash_fltds() 658 uint16_t chksum, *bp, data; in ql_flash_desc() local 672 chksum = 0; in ql_flash_desc() 678 chksum += data; in ql_flash_desc() 710 if (chksum != 0 || qlge->fdesc.flash_valid != FLASH_DESC_VAILD || in ql_flash_desc() 728 uint16_t chksum, *bp, data; in ql_flash_nic_config() local 742 chksum = 0; in ql_flash_nic_config() [all …]
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | devcache_impl.h | 53 uint16_t chksum; member 63 #define nvpf_chksum un.nvpf.chksum
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | nvfile.c | 1086 uint16_t chksum; in nvf_parse() local 1114 chksum = hdr.nvfh_hdrsum; in nvf_parse() 1123 (hdrsum != chksum)) { in nvf_parse() 1125 if (hdrsum != chksum) { in nvf_parse() 1128 filename, hdrsum, chksum); in nvf_parse() 1174 chksum = nvf_chksum(buf, hdr.nvfh_size); in nvf_parse() 1175 if (hdr.nvfh_datasum != chksum) { in nvf_parse() 1179 hdr.nvfh_datasum, chksum); in nvf_parse()
|
/titanic_44/usr/src/grub/grub-0.97/netboot/ |
H A D | nic.c | 374 ip->chksum = 0; in build_ip_hdr() 377 ip->chksum = ipchksum(buf, sizeof(struct iphdr) + option_len); in build_ip_hdr() 413 udp->chksum = 0; in build_udp_hdr() 414 if ((udp->chksum = udpchksum(ip, udp)) == 0) in build_udp_hdr() 415 udp->chksum = 0xffff; in build_udp_hdr() 762 igmp.igmp.chksum = 0; in send_igmp_reports() 764 igmp.igmp.chksum = ipchksum(&igmp.igmp, sizeof(igmp.igmp)); in send_igmp_reports() 845 igmp.igmp.chksum = 0; in leave_group() 847 igmp.igmp.chksum = ipchksum(&igmp.igmp, sizeof(igmp)); in leave_group() 964 if (udp->chksum && udpchksum(ip, udp)) { in await_reply()
|
H A D | igmp.h | 17 uint16_t chksum; member
|
H A D | udp.h | 20 uint16_t chksum; member
|
H A D | ip.h | 17 uint16_t chksum; member
|
H A D | ns8390.c | 634 unsigned short chksum; in eth_probe() local 638 chksum = 0; in eth_probe() 640 chksum += inb(eth_asic_base+i); in eth_probe() 642 if ((chksum & 0xFF) == 0xFF && in eth_probe()
|
/titanic_44/usr/src/cmd/bnu/ |
H A D | pk0.c | 42 static int pksize(), chksum(), pkaccept(); 175 sum = (unsigned)chksum(pk->p_ib[x], pk->p_rsize) ^ (unsigned)(cntl&0377); in pkaccept() 363 pk->p_osum[x] = chksum(pk->p_ob[x], pk->p_xsize); 573 chksum(s,n) in chksum() function
|
/titanic_44/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_sysevent.c | 280 uint32_t chksum; in sysev_replay() local 333 if ((chksum = sysev_checksum(nvbuf, in sysev_replay() 337 (u_longlong_t)off, chksum, ed.ed_chksum); in sysev_replay()
|
/titanic_44/usr/src/lib/libast/common/include/ |
H A D | tar.h | 100 char chksum[TCKSLEN]; member
|
/titanic_44/usr/src/lib/libast/amd64/include/ast/ |
H A D | tar.h | 109 char chksum[TCKSLEN]; member
|
/titanic_44/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | tar.h | 109 char chksum[TCKSLEN]; member
|
/titanic_44/usr/src/lib/libast/i386/include/ast/ |
H A D | tar.h | 109 char chksum[TCKSLEN]; member
|
/titanic_44/usr/src/lib/libast/sparc/include/ast/ |
H A D | tar.h | 109 char chksum[TCKSLEN]; member
|
/titanic_44/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_lib.c | 308 int chksum = oct_atoi(tar_hdr->th_chksum); in tlm_vfy_tar_checksum() local 322 "should be %d, is 0", chksum); in tlm_vfy_tar_checksum() 341 if (sum != chksum) in tlm_vfy_tar_checksum() 343 "should be %d, is %d", chksum, sum); in tlm_vfy_tar_checksum() 345 return ((sum == chksum) ? 1 : -1); in tlm_vfy_tar_checksum()
|
/titanic_44/usr/src/uts/common/inet/ilb/ |
H A D | ilb_nat.c | 409 adj_cksum(uint16_t *chksum, uint32_t adj_sum) in adj_cksum() argument 411 adj_sum += (uint16_t)~(*chksum); in adj_cksum() 414 *chksum = (uint16_t)~adj_sum; in adj_cksum()
|
/titanic_44/usr/src/uts/intel/io/dktp/disk/ |
H A D | cmdk.c | 1730 int chksum; in cmdk_devid_read() local 1753 chksum = 0; in cmdk_devid_read() 1756 chksum ^= ip[i]; in cmdk_devid_read() 1757 if (DKD_GETCHKSUM(dkdevidp) != chksum) in cmdk_devid_read() 1789 uint_t *ip, chksum; in cmdk_devid_fabricate() local 1821 chksum = 0; in cmdk_devid_fabricate() 1824 chksum ^= ip[i]; in cmdk_devid_fabricate() 1827 DKD_FORMCHKSUM(chksum, dkdevidp); in cmdk_devid_fabricate()
|
/titanic_44/usr/src/cmd/tar/ |
H A D | tar.c | 365 char chksum[8]; member 600 static int term, chksum, wflag, variable 1467 (void) sscanf(dblock.dbuf.chksum, "%8o", &Gen.g_cksum); in getdir() 1512 chksum = Gen.g_cksum; in getdir() 1525 if (chksum != checksum(&dblock)) { in getdir() 1526 if (chksum != checksum_signed(&dblock)) { in getdir() 1543 if (chksum != checksum(&dblock)) { in getdir() 2044 (void) sprintf(dblock.dbuf.chksum, in putfile() 2067 (void) sprintf(dblock.dbuf.chksum, "%07o", in putfile() 2311 (void) sprintf(dblock.dbuf.chksum, "%07o", checksum(&dblock)); in putfile() [all …]
|
/titanic_44/usr/src/cmd/cpio/ |
H A D | cpio.h | 254 char chksum[8]; member
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_nvram.c | 455 uint8_t *bufp, kv_len, *chksump, chksum = 0; in pmcs_validate_vpd() local 532 chksum += *chksump; in pmcs_validate_vpd() 535 if (chksum) { in pmcs_validate_vpd()
|
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_init.c | 446 uint8_t chksum = 0; in ql_nvram_config() local 465 chksum = (uint8_t)(chksum + (uint8_t)*wptr); in ql_nvram_config() 466 chksum = (uint8_t)(chksum + (uint8_t)(*wptr >> 8)); in ql_nvram_config() 473 if (rval != QL_SUCCESS || chksum || nv->id[0] != 'I' || in ql_nvram_config() 479 "nvram_version=%x\n", rval, chksum, nv->id[0], nv->id[1], in ql_nvram_config() 905 uint32_t index, addr, chksum, saved_chksum; in ql_nvram_24xx_config() local 924 chksum = saved_chksum = 0; in ql_nvram_24xx_config() 931 saved_chksum = chksum; in ql_nvram_24xx_config() 932 chksum += *longptr; in ql_nvram_24xx_config() 941 if (rval != QL_SUCCESS || chksum || nv->id[0] != 'I' || in ql_nvram_24xx_config() [all …]
|