/drivers/video/fbdev/ |
D | metronomefb.c | 178 u8 cksum; in load_waveform() local 205 cksum = calc_cksum(32, 47, mem); in load_waveform() 206 if (cksum != wfm_hdr->wfm_cs) { in load_waveform() 207 dev_err(dev, "Error: bad cksum %x != %x\n", cksum, in load_waveform() 238 cksum = calc_cksum(sizeof(*wfm_hdr), cksum_idx, mem); in load_waveform() 239 if (cksum != mem[cksum_idx]) { in load_waveform() 241 " %x != %x\n", cksum, mem[cksum_idx]); in load_waveform() 250 cksum = calc_cksum(cksum_idx - 3, cksum_idx, mem); in load_waveform() 251 if (cksum != mem[cksum_idx]) { in load_waveform() 253 " %x != %x\n", cksum, mem[cksum_idx]); in load_waveform() [all …]
|
/drivers/usb/serial/ |
D | garmin_gps.c | 349 __u8 cksum = 0; in gsp_send_ack() local 358 cksum += ACK; in gsp_send_ack() 361 cksum += 2; in gsp_send_ack() 364 cksum += pkt_id; in gsp_send_ack() 370 *ptr++ = 0xFF & (-cksum); in gsp_send_ack() 398 int cksum = 0; in gsp_rec_packet() local 412 cksum += *recpkt++; in gsp_rec_packet() 413 cksum += *recpkt++; in gsp_rec_packet() 423 cksum += *recpkt++; in gsp_rec_packet() 427 if ((0xff & (cksum + *recpkt)) != 0) { in gsp_rec_packet() [all …]
|
/drivers/scsi/esas2r/ |
D | esas2r_flash.c | 99 u32 cksum = seed; in esas2r_calc_byte_xor_cksum() local 100 u8 *p = (u8 *)&cksum; in esas2r_calc_byte_xor_cksum() 106 cksum = cksum ^ *addr; in esas2r_calc_byte_xor_cksum() 111 cksum = cksum ^ *(u32 *)addr; in esas2r_calc_byte_xor_cksum() 116 cksum = cksum ^ *addr; in esas2r_calc_byte_xor_cksum() 125 u8 cksum = seed; in esas2r_calc_byte_cksum() local 128 cksum = cksum + p[len]; in esas2r_calc_byte_cksum() 129 return cksum; in esas2r_calc_byte_cksum() 182 u8 cksum = 0; in build_flash_msg() local 187 cksum = esas2r_calc_byte_xor_cksum(sgc->cur_offset, in build_flash_msg() [all …]
|
D | esas2r_vda.c | 349 u8 cksum, in esas2r_build_flash_req() argument 367 vrq->checksum = cksum; in esas2r_build_flash_req()
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_modparams.c | 47 static int cksum; variable 48 module_param(cksum, int, 0644); 49 MODULE_PARM_DESC(cksum, "set non-zero to enable message (not RDMA) checksums"); 149 .kib_cksum = &cksum,
|
/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-crypto-adler.c | 40 static u32 __adler32(u32 cksum, unsigned char const *p, size_t len) in __adler32() argument 42 return zlib_adler32(cksum, p, len); in __adler32()
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_null.c | 365 __u32 cksum; in null_authorize() local 367 cksum = lustre_msg_calc_cksum(rs->rs_repbuf); in null_authorize() 368 lustre_msg_set_cksum(rs->rs_repbuf, cksum); in null_authorize()
|
D | sec_plain.c | 219 __u32 cksum; in plain_ctx_verify() local 258 NULL, 0, (unsigned char *)&cksum, &hsize); in plain_ctx_verify() 259 if (cksum != msg->lm_cksum) { in plain_ctx_verify() 262 cpu_to_le32(cksum), msg->lm_cksum); in plain_ctx_verify()
|
D | pack_generic.c | 1392 void lustre_msg_set_cksum(struct lustre_msg *msg, __u32 cksum) in lustre_msg_set_cksum() argument 1396 msg->lm_cksum = cksum; in lustre_msg_set_cksum()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1137 u16 index, u16 cksum) in qlcnic_process_rxbuf() argument 1153 (cksum == STATUS_CKSUM_OK || cksum == STATUS_CKSUM_LOOP))) { in qlcnic_process_rxbuf() 1200 int index, length, cksum, pkt_offset, is_lb_pkt; in qlcnic_process_rcv() local 1214 cksum = qlcnic_get_sts_status(sts_data0); in qlcnic_process_rcv() 1217 skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); in qlcnic_process_rcv() 1494 int index, length, cksum, pkt_offset; in qlcnic_process_rcv_diag() local 1506 cksum = qlcnic_get_sts_status(sts_data0); in qlcnic_process_rcv_diag() 1509 skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); in qlcnic_process_rcv_diag() 1723 int index, length, cksum, is_lb_pkt; in qlcnic_83xx_process_rcv() local 1738 cksum = qlcnic_83xx_csum_status(sts_data[1]); in qlcnic_83xx_process_rcv() [all …]
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_misc.c | 396 unsigned char cksum; in get_pins() local 405 cksum = 0x2E + 0x41 + pins_len; in get_pins() 407 cksum += *dst++ = readb(pins+i); in get_pins() 409 if (cksum) { in get_pins()
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_desc.c | 43 int buf1_len, int pkt_len, int cksum) in sxgbe_prepare_tx_desc() argument 50 if (cksum) in sxgbe_prepare_tx_desc()
|
D | sxgbe_desc.h | 171 int buf1_len, int pkt_len, int cksum);
|
/drivers/net/ethernet/cirrus/ |
D | cs89x0.c | 276 int i, cksum; in get_eeprom_cksum() local 278 cksum = 0; in get_eeprom_cksum() 280 cksum += buffer[i]; in get_eeprom_cksum() 281 cksum &= 0xffff; in get_eeprom_cksum() 282 if (cksum == 0) in get_eeprom_cksum()
|
/drivers/net/wireless/ath/ath5k/ |
D | eeprom.c | 77 u32 cksum, offset, eep_max = AR5K_EEPROM_INFO_MAX; in ath5k_eeprom_init_header() local 118 for (cksum = 0, offset = 0; offset < eep_max; offset++) { in ath5k_eeprom_init_header() 120 cksum ^= val; in ath5k_eeprom_init_header() 122 if (cksum != AR5K_EEPROM_INFO_CKSUM) { in ath5k_eeprom_init_header() 125 cksum, eep_max, in ath5k_eeprom_init_header()
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 1507 struct nx_host_rds_ring *rds_ring, u16 index, u16 cksum) in netxen_process_rxbuf() argument 1522 && cksum == STATUS_CKSUM_OK)) { in netxen_process_rxbuf() 1544 int index, length, cksum, pkt_offset; in netxen_process_rcv() local 1558 cksum = netxen_get_sts_status(sts_data0); in netxen_process_rcv() 1561 skb = netxen_process_rxbuf(adapter, rds_ring, index, cksum); in netxen_process_rcv()
|
/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.h | 1297 u32 cksum; member 1316 u32 cksum; member 1326 u32 cksum; member 1335 u32 cksum; member 1347 u32 cksum; member
|
/drivers/block/ |
D | ida_cmd.h | 150 __u8 cksum; member
|
/drivers/scsi/ |
D | dc395x.c | 225 u16 cksum; /* 126,127 */ member 4171 u16 cksum; in check_eeprom() local 4177 cksum = 0; in check_eeprom() 4180 cksum += *w_eeprom; in check_eeprom() 4181 if (cksum != 0x1234) { in check_eeprom() 4215 eeprom->cksum = 0x00; in check_eeprom() 4216 for (w_addr = 0, cksum = 0, w_eeprom = (u16 *)eeprom; in check_eeprom() 4218 cksum += *w_eeprom; in check_eeprom() 4220 *w_eeprom = 0x1234 - cksum; in check_eeprom()
|
D | megaraid.c | 3709 u16 cksum = 0; in mega_get_boot_drv() local 3736 cksum = 0; in mega_get_boot_drv() 3739 cksum += (u16)(*cksum_p++); in mega_get_boot_drv() 3742 if (prv_bios_data->cksum == (u16)(0-cksum) ) { in mega_get_boot_drv()
|
D | BusLogic.h | 622 unsigned short cksum; /* Bytes 62-63 */ member
|
D | megaraid.h | 646 u16 cksum; /* 0-(sum of first 13 bytes of this structure) */ member
|
/drivers/scsi/megaraid/ |
D | mbox_defs.h | 764 uint16_t cksum; member
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 1156 __u32 cksum; in osc_checksum_bulk() local 1201 err = cfs_crypto_hash_final(hdesc, (unsigned char *)&cksum, &bufsize); in osc_checksum_bulk() 1209 cksum++; in osc_checksum_bulk() 1211 return cksum; in osc_checksum_bulk()
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_net.h | 2606 void lustre_msg_set_cksum(struct lustre_msg *msg, __u32 cksum);
|