Home
last modified time | relevance | path

Searched refs:cksum (Results 1 – 22 of 22) sorted by relevance

/drivers/video/fbdev/
Dmetronomefb.c178 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/
Dgarmin_gps.c339 __u8 cksum = 0; in gsp_send_ack() local
348 cksum += ACK; in gsp_send_ack()
351 cksum += 2; in gsp_send_ack()
354 cksum += pkt_id; in gsp_send_ack()
360 *ptr++ = (-cksum) & 0xFF; in gsp_send_ack()
388 int cksum = 0; in gsp_rec_packet() local
402 cksum += *recpkt++; in gsp_rec_packet()
403 cksum += *recpkt++; in gsp_rec_packet()
413 cksum += *recpkt++; in gsp_rec_packet()
417 if (((cksum + *recpkt) & 0xff) != 0) { in gsp_rec_packet()
[all …]
/drivers/scsi/esas2r/
Desas2r_flash.c99 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 …]
Desas2r_vda.c349 u8 cksum, in esas2r_build_flash_req() argument
367 vrq->checksum = cksum; in esas2r_build_flash_req()
Desas2r.h1038 u8 cksum,
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1139 u16 index, u16 cksum) in qlcnic_process_rxbuf() argument
1155 (cksum == STATUS_CKSUM_OK || cksum == STATUS_CKSUM_LOOP))) { in qlcnic_process_rxbuf()
1202 int index, length, cksum, pkt_offset, is_lb_pkt; in qlcnic_process_rcv() local
1216 cksum = qlcnic_get_sts_status(sts_data0); in qlcnic_process_rcv()
1219 skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); in qlcnic_process_rcv()
1497 int index, length, cksum, pkt_offset; in qlcnic_process_rcv_diag() local
1509 cksum = qlcnic_get_sts_status(sts_data0); in qlcnic_process_rcv_diag()
1512 skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); in qlcnic_process_rcv_diag()
1726 int index, length, cksum, is_lb_pkt; in qlcnic_83xx_process_rcv() local
1741 cksum = qlcnic_83xx_csum_status(sts_data[1]); in qlcnic_83xx_process_rcv()
[all …]
Dqlcnic.h265 u16 cksum; member
/drivers/video/fbdev/matrox/
Dmatroxfb_misc.c397 unsigned char cksum; in get_pins() local
406 cksum = 0x2E + 0x41 + pins_len; in get_pins()
408 cksum += *dst++ = readb(pins+i); in get_pins()
410 if (cksum) { in get_pins()
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_desc.c40 int buf1_len, int pkt_len, int cksum) in sxgbe_prepare_tx_desc() argument
47 if (cksum) in sxgbe_prepare_tx_desc()
Dsxgbe_desc.h168 int buf1_len, int pkt_len, int cksum);
/drivers/net/ethernet/cirrus/
Dcs89x0.c278 int i, cksum; in get_eeprom_cksum() local
280 cksum = 0; in get_eeprom_cksum()
282 cksum += buffer[i]; in get_eeprom_cksum()
283 cksum &= 0xffff; in get_eeprom_cksum()
284 if (cksum == 0) in get_eeprom_cksum()
/drivers/net/wireless/ath/ath5k/
Deeprom.c77 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/freescale/fman/
Dfman.h146 __be16 cksum; /* Running-sum */ member
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c1486 struct nx_host_rds_ring *rds_ring, u16 index, u16 cksum) in netxen_process_rxbuf() argument
1501 && cksum == STATUS_CKSUM_OK)) { in netxen_process_rxbuf()
1523 int index, length, cksum, pkt_offset; in netxen_process_rcv() local
1537 cksum = netxen_get_sts_status(sts_data0); in netxen_process_rcv()
1540 skb = netxen_process_rxbuf(adapter, rds_ring, index, cksum); in netxen_process_rcv()
/drivers/scsi/
Ddc395x.c209 u16 cksum; /* 126,127 */ member
3995 u16 cksum; in check_eeprom() local
4001 cksum = 0; in check_eeprom()
4004 cksum += *w_eeprom; in check_eeprom()
4005 if (cksum != 0x1234) { in check_eeprom()
4039 eeprom->cksum = 0x00; in check_eeprom()
4040 for (w_addr = 0, cksum = 0, w_eeprom = (u16 *)eeprom; in check_eeprom()
4042 cksum += *w_eeprom; in check_eeprom()
4044 *w_eeprom = 0x1234 - cksum; in check_eeprom()
Dmegaraid.c3665 u16 cksum = 0; in mega_get_boot_drv() local
3692 cksum = 0; in mega_get_boot_drv()
3695 cksum += (u16)(*cksum_p++); in mega_get_boot_drv()
3698 if (prv_bios_data->cksum == (u16)(0-cksum) ) { in mega_get_boot_drv()
DBusLogic.h607 unsigned short cksum; /* Bytes 62-63 */ member
Dmegaraid.h647 u16 cksum; /* 0-(sum of first 13 bytes of this structure) */ member
/drivers/net/ethernet/emulex/benet/
Dbe_cmds.h1359 u32 cksum; member
1378 u32 cksum; member
1388 u32 cksum; member
1397 u32 cksum; member
1409 u32 cksum; member
/drivers/scsi/megaraid/
Dmbox_defs.h759 uint16_t cksum; member
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h186 __u8 cksum; /* Checksum computed on the entire Image */ member
Dt4_hw.c10537 header->cksum = 0x0; in modify_device_id()