Home
last modified time | relevance | path

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

12345678910>>...19

/linux/drivers/acpi/acpica/
H A Dutcksum.c29 * exception on bad checksum.
37 u8 checksum; in acpi_ut_verify_checksum() local
41 * They are the odd tables, have no standard ACPI header and no checksum in acpi_ut_verify_checksum()
48 /* Compute the checksum on the table */ in acpi_ut_verify_checksum()
51 checksum = in acpi_ut_verify_checksum()
53 table->checksum); in acpi_ut_verify_checksum()
55 /* Computed checksum matches table? */ in acpi_ut_verify_checksum()
57 if (checksum != table->checksum) { in acpi_ut_verify_checksum()
59 "Incorrect checksum i in acpi_ut_verify_checksum()
89 u8 checksum; acpi_ut_verify_cdat_checksum() local
131 u8 checksum; acpi_ut_generate_checksum() local
[all...]
/linux/arch/alpha/lib/
H A Dcsum_partial_copy.c16 #include <net/checksum.h>
87 unsigned long checksum = ~0U; in csum_partial_cfu_aligned() local
94 checksum += carry; in csum_partial_cfu_aligned()
96 checksum += word; in csum_partial_cfu_aligned()
98 carry = checksum < word; in csum_partial_cfu_aligned()
103 checksum += carry; in csum_partial_cfu_aligned()
110 checksum += word; in csum_partial_cfu_aligned()
112 carry = checksum < word; in csum_partial_cfu_aligned()
114 checksum += carry; in csum_partial_cfu_aligned()
116 return checksum; in csum_partial_cfu_aligned()
132 unsigned long checksum = ~0U; csum_partial_cfu_dest_aligned() local
188 unsigned long checksum = ~0U; csum_partial_cfu_src_aligned() local
245 unsigned long checksum = ~0U; csum_partial_cfu_unaligned() local
320 unsigned long checksum; __csum_and_copy() local
[all...]
/linux/Documentation/filesystems/ext4/
H A 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 fiel
[all...]
H A Dgroup_descr.rst36 checksum is the crc16 of the FS UUID, the group number, and the group
38 checksum is the lower 16 bits of the checksum of the FS UUID, the group
88 - Lower 16-bits of the block bitmap checksum.
92 - Lower 16-bits of the inode bitmap checksum.
102 - Group descriptor checksum; crc16(sb_uuid+group_num+bg_desc) if the
106 field in bg_desc is skipped when calculating crc16 checksum,
107 and set to zero if crc32c checksum is used.
148 - Upper 16-bits of the block bitmap checksum.
152 - Upper 16-bits of the inode bitmap checksum
[all...]
/linux/Documentation/networking/
H A Dchecksum-offloads.rst12 take advantage of checksum offload capabilities of various NICs.
29 The interface for offloading a transmit checksum to a device is explained in
33 checksum defined by the sk_buff fields skb->csum_start and skb->csum_offset.
34 The device should compute the 16-bit ones-complement checksum (i.e. the
35 'IP-style' checksum) from csum_start to the end of the packet, and fill in the
39 the checksum field is included in the checksum computation, thus it can be used
40 to supply any needed corrections to the checksum (such as the sum of the
43 This interface only allows a single checksum to be offloaded. Where
44 encapsulation is used, the packet may have multiple checksum field
[all...]
H A Dila.rst112 Transport checksum handling
115 When an address is translated by ILA, an encapsulated transport checksum
118 including checksum offload in NICs, that process the checksum. There are
121 - no action Allow the checksum to be incorrect on the wire. Before
122 a receiver verifies a checksum the ILA to SIR address
125 - adjust transport checksum
127 and if a transport layer checksum is found then it is
128 adjusted to reflect the correct checksum per the
131 - checksum neutra
[all...]
H A Dudplite.rst9 is a variable-length checksum. This has advantages for transport of multimedia
11 fed into the codec instead of being discarded due to a failed checksum test.
37 IPPROTO need to be changed; senders additionally set the checksum coverage
58 using partial checksum coverage and so emulate UDP mode (full coverage).
60 To make use of the partial checksum coverage facilities requires setting a
63 * Sender checksum coverage: UDPLITE_SEND_CSCOV
70 sets the checksum coverage length to 20 bytes (12b data + 8b header).
76 * Receiver checksum coverage: UDPLITE_RECV_CSCOV
79 required to enable traffic with partial checksum coverage. Its function is
92 A detailed discussion of UDP-Lite checksum coverag
[all...]
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_hw.c74 * txgbe_calc_eeprom_checksum - Calculates and returns the checksum
76 * @checksum: pointer to cheksum
80 static int txgbe_calc_eeprom_checksum(struct wx *wx, u16 *checksum) in txgbe_calc_eeprom_checksum() argument
109 *checksum += local_buffer[i]; in txgbe_calc_eeprom_checksum()
114 *checksum = TXGBE_EEPROM_SUM - *checksum; in txgbe_calc_eeprom_checksum()
120 * txgbe_validate_eeprom_checksum - Validate EEPROM checksum
122 * @checksum_val: calculated checksum
124 * Performs checksum calculation and validates the EEPROM checksum
130 u16 checksum; txgbe_validate_eeprom_checksum() local
[all...]
/linux/drivers/gpu/drm/vboxvideo/
H A Dvbox_hgsmi.c32 /* Not really a checksum but that is the naming used in all vbox code */
37 u32 checksum; in hgsmi_checksum() local
39 checksum = hgsmi_hash_process(0, (u8 *)&offset, sizeof(offset)); in hgsmi_checksum()
40 checksum = hgsmi_hash_process(checksum, (u8 *)header, sizeof(*header)); in hgsmi_checksum()
41 /* 4 -> Do not checksum the checksum itself */ in hgsmi_checksum()
42 checksum = hgsmi_hash_process(checksum, (u8 *)tail, 4); in hgsmi_checksum()
44 return hgsmi_hash_end(checksum); in hgsmi_checksum()
[all...]
/linux/drivers/net/ethernet/intel/igc/
H A Digc_nvm.c105 * igc_validate_nvm_checksum - Validate EEPROM checksum
108 * Calculates the EEPROM checksum by reading/adding each word of the EEPROM
113 u16 checksum = 0; in igc_validate_nvm_checksum() local
123 checksum += nvm_data; in igc_validate_nvm_checksum()
126 if (checksum != (u16)NVM_SUM) { in igc_validate_nvm_checksum()
137 * igc_update_nvm_checksum - Update EEPROM checksum
140 * Updates the EEPROM checksum by reading/adding each word of the EEPROM
141 * up to the checksum. Then calculates the EEPROM checksum and writes the
146 u16 checksum in igc_update_nvm_checksum() local
[all...]
/linux/drivers/platform/chrome/wilco_ec/
H A Dmailbox.c68 * wilco_ec_checksum() - Compute 8-bit checksum over data range.
69 * @data: Data to checksum.
70 * @size: Number of bytes to checksum.
72 * Return: 8-bit checksum of provided data.
77 u8 checksum = 0; in wilco_ec_checksum() local
81 checksum += data_bytes[i]; in wilco_ec_checksum()
83 return checksum; in wilco_ec_checksum()
101 rq->checksum = wilco_ec_checksum(rq, sizeof(*rq)); in wilco_ec_prepare()
102 rq->checksum += wilco_ec_checksum(msg->request_data, msg->request_size); in wilco_ec_prepare()
103 rq->checksum in wilco_ec_prepare()
[all...]
/linux/kernel/gcov/
H A Dclang.c62 u32 checksum; member
71 u32 checksum; member
105 void llvm_gcda_start_file(const char *orig_filename, u32 version, u32 checksum) in llvm_gcda_start_file() argument
109 current_info->checksum = checksum; in llvm_gcda_start_file()
122 info->checksum = func_checksum; in llvm_gcda_emit_function()
248 if (info1->checksum != info2->checksum) in gcov_info_is_compatible()
254 if (fn_ptr1->checksum != fn_ptr2->checksum) in gcov_info_is_compatible()
[all...]
/linux/drivers/input/touchscreen/
H A Dgoodix_fwupload.c35 u16 checksum = 0; in goodix_firmware_checksum() local
39 checksum += (data[i] << 8) + data[i + 1]; in goodix_firmware_checksum()
41 return checksum; in goodix_firmware_checksum()
49 u16 checksum; in goodix_firmware_verify() local
61 checksum = goodix_firmware_checksum(data, 4 * GOODIX_FW_SECTION_LENGTH); in goodix_firmware_verify()
62 if (checksum) { in goodix_firmware_verify()
63 dev_err(dev, "Main firmware checksum error\n"); in goodix_firmware_verify()
68 checksum = goodix_firmware_checksum(data, GOODIX_FW_DSP_LENGTH); in goodix_firmware_verify()
69 if (checksum) { in goodix_firmware_verify()
70 dev_err(dev, "DSP firmware checksum erro in goodix_firmware_verify()
312 u8 checksum = 0; goodix_send_main_clock() local
[all...]
/linux/drivers/nfc/s3fwrn5/
H A Dnci.c55 u32 checksum; in s3fwrn5_nci_rf_configure() local
63 /* Compute rfreg checksum */ in s3fwrn5_nci_rf_configure()
65 checksum = 0; in s3fwrn5_nci_rf_configure()
67 checksum += *((u32 *)(fw->data+i)); in s3fwrn5_nci_rf_configure()
107 stop_rfreg.checksum = checksum & 0xffff; in s3fwrn5_nci_rf_configure()
/linux/drivers/net/wireless/ath/ath9k/
H A 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 in ar9003_set_txdesc()
163 int checksum; ar9003_calc_ptr_chksum() local
[all...]
/linux/include/net/sctp/
H A Dchecksum.h31 __le32 old = sh->checksum; in sctp_compute_cksum()
34 sh->checksum = 0; in sctp_compute_cksum()
36 sh->checksum = old; in sctp_compute_cksum()
/linux/kernel/debug/
H A Dgdbstub.c87 /* scan for the sequence $<data>#<checksum> */
90 unsigned char checksum; in get_packet() local
104 checksum = 0; in get_packet()
116 checksum = checksum + ch; in get_packet()
125 if (checksum != xmitcsum) in get_packet()
126 /* failed checksum */ in get_packet()
135 } while (checksum != xmitcsum); in get_packet()
144 unsigned char checksum; in put_packet() local
149 * $<packet info>#<checksum> in put_packet()
1126 unsigned char checksum, ch, buffer[3]; gdbstub_exit() local
[all...]
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_test.c80 struct xdr_netobj Kc, checksum; in checksum_case() local
105 checksum.len = gk5e->cksumlength; in checksum_case()
106 checksum.data = kunit_kzalloc(test, checksum.len, GFP_KERNEL); in checksum_case()
107 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, checksum.data); in checksum_case()
110 err = gss_krb5_checksum(tfm, NULL, 0, &buf, 0, &checksum); in checksum_case()
116 checksum.data, checksum.len), 0, in checksum_case()
117 "checksum mismatch"); in checksum_case()
780 .desc = "camellia128-cts-cmac checksum tes
1119 struct xdr_netobj Ke, Ki, checksum; rfc6803_encrypt_case() local
1614 struct xdr_netobj Ke, Ki, checksum; rfc8009_encrypt_case() local
[all...]
/linux/drivers/scsi/aic7xxx/
H A Daic7xxx_93cx6.c303 uint32_t checksum; in ahc_verify_cksum() local
307 checksum = 0; in ahc_verify_cksum()
311 checksum = checksum + scarray[i]; in ahc_verify_cksum()
312 if (checksum == 0 in ahc_verify_cksum()
313 || (checksum & 0xFFFF) != sc->checksum) { in ahc_verify_cksum()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_x540.c306 * ixgbe_calc_eeprom_checksum_X540 - Calculates and returns the checksum
317 u16 checksum = 0; in ixgbe_calc_eeprom_checksum_X540() local
330 /* Include 0x0-0x3F in the checksum */ in ixgbe_calc_eeprom_checksum_X540()
336 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
372 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
376 checksum = (u16)IXGBE_EEPROM_SUM - checksum; in ixgbe_calc_eeprom_checksum_X540()
378 return (int)checksum; in ixgbe_calc_eeprom_checksum_X540()
382 * ixgbe_validate_eeprom_checksum_X540 - Validate EEPROM checksum
384 * @checksum_val: calculated checksum
393 u16 checksum; ixgbe_validate_eeprom_checksum_X540() local
451 u16 checksum; ixgbe_update_eeprom_checksum_X540() local
[all...]
/linux/fs/affs/
H A Damigaffs.h57 __be32 checksum; member
83 __be32 checksum; member
111 __be32 checksum; member
122 __be32 checksum; member
/linux/sound/pci/oxygen/
H A Dxonar_hdmi.c22 u8 checksum; in hdmi_write_command() local
30 checksum = 0xfb + 0xef + command + count; in hdmi_write_command()
32 checksum += params[i]; in hdmi_write_command()
33 oxygen_write_uart(chip, checksum); in hdmi_write_command()
/linux/net/ncsi/
H A Dncsi-cmd.c25 u32 checksum = 0; in ncsi_calculate_checksum() local
29 checksum += (((u32)data[i] << 8) | data[i + 1]); in ncsi_calculate_checksum()
31 checksum = (~checksum + 1); in ncsi_calculate_checksum()
32 return checksum; in ncsi_calculate_checksum()
41 u32 checksum; in ncsi_cmd_build_header() local
55 /* Fill with calculated checksum */ in ncsi_cmd_build_header()
56 checksum = ncsi_calculate_checksum((unsigned char *)h, in ncsi_cmd_build_header()
60 *pchecksum = htonl(checksum); in ncsi_cmd_build_header()
221 * 32-bit boundary before the checksum fiel in ncsi_cmd_handler_oem()
[all...]
/linux/drivers/media/test-drivers/vivid/
H A Dvivid-vbi-gen.c175 u8 checksum, i; in vivid_vbi_gen_set_time_of_day() local
190 for (checksum = i = 0; i <= 8; i++) in vivid_vbi_gen_set_time_of_day()
191 checksum += packet[i] & 0x7f; in vivid_vbi_gen_set_time_of_day()
192 packet[9] = calc_parity(0x100 - checksum); in vivid_vbi_gen_set_time_of_day()
201 for (checksum = 0, i = 10; i <= 14; i++) in vivid_vbi_gen_set_time_of_day()
202 checksum += packet[i] & 0x7f; in vivid_vbi_gen_set_time_of_day()
203 packet[15] = calc_parity(0x100 - checksum); in vivid_vbi_gen_set_time_of_day()
/linux/fs/udf/
H A Dmisc.c56 /* check checksum/crc */ in udf_add_extendedattr()
115 /* rewrite CRC + checksum of eahd */ in udf_add_extendedattr()
142 /* check checksum/crc */ in udf_get_extendedattr()
193 u8 checksum; in udf_read_tagged() local
216 /* Verify the tag checksum */ in udf_read_tagged()
217 checksum = udf_tag_checksum(tag_p); in udf_read_tagged()
218 if (checksum != tag_p->tagChecksum) { in udf_read_tagged()
219 udf_err(sb, "tag checksum failed, block %u: 0x%02x != 0x%02x\n", in udf_read_tagged()
220 block, checksum, tag_p->tagChecksum); in udf_read_tagged()
279 u8 checksum in udf_tag_checksum() local
[all...]

12345678910>>...19