Home
last modified time | relevance | path

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

12345678910>>...16

/Linux-v4.19/arch/alpha/lib/
Dcsum_partial_copy.c98 long len, unsigned long checksum, in csum_partial_cfu_aligned() argument
107 checksum += carry; in csum_partial_cfu_aligned()
109 checksum += word; in csum_partial_cfu_aligned()
111 carry = checksum < word; in csum_partial_cfu_aligned()
116 checksum += carry; in csum_partial_cfu_aligned()
122 checksum += word; in csum_partial_cfu_aligned()
124 carry = checksum < word; in csum_partial_cfu_aligned()
126 checksum += carry; in csum_partial_cfu_aligned()
129 return checksum; in csum_partial_cfu_aligned()
140 long len, unsigned long checksum, in csum_partial_cfu_dest_aligned() argument
[all …]
/Linux-v4.19/net/ncsi/
Dncsi-pkt.h43 __be32 checksum; /* Checksum */ member
49 __be32 checksum; /* Checksum */ member
58 __be32 checksum; /* Checksum */ member
67 __be32 checksum; /* Checksum */ member
75 __be32 checksum; /* Checksum */ member
85 __be32 checksum; /* Checksum */ member
94 __be32 checksum; /* Checksum */ member
106 __be32 checksum; /* Checksum */ member
115 __be32 checksum; /* Checksum */ member
125 __be32 checksum; /* Checksum */ member
[all …]
Dncsi-cmd.c26 u32 checksum = 0; in ncsi_calculate_checksum() local
30 checksum += (((u32)data[i] << 8) | data[i + 1]); in ncsi_calculate_checksum()
32 checksum = (~checksum + 1); in ncsi_calculate_checksum()
33 return checksum; in ncsi_calculate_checksum()
42 u32 checksum; in ncsi_cmd_build_header() local
57 checksum = ncsi_calculate_checksum((unsigned char *)h, in ncsi_cmd_build_header()
61 *pchecksum = htonl(checksum); in ncsi_cmd_build_header()
/Linux-v4.19/Documentation/filesystems/ext4/ondisk/
Dchecksums.rst8 The desired checksum algorithm is indicated in the superblock, though as
10 structures did not have space to fit a full 32-bit checksum, so only the
20 checksum, it will request that you run ``e2fsck -D`` to have the
24 protected by a checksum!
27 of checksum. The checksum function is whatever the superblock describes
39 - The entire superblock up to the checksum field. The UUID lives inside
43 - UUID + the entire MMP block up to the checksum field.
46 - UUID + the entire extended attribute block. The checksum field is set to
51 fake entry enclosing the checksum field.
55 The checksum field is set to zero.
[all …]
/Linux-v4.19/Documentation/networking/
Dchecksum-offloads.txt8 to take advantage of checksum offload capabilities of various NICs.
23 The interface for offloading a transmit checksum to a device is explained
26 checksum defined by the sk_buff fields skb->csum_start and
28 checksum (i.e. the 'IP-style' checksum) from csum_start to the end of the
31 value of the checksum field is included in the checksum computation, thus
32 it can be used to supply any needed corrections to the checksum (such as
34 This interface only allows a single checksum to be offloaded. Where
35 encapsulation is used, the packet may have multiple checksum fields in
41 No offloading of the IP header checksum is performed; it is always done in
59 The stack should, for the most part, assume that checksum offload is
[all …]
Dila.txt103 Transport checksum handling
106 When an address is translated by ILA, an encapsulated transport checksum
109 including checksum offload in NICs, that process the checksum. There are
112 - no action Allow the checksum to be incorrect on the wire. Before
113 a receiver verifies a checksum the ILA to SIR address
116 - adjust transport checksum
118 and if a transport layer checksum is found then it is
119 adjusted to reflect the correct checksum per the
122 - checksum neutral mapping
125 the checksum. The low order sixteen bits of the identifier
[all …]
Dudplite.txt7 is a variable-length checksum. This has advantages for transport of multimedia
9 fed into the codec instead of being discarded due to a failed checksum test.
33 IPPROTO need to be changed; senders additionally set the checksum coverage
52 using partial checksum coverage and so emulate UDP mode (full coverage).
54 To make use of the partial checksum coverage facilities requires setting a
57 * Sender checksum coverage: UDPLITE_SEND_CSCOV
64 sets the checksum coverage length to 20 bytes (12b data + 8b header).
70 * Receiver checksum coverage: UDPLITE_RECV_CSCOV
73 required to enable traffic with partial checksum coverage. Its function is
86 A detailed discussion of UDP-Lite checksum coverage options is in section IV.
[all …]
/Linux-v4.19/drivers/staging/vboxvideo/
Dvbox_hgsmi.c57 u32 checksum; in hgsmi_checksum() local
59 checksum = hgsmi_hash_process(0, (u8 *)&offset, sizeof(offset)); in hgsmi_checksum()
60 checksum = hgsmi_hash_process(checksum, (u8 *)header, sizeof(*header)); in hgsmi_checksum()
62 checksum = hgsmi_hash_process(checksum, (u8 *)tail, 4); in hgsmi_checksum()
64 return hgsmi_hash_end(checksum); in hgsmi_checksum()
89 t->checksum = hgsmi_checksum(offset, h, t); in hgsmi_buffer_alloc()
/Linux-v4.19/drivers/acpi/acpica/
Dtbprint.c154 u8 checksum; in acpi_tb_verify_checksum() local
168 checksum = acpi_tb_checksum(ACPI_CAST_PTR(u8, table), length); in acpi_tb_verify_checksum()
172 if (checksum) { in acpi_tb_verify_checksum()
176 table->signature, table->checksum, in acpi_tb_verify_checksum()
177 (u8)(table->checksum - checksum))); in acpi_tb_verify_checksum()
/Linux-v4.19/drivers/net/ethernet/intel/ixgb/
Dixgb_ee.c307 u16 checksum = 0; in ixgb_validate_eeprom_checksum() local
311 checksum += ixgb_read_eeprom(hw, i); in ixgb_validate_eeprom_checksum()
313 if (checksum == (u16) EEPROM_SUM) in ixgb_validate_eeprom_checksum()
330 u16 checksum = 0; in ixgb_update_eeprom_checksum() local
334 checksum += ixgb_read_eeprom(hw, i); in ixgb_update_eeprom_checksum()
336 checksum = (u16) EEPROM_SUM - checksum; in ixgb_update_eeprom_checksum()
338 ixgb_write_eeprom(hw, EEPROM_CHECKSUM_REG, checksum); in ixgb_update_eeprom_checksum()
443 u16 checksum = 0; in ixgb_get_eeprom_data() local
454 checksum += ee_data; in ixgb_get_eeprom_data()
458 if (checksum != (u16) EEPROM_SUM) { in ixgb_get_eeprom_data()
/Linux-v4.19/drivers/mtd/
Dar7part.c40 unsigned int checksum; member
77 if (header.checksum == LOADER_MAGIC1) in create_mtd_partitions()
79 if (header.checksum == LOADER_MAGIC2) in create_mtd_partitions()
91 switch (header.checksum) { in create_mtd_partitions()
110 printk(KERN_WARNING "Unknown magic: %08x\n", header.checksum); in create_mtd_partitions()
115 if (header.checksum != SQUASHFS_MAGIC) { in create_mtd_partitions()
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dar9003_mac.c30 int checksum = 0; in ar9003_set_txdesc() local
41 checksum += val; in ar9003_set_txdesc()
44 checksum += i->link; in ar9003_set_txdesc()
47 checksum += i->buf_addr[0]; in ar9003_set_txdesc()
49 checksum += i->buf_addr[1]; in ar9003_set_txdesc()
51 checksum += i->buf_addr[2]; in ar9003_set_txdesc()
53 checksum += i->buf_addr[3]; in ar9003_set_txdesc()
56 checksum += (val = (i->buf_len[0] << AR_BufLen_S) & AR_BufLen); in ar9003_set_txdesc()
58 checksum += (val = (i->buf_len[1] << AR_BufLen_S) & AR_BufLen); in ar9003_set_txdesc()
60 checksum += (val = (i->buf_len[2] << AR_BufLen_S) & AR_BufLen); in ar9003_set_txdesc()
[all …]
/Linux-v4.19/kernel/debug/
Dgdbstub.c93 unsigned char checksum; in get_packet() local
107 checksum = 0; in get_packet()
119 checksum = checksum + ch; in get_packet()
128 if (checksum != xmitcsum) in get_packet()
138 } while (checksum != xmitcsum); in get_packet()
147 unsigned char checksum; in put_packet() local
156 checksum = 0; in put_packet()
161 checksum += ch; in put_packet()
166 dbg_io_ops->write_char(hex_asc_hi(checksum)); in put_packet()
167 dbg_io_ops->write_char(hex_asc_lo(checksum)); in put_packet()
[all …]
/Linux-v4.19/drivers/nfc/s3fwrn5/
Dnci.c96 u32 checksum; in s3fwrn5_nci_rf_configure() local
106 checksum = 0; in s3fwrn5_nci_rf_configure()
108 checksum += *((u32 *)(fw->data+i)); in s3fwrn5_nci_rf_configure()
151 stop_rfreg.checksum = checksum & 0xffff; in s3fwrn5_nci_rf_configure()
/Linux-v4.19/drivers/scsi/aic7xxx/
Daic7xxx_93cx6.c309 uint32_t checksum; in ahc_verify_cksum() local
313 checksum = 0; in ahc_verify_cksum()
317 checksum = checksum + scarray[i]; in ahc_verify_cksum()
318 if (checksum == 0 in ahc_verify_cksum()
319 || (checksum & 0xFFFF) != sc->checksum) { in ahc_verify_cksum()
/Linux-v4.19/drivers/pnp/isapnp/
Dcore.c296 unsigned char checksum = 0x6a; in isapnp_isolate() local
316 checksum = in isapnp_isolate()
317 ((((checksum ^ (checksum >> 1)) & 0x01) ^ bit) << 7) in isapnp_isolate()
318 | (checksum >> 1); in isapnp_isolate()
329 if (checksum != 0x00 && checksum == chksum) { in isapnp_isolate()
352 checksum = 0x6a; in isapnp_isolate()
769 unsigned char checksum = 0x6a, bit, b; in isapnp_checksum() local
777 checksum = in isapnp_checksum()
778 ((((checksum ^ (checksum >> 1)) & 0x01) ^ bit) << 7) in isapnp_checksum()
779 | (checksum >> 1); in isapnp_checksum()
[all …]
/Linux-v4.19/drivers/media/platform/vivid/
Dvivid-vbi-gen.c179 u8 checksum, i; in vivid_vbi_gen_set_time_of_day() local
194 for (checksum = i = 0; i <= 8; i++) in vivid_vbi_gen_set_time_of_day()
195 checksum += packet[i] & 0x7f; in vivid_vbi_gen_set_time_of_day()
196 packet[9] = calc_parity(0x100 - checksum); in vivid_vbi_gen_set_time_of_day()
197 checksum = 0; in vivid_vbi_gen_set_time_of_day()
206 for (checksum = 0, i = 10; i <= 14; i++) in vivid_vbi_gen_set_time_of_day()
207 checksum += packet[i] & 0x7f; in vivid_vbi_gen_set_time_of_day()
208 packet[15] = calc_parity(0x100 - checksum); in vivid_vbi_gen_set_time_of_day()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_x540.c310 u16 checksum = 0; in ixgbe_calc_eeprom_checksum_X540() local
329 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
366 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
370 checksum = (u16)IXGBE_EEPROM_SUM - checksum; in ixgbe_calc_eeprom_checksum_X540()
372 return (s32)checksum; in ixgbe_calc_eeprom_checksum_X540()
387 u16 checksum; in ixgbe_validate_eeprom_checksum_X540() local
394 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X540()
407 checksum = (u16)(status & 0xffff); in ixgbe_validate_eeprom_checksum_X540()
420 if (read_checksum != checksum) { in ixgbe_validate_eeprom_checksum_X540()
427 *checksum_val = checksum; in ixgbe_validate_eeprom_checksum_X540()
[all …]
/Linux-v4.19/include/net/sctp/
Dchecksum.h69 __le32 old = sh->checksum; in sctp_compute_cksum()
72 sh->checksum = 0; in sctp_compute_cksum()
74 sh->checksum = old; in sctp_compute_cksum()
/Linux-v4.19/sound/pci/oxygen/
Dxonar_hdmi.c33 u8 checksum; in hdmi_write_command() local
41 checksum = 0xfb + 0xef + command + count; in hdmi_write_command()
43 checksum += params[i]; in hdmi_write_command()
44 oxygen_write_uart(chip, checksum); in hdmi_write_command()
/Linux-v4.19/fs/affs/
Damigaffs.h53 __be32 checksum; member
79 __be32 checksum; member
107 __be32 checksum; member
118 __be32 checksum; member
/Linux-v4.19/Documentation/devicetree/bindings/net/
Dxilinx_axienet.txt8 offloading TX/RX checksum calculation off the processor.
30 - xlnx,txcsum : 0 or empty for disabling TX checksum offload,
31 1 to enable partial TX checksum offload,
32 2 to enable full TX checksum offload
33 - xlnx,rxcsum : Same values as xlnx,txcsum but for RX checksum offload
/Linux-v4.19/fs/udf/
Dmisc.c204 u8 checksum; in udf_read_tagged() local
228 checksum = udf_tag_checksum(tag_p); in udf_read_tagged()
229 if (checksum != tag_p->tagChecksum) { in udf_read_tagged()
231 block, checksum, tag_p->tagChecksum); in udf_read_tagged()
290 u8 checksum = 0; in udf_tag_checksum() local
294 checksum += data[i]; in udf_tag_checksum()
295 return checksum; in udf_tag_checksum()
/Linux-v4.19/arch/unicore32/kernel/
Dpm.c30 unsigned long sleep_save_checksum = 0, checksum = 0; in puv3_pm_enter() local
53 checksum += sleep_save[i]; in puv3_pm_enter()
56 if (checksum != sleep_save_checksum) { in puv3_pm_enter()
/Linux-v4.19/arch/arm/mach-pxa/
Dpm.c26 unsigned long sleep_save_checksum = 0, checksum = 0; in pxa_pm_enter() local
49 checksum += sleep_save[i]; in pxa_pm_enter()
52 if (checksum != sleep_save_checksum) { in pxa_pm_enter()

12345678910>>...16