Home
last modified time | relevance | path

Searched refs:cksum (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.1.9/drivers/video/fbdev/
Dmetronomefb.c178 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/
Dmktree.c46 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/
Dgss_krb5_seqnum.c47 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()
Dgss_krb5_unseal.c113 cksumkey = ctx->cksum; in gss_verify_mic_v1()
Dgss_krb5_seal.c146 cksumkey = ctx->cksum; in gss_get_mic_v1()
/linux-6.1.9/arch/sparc/kernel/
Didprom.c74 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/
Didprom.c103 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/
Dmicrocode_intel.h12 unsigned int cksum; member
29 unsigned int cksum; member
34 unsigned int cksum; member
/linux-6.1.9/drivers/usb/serial/
Dgarmin_gps.c339 __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/
Dnfs4recover.c111 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/
Desas2r_flash.c99 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 …]
Desas2r_vda.c349 u8 cksum, in esas2r_build_flash_req() argument
367 vrq->checksum = cksum; in esas2r_build_flash_req()
/linux-6.1.9/include/linux/sunrpc/
Dgss_krb5.h108 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/
Dprotocol.h64 __be16 cksum; /* kerberos security checksum */ member
85 __be16 cksum; /* kerberos security checksum */ member
Drecvmsg.c284 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()
Drxkad.c417 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/
Dath25_platform.h16 u16 cksum; /* checksum (starting with BD_REV 2) */ member
/linux-6.1.9/arch/powerpc/platforms/powermac/
Dnvram.c55 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/
Dqlcnic_io.c1140 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/
Dgunz_test.c949 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/
Dsxgbe_desc.c40 int buf1_len, int pkt_len, int cksum) in sxgbe_prepare_tx_desc() argument
47 if (cksum) in sxgbe_prepare_tx_desc()
Dsxgbe_desc.h168 int buf1_len, int pkt_len, int cksum);
/linux-6.1.9/drivers/video/fbdev/matrox/
Dmatroxfb_misc.c397 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/
Dcs89x0.c278 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/
Dfman.h119 __be16 cksum; /* Running-sum */ member

12