Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/net/fc/
Diph5526_novram.c179 unsigned short chksum = 0; in iph5526_nr_do_init() local
184 chksum += fi->n_r.data[i]; in iph5526_nr_do_init()
187 if (chksum) in iph5526_nr_do_init()
272 unsigned short chksum = 0; in iph5526_nr_checksum() local
275 chksum += fi->n_r.data[i]; in iph5526_nr_checksum()
277 fi->n_r.data[i] = -chksum; in iph5526_nr_checksum()
/linux-2.4.37.9/fs/affs/
Dsuper.c229 u32 chksum; in affs_read_super() local
340 chksum = be32_to_cpu(*(u32 *)boot_bh->b_data); in affs_read_super()
347 if ((chksum == FS_DCFFS || chksum == MUFS_DCFFS || chksum == FS_DCOFS in affs_read_super()
348 || chksum == MUFS_DCOFS) && !(sb->s_flags & MS_RDONLY)) { in affs_read_super()
353 switch (chksum) { in affs_read_super()
385 kdevname(dev), chksum); in affs_read_super()
390 chksum = cpu_to_be32(chksum); in affs_read_super()
394 (char *)&chksum,((char *)&chksum)[3] + '0',blocksize); in affs_read_super()
/linux-2.4.37.9/include/linux/
Dhdsmart.h52 unsigned char chksum; member
68 unsigned char chksum; member
103 unsigned char chksum; member
121 unsigned char chksum; member
Dhcdp_serial.h74 u8 chksum; member
Djffs.h97 __u16 chksum; /* Checksum for the raw inode. */ member
/linux-2.4.37.9/include/asm-alpha/
Dhwrpb.h151 unsigned long chksum; member
199 unsigned long chksum; member
213 for (l = (unsigned long *) h; l < (unsigned long *) &h->chksum; ++l) in hwrpb_update_checksum()
215 h->chksum = sum; in hwrpb_update_checksum()
/linux-2.4.37.9/drivers/scsi/
Di60uscsi.c315 UCHAR *np, chksum = 0; in se2_rd_all() local
327 chksum += *np++; in se2_rd_all()
329 if (nvramp->CheckSum != (UCHAR) chksum) in se2_rd_all()
340 UCHAR *np, *np1, chksum = 0; in se2_update_all() local
345 chksum += *np++; in se2_update_all()
346 *np = chksum; in se2_update_all()
Dadvansys.c1718 ushort chksum; member
10009 ASC_DCNT chksum; in AscLoadMicroCode() local
10018 chksum = AscMemSumLramWord(iop_base, s_addr, mcode_word_size); in AscLoadMicroCode()
10019 ASC_DBG1(1, "AscLoadMicroCode: chksum 0x%lx\n", (ulong) chksum); in AscLoadMicroCode()
10027 return (chksum); in AscLoadMicroCode()
12629 ushort chksum; in ASC_INITFUNC() local
12663 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type); in ASC_INITFUNC()
12664 ASC_DBG1(1, "AscInitFromEEP: chksum 0x%x\n", chksum); in ASC_INITFUNC()
12665 if (chksum == 0) { in ASC_INITFUNC()
12666 chksum = 0xaa55; in ASC_INITFUNC()
[all …]
Dqla1280.c823 uint8_t chksum; in qla1280_read_nvram() local
836 chksum = 0; in qla1280_read_nvram()
839 chksum += *wptr & 0xff; in qla1280_read_nvram()
840 chksum += (*wptr >> 8) & 0xff; in qla1280_read_nvram()
847 chksum = 1; in qla1280_read_nvram()
851 chksum += *wptr & 0xff; in qla1280_read_nvram()
852 chksum += (*wptr >> 8) & 0xff; in qla1280_read_nvram()
862 if (chksum) { in qla1280_read_nvram()
874 return chksum; in qla1280_read_nvram()
Di91uscsi.c433 ULONG chksum = 0; in tul_se2_rd_all() local
448 chksum += *np++; in tul_se2_rd_all()
449 if (i91unvramp->NVM_CheckSum != (USHORT) chksum) in tul_se2_rd_all()
461 ULONG chksum = 0; in tul_se2_update_all() local
468 chksum += *np++; in tul_se2_update_all()
469 *np = (USHORT) chksum; in tul_se2_update_all()
Dqla1280.h499 uint8_t chksum; /* 255 */ member
/linux-2.4.37.9/arch/x86_64/kernel/
Dsetup.c149 unsigned char chksum; in probe_roms() local
151 chksum = 0; in probe_roms()
153 chksum += romstart[i]; in probe_roms()
156 if (!chksum) { in probe_roms()
/linux-2.4.37.9/drivers/isdn/hisax/
Dhfc_2bds0.c217 int chksum; in hfc_empty_fifo() local
272 chksum = (ReadReg(cs, HFCD_DATA, cip) << 8); in hfc_empty_fifo()
274 chksum += ReadReg(cs, HFCD_DATA, cip); in hfc_empty_fifo()
280 bcs->channel, chksum, stat); in hfc_empty_fifo()
662 int chksum; in receive_dmsg() local
733 chksum = (ReadReg(cs, HFCD_DATA, cip) << 8); in receive_dmsg()
735 chksum += ReadReg(cs, HFCD_DATA, cip); in receive_dmsg()
741 chksum, stat); in receive_dmsg()
Dhfc_2bs0.c166 int chksum; in hfc_empty_fifo() local
227 chksum = (cs->BC_Read_Reg(cs, HFC_DATA, cip) << 8); in hfc_empty_fifo()
229 chksum += cs->BC_Read_Reg(cs, HFC_DATA, cip); in hfc_empty_fifo()
234 bcs->channel, chksum, stat); in hfc_empty_fifo()
/linux-2.4.37.9/drivers/net/
Dewrk3.c401 u_char eeprom_image[EEPROM_MAX], chksum, eisa_cr = 0; in ewrk3_hw_init() local
420 for (chksum = 0, i = 0; i < EEPROM_MAX; i += 2) { in ewrk3_hw_init()
429 chksum += eeprom_image[i] + eeprom_image[i + 1]; in ewrk3_hw_init()
432 if (chksum != 0) { /* Bad EEPROM Data! */ in ewrk3_hw_init()
1559 u_short chksum; in get_hw_addr() local
1595 chksum = inb(EWRK3_APROM); in get_hw_addr()
1596 chksum |= (inb(EWRK3_APROM) << 8); in get_hw_addr()
1597 if (k != chksum) in get_hw_addr()
Ddepca.c1696 u_short j, x, chksum; in get_hw_addr() local
1716 chksum = (u_char) inb(DEPCA_PROM + x); in get_hw_addr()
1717 chksum |= (u_short) (inb(DEPCA_PROM + x) << 8); in get_hw_addr()
1718 if (k != chksum) in get_hw_addr()
Dde4x5.c742 short chksum; member
4125 u_short j,chksum; in get_hw_addr() local
4163 chksum = (u_char) tmp; in get_hw_addr()
4165 chksum |= (u_short) (tmp << 8); in get_hw_addr()
4166 if ((k != chksum) && (dec_only)) status = -1; in get_hw_addr()
4169 chksum = (u_char) inb(EISA_APROM); in get_hw_addr()
4170 chksum |= (u_short) (inb(EISA_APROM) << 8); in get_hw_addr()
4171 if ((k != chksum) && (dec_only)) status = -1; in get_hw_addr()
5518 printk("CRC checksum: %04x\n", (u_short)(p->chksum)); in de4x5_dbg_srom()
/linux-2.4.37.9/fs/jffs/
Dintrep.c1054 tmp_chksum = raw_inode.chksum; in jffs_scan_flash()
1056 raw_inode.chksum = 0; in jffs_scan_flash()
1060 raw_inode.chksum = tmp_chksum; in jffs_scan_flash()
1066 if (checksum != raw_inode.chksum) { in jffs_scan_flash()
1070 checksum, raw_inode.chksum)); in jffs_scan_flash()
1712 raw_inode.chksum in jffs_write_dummy_node()
1872 raw_inode->chksum = 0; in jffs_write_node()
1873 raw_inode->chksum = jffs_checksum(raw_inode, in jffs_write_node()
2543 D(printk(" 0x%04x, /* chksum */\n", raw_inode->chksum)); in jffs_print_raw_inode()
2835 raw_inode.chksum = jffs_checksum(&raw_inode, in jffs_rewrite_data()
/linux-2.4.37.9/fs/xfs/
Dxfs_log_recover.c3367 uint chksum = 0; in xlog_pack_data_checksum() local
3372 chksum ^= INT_GET(*up, ARCH_CONVERT); in xlog_pack_data_checksum()
3375 INT_SET(iclog->ic_header.h_chksum, ARCH_CONVERT, chksum); in xlog_pack_data_checksum()
3432 uint chksum = 0; in xlog_unpack_data_checksum() local
3437 chksum ^= INT_GET(*up, ARCH_CONVERT); in xlog_unpack_data_checksum()
3440 if (chksum != INT_GET(rhead->h_chksum, ARCH_CONVERT)) { in xlog_unpack_data_checksum()
3445 INT_GET(rhead->h_chksum, ARCH_CONVERT), chksum); in xlog_unpack_data_checksum()
/linux-2.4.37.9/drivers/net/tokenring/
Dibmtr.c1683 unsigned int chksum = 0; in tr_rx() local
1803 chksum=csum_partial_copy_nocheck((void*)rbufdata, in tr_rx()
1804 data,length<rbuffer_len?length:rbuffer_len,chksum); in tr_rx()
1833 skb->csum = chksum; in tr_rx()
Dsmctr.c956 __u8 r1, r2, b, chksum = 0; in smctr_chk_isa() local
970 chksum += b; in smctr_chk_isa()
973 if(chksum != NODE_ADDR_CKSUM) in smctr_chk_isa()
/linux-2.4.37.9/arch/i386/kernel/
Dsetup.c409 unsigned char chksum; in probe_roms() local
411 chksum = 0; in probe_roms()
413 chksum += romstart[i]; in probe_roms()
416 if (!chksum) { in probe_roms()
/linux-2.4.37.9/drivers/pnp/
Disapnp.c339 unsigned char chksum = 0x00; in isapnp_isolate() local
367 chksum |= (1 << (i - 65)); in isapnp_isolate()
369 if (checksum != 0x00 && checksum == chksum) { in isapnp_isolate()
391 chksum = 0x00; in isapnp_isolate()
/linux-2.4.37.9/drivers/video/sis/
Dsis_main.c4556 u32 chksum = 0; local
4561 for(i=0; i<32768; i++) chksum += ivideo->sishw_ext.pjVirtualRomBase[i];
4575 (mycustomttable[i].bioschksum == chksum))) &&
Dinit301.c9389 unsigned char chksum,gotcha; in SiS_ReadDDC() local
9398 chksum = 0; in SiS_ReadDDC()
9402 chksum += buffer[i]; in SiS_ReadDDC()
9407 chksum += buffer[i]; in SiS_ReadDDC()
9409 if(gotcha) flag = (USHORT)chksum; in SiS_ReadDDC()