Home
last modified time | relevance | path

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

12345678

/drivers/infiniband/hw/qib/
Dqib_eeprom.c117 u8 csum = 0, len; in flash_csum() local
128 csum += *ip++; in flash_csum()
129 csum -= ifp->if_csum; in flash_csum()
130 csum = ~csum; in flash_csum()
132 ifp->if_csum = csum; in flash_csum()
134 return csum; in flash_csum()
150 u8 csum, *bguid; in qib_get_eeprom_info() local
199 csum = flash_csum(ifp, 0); in qib_get_eeprom_info()
200 if (csum != ifp->if_csum) { in qib_get_eeprom_info()
203 csum, ifp->if_csum); in qib_get_eeprom_info()
/drivers/net/ethernet/sgi/
Dioc3-eth.c303 u32 csum, ehsum; in ioc3_tcpudp_checksum() local
331 csum = hwsum + in ioc3_tcpudp_checksum()
344 csum += 0xffff ^ ehsum; in ioc3_tcpudp_checksum()
351 csum += 0xffff ^ (u16)((cp[1] << 8) | cp[0]); in ioc3_tcpudp_checksum()
352 csum += 0xffff ^ (u16)((cp[3] << 8) | cp[2]); in ioc3_tcpudp_checksum()
354 csum += 0xffff ^ (u16)((cp[0] << 8) | cp[1]); in ioc3_tcpudp_checksum()
355 csum += 0xffff ^ (u16)((cp[2] << 8) | cp[3]); in ioc3_tcpudp_checksum()
358 csum = (csum & 0xffff) + (csum >> 16); in ioc3_tcpudp_checksum()
359 csum = (csum & 0xffff) + (csum >> 16); in ioc3_tcpudp_checksum()
361 if (csum == 0xffff) in ioc3_tcpudp_checksum()
[all …]
/drivers/input/touchscreen/
Delo.c59 unsigned char csum; member
73 elo->csum = 0xaa; in elo_process_data_10()
83 if (data != elo->csum) { in elo_process_data_10()
86 data, elo->csum); in elo_process_data_10()
114 elo->csum += data; in elo_process_data_10()
224 unsigned char csum = 0xaa + ELO10_LEAD_BYTE; in elo_command_10() local
237 csum += packet[i]; in elo_command_10()
242 if (serio_write(elo->serio, csum)) in elo_command_10()
/drivers/crypto/cavium/zip/
Dzip_inflate.c84 zip_cmd->s.adlercrc32 = zip_ops->csum; in prepare_inflate_zcmd()
179 zip_ops->csum = result_ptr->s.adler32; in zip_inflate()
200 zip_ops->csum = result_ptr->s.adler32; in zip_inflate()
205 zip_ops->csum = result_ptr->s.adler32; in zip_inflate()
210 zip_ops->csum = result_ptr->s.crc32; in zip_inflate()
Dzip_deflate.c80 zip_cmd->s.adlercrc32 = zip_ops->csum; in prepare_zip_command()
164 zip_ops->csum = result_ptr->s.adler32; in zip_deflate()
169 zip_ops->csum = result_ptr->s.adler32; in zip_deflate()
174 zip_ops->csum = result_ptr->s.crc32; in zip_deflate()
/drivers/accessibility/braille/
Dbraille_console.c65 unsigned char data[1 + 1 + 2*WIDTH + 2 + 1], csum = 0, *c; in braille_write() local
83 csum ^= '>'; in braille_write()
91 csum ^= out; in braille_write()
99 if (csum <= 0x05) { in braille_write()
101 csum |= 0x40; in braille_write()
103 *c++ = csum; in braille_write()
/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_map_data.c185 u16 *csum; in rmnet_map_complement_ipv4_txporthdr_csum_field() local
190 csum = (u16 *)rmnet_map_get_csum_field(ip4h->protocol, txphdr); in rmnet_map_complement_ipv4_txporthdr_csum_field()
191 *csum = ~(*csum); in rmnet_map_complement_ipv4_txporthdr_csum_field()
227 u16 *csum; in rmnet_map_complement_ipv6_txporthdr_csum_field() local
232 csum = (u16 *)rmnet_map_get_csum_field(ip6h->nexthdr, txphdr); in rmnet_map_complement_ipv6_txporthdr_csum_field()
233 *csum = ~(*csum); in rmnet_map_complement_ipv6_txporthdr_csum_field()
/drivers/net/ethernet/stmicro/stmmac/
Dchain_mode.c17 static int jumbo_frm(void *p, struct sk_buff *skb, int csum) in jumbo_frm() argument
44 stmmac_prepare_tx_desc(priv, desc, 1, bmax, csum, STMMAC_CHAIN_MODE, in jumbo_frm()
61 stmmac_prepare_tx_desc(priv, desc, 0, bmax, csum, in jumbo_frm()
75 stmmac_prepare_tx_desc(priv, desc, 0, len, csum, in jumbo_frm()
Dring_mode.c17 static int jumbo_frm(void *p, struct sk_buff *skb, int csum) in jumbo_frm() argument
51 stmmac_prepare_tx_desc(priv, desc, 1, bmax, csum, in jumbo_frm()
71 stmmac_prepare_tx_desc(priv, desc, 0, len, csum, in jumbo_frm()
84 stmmac_prepare_tx_desc(priv, desc, 1, nopaged_len, csum, in jumbo_frm()
/drivers/md/
Ddm-clone-metadata.c39 __le32 csum; member
170 u32 csum; in sb_prepare_for_write() local
175 csum = dm_bm_checksum(&sb->flags, sb_block_size - sizeof(__le32), in sb_prepare_for_write()
177 sb->csum = cpu_to_le32(csum); in sb_prepare_for_write()
184 u32 csum, metadata_version; in sb_check() local
202 csum = dm_bm_checksum(&sb->flags, sb_block_size - sizeof(__le32), in sb_check()
204 if (sb->csum != cpu_to_le32(csum)) { in sb_check()
206 csum, le32_to_cpu(sb->csum)); in sb_check()
/drivers/video/fbdev/
Dmetronomefb.c335 par->metromem_cmd->csum = cs; in metronome_display_cmd()
360 par->metromem_cmd->csum = cs; in metronome_powerup_cmd()
383 par->metromem_cmd->csum = 0xCC10; in metronome_config_cmd()
384 par->metromem_cmd->csum += calc_img_cksum(par->metromem_cmd->args, 4); in metronome_config_cmd()
410 par->metromem_cmd->csum = cs; in metronome_init_cmd()
455 u16 csum = 0; in metronomefb_dpy_update_page() local
462 csum += *(img + i); in metronomefb_dpy_update_page()
464 return csum; in metronomefb_dpy_update_page()
/drivers/scsi/sym53c8xx_2/
Dsym_nvram.c502 u_short csum; in sym_read_Symbios_nvram() local
516 for (x = 6, csum = 0; x < len - 6; x++) in sym_read_Symbios_nvram()
517 csum += data[x]; in sym_read_Symbios_nvram()
518 if (csum != nvram->checksum) in sym_read_Symbios_nvram()
683 u_short csum; in sym_read_Tekram_nvram() local
707 for (x = 0, csum = 0; x < len - 1; x += 2) in sym_read_Tekram_nvram()
708 csum += data[x] + (data[x+1] << 8); in sym_read_Tekram_nvram()
709 if (csum != 0x1234) in sym_read_Tekram_nvram()
/drivers/platform/chrome/
Dcros_ec_proto.c61 u8 csum = 0; in prepare_packet() local
76 csum += out[i]; in prepare_packet()
81 csum += msg->data[i]; in prepare_packet()
83 request->checksum = -csum; in prepare_packet()
174 u8 csum; in cros_ec_prepare_tx() local
185 csum = out[0] + out[1] + out[2]; in cros_ec_prepare_tx()
187 csum += out[EC_MSG_TX_HEADER_BYTES + i] = msg->data[i]; in cros_ec_prepare_tx()
188 out[EC_MSG_TX_HEADER_BYTES + msg->outsize] = csum; in cros_ec_prepare_tx()
/drivers/input/mouse/
Dcyapa_gen3.c541 u16 csum = 0; in cyapa_gen3_csum() local
544 csum += buf[i]; in cyapa_gen3_csum()
546 return csum; in cyapa_gen3_csum()
567 u16 csum; in cyapa_gen3_check_fw() local
579 csum = cyapa_gen3_csum(&fw->data[2], CYAPA_FW_HDR_SIZE - 2); in cyapa_gen3_check_fw()
580 if (csum != csum_expected) { in cyapa_gen3_check_fw()
583 csum, csum_expected); in cyapa_gen3_check_fw()
590 csum = cyapa_gen3_csum(&fw->data[CYAPA_FW_HDR_SIZE], in cyapa_gen3_check_fw()
592 if (csum != csum_expected) { in cyapa_gen3_check_fw()
595 csum, csum_expected); in cyapa_gen3_check_fw()
/drivers/net/ethernet/sfc/
Def100_rx.c61 __wsum csum = 0; in __ef100_rx_packet() local
85 csum = (__force __wsum) sum; in __ef100_rx_packet()
99 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, csum); in __ef100_rx_packet()
/drivers/net/wireless/mediatek/mt7601u/
Dtrace.h80 struct sk_buff *skb, u32 csum, bool resp),
81 TP_ARGS(dev, skb, csum, resp),
85 __field(u32, csum)
91 __entry->csum = csum;
95 DEV_PR_ARG, __entry->info, __entry->csum, __entry->resp)
/drivers/gpu/drm/ast/
Dast_cursor.c115 u32 csum = 0; in update_cursor_image() local
140 csum += data32.ul; in update_cursor_image()
152 csum += (u32)data16.us; in update_cursor_image()
162 writel(csum, dst); in update_cursor_image()
/drivers/net/ethernet/sun/
Dsunvnet_common.c319 skb->csum = 0; in vnet_fullcsum_ipv4()
324 skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); in vnet_fullcsum_ipv4()
327 skb->csum); in vnet_fullcsum_ipv4()
332 skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); in vnet_fullcsum_ipv4()
335 skb->csum); in vnet_fullcsum_ipv4()
352 skb->csum = 0; in vnet_fullcsum_ipv6()
357 skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); in vnet_fullcsum_ipv6()
360 skb->csum); in vnet_fullcsum_ipv6()
365 skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); in vnet_fullcsum_ipv6()
368 skb->csum); in vnet_fullcsum_ipv6()
[all …]
/drivers/block/
Damiflop.c795 unsigned long csum = 0; in checksum() local
799 csum ^= *addr++; in checksum()
800 csum = ((csum>>1) & 0x55555555) ^ (csum & 0x55555555); in checksum()
802 return csum; in checksum()
840 unsigned long csum; in amiga_read() local
857 csum = checksum((ulong *)&hdr, in amiga_read()
868 if (hdr.hdrchk != csum) { in amiga_read()
869 printk(KERN_INFO "MFM_HEADER: %08lx,%08lx\n", hdr.hdrchk, csum); in amiga_read()
881 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512); in amiga_read()
883 if (hdr.datachk != csum) { in amiga_read()
[all …]
/drivers/input/joystick/iforce/
Diforce-serio.c17 u8 csum; member
159 iforce_serio->csum += data; in iforce_serio_irq()
183 iforce_serio->csum = 0; in iforce_serio_irq()
/drivers/net/ethernet/intel/e1000e/
Dmanage.c97 s32 ret_val, hdr_csum, csum; in e1000e_enable_tx_pkt_filtering() local
125 csum = e1000_calculate_checksum((u8 *)hdr, in e1000e_enable_tx_pkt_filtering()
131 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) { in e1000e_enable_tx_pkt_filtering()
/drivers/hwmon/
Ddrivetemp.c213 u8 csum; in drivetemp_get_smarttemp() local
222 csum = 0; in drivetemp_get_smarttemp()
224 csum += buf[i]; in drivetemp_get_smarttemp()
225 if (csum) { in drivetemp_get_smarttemp()
/drivers/net/usb/
Dax88179_178a.c1046 u16 csum, delay = HZ / 10; in ax88179_check_eeprom() local
1078 csum = eeprom[6] + eeprom[7] + eeprom[8] + eeprom[9]; in ax88179_check_eeprom()
1079 csum = (csum >> 8) + (csum & 0xff); in ax88179_check_eeprom()
1080 if ((csum + eeprom[10]) != 0xff) in ax88179_check_eeprom()
1090 u16 csum = 0; in ax88179_check_efuse() local
1099 csum = csum + efuse[i]; in ax88179_check_efuse()
1101 while (csum > 255) in ax88179_check_efuse()
1102 csum = (csum & 0x00FF) + ((csum >> 8) & 0x00FF); in ax88179_check_efuse()
1104 if (csum != 0xFF) in ax88179_check_efuse()
/drivers/md/persistent-data/
Ddm-btree-spine.c30 h->csum = cpu_to_le32(dm_bm_checksum(&h->flags, in node_prepare_for_write()
56 if (csum_disk != h->csum) { in node_check()
58 le32_to_cpu(csum_disk), le32_to_cpu(h->csum)); in node_check()
Ddm-space-map-common.h41 __le32 csum; member
94 __le32 csum; member

12345678