/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 204 csum = flash_csum(ifp, 0); in qib_get_eeprom_info() 205 if (csum != ifp->if_csum) { in qib_get_eeprom_info() 208 csum, ifp->if_csum); in qib_get_eeprom_info()
|
/drivers/platform/chrome/ |
D | cros_ec_lpc.c | 124 int csum; in cros_ec_cmd_xfer_lpc() local 142 csum = msg->command + args.flags + in cros_ec_cmd_xfer_lpc() 148 csum += msg->data[i]; in cros_ec_cmd_xfer_lpc() 152 args.checksum = csum & 0xFF; in cros_ec_cmd_xfer_lpc() 188 csum = msg->command + args.flags + in cros_ec_cmd_xfer_lpc() 194 csum += msg->data[i]; in cros_ec_cmd_xfer_lpc() 198 if (args.checksum != (csum & 0xFF)) { in cros_ec_cmd_xfer_lpc() 201 args.checksum, csum & 0xFF); in cros_ec_cmd_xfer_lpc()
|
D | cros_ec_proto.c | 31 u8 csum = 0; in prepare_packet() local 46 csum += out[i]; in prepare_packet() 51 csum += msg->data[i]; in prepare_packet() 53 request->checksum = -csum; in prepare_packet() 127 u8 csum; in cros_ec_prepare_tx() local 138 csum = out[0] + out[1] + out[2]; in cros_ec_prepare_tx() 140 csum += out[EC_MSG_TX_HEADER_BYTES + i] = msg->data[i]; in cros_ec_prepare_tx() 141 out[EC_MSG_TX_HEADER_BYTES + msg->outsize] = csum; in cros_ec_prepare_tx()
|
/drivers/staging/rdma/ipath/ |
D | ipath_eeprom.c | 679 u8 csum = 0, len; in flash_csum() local 690 csum += *ip++; in flash_csum() 691 csum -= ifp->if_csum; in flash_csum() 692 csum = ~csum; in flash_csum() 694 ifp->if_csum = csum; in flash_csum() 696 return csum; in flash_csum() 712 u8 csum, *bguid; in ipath_get_eeprom_info() local 769 csum = flash_csum(ifp, 0); in ipath_get_eeprom_info() 770 if (csum != ifp->if_csum) { in ipath_get_eeprom_info() 772 "0x%x, not 0x%x\n", csum, ifp->if_csum); in ipath_get_eeprom_info() [all …]
|
/drivers/input/touchscreen/ |
D | elo.c | 63 unsigned char csum; member 77 elo->csum = 0xaa; in elo_process_data_10() 87 if (data != elo->csum) { in elo_process_data_10() 90 data, elo->csum); in elo_process_data_10() 118 elo->csum += data; in elo_process_data_10() 228 unsigned char csum = 0xaa + ELO10_LEAD_BYTE; in elo_command_10() local 241 csum += packet[i]; in elo_command_10() 246 if (serio_write(elo->serio, csum)) in elo_command_10()
|
/drivers/accessibility/braille/ |
D | braille_console.c | 78 unsigned char data[1 + 1 + 2*WIDTH + 2 + 1], csum = 0, *c; in braille_write() local 96 csum ^= '>'; in braille_write() 104 csum ^= out; in braille_write() 112 if (csum <= 0x05) { in braille_write() 114 csum |= 0x40; in braille_write() 116 *c++ = csum; in braille_write()
|
/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 510 uint32_t csum, ehsum; in ioc3_tcpudp_checksum() local 542 csum = hwsum + in ioc3_tcpudp_checksum() 555 csum += 0xffff ^ ehsum; in ioc3_tcpudp_checksum() 561 csum += 0xffff ^ (uint16_t) ((cp[1] << 8) | cp[0]); in ioc3_tcpudp_checksum() 562 csum += 0xffff ^ (uint16_t) ((cp[3] << 8) | cp[2]); in ioc3_tcpudp_checksum() 564 csum += 0xffff ^ (uint16_t) ((cp[0] << 8) | cp[1]); in ioc3_tcpudp_checksum() 565 csum += 0xffff ^ (uint16_t) ((cp[2] << 8) | cp[3]); in ioc3_tcpudp_checksum() 568 csum = (csum & 0xffff) + (csum >> 16); in ioc3_tcpudp_checksum() 569 csum = (csum & 0xffff) + (csum >> 16); in ioc3_tcpudp_checksum() 571 if (csum == 0xffff) in ioc3_tcpudp_checksum() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | ring_mode.c | 31 static int stmmac_jumbo_frm(void *p, struct sk_buff *skb, int csum) in stmmac_jumbo_frm() argument 61 priv->hw->desc->prepare_tx_desc(desc, 1, bmax, csum, in stmmac_jumbo_frm() 78 priv->hw->desc->prepare_tx_desc(desc, 0, len, csum, in stmmac_jumbo_frm() 89 priv->hw->desc->prepare_tx_desc(desc, 1, nopaged_len, csum, in stmmac_jumbo_frm()
|
D | chain_mode.c | 31 static int stmmac_jumbo_frm(void *p, struct sk_buff *skb, int csum) in stmmac_jumbo_frm() argument 53 priv->hw->desc->prepare_tx_desc(desc, 1, bmax, csum, STMMAC_CHAIN_MODE); in stmmac_jumbo_frm() 67 priv->hw->desc->prepare_tx_desc(desc, 0, bmax, csum, in stmmac_jumbo_frm() 79 priv->hw->desc->prepare_tx_desc(desc, 0, len, csum, in stmmac_jumbo_frm()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_nvram.c | 515 u_short csum; in sym_read_Symbios_nvram() local 529 for (x = 6, csum = 0; x < len - 6; x++) in sym_read_Symbios_nvram() 530 csum += data[x]; in sym_read_Symbios_nvram() 531 if (csum != nvram->checksum) in sym_read_Symbios_nvram() 696 u_short csum; in sym_read_Tekram_nvram() local 719 for (x = 0, csum = 0; x < len - 1; x += 2) in sym_read_Tekram_nvram() 720 csum += data[x] + (data[x+1] << 8); in sym_read_Tekram_nvram() 721 if (csum != 0x1234) in sym_read_Tekram_nvram()
|
/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_lib.c | 387 __u32 csum; in ksocknal_lib_csum_tx() local 396 csum = ksocknal_csum(~0, tx->tx_iov[0].iov_base, in ksocknal_lib_csum_tx() 404 csum = ksocknal_csum(csum, base, tx->tx_kiov[i].kiov_len); in ksocknal_lib_csum_tx() 410 csum = ksocknal_csum(csum, tx->tx_iov[i].iov_base, in ksocknal_lib_csum_tx() 415 csum++; in ksocknal_lib_csum_tx() 419 tx->tx_msg.ksm_csum = csum; in ksocknal_lib_csum_tx()
|
/drivers/video/fbdev/ |
D | metronomefb.c | 335 par->metromem_cmd->csum = cs; in metronome_display_cmd() 359 par->metromem_cmd->csum = cs; in metronome_powerup_cmd() 381 par->metromem_cmd->csum = 0xCC10; in metronome_config_cmd() 382 par->metromem_cmd->csum += calc_img_cksum(par->metromem_cmd->args, 4); in metronome_config_cmd() 408 par->metromem_cmd->csum = cs; in metronome_init_cmd() 453 u16 csum = 0; in metronomefb_dpy_update_page() local 460 csum += *(img + i); in metronomefb_dpy_update_page() 462 return csum; in metronomefb_dpy_update_page()
|
/drivers/input/mouse/ |
D | cyapa_gen3.c | 583 u16 csum = 0; in cyapa_gen3_csum() local 586 csum += buf[i]; in cyapa_gen3_csum() 588 return csum; in cyapa_gen3_csum() 609 u16 csum; in cyapa_gen3_check_fw() local 621 csum = cyapa_gen3_csum(&fw->data[2], CYAPA_FW_HDR_SIZE - 2); in cyapa_gen3_check_fw() 622 if (csum != csum_expected) { in cyapa_gen3_check_fw() 625 csum, csum_expected); in cyapa_gen3_check_fw() 632 csum = cyapa_gen3_csum(&fw->data[CYAPA_FW_HDR_SIZE], in cyapa_gen3_check_fw() 634 if (csum != csum_expected) { in cyapa_gen3_check_fw() 637 csum, csum_expected); in cyapa_gen3_check_fw()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | trace.h | 88 struct sk_buff *skb, u32 csum, bool resp), 89 TP_ARGS(dev, skb, csum, resp), 93 __field(u32, csum) 99 __entry->csum = csum; 103 DEV_PR_ARG, __entry->info, __entry->csum, __entry->resp)
|
/drivers/block/ |
D | amiflop.c | 678 unsigned long csum = 0; in checksum() local 682 csum ^= *addr++; in checksum() 683 csum = ((csum>>1) & 0x55555555) ^ (csum & 0x55555555); in checksum() 685 return csum; in checksum() 723 unsigned long csum; in amiga_read() local 740 csum = checksum((ulong *)&hdr, in amiga_read() 751 if (hdr.hdrchk != csum) { in amiga_read() 752 printk(KERN_INFO "MFM_HEADER: %08lx,%08lx\n", hdr.hdrchk, csum); in amiga_read() 764 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512); in amiga_read() 766 if (hdr.datachk != csum) { in amiga_read() [all …]
|
/drivers/net/ethernet/intel/e1000e/ |
D | manage.c | 115 s32 ret_val, hdr_csum, csum; in e1000e_enable_tx_pkt_filtering() local 143 csum = e1000_calculate_checksum((u8 *)hdr, in e1000e_enable_tx_pkt_filtering() 149 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) { in e1000e_enable_tx_pkt_filtering()
|
/drivers/net/usb/ |
D | ax88179_178a.c | 977 u16 csum, delay = HZ / 10; in ax88179_check_eeprom() local 1009 csum = eeprom[6] + eeprom[7] + eeprom[8] + eeprom[9]; in ax88179_check_eeprom() 1010 csum = (csum >> 8) + (csum & 0xff); in ax88179_check_eeprom() 1011 if ((csum + eeprom[10]) != 0xff) in ax88179_check_eeprom() 1021 u16 csum = 0; in ax88179_check_efuse() local 1030 csum = csum + efuse[i]; in ax88179_check_efuse() 1032 while (csum > 255) in ax88179_check_efuse() 1033 csum = (csum & 0x00FF) + ((csum >> 8) & 0x00FF); in ax88179_check_efuse() 1035 if (csum != 0xFF) in ax88179_check_efuse()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_phy.c | 122 u8 csum; in ixgbe_read_i2c_combined_generic_int() local 125 csum = ixgbe_ones_comp_byte_add(reg_high, reg & 0xFF); in ixgbe_read_i2c_combined_generic_int() 126 csum = ~csum; in ixgbe_read_i2c_combined_generic_int() 141 if (ixgbe_out_i2c_byte_ack(hw, csum)) in ixgbe_read_i2c_combined_generic_int() 227 u8 csum; in ixgbe_write_i2c_combined_generic_int() local 230 csum = ixgbe_ones_comp_byte_add(reg_high, reg & 0xFF); in ixgbe_write_i2c_combined_generic_int() 231 csum = ixgbe_ones_comp_byte_add(csum, val >> 8); in ixgbe_write_i2c_combined_generic_int() 232 csum = ixgbe_ones_comp_byte_add(csum, val & 0xFF); in ixgbe_write_i2c_combined_generic_int() 233 csum = ~csum; in ixgbe_write_i2c_combined_generic_int() 254 if (ixgbe_out_i2c_byte_ack(hw, csum)) in ixgbe_write_i2c_combined_generic_int()
|
/drivers/md/persistent-data/ |
D | dm-btree-spine.c | 30 h->csum = cpu_to_le32(dm_bm_checksum(&h->flags, in node_prepare_for_write() 56 if (csum_disk != h->csum) { in node_check() 58 le32_to_cpu(csum_disk), le32_to_cpu(h->csum)); in node_check()
|
D | dm-space-map-common.h | 41 __le32 csum; member 94 __le32 csum; member
|
D | dm-space-map-common.c | 29 mi_le->csum = cpu_to_le32(dm_bm_checksum(&mi_le->padding, in index_prepare_for_write() 50 if (csum_disk != mi_le->csum) { in index_check() 52 le32_to_cpu(csum_disk), le32_to_cpu(mi_le->csum)); in index_check() 79 disk_header->csum = cpu_to_le32(dm_bm_checksum(&disk_header->not_used, in bitmap_prepare_for_write() 100 if (csum_disk != disk_header->csum) { in bitmap_check() 102 le32_to_cpu(csum_disk), le32_to_cpu(disk_header->csum)); in bitmap_check()
|
/drivers/input/joystick/iforce/ |
D | iforce-serio.c | 111 iforce->csum += iforce->data[iforce->idx++] = data; in iforce_serio_irq() 121 iforce->csum = 0; in iforce_serio_irq()
|
/drivers/firmware/ |
D | iscsi_ibft.c | 426 u8 csum = 0; in ibft_check_device() local 438 csum += *pos; in ibft_check_device() 440 if (csum) { in ibft_check_device() 441 printk(KERN_ERR "iBFT has incorrect checksum (0x%x)!\n", csum); in ibft_check_device()
|
/drivers/input/joystick/ |
D | a3d.c | 106 int i, csum = 0; in a3d_csum() local 109 csum += data[i]; in a3d_csum() 110 return (csum & 0x3f) != ((data[count - 2] << 3) | data[count - 1]); in a3d_csum()
|
/drivers/scsi/fnic/ |
D | vnic_dev.c | 557 u32 csum; in vnic_dev_notify_ready() local 563 csum = 0; in vnic_dev_notify_ready() 568 csum += words[i]; in vnic_dev_notify_ready() 569 } while (csum != words[0]); in vnic_dev_notify_ready()
|