Home
last modified time | relevance | path

Searched refs:chksum (Results 1 – 25 of 35) sorted by relevance

12

/drivers/input/touchscreen/
Dh3600_ts_input.c100 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/
Dqla_sup.c550 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 …]
Dqla_attr.c159 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()
Dqla_init.c2155 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/
Daic94xx_sds.c396 __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/
Dft1000_hw.c1553 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 …]
Dft1000_dnld.c282 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/
Da100u2w.c294 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()
Dadvansys.c666 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 …]
Dqla1280.c616 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()
Dinitio.c450 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/
Dhfc_2bds0.c189 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()
Dhfc_2bs0.c150 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/
Dql4_nx.c1945 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/
Dewrk3.c411 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/
Dcore.c300 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/
Dp54usb.h77 __le32 chksum; member
/drivers/firmware/
Dpcdp.h102 u8 chksum; member
/drivers/net/ethernet/brocade/bna/
Dbfa_defs_mfg_comm.h162 u8 chksum; /*!< u8 checksum */ member
/drivers/staging/ft1000/ft1000-usb/
Dft1000_download.c464 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()
Dft1000_hw.c1052 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/
Dbfa_defs.h112 u8 chksum; /* u8 checksum */ member
666 u16 chksum; member
689 u16 chksum; member
/drivers/net/ethernet/amd/
Ddepca.c1754 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/
Dqib_common.h678 __le16 chksum; member
/drivers/net/tokenring/
Dibmtr.c1693 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()

12