/drivers/input/touchscreen/ |
D | h3600_ts_input.c | 100 unsigned char chksum; member 319 ts->chksum = data; in h3600ts_interrupt() 323 ts->chksum += data; in h3600ts_interrupt() 330 if (data == CHAR_EOF || data == ts->chksum) in h3600ts_interrupt()
|
/drivers/scsi/qla2xxx/ |
D | qla_sup.c | 550 uint16_t cnt, chksum, *wptr; in qla2xxx_find_flt_start() local 613 for (chksum = 0; cnt; cnt--) in qla2xxx_find_flt_start() 614 chksum += le16_to_cpu(*wptr++); in qla2xxx_find_flt_start() 615 if (chksum) { in qla2xxx_find_flt_start() 617 "Inconsistent FLTL detected: checksum=0x%x.\n", chksum); in qla2xxx_find_flt_start() 669 uint16_t cnt, chksum; in qla2xxx_get_flt_info() local 705 for (chksum = 0; cnt; cnt--) in qla2xxx_get_flt_info() 706 chksum += le16_to_cpu(*wptr++); in qla2xxx_get_flt_info() 707 if (chksum) { in qla2xxx_get_flt_info() 863 uint16_t cnt, chksum; in qla2xxx_get_fdt_info() local [all …]
|
D | qla_attr.c | 159 uint32_t chksum; in qla2x00_sysfs_write_nvram() local 162 chksum = 0; in qla2x00_sysfs_write_nvram() 164 chksum += le32_to_cpu(*iter++); in qla2x00_sysfs_write_nvram() 165 chksum = ~chksum + 1; in qla2x00_sysfs_write_nvram() 166 *iter = cpu_to_le32(chksum); in qla2x00_sysfs_write_nvram() 169 uint8_t chksum; in qla2x00_sysfs_write_nvram() local 172 chksum = 0; in qla2x00_sysfs_write_nvram() 174 chksum += *iter++; in qla2x00_sysfs_write_nvram() 175 chksum = ~chksum + 1; in qla2x00_sysfs_write_nvram() 176 *iter = chksum; in qla2x00_sysfs_write_nvram()
|
D | qla_init.c | 2155 uint8_t chksum = 0; in qla2x00_nvram_config() local 2175 for (cnt = 0, chksum = 0; cnt < ha->nvram_size; cnt++) in qla2x00_nvram_config() 2176 chksum += *ptr++; in qla2x00_nvram_config() 2184 if (chksum || nv->id[0] != 'I' || nv->id[1] != 'S' || in qla2x00_nvram_config() 2190 chksum, nv->id[0], nv->nvram_version); in qla2x00_nvram_config() 4238 uint32_t chksum; in qla24xx_nvram_config() local 4268 for (cnt = 0, chksum = 0; cnt < ha->nvram_size >> 2; cnt++) in qla24xx_nvram_config() 4269 chksum += le32_to_cpu(*dptr++); in qla24xx_nvram_config() 4277 if (chksum || nv->id[0] != 'I' || nv->id[1] != 'S' || nv->id[2] != 'P' in qla24xx_nvram_config() 4283 "version=0x%x.\n", chksum, nv->id[0], nv->nvram_version); in qla24xx_nvram_config() [all …]
|
/drivers/scsi/aic94xx/ |
D | aic94xx_sds.c | 396 __le32 chksum; member 404 __le32 chksum; member 421 u16 chksum; member 653 u16 chksum = 0; in asd_calc_flash_chksum() local 656 chksum += *p++; in asd_calc_flash_chksum() 658 return chksum; in asd_calc_flash_chksum() 696 ms->chksum = le16_to_cpu((__force __le16) ms->chksum); in asd_validate_ms()
|
/drivers/staging/ft1000/ft1000-pcmcia/ |
D | ft1000_hw.c | 1553 u16 chksum; in ft1000_copy_up_pkt() local 1566 chksum = tempword; in ft1000_copy_up_pkt() 1598 chksum ^= tempword; in ft1000_copy_up_pkt() 1605 chksum ^= tempword; in ft1000_copy_up_pkt() 1609 chksum ^= tempword; in ft1000_copy_up_pkt() 1613 chksum ^= tempword; in ft1000_copy_up_pkt() 1617 chksum ^= tempword; in ft1000_copy_up_pkt() 1621 chksum ^= tempword; in ft1000_copy_up_pkt() 1625 chksum ^= tempword; in ft1000_copy_up_pkt() 1632 if (chksum != tempword) { in ft1000_copy_up_pkt() [all …]
|
D | ft1000_dnld.c | 282 u16 chksum; in hdr_checksum() local 284 chksum = ((((((usPtr[0] ^ usPtr[1]) ^ usPtr[2]) ^ usPtr[3]) ^ in hdr_checksum() 287 return chksum; in hdr_checksum()
|
/drivers/scsi/ |
D | a100u2w.c | 294 u8 *np, chksum = 0; in se2_rd_all() local 305 chksum += *np++; in se2_rd_all() 307 if (nvramp->CheckSum != (u8) chksum) in se2_rd_all() 322 u8 *np, *np1, chksum = 0; in se2_update_all() local 327 chksum += *np++; in se2_update_all() 328 *np = chksum; in se2_update_all()
|
D | advansys.c | 666 ushort chksum; member 4648 ASC_DCNT chksum; in AscLoadMicroCode() local 4657 chksum = AscMemSumLramWord(iop_base, s_addr, mcode_word_size); in AscLoadMicroCode() 4658 ASC_DBG(1, "chksum 0x%lx\n", (ulong)chksum); in AscLoadMicroCode() 4668 return chksum; in AscLoadMicroCode() 4769 unsigned long chksum; in AscInitAsc1000Driver() local 4806 chksum = (fw->data[3] << 24) | (fw->data[2] << 16) | in AscInitAsc1000Driver() 4808 ASC_DBG(1, "_asc_mcode_chksum 0x%lx\n", (ulong)chksum); in AscInitAsc1000Driver() 4810 fw->size - 4) != chksum) { in AscInitAsc1000Driver() 4847 int size, int memsize, int chksum) in AdvLoadMicrocode() argument [all …]
|
D | qla1280.c | 616 uint8_t chksum; in qla1280_read_nvram() local 629 chksum = 0; in qla1280_read_nvram() 632 chksum += *wptr & 0xff; in qla1280_read_nvram() 633 chksum += (*wptr >> 8) & 0xff; in qla1280_read_nvram() 640 chksum = 1; in qla1280_read_nvram() 644 chksum += *wptr & 0xff; in qla1280_read_nvram() 645 chksum += (*wptr >> 8) & 0xff; in qla1280_read_nvram() 655 if (chksum) { in qla1280_read_nvram() 689 return chksum; in qla1280_read_nvram()
|
D | initio.c | 450 u16 chksum = 0; in initio_se2_rd_all() local 464 chksum += *np++; in initio_se2_rd_all() 465 if (i91unvramp->NVM_CheckSum != chksum) in initio_se2_rd_all() 480 u16 chksum = 0; in initio_se2_update_all() local 487 chksum += *np++; in initio_se2_update_all() 488 *np = chksum; in initio_se2_update_all()
|
/drivers/isdn/hisax/ |
D | hfc_2bds0.c | 189 int chksum; in hfc_empty_fifo() local 234 chksum = (ReadReg(cs, HFCD_DATA, cip) << 8); in hfc_empty_fifo() 236 chksum += ReadReg(cs, HFCD_DATA, cip); in hfc_empty_fifo() 241 bcs->channel, chksum, stat); in hfc_empty_fifo() 593 int chksum; in receive_dmsg() local 653 chksum = (ReadReg(cs, HFCD_DATA, cip) << 8); in receive_dmsg() 655 chksum += ReadReg(cs, HFCD_DATA, cip); in receive_dmsg() 660 chksum, stat); in receive_dmsg()
|
D | hfc_2bs0.c | 150 int chksum; in hfc_empty_fifo() local 211 chksum = (cs->BC_Read_Reg(cs, HFC_DATA, cip) << 8); in hfc_empty_fifo() 213 chksum += cs->BC_Read_Reg(cs, HFC_DATA, cip); in hfc_empty_fifo() 218 bcs->channel, chksum, stat); in hfc_empty_fifo()
|
/drivers/scsi/qla4xxx/ |
D | ql4_nx.c | 1945 uint16_t cnt, chksum; in qla4_8xxx_get_flt_info() local 1968 for (chksum = 0; cnt; cnt--) in qla4_8xxx_get_flt_info() 1969 chksum += le16_to_cpu(*wptr++); in qla4_8xxx_get_flt_info() 1970 if (chksum) { in qla4_8xxx_get_flt_info() 1974 chksum)); in qla4_8xxx_get_flt_info() 2038 uint16_t cnt, chksum; in qla4_8xxx_get_fdt_info() local 2060 for (cnt = 0, chksum = 0; cnt < sizeof(struct qla_fdt_layout) >> 1; in qla4_8xxx_get_fdt_info() 2062 chksum += le16_to_cpu(*wptr++); in qla4_8xxx_get_fdt_info() 2064 if (chksum) { in qla4_8xxx_get_fdt_info() 2066 "checksum=0x%x id=%c version=0x%x.\n", chksum, fdt->sig[0], in qla4_8xxx_get_fdt_info()
|
/drivers/net/ethernet/dec/ |
D | ewrk3.c | 411 u_char eeprom_image[EEPROM_MAX], chksum, eisa_cr = 0; in ewrk3_hw_init() local 431 for (chksum = 0, i = 0; i < EEPROM_MAX; i += 2) { in ewrk3_hw_init() 440 chksum += eeprom_image[i] + eeprom_image[i + 1]; in ewrk3_hw_init() 443 if (chksum != 0) { /* Bad EEPROM Data! */ in ewrk3_hw_init() 1423 u_short chksum; in get_hw_addr() local 1459 chksum = inb(EWRK3_APROM); in get_hw_addr() 1460 chksum |= (inb(EWRK3_APROM) << 8); in get_hw_addr() 1461 if (k != chksum) in get_hw_addr()
|
/drivers/pnp/isapnp/ |
D | core.c | 300 unsigned char chksum = 0x00; in isapnp_isolate() local 330 chksum |= (1 << (i - 65)); in isapnp_isolate() 332 if (checksum != 0x00 && checksum == chksum) { in isapnp_isolate() 356 chksum = 0x00; in isapnp_isolate()
|
/drivers/net/wireless/p54/ |
D | p54usb.h | 77 __le32 chksum; member
|
/drivers/firmware/ |
D | pcdp.h | 102 u8 chksum; member
|
/drivers/net/ethernet/brocade/bna/ |
D | bfa_defs_mfg_comm.h | 162 u8 chksum; /*!< u8 checksum */ member
|
/drivers/staging/ft1000/ft1000-usb/ |
D | ft1000_download.c | 464 u16 chksum; in hdr_checksum() local 467 chksum = ((((((usPtr[0] ^ usPtr[1]) ^ usPtr[2]) ^ usPtr[3]) ^ in hdr_checksum() 470 return chksum; in hdr_checksum()
|
D | ft1000_hw.c | 1052 u16 *chksum; in ft1000_copy_up_pkt() local 1062 chksum = (u16 *) ft1000dev->rx_buf; in ft1000_copy_up_pkt() 1064 tempword = *chksum++; in ft1000_copy_up_pkt() 1066 tempword ^= *chksum++; in ft1000_copy_up_pkt() 1068 if (tempword != *chksum) { in ft1000_copy_up_pkt()
|
/drivers/scsi/bfa/ |
D | bfa_defs.h | 112 u8 chksum; /* u8 checksum */ member 666 u16 chksum; member 689 u16 chksum; member
|
/drivers/net/ethernet/amd/ |
D | depca.c | 1754 u_short j, x, chksum; in get_hw_addr() local 1774 chksum = (u_char) inb(DEPCA_PROM + x); in get_hw_addr() 1775 chksum |= (u_short) (inb(DEPCA_PROM + x) << 8); in get_hw_addr() 1776 if (k != chksum) in get_hw_addr()
|
/drivers/infiniband/hw/qib/ |
D | qib_common.h | 678 __le16 chksum; member
|
/drivers/net/tokenring/ |
D | ibmtr.c | 1693 unsigned int chksum = 0; in tr_rx() local 1806 chksum=csum_partial_copy_nocheck((void*)rbufdata, in tr_rx() 1807 data,length<rbuffer_len?length:rbuffer_len,chksum); in tr_rx() 1832 skb->csum = chksum; in tr_rx()
|