/linux-6.1.9/drivers/video/fbdev/ |
D | metronomefb.c | 178 u8 cksum; in load_waveform() local 205 cksum = calc_cksum(32, 47, mem); in load_waveform() 206 if (cksum != wfm_hdr->wfm_cs) { in load_waveform() 207 dev_err(dev, "Error: bad cksum %x != %x\n", cksum, in load_waveform() 238 cksum = calc_cksum(sizeof(*wfm_hdr), cksum_idx, mem); in load_waveform() 239 if (cksum != mem[cksum_idx]) { in load_waveform() 241 " %x != %x\n", cksum, mem[cksum_idx]); in load_waveform() 250 cksum = calc_cksum(cksum_idx - 3, cksum_idx, mem); in load_waveform() 251 if (cksum != mem[cksum_idx]) { in load_waveform() 253 " %x != %x\n", cksum, mem[cksum_idx]); in load_waveform() [all …]
|
/linux-6.1.9/arch/powerpc/boot/ |
D | mktree.c | 46 unsigned int cksum, *cp; in main() local 92 cksum = 0; in main() 95 cksum += *cp++; in main() 131 cksum += *cp++; in main() 140 bt.bb_checksum = htonl(cksum); in main()
|
/linux-6.1.9/net/sunrpc/auth_gss/ |
D | gss_krb5_seqnum.c | 47 unsigned char *cksum, unsigned char *buf) in krb5_make_seq_num() argument 66 code = krb5_encrypt(key, cksum, plain, buf, 8); in krb5_make_seq_num() 73 unsigned char *cksum, in krb5_get_seq_num() argument 87 if ((code = krb5_decrypt(key, cksum, buf, plain, 8))) in krb5_get_seq_num()
|
D | gss_krb5_unseal.c | 113 cksumkey = ctx->cksum; in gss_verify_mic_v1()
|
D | gss_krb5_seal.c | 146 cksumkey = ctx->cksum; in gss_get_mic_v1()
|
/linux-6.1.9/arch/sparc/kernel/ |
D | idprom.c | 74 unsigned char cksum, i, *ptr = (unsigned char *)idprom; in calc_idprom_cksum() local 76 for (i = cksum = 0; i <= 0x0E; i++) in calc_idprom_cksum() 77 cksum ^= *ptr++; in calc_idprom_cksum() 79 return cksum; in calc_idprom_cksum()
|
/linux-6.1.9/arch/m68k/sun3/ |
D | idprom.c | 103 unsigned char cksum, i, *ptr = (unsigned char *)idprom; in calc_idprom_cksum() local 105 for (i = cksum = 0; i <= 0x0E; i++) in calc_idprom_cksum() 106 cksum ^= *ptr++; in calc_idprom_cksum() 108 return cksum; in calc_idprom_cksum()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | microcode_intel.h | 12 unsigned int cksum; member 29 unsigned int cksum; member 34 unsigned int cksum; member
|
/linux-6.1.9/drivers/usb/serial/ |
D | garmin_gps.c | 339 __u8 cksum = 0; in gsp_send_ack() local 348 cksum += ACK; in gsp_send_ack() 351 cksum += 2; in gsp_send_ack() 354 cksum += pkt_id; in gsp_send_ack() 360 *ptr++ = (-cksum) & 0xFF; in gsp_send_ack() 388 int cksum = 0; in gsp_rec_packet() local 402 cksum += *recpkt++; in gsp_rec_packet() 403 cksum += *recpkt++; in gsp_rec_packet() 413 cksum += *recpkt++; in gsp_rec_packet() 417 if (((cksum + *recpkt) & 0xff) != 0) { in gsp_rec_packet() [all …]
|
/linux-6.1.9/fs/nfsd/ |
D | nfs4recover.c | 111 struct xdr_netobj cksum; in nfs4_make_rec_clidname() local 123 cksum.len = crypto_shash_digestsize(tfm); in nfs4_make_rec_clidname() 124 cksum.data = kmalloc(cksum.len, GFP_KERNEL); in nfs4_make_rec_clidname() 125 if (cksum.data == NULL) { in nfs4_make_rec_clidname() 131 cksum.data); in nfs4_make_rec_clidname() 135 md5_to_hex(dname, cksum.data); in nfs4_make_rec_clidname() 139 kfree(cksum.data); in nfs4_make_rec_clidname() 1141 struct xdr_netobj cksum; in nfsd4_cld_create_v2() local 1164 cksum.len = crypto_shash_digestsize(tfm); in nfsd4_cld_create_v2() 1165 cksum.data = kmalloc(cksum.len, GFP_KERNEL); in nfsd4_cld_create_v2() [all …]
|
/linux-6.1.9/drivers/scsi/esas2r/ |
D | esas2r_flash.c | 99 u32 cksum = seed; in esas2r_calc_byte_xor_cksum() local 100 u8 *p = (u8 *)&cksum; in esas2r_calc_byte_xor_cksum() 106 cksum = cksum ^ *addr; in esas2r_calc_byte_xor_cksum() 111 cksum = cksum ^ *(u32 *)addr; in esas2r_calc_byte_xor_cksum() 116 cksum = cksum ^ *addr; in esas2r_calc_byte_xor_cksum() 125 u8 cksum = seed; in esas2r_calc_byte_cksum() local 128 cksum = cksum + p[len]; in esas2r_calc_byte_cksum() 129 return cksum; in esas2r_calc_byte_cksum() 182 u8 cksum = 0; in build_flash_msg() local 187 cksum = esas2r_calc_byte_xor_cksum(sgc->cur_offset, in build_flash_msg() [all …]
|
D | esas2r_vda.c | 349 u8 cksum, in esas2r_build_flash_req() argument 367 vrq->checksum = cksum; in esas2r_build_flash_req()
|
/linux-6.1.9/include/linux/sunrpc/ |
D | gss_krb5.h | 108 u8 cksum[GSS_KRB5_MAX_KEYLEN]; member 243 unsigned int usage, struct xdr_netobj *cksum); 280 u32 seqnum, unsigned char *cksum, unsigned char *buf); 284 unsigned char *cksum,
|
/linux-6.1.9/net/rxrpc/ |
D | protocol.h | 64 __be16 cksum; /* kerberos security checksum */ member 85 __be16 cksum; /* kerberos security checksum */ member
|
D | recvmsg.c | 284 u16 cksum = sp->hdr.cksum; in rxrpc_verify_packet() local 296 cksum = ntohs(tmp); in rxrpc_verify_packet() 301 seq, cksum); in rxrpc_verify_packet()
|
D | rxkad.c | 417 sp->hdr.cksum = y; in rxkad_secure_packet() 623 u16 cksum; in rxkad_verify_packet() local 653 cksum = (y >> 16) & 0xffff; in rxkad_verify_packet() 654 if (cksum == 0) in rxkad_verify_packet() 655 cksum = 1; /* zero checksums are not permitted */ in rxkad_verify_packet() 657 if (cksum != expected_cksum) { in rxkad_verify_packet()
|
/linux-6.1.9/arch/mips/include/asm/mach-ath25/ |
D | ath25_platform.h | 16 u16 cksum; /* checksum (starting with BD_REV 2) */ member
|
/linux-6.1.9/arch/powerpc/platforms/powermac/ |
D | nvram.c | 55 u8 cksum; member 269 if (hdr99->hdr.cksum != chrp_checksum(&hdr99->hdr)) { in core99_check() 489 hdr99->hdr.cksum = chrp_checksum(&hdr99->hdr); in core99_nvram_sync()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1140 u16 index, u16 cksum) in qlcnic_process_rxbuf() argument 1156 (cksum == STATUS_CKSUM_OK || cksum == STATUS_CKSUM_LOOP))) { in qlcnic_process_rxbuf() 1203 int index, length, cksum, pkt_offset, is_lb_pkt; in qlcnic_process_rcv() local 1217 cksum = qlcnic_get_sts_status(sts_data0); in qlcnic_process_rcv() 1220 skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); in qlcnic_process_rcv() 1498 int index, length, cksum, pkt_offset; in qlcnic_process_rcv_diag() local 1510 cksum = qlcnic_get_sts_status(sts_data0); in qlcnic_process_rcv_diag() 1513 skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); in qlcnic_process_rcv_diag() 1725 int index, length, cksum, is_lb_pkt; in qlcnic_83xx_process_rcv() local 1740 cksum = qlcnic_83xx_csum_status(sts_data[1]); in qlcnic_83xx_process_rcv() [all …]
|
/linux-6.1.9/tools/testing/selftests/powerpc/nx-gzip/ |
D | gunz_test.c | 949 uint32_t cksum, isize; in decompress_file() local 956 cksum = ((uint32_t) tail[0] | (uint32_t) tail[1]<<8 in decompress_file() 963 cksum, isize); in decompress_file() 965 if (cksum == cmdp->cpb.out_crc && isize == (uint32_t) in decompress_file()
|
/linux-6.1.9/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_desc.c | 40 int buf1_len, int pkt_len, int cksum) in sxgbe_prepare_tx_desc() argument 47 if (cksum) in sxgbe_prepare_tx_desc()
|
D | sxgbe_desc.h | 168 int buf1_len, int pkt_len, int cksum);
|
/linux-6.1.9/drivers/video/fbdev/matrox/ |
D | matroxfb_misc.c | 397 unsigned char cksum; in get_pins() local 406 cksum = 0x2E + 0x41 + pins_len; in get_pins() 408 cksum += *dst++ = readb(pins+i); in get_pins() 410 if (cksum) { in get_pins()
|
/linux-6.1.9/drivers/net/ethernet/cirrus/ |
D | cs89x0.c | 278 int i, cksum; in get_eeprom_cksum() local 280 cksum = 0; in get_eeprom_cksum() 282 cksum += buffer[i]; in get_eeprom_cksum() 283 cksum &= 0xffff; in get_eeprom_cksum() 284 if (cksum == 0) in get_eeprom_cksum()
|
/linux-6.1.9/drivers/net/ethernet/freescale/fman/ |
D | fman.h | 119 __be16 cksum; /* Running-sum */ member
|