/drivers/infiniband/hw/qib/ |
D | qib_eeprom.c | 117 u8 csum = 0, len; in flash_csum() local 128 csum += *ip++; in flash_csum() 129 csum -= ifp->if_csum; in flash_csum() 130 csum = ~csum; in flash_csum() 132 ifp->if_csum = csum; in flash_csum() 134 return csum; in flash_csum() 150 u8 csum, *bguid; in qib_get_eeprom_info() local 199 csum = flash_csum(ifp, 0); in qib_get_eeprom_info() 200 if (csum != ifp->if_csum) { in qib_get_eeprom_info() 203 csum, ifp->if_csum); in qib_get_eeprom_info()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_fru_eeprom.c | 105 u8 csum; in amdgpu_fru_get_product_info() local 129 for (csum = 0; len > 0; len--) in amdgpu_fru_get_product_info() 130 csum += buf[len - 1]; in amdgpu_fru_get_product_info() 131 if (csum) { in amdgpu_fru_get_product_info() 132 DRM_ERROR("Bad IPMI Common Header checksum: 0x%02x", csum); in amdgpu_fru_get_product_info() 169 for (csum = 0; size > 0; size--) in amdgpu_fru_get_product_info() 170 csum += pia[size - 1]; in amdgpu_fru_get_product_info() 171 if (csum) { in amdgpu_fru_get_product_info() 172 DRM_ERROR("Bad Product Info Area checksum: 0x%02x", csum); in amdgpu_fru_get_product_info()
|
D | amdgpu_ras_eeprom.c | 354 u8 *pp, csum; in __calc_hdr_byte_sum() local 360 csum = 0; in __calc_hdr_byte_sum() 362 csum += *pp; in __calc_hdr_byte_sum() 364 return csum; in __calc_hdr_byte_sum() 370 u8 *pp, csum; in __calc_ras_info_byte_sum() local 375 csum = 0; in __calc_ras_info_byte_sum() 377 csum += *pp; in __calc_ras_info_byte_sum() 379 return csum; in __calc_ras_info_byte_sum() 389 u8 csum; in amdgpu_ras_eeprom_correct_header_tag() local 391 csum = -hdr->checksum; in amdgpu_ras_eeprom_correct_header_tag() [all …]
|
/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 303 u32 csum, ehsum; in ioc3_tcpudp_checksum() local 331 csum = hwsum + in ioc3_tcpudp_checksum() 344 csum += 0xffff ^ ehsum; in ioc3_tcpudp_checksum() 351 csum += 0xffff ^ (u16)((cp[1] << 8) | cp[0]); in ioc3_tcpudp_checksum() 352 csum += 0xffff ^ (u16)((cp[3] << 8) | cp[2]); in ioc3_tcpudp_checksum() 354 csum += 0xffff ^ (u16)((cp[0] << 8) | cp[1]); in ioc3_tcpudp_checksum() 355 csum += 0xffff ^ (u16)((cp[2] << 8) | cp[3]); in ioc3_tcpudp_checksum() 358 csum = (csum & 0xffff) + (csum >> 16); in ioc3_tcpudp_checksum() 359 csum = (csum & 0xffff) + (csum >> 16); in ioc3_tcpudp_checksum() 361 if (csum == 0xffff) in ioc3_tcpudp_checksum() [all …]
|
/drivers/input/touchscreen/ |
D | elo.c | 59 unsigned char csum; member 73 elo->csum = 0xaa; in elo_process_data_10() 83 if (data != elo->csum) { in elo_process_data_10() 86 data, elo->csum); in elo_process_data_10() 114 elo->csum += data; in elo_process_data_10() 224 unsigned char csum = 0xaa + ELO10_LEAD_BYTE; in elo_command_10() local 237 csum += packet[i]; in elo_command_10() 242 if (serio_write(elo->serio, csum)) in elo_command_10()
|
/drivers/crypto/cavium/zip/ |
D | zip_inflate.c | 84 zip_cmd->s.adlercrc32 = zip_ops->csum; in prepare_inflate_zcmd() 179 zip_ops->csum = result_ptr->s.adler32; in zip_inflate() 200 zip_ops->csum = result_ptr->s.adler32; in zip_inflate() 205 zip_ops->csum = result_ptr->s.adler32; in zip_inflate() 210 zip_ops->csum = result_ptr->s.crc32; in zip_inflate()
|
D | zip_deflate.c | 80 zip_cmd->s.adlercrc32 = zip_ops->csum; in prepare_zip_command() 164 zip_ops->csum = result_ptr->s.adler32; in zip_deflate() 169 zip_ops->csum = result_ptr->s.adler32; in zip_deflate() 174 zip_ops->csum = result_ptr->s.crc32; in zip_deflate()
|
/drivers/accessibility/braille/ |
D | braille_console.c | 64 unsigned char data[1 + 1 + 2*WIDTH + 2 + 1], csum = 0, *c; in braille_write() local 82 csum ^= '>'; in braille_write() 90 csum ^= out; in braille_write() 98 if (csum <= 0x05) { in braille_write() 100 csum |= 0x40; in braille_write() 102 *c++ = csum; in braille_write()
|
/drivers/gpu/drm/ |
D | drm_displayid.c | 27 u8 csum = 0; in validate_displayid() local 43 csum += displayid[idx + i]; in validate_displayid() 44 if (csum) { in validate_displayid() 45 DRM_NOTE("DisplayID checksum invalid, remainder is %d\n", csum); in validate_displayid()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | chain_mode.c | 18 int csum) in jumbo_frm() argument 44 stmmac_prepare_tx_desc(priv, desc, 1, bmax, csum, STMMAC_CHAIN_MODE, in jumbo_frm() 61 stmmac_prepare_tx_desc(priv, desc, 0, bmax, csum, in jumbo_frm() 75 stmmac_prepare_tx_desc(priv, desc, 0, len, csum, in jumbo_frm()
|
D | ring_mode.c | 18 int csum) in jumbo_frm() argument 51 stmmac_prepare_tx_desc(priv, desc, 1, bmax, csum, in jumbo_frm() 71 stmmac_prepare_tx_desc(priv, desc, 0, len, csum, in jumbo_frm() 84 stmmac_prepare_tx_desc(priv, desc, 1, nopaged_len, csum, in jumbo_frm()
|
/drivers/md/ |
D | dm-clone-metadata.c | 39 __le32 csum; member 170 u32 csum; in sb_prepare_for_write() local 175 csum = dm_bm_checksum(&sb->flags, sb_block_size - sizeof(__le32), in sb_prepare_for_write() 177 sb->csum = cpu_to_le32(csum); in sb_prepare_for_write() 184 u32 csum, metadata_version; in sb_check() local 202 csum = dm_bm_checksum(&sb->flags, sb_block_size - sizeof(__le32), in sb_check() 204 if (sb->csum != cpu_to_le32(csum)) { in sb_check() 206 csum, le32_to_cpu(sb->csum)); in sb_check()
|
/drivers/video/fbdev/ |
D | metronomefb.c | 335 par->metromem_cmd->csum = cs; in metronome_display_cmd() 360 par->metromem_cmd->csum = cs; in metronome_powerup_cmd() 383 par->metromem_cmd->csum = 0xCC10; in metronome_config_cmd() 384 par->metromem_cmd->csum += calc_img_cksum(par->metromem_cmd->args, 4); in metronome_config_cmd() 410 par->metromem_cmd->csum = cs; in metronome_init_cmd() 455 u16 csum = 0; in metronomefb_dpy_update_page() local 462 csum += *(img + i); in metronomefb_dpy_update_page() 464 return csum; in metronomefb_dpy_update_page()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_nvram.c | 502 u_short csum; in sym_read_Symbios_nvram() local 516 for (x = 6, csum = 0; x < len - 6; x++) in sym_read_Symbios_nvram() 517 csum += data[x]; in sym_read_Symbios_nvram() 518 if (csum != nvram->checksum) in sym_read_Symbios_nvram() 683 u_short csum; in sym_read_Tekram_nvram() local 707 for (x = 0, csum = 0; x < len - 1; x += 2) in sym_read_Tekram_nvram() 708 csum += data[x] + (data[x+1] << 8); in sym_read_Tekram_nvram() 709 if (csum != 0x1234) in sym_read_Tekram_nvram()
|
/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 170 u16 *csum; in rmnet_map_complement_ipv4_txporthdr_csum_field() local 175 csum = (u16 *)rmnet_map_get_csum_field(ip4h->protocol, txphdr); in rmnet_map_complement_ipv4_txporthdr_csum_field() 176 *csum = ~(*csum); in rmnet_map_complement_ipv4_txporthdr_csum_field() 205 u16 *csum; in rmnet_map_complement_ipv6_txporthdr_csum_field() local 210 csum = (u16 *)rmnet_map_get_csum_field(ip6h->nexthdr, txphdr); in rmnet_map_complement_ipv6_txporthdr_csum_field() 211 *csum = ~(*csum); in rmnet_map_complement_ipv6_txporthdr_csum_field()
|
/drivers/input/mouse/ |
D | cyapa_gen3.c | 541 u16 csum = 0; in cyapa_gen3_csum() local 544 csum += buf[i]; in cyapa_gen3_csum() 546 return csum; in cyapa_gen3_csum() 567 u16 csum; in cyapa_gen3_check_fw() local 579 csum = cyapa_gen3_csum(&fw->data[2], CYAPA_FW_HDR_SIZE - 2); in cyapa_gen3_check_fw() 580 if (csum != csum_expected) { in cyapa_gen3_check_fw() 583 csum, csum_expected); in cyapa_gen3_check_fw() 590 csum = cyapa_gen3_csum(&fw->data[CYAPA_FW_HDR_SIZE], in cyapa_gen3_check_fw() 592 if (csum != csum_expected) { in cyapa_gen3_check_fw() 595 csum, csum_expected); in cyapa_gen3_check_fw()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | trace.h | 80 struct sk_buff *skb, u32 csum, bool resp), 81 TP_ARGS(dev, skb, csum, resp), 85 __field(u32, csum) 91 __entry->csum = csum; 95 DEV_PR_ARG, __entry->info, __entry->csum, __entry->resp)
|
/drivers/platform/chrome/ |
D | cros_ec_proto.c | 61 u8 csum = 0; in prepare_tx() local 76 csum += out[i]; in prepare_tx() 81 csum += msg->data[i]; in prepare_tx() 83 request->checksum = -csum; in prepare_tx() 92 u8 csum; in prepare_tx_legacy() local 102 csum = out[0] + out[1] + out[2]; in prepare_tx_legacy() 104 csum += out[EC_MSG_TX_HEADER_BYTES + i] = msg->data[i]; in prepare_tx_legacy() 105 out[EC_MSG_TX_HEADER_BYTES + msg->outsize] = csum; in prepare_tx_legacy()
|
/drivers/md/bcache/ |
D | bcache_ondisk.h | 164 __le64 csum; member 347 __u64 csum; member 371 __u64 csum; member 421 __u64 csum; member
|
/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 320 skb->csum = 0; in vnet_fullcsum_ipv4() 325 skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); in vnet_fullcsum_ipv4() 328 skb->csum); in vnet_fullcsum_ipv4() 333 skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); in vnet_fullcsum_ipv4() 336 skb->csum); in vnet_fullcsum_ipv4() 353 skb->csum = 0; in vnet_fullcsum_ipv6() 358 skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); in vnet_fullcsum_ipv6() 361 skb->csum); in vnet_fullcsum_ipv6() 366 skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); in vnet_fullcsum_ipv6() 369 skb->csum); in vnet_fullcsum_ipv6() [all …]
|
/drivers/block/ |
D | amiflop.c | 795 unsigned long csum = 0; in checksum() local 799 csum ^= *addr++; in checksum() 800 csum = ((csum>>1) & 0x55555555) ^ (csum & 0x55555555); in checksum() 802 return csum; in checksum() 840 unsigned long csum; in amiga_read() local 857 csum = checksum((ulong *)&hdr, in amiga_read() 868 if (hdr.hdrchk != csum) { in amiga_read() 869 printk(KERN_INFO "MFM_HEADER: %08lx,%08lx\n", hdr.hdrchk, csum); in amiga_read() 881 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512); in amiga_read() 883 if (hdr.datachk != csum) { in amiga_read() [all …]
|
/drivers/net/usb/ |
D | ax88179_178a.c | 1009 u16 csum, delay = HZ / 10; in ax88179_check_eeprom() local 1041 csum = eeprom[6] + eeprom[7] + eeprom[8] + eeprom[9]; in ax88179_check_eeprom() 1042 csum = (csum >> 8) + (csum & 0xff); in ax88179_check_eeprom() 1043 if ((csum + eeprom[10]) != 0xff) in ax88179_check_eeprom() 1053 u16 csum = 0; in ax88179_check_efuse() local 1062 csum = csum + efuse[i]; in ax88179_check_efuse() 1064 while (csum > 255) in ax88179_check_efuse() 1065 csum = (csum & 0x00FF) + ((csum >> 8) & 0x00FF); in ax88179_check_efuse() 1067 if (csum != 0xFF) in ax88179_check_efuse()
|
/drivers/net/ethernet/intel/e1000e/ |
D | manage.c | 97 s32 ret_val, hdr_csum, csum; in e1000e_enable_tx_pkt_filtering() local 125 csum = e1000_calculate_checksum((u8 *)hdr, in e1000e_enable_tx_pkt_filtering() 131 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) { in e1000e_enable_tx_pkt_filtering()
|
/drivers/input/joystick/iforce/ |
D | iforce-serio.c | 17 u8 csum; member 159 iforce_serio->csum += data; in iforce_serio_irq() 183 iforce_serio->csum = 0; in iforce_serio_irq()
|
/drivers/net/ethernet/sfc/ |
D | ef100_rx.c | 64 __wsum csum = 0; in __ef100_rx_packet() local 127 csum = (__force __wsum) sum; in __ef100_rx_packet() 137 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, csum); in __ef100_rx_packet()
|