Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/net/rxrpc/
Dprotocol.h64 __be16 cksum; /* kerberos security checksum */ member
85 __be16 cksum; /* kerberos security checksum */ member
Drxkad.c381 txb->wire.cksum = htons(y); in rxkad_secure_packet()
561 u16 cksum; in rxkad_verify_packet() local
591 cksum = (y >> 16) & 0xffff; in rxkad_verify_packet()
592 if (cksum == 0) in rxkad_verify_packet()
593 cksum = 1; /* zero checksums are not permitted */ in rxkad_verify_packet()
595 if (cksum != sp->hdr.cksum) { in rxkad_verify_packet()
/linux-6.6.21/arch/x86/include/asm/
Dmicrocode.h33 unsigned int cksum; member
/linux-6.6.21/arch/mips/include/asm/mach-ath25/
Dath25_platform.h16 u16 cksum; /* checksum (starting with BD_REV 2) */ member
/linux-6.6.21/arch/x86/kernel/cpu/microcode/
Dintel.c45 unsigned int cksum; member
50 unsigned int cksum; member
231 sum = (mc_header->sig + mc_header->pf + mc_header->cksum) - in intel_microcode_sanity_check()
232 (ext_sig->sig + ext_sig->pf + ext_sig->cksum); in intel_microcode_sanity_check()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/drivers/net/ethernet/cirrus/
Dcs89x0.c279 int i, cksum; in get_eeprom_cksum() local
281 cksum = 0; in get_eeprom_cksum()
283 cksum += buffer[i]; in get_eeprom_cksum()
284 cksum &= 0xffff; in get_eeprom_cksum()
285 if (cksum == 0) in get_eeprom_cksum()
/linux-6.6.21/drivers/net/ethernet/freescale/fman/
Dfman.h119 __be16 cksum; /* Running-sum */ member
/linux-6.6.21/drivers/net/wireless/ath/ath5k/
Deeprom.c77 u32 cksum, offset, eep_max = AR5K_EEPROM_INFO_MAX; in ath5k_eeprom_init_header() local
118 for (cksum = 0, offset = 0; offset < eep_max; offset++) { in ath5k_eeprom_init_header()
120 cksum ^= val; in ath5k_eeprom_init_header()
122 if (cksum != AR5K_EEPROM_INFO_CKSUM) { in ath5k_eeprom_init_header()
125 cksum, eep_max, in ath5k_eeprom_init_header()
/linux-6.6.21/net/sunrpc/auth_gss/
Dgss_krb5_internal.h76 u8 cksum[GSS_KRB5_MAX_KEYLEN]; member
/linux-6.6.21/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c1486 struct nx_host_rds_ring *rds_ring, u16 index, u16 cksum) in netxen_process_rxbuf() argument
1501 && cksum == STATUS_CKSUM_OK)) { in netxen_process_rxbuf()
1523 int index, length, cksum, pkt_offset; in netxen_process_rcv() local
1537 cksum = netxen_get_sts_status(sts_data0); in netxen_process_rcv()
1540 skb = netxen_process_rxbuf(adapter, rds_ring, index, cksum); in netxen_process_rcv()
/linux-6.6.21/fs/fat/
Dnamei_vfat.c588 unsigned char cksum, lcase; in vfat_build_slots() local
622 cksum = fat_checksum(msdos_name); in vfat_build_slots()
629 ps->alias_checksum = cksum; in vfat_build_slots()

12