cksum 103 arch/m68k/sun3/idprom.c unsigned char cksum, i, *ptr = (unsigned char *)idprom; cksum 105 arch/m68k/sun3/idprom.c for (i = cksum = 0; i <= 0x0E; i++) cksum 106 arch/m68k/sun3/idprom.c cksum ^= *ptr++; cksum 108 arch/m68k/sun3/idprom.c return cksum; cksum 16 arch/mips/include/asm/mach-ath25/ath25_platform.h u16 cksum; /* checksum (starting with BD_REV 2) */ cksum 46 arch/powerpc/boot/mktree.c unsigned int cksum, *cp; cksum 92 arch/powerpc/boot/mktree.c cksum = 0; cksum 95 arch/powerpc/boot/mktree.c cksum += *cp++; cksum 131 arch/powerpc/boot/mktree.c cksum += *cp++; cksum 140 arch/powerpc/boot/mktree.c bt.bb_checksum = htonl(cksum); cksum 55 arch/powerpc/platforms/powermac/nvram.c u8 cksum; cksum 269 arch/powerpc/platforms/powermac/nvram.c if (hdr99->hdr.cksum != chrp_checksum(&hdr99->hdr)) { cksum 489 arch/powerpc/platforms/powermac/nvram.c hdr99->hdr.cksum = chrp_checksum(&hdr99->hdr); cksum 74 arch/sparc/kernel/idprom.c unsigned char cksum, i, *ptr = (unsigned char *)idprom; cksum 76 arch/sparc/kernel/idprom.c for (i = cksum = 0; i <= 0x0E; i++) cksum 77 arch/sparc/kernel/idprom.c cksum ^= *ptr++; cksum 79 arch/sparc/kernel/idprom.c return cksum; cksum 12 arch/x86/include/asm/microcode_intel.h unsigned int cksum; cksum 29 arch/x86/include/asm/microcode_intel.h unsigned int cksum; cksum 34 arch/x86/include/asm/microcode_intel.h unsigned int cksum; cksum 311 arch/x86/kernel/cpu/microcode/intel.c sum = (mc_header->sig + mc_header->pf + mc_header->cksum) - cksum 312 arch/x86/kernel/cpu/microcode/intel.c (ext_sig->sig + ext_sig->pf + ext_sig->cksum); cksum 278 drivers/net/ethernet/cirrus/cs89x0.c int i, cksum; cksum 280 drivers/net/ethernet/cirrus/cs89x0.c cksum = 0; cksum 282 drivers/net/ethernet/cirrus/cs89x0.c cksum += buffer[i]; cksum 283 drivers/net/ethernet/cirrus/cs89x0.c cksum &= 0xffff; cksum 284 drivers/net/ethernet/cirrus/cs89x0.c if (cksum == 0) cksum 1359 drivers/net/ethernet/emulex/benet/be_cmds.h u32 cksum; cksum 1378 drivers/net/ethernet/emulex/benet/be_cmds.h u32 cksum; cksum 1388 drivers/net/ethernet/emulex/benet/be_cmds.h u32 cksum; cksum 1397 drivers/net/ethernet/emulex/benet/be_cmds.h u32 cksum; cksum 1409 drivers/net/ethernet/emulex/benet/be_cmds.h u32 cksum; cksum 146 drivers/net/ethernet/freescale/fman/fman.h __be16 cksum; /* Running-sum */ cksum 1487 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring, u16 index, u16 cksum) cksum 1502 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c && cksum == STATUS_CKSUM_OK)) { cksum 1524 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c int index, length, cksum, pkt_offset; cksum 1538 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c cksum = netxen_get_sts_status(sts_data0); cksum 1541 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c skb = netxen_process_rxbuf(adapter, rds_ring, index, cksum); cksum 266 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h u16 cksum; cksum 1140 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c u16 index, u16 cksum) cksum 1156 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c (cksum == STATUS_CKSUM_OK || cksum == STATUS_CKSUM_LOOP))) { cksum 1203 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int index, length, cksum, pkt_offset, is_lb_pkt; cksum 1217 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c cksum = qlcnic_get_sts_status(sts_data0); cksum 1220 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); cksum 1497 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int index, length, cksum, pkt_offset; cksum 1509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c cksum = qlcnic_get_sts_status(sts_data0); cksum 1512 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); cksum 1726 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int index, length, cksum, is_lb_pkt; cksum 1741 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c cksum = qlcnic_83xx_csum_status(sts_data[1]); cksum 1742 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); cksum 40 drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c int buf1_len, int pkt_len, int cksum) cksum 47 drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c if (cksum) cksum 168 drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.h int buf1_len, int pkt_len, int cksum); cksum 77 drivers/net/wireless/ath/ath5k/eeprom.c u32 cksum, offset, eep_max = AR5K_EEPROM_INFO_MAX; cksum 118 drivers/net/wireless/ath/ath5k/eeprom.c for (cksum = 0, offset = 0; offset < eep_max; offset++) { cksum 120 drivers/net/wireless/ath/ath5k/eeprom.c cksum ^= val; cksum 122 drivers/net/wireless/ath/ath5k/eeprom.c if (cksum != AR5K_EEPROM_INFO_CKSUM) { cksum 125 drivers/net/wireless/ath/ath5k/eeprom.c cksum, eep_max, cksum 615 drivers/scsi/BusLogic.h unsigned short cksum; /* Bytes 62-63 */ cksum 225 drivers/scsi/dc395x.c u16 cksum; /* 126,127 */ cksum 4060 drivers/scsi/dc395x.c u16 cksum; cksum 4066 drivers/scsi/dc395x.c cksum = 0; cksum 4069 drivers/scsi/dc395x.c cksum += *w_eeprom; cksum 4070 drivers/scsi/dc395x.c if (cksum != 0x1234) { cksum 4104 drivers/scsi/dc395x.c eeprom->cksum = 0x00; cksum 4105 drivers/scsi/dc395x.c for (w_addr = 0, cksum = 0, w_eeprom = (u16 *)eeprom; cksum 4107 drivers/scsi/dc395x.c cksum += *w_eeprom; cksum 4109 drivers/scsi/dc395x.c *w_eeprom = 0x1234 - cksum; cksum 1037 drivers/scsi/esas2r/esas2r.h u8 cksum, cksum 99 drivers/scsi/esas2r/esas2r_flash.c u32 cksum = seed; cksum 100 drivers/scsi/esas2r/esas2r_flash.c u8 *p = (u8 *)&cksum; cksum 106 drivers/scsi/esas2r/esas2r_flash.c cksum = cksum ^ *addr; cksum 111 drivers/scsi/esas2r/esas2r_flash.c cksum = cksum ^ *(u32 *)addr; cksum 116 drivers/scsi/esas2r/esas2r_flash.c cksum = cksum ^ *addr; cksum 125 drivers/scsi/esas2r/esas2r_flash.c u8 cksum = seed; cksum 128 drivers/scsi/esas2r/esas2r_flash.c cksum = cksum + p[len]; cksum 129 drivers/scsi/esas2r/esas2r_flash.c return cksum; cksum 182 drivers/scsi/esas2r/esas2r_flash.c u8 cksum = 0; cksum 187 drivers/scsi/esas2r/esas2r_flash.c cksum = esas2r_calc_byte_xor_cksum(sgc->cur_offset, cksum 197 drivers/scsi/esas2r/esas2r_flash.c cksum, cksum 667 drivers/scsi/esas2r/esas2r_flash.c u16 cksum; cksum 673 drivers/scsi/esas2r/esas2r_flash.c cksum = 0; cksum 676 drivers/scsi/esas2r/esas2r_flash.c cksum = cksum + le16_to_cpu(*pw); cksum 678 drivers/scsi/esas2r/esas2r_flash.c return cksum; cksum 349 drivers/scsi/esas2r/esas2r_vda.c u8 cksum, cksum 367 drivers/scsi/esas2r/esas2r_vda.c vrq->checksum = cksum; cksum 3674 drivers/scsi/megaraid.c u16 cksum = 0; cksum 3701 drivers/scsi/megaraid.c cksum = 0; cksum 3704 drivers/scsi/megaraid.c cksum += (u16)(*cksum_p++); cksum 3707 drivers/scsi/megaraid.c if (prv_bios_data->cksum == (u16)(0-cksum) ) { cksum 647 drivers/scsi/megaraid.h u16 cksum; /* 0-(sum of first 13 bytes of this structure) */ cksum 759 drivers/scsi/megaraid/mbox_defs.h uint16_t cksum; cksum 336 drivers/usb/serial/garmin_gps.c __u8 cksum = 0; cksum 345 drivers/usb/serial/garmin_gps.c cksum += ACK; cksum 348 drivers/usb/serial/garmin_gps.c cksum += 2; cksum 351 drivers/usb/serial/garmin_gps.c cksum += pkt_id; cksum 357 drivers/usb/serial/garmin_gps.c *ptr++ = (-cksum) & 0xFF; cksum 385 drivers/usb/serial/garmin_gps.c int cksum = 0; cksum 399 drivers/usb/serial/garmin_gps.c cksum += *recpkt++; cksum 400 drivers/usb/serial/garmin_gps.c cksum += *recpkt++; cksum 410 drivers/usb/serial/garmin_gps.c cksum += *recpkt++; cksum 414 drivers/usb/serial/garmin_gps.c if (((cksum + *recpkt) & 0xff) != 0) { cksum 416 drivers/usb/serial/garmin_gps.c __func__, -cksum & 0xff, *recpkt); cksum 590 drivers/usb/serial/garmin_gps.c int cksum = 0; cksum 665 drivers/usb/serial/garmin_gps.c cksum += pktid; cksum 667 drivers/usb/serial/garmin_gps.c cksum += datalen; cksum 674 drivers/usb/serial/garmin_gps.c cksum += c; cksum 679 drivers/usb/serial/garmin_gps.c cksum = -cksum & 0xFF; cksum 680 drivers/usb/serial/garmin_gps.c *dst++ = cksum; cksum 681 drivers/usb/serial/garmin_gps.c if (cksum == DLE) cksum 397 drivers/video/fbdev/matrox/matroxfb_misc.c unsigned char cksum; cksum 406 drivers/video/fbdev/matrox/matroxfb_misc.c cksum = 0x2E + 0x41 + pins_len; cksum 408 drivers/video/fbdev/matrox/matroxfb_misc.c cksum += *dst++ = readb(pins+i); cksum 410 drivers/video/fbdev/matrox/matroxfb_misc.c if (cksum) { cksum 178 drivers/video/fbdev/metronomefb.c u8 cksum; cksum 205 drivers/video/fbdev/metronomefb.c cksum = calc_cksum(32, 47, mem); cksum 206 drivers/video/fbdev/metronomefb.c if (cksum != wfm_hdr->wfm_cs) { cksum 207 drivers/video/fbdev/metronomefb.c dev_err(dev, "Error: bad cksum %x != %x\n", cksum, cksum 238 drivers/video/fbdev/metronomefb.c cksum = calc_cksum(sizeof(*wfm_hdr), cksum_idx, mem); cksum 239 drivers/video/fbdev/metronomefb.c if (cksum != mem[cksum_idx]) { cksum 241 drivers/video/fbdev/metronomefb.c " %x != %x\n", cksum, mem[cksum_idx]); cksum 250 drivers/video/fbdev/metronomefb.c cksum = calc_cksum(cksum_idx - 3, cksum_idx, mem); cksum 251 drivers/video/fbdev/metronomefb.c if (cksum != mem[cksum_idx]) { cksum 253 drivers/video/fbdev/metronomefb.c " %x != %x\n", cksum, mem[cksum_idx]); cksum 262 drivers/video/fbdev/metronomefb.c cksum = calc_cksum(cksum_idx - 3, cksum_idx, mem); cksum 263 drivers/video/fbdev/metronomefb.c if (cksum != mem[cksum_idx]) { cksum 265 drivers/video/fbdev/metronomefb.c " %x != %x\n", cksum, mem[cksum_idx]); cksum 297 drivers/video/fbdev/metronomefb.c cksum = calc_cksum(owfm_idx, cksum_idx, mem); cksum 298 drivers/video/fbdev/metronomefb.c if (cksum != mem[cksum_idx]) { cksum 300 drivers/video/fbdev/metronomefb.c " %x != %x\n", cksum, mem[cksum_idx]); cksum 440 drivers/video/fbdev/metronomefb.c u16 cksum; cksum 447 drivers/video/fbdev/metronomefb.c cksum = calc_img_cksum((u16 *) par->metromem_img, fbsize/2); cksum 448 drivers/video/fbdev/metronomefb.c *((u16 *)(par->metromem_img) + fbsize/2) = cksum; cksum 471 drivers/video/fbdev/metronomefb.c u16 cksum; cksum 478 drivers/video/fbdev/metronomefb.c cksum = metronomefb_dpy_update_page(par, cksum 481 drivers/video/fbdev/metronomefb.c par->csum_table[cur->index] = cksum; cksum 482 drivers/video/fbdev/metronomefb.c par->metromem_img_csum += cksum; cksum 588 fs/fat/namei_vfat.c unsigned char cksum, lcase; cksum 622 fs/fat/namei_vfat.c cksum = fat_checksum(msdos_name); cksum 629 fs/fat/namei_vfat.c ps->alias_checksum = cksum; cksum 111 fs/nfsd/nfs4recover.c struct xdr_netobj cksum; cksum 123 fs/nfsd/nfs4recover.c cksum.len = crypto_shash_digestsize(tfm); cksum 124 fs/nfsd/nfs4recover.c cksum.data = kmalloc(cksum.len, GFP_KERNEL); cksum 125 fs/nfsd/nfs4recover.c if (cksum.data == NULL) { cksum 136 fs/nfsd/nfs4recover.c cksum.data); cksum 143 fs/nfsd/nfs4recover.c md5_to_hex(dname, cksum.data); cksum 147 fs/nfsd/nfs4recover.c kfree(cksum.data); cksum 1149 fs/nfsd/nfs4recover.c struct xdr_netobj cksum; cksum 1174 fs/nfsd/nfs4recover.c cksum.len = crypto_shash_digestsize(tfm); cksum 1175 fs/nfsd/nfs4recover.c cksum.data = kmalloc(cksum.len, GFP_KERNEL); cksum 1176 fs/nfsd/nfs4recover.c if (cksum.data == NULL) { cksum 1181 fs/nfsd/nfs4recover.c cksum.data); cksum 1184 fs/nfsd/nfs4recover.c kfree(cksum.data); cksum 1187 fs/nfsd/nfs4recover.c cmsg->cm_u.cm_clntinfo.cc_princhash.cp_len = cksum.len; cksum 1189 fs/nfsd/nfs4recover.c cksum.data, cksum.len); cksum 1190 fs/nfsd/nfs4recover.c kfree(cksum.data); cksum 1344 fs/nfsd/nfs4recover.c struct xdr_netobj cksum; cksum 1385 fs/nfsd/nfs4recover.c cksum.len = crypto_shash_digestsize(tfm); cksum 1386 fs/nfsd/nfs4recover.c cksum.data = kmalloc(cksum.len, GFP_KERNEL); cksum 1387 fs/nfsd/nfs4recover.c if (cksum.data == NULL) cksum 1390 fs/nfsd/nfs4recover.c cksum.data); cksum 1393 fs/nfsd/nfs4recover.c kfree(cksum.data); cksum 1396 fs/nfsd/nfs4recover.c if (memcmp(crp->cr_princhash.data, cksum.data, cksum 1398 fs/nfsd/nfs4recover.c kfree(cksum.data); cksum 1401 fs/nfsd/nfs4recover.c kfree(cksum.data); cksum 108 include/linux/sunrpc/gss_krb5.h u8 cksum[GSS_KRB5_MAX_KEYLEN]; cksum 245 include/linux/sunrpc/gss_krb5.h unsigned int usage, struct xdr_netobj *cksum); cksum 282 include/linux/sunrpc/gss_krb5.h u32 seqnum, unsigned char *cksum, unsigned char *buf); cksum 286 include/linux/sunrpc/gss_krb5.h unsigned char *cksum, cksum 322 include/linux/sunrpc/gss_krb5.h unsigned char *cksum); cksum 179 net/rxrpc/ar-internal.h u16 cksum; /* kerberos security checksum */ cksum 64 net/rxrpc/protocol.h __be16 cksum; /* kerberos security checksum */ cksum 85 net/rxrpc/protocol.h __be16 cksum; /* kerberos security checksum */ cksum 238 net/rxrpc/recvmsg.c u16 cksum = sp->hdr.cksum; cksum 250 net/rxrpc/recvmsg.c cksum = ntohs(tmp); cksum 255 net/rxrpc/recvmsg.c seq, cksum); cksum 325 net/rxrpc/rxkad.c sp->hdr.cksum = y; cksum 535 net/rxrpc/rxkad.c u16 cksum; cksum 565 net/rxrpc/rxkad.c cksum = (y >> 16) & 0xffff; cksum 566 net/rxrpc/rxkad.c if (cksum == 0) cksum 567 net/rxrpc/rxkad.c cksum = 1; /* zero checksums are not permitted */ cksum 569 net/rxrpc/rxkad.c if (cksum != expected_cksum) { cksum 953 net/sunrpc/auth_gss/gss_krb5_crypto.c unsigned char *cksum) cksum 995 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_shash_digest(desc, cksum, 8, Kseq); cksum 383 net/sunrpc/auth_gss/gss_krb5_mech.c keyout.data = ctx->cksum; cksum 442 net/sunrpc/auth_gss/gss_krb5_mech.c err = crypto_shash_digest(desc, sigkeyconstant, slen, ctx->cksum); cksum 146 net/sunrpc/auth_gss/gss_krb5_seal.c cksumkey = ctx->cksum; cksum 44 net/sunrpc/auth_gss/gss_krb5_seqnum.c unsigned char *cksum, unsigned char *buf) cksum 68 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_rc4_setup_seq_key(kctx, cipher, cksum); cksum 72 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_encrypt(cipher, cksum, plain, buf, 8); cksum 83 net/sunrpc/auth_gss/gss_krb5_seqnum.c unsigned char *cksum, unsigned char *buf) cksum 90 net/sunrpc/auth_gss/gss_krb5_seqnum.c cksum, buf); cksum 106 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_encrypt(key, cksum, plain, buf, 8); cksum 112 net/sunrpc/auth_gss/gss_krb5_seqnum.c krb5_get_rc4_seq_num(struct krb5_ctx *kctx, unsigned char *cksum, cksum 124 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_rc4_setup_seq_key(kctx, cipher, cksum); cksum 134 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_decrypt(cipher, cksum, buf, plain, 8); cksum 157 net/sunrpc/auth_gss/gss_krb5_seqnum.c unsigned char *cksum, cksum 168 net/sunrpc/auth_gss/gss_krb5_seqnum.c return krb5_get_rc4_seq_num(kctx, cksum, buf, cksum 174 net/sunrpc/auth_gss/gss_krb5_seqnum.c if ((code = krb5_decrypt(key, cksum, buf, plain, 8))) cksum 113 net/sunrpc/auth_gss/gss_krb5_unseal.c cksumkey = ctx->cksum; cksum 217 net/sunrpc/auth_gss/gss_krb5_wrap.c cksumkey = kctx->cksum; cksum 352 net/sunrpc/auth_gss/gss_krb5_wrap.c cksumkey = kctx->cksum;