Home
last modified time | relevance | path

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

12345678910>>...20

/linux-6.6.21/drivers/acpi/acpica/ !
Dutcksum.c37 u8 checksum; in acpi_ut_verify_checksum() local
51 checksum = in acpi_ut_verify_checksum()
53 table->checksum); in acpi_ut_verify_checksum()
57 if (checksum != table->checksum) { in acpi_ut_verify_checksum()
61 table->signature, table->checksum, in acpi_ut_verify_checksum()
62 table->checksum - checksum)); in acpi_ut_verify_checksum()
89 u8 checksum; in acpi_ut_verify_cdat_checksum() local
93 checksum = acpi_ut_generate_checksum(ACPI_CAST_PTR(u8, cdat_table), in acpi_ut_verify_cdat_checksum()
95 cdat_table->checksum); in acpi_ut_verify_cdat_checksum()
99 if (checksum != cdat_table->checksum) { in acpi_ut_verify_cdat_checksum()
[all …]
/linux-6.6.21/arch/alpha/lib/ !
Dcsum_partial_copy.c87 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; in csum_partial_cfu_dest_aligned() local
[all …]
/linux-6.6.21/net/ncsi/ !
Dncsi-pkt.h39 __be32 checksum; /* Checksum */ member
45 __be32 checksum; /* Checksum */ member
54 __be32 checksum; /* Checksum */ member
63 __be32 checksum; /* Checksum */ member
71 __be32 checksum; /* Checksum */ member
81 __be32 checksum; /* Checksum */ member
90 __be32 checksum; /* Checksum */ member
102 __be32 checksum; /* Checksum */ member
111 __be32 checksum; /* Checksum */ member
121 __be32 checksum; /* Checksum */ member
[all …]
/linux-6.6.21/drivers/platform/chrome/wilco_ec/ !
Dmailbox.c77 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 = -rq->checksum; in wilco_ec_prepare()
120 u8 checksum; in wilco_ec_transfer() local
152 checksum = cros_ec_lpc_io_bytes_mec(MEC_IO_READ, 0, in wilco_ec_transfer()
155 if (checksum) { in wilco_ec_transfer()
156 dev_dbg(ec->dev, "bad packet checksum 0x%02x\n", rs->checksum); in wilco_ec_transfer()
/linux-6.6.21/Documentation/filesystems/ext4/ !
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 …]
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.
/linux-6.6.21/Documentation/networking/ !
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 fields in
52 No offloading of the IP header checksum is performed; it is always done in
[all …]
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 neutral mapping
134 the checksum. The low order sixteen bits of the identifier
[all …]
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 coverage options is in section IV.
[all …]
/linux-6.6.21/drivers/gpu/drm/vboxvideo/ !
Dvbox_hgsmi.c37 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()
42 checksum = hgsmi_hash_process(checksum, (u8 *)tail, 4); in hgsmi_checksum()
44 return hgsmi_hash_end(checksum); in hgsmi_checksum()
69 t->checksum = hgsmi_checksum(offset, h, t); in hgsmi_buffer_alloc()
/linux-6.6.21/drivers/net/ethernet/wangxun/txgbe/ !
Dtxgbe_hw.c188 static int txgbe_calc_eeprom_checksum(struct wx *wx, u16 *checksum) in txgbe_calc_eeprom_checksum() argument
212 *checksum += local_buffer[i]; in txgbe_calc_eeprom_checksum()
217 *checksum = TXGBE_EEPROM_SUM - *checksum; in txgbe_calc_eeprom_checksum()
233 u16 checksum; in txgbe_validate_eeprom_checksum() local
240 status = wx_read_ee_hostif(wx, 0, &checksum); in txgbe_validate_eeprom_checksum()
246 checksum = 0; in txgbe_validate_eeprom_checksum()
247 status = txgbe_calc_eeprom_checksum(wx, &checksum); in txgbe_validate_eeprom_checksum()
259 if (read_checksum != checksum) { in txgbe_validate_eeprom_checksum()
266 *checksum_val = checksum; in txgbe_validate_eeprom_checksum()
/linux-6.6.21/kernel/gcov/ !
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()
376 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda()
384 pos += store_gcov_u32(buffer, pos, fi_ptr->checksum); in convert_to_gcda()
/linux-6.6.21/drivers/net/ethernet/intel/igc/ !
Digc_nvm.c163 u16 checksum = 0; in igc_validate_nvm_checksum() local
173 checksum += nvm_data; in igc_validate_nvm_checksum()
176 if (checksum != (u16)NVM_SUM) { in igc_validate_nvm_checksum()
196 u16 checksum = 0; in igc_update_nvm_checksum() local
206 checksum += nvm_data; in igc_update_nvm_checksum()
208 checksum = (u16)NVM_SUM - checksum; in igc_update_nvm_checksum()
209 ret_val = hw->nvm.ops.write(hw, NVM_CHECKSUM_REG, 1, &checksum); in igc_update_nvm_checksum()
/linux-6.6.21/drivers/mtd/parsers/ !
Dar7part.c26 unsigned int checksum; member
63 if (header.checksum == LOADER_MAGIC1) in create_mtd_partitions()
65 if (header.checksum == LOADER_MAGIC2) in create_mtd_partitions()
77 switch (header.checksum) { in create_mtd_partitions()
96 printk(KERN_WARNING "Unknown magic: %08x\n", header.checksum); in create_mtd_partitions()
101 if (header.checksum != SQUASHFS_MAGIC) { in create_mtd_partitions()
/linux-6.6.21/drivers/input/touchscreen/ !
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()
68 checksum = goodix_firmware_checksum(data, GOODIX_FW_DSP_LENGTH); in goodix_firmware_verify()
69 if (checksum) { in goodix_firmware_verify()
312 u8 checksum = 0; in goodix_send_main_clock() local
320 checksum += main_clk; in goodix_send_main_clock()
[all …]
/linux-6.6.21/drivers/nfc/s3fwrn5/ !
Dnci.c55 u32 checksum; in s3fwrn5_nci_rf_configure() local
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-6.6.21/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-6.6.21/drivers/fsi/ !
Dfsi-occ.c238 u16 checksum; in occ_verify_checksum() local
241 checksum = resp->seq_no; in occ_verify_checksum()
242 checksum += resp->cmd_type; in occ_verify_checksum()
243 checksum += resp->return_status; in occ_verify_checksum()
244 checksum += (data_length >> 8) + (data_length & 0xFF); in occ_verify_checksum()
247 checksum += resp->data[i]; in occ_verify_checksum()
249 if (checksum != checksum_resp) { in occ_verify_checksum()
250 dev_err(occ->dev, "Bad checksum: %04x!=%04x\n", checksum, in occ_verify_checksum()
319 u8 seq_no, u16 checksum) in occ_putsram() argument
361 byte_buf[len - 2] = checksum >> 8; in occ_putsram()
[all …]
/linux-6.6.21/kernel/debug/ !
Dgdbstub.c90 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()
135 } while (checksum != xmitcsum); in get_packet()
144 unsigned char checksum; in put_packet() local
153 checksum = 0; in put_packet()
158 checksum += ch; in put_packet()
163 dbg_io_ops->write_char(hex_asc_hi(checksum)); in put_packet()
164 dbg_io_ops->write_char(hex_asc_lo(checksum)); in put_packet()
[all …]
/linux-6.6.21/net/sunrpc/auth_gss/ !
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()
1119 struct xdr_netobj Ke, Ki, checksum; in rfc6803_encrypt_case() local
1170 checksum.len = gk5e->cksumlength; in rfc6803_encrypt_case()
1171 checksum.data = kunit_kzalloc(test, checksum.len, GFP_KERNEL); in rfc6803_encrypt_case()
1172 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, checksum.data); in rfc6803_encrypt_case()
[all …]
/linux-6.6.21/drivers/scsi/aic7xxx/ !
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-6.6.21/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()
365 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
369 checksum = (u16)IXGBE_EEPROM_SUM - checksum; in ixgbe_calc_eeprom_checksum_X540()
371 return (s32)checksum; in ixgbe_calc_eeprom_checksum_X540()
386 u16 checksum; in ixgbe_validate_eeprom_checksum_X540() local
393 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X540()
406 checksum = (u16)(status & 0xffff); in ixgbe_validate_eeprom_checksum_X540()
419 if (read_checksum != checksum) { in ixgbe_validate_eeprom_checksum_X540()
426 *checksum_val = checksum; in ixgbe_validate_eeprom_checksum_X540()
[all …]
/linux-6.6.21/sound/pci/oxygen/ !
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-6.6.21/fs/affs/ !
Damigaffs.h56 __be32 checksum; member
82 __be32 checksum; member
110 __be32 checksum; member
121 __be32 checksum; member
/linux-6.6.21/Documentation/devicetree/bindings/net/ !
Dxlnx,axi-ethernet.yaml14 offloading TX/RX checksum calculation off the processor.
73 TX checksum offload. 0 or empty for disabling TX checksum offload,
74 1 to enable partial TX checksum offload and 2 to enable full TX
75 checksum offload.
81 RX checksum offload. 0 or empty for disabling RX checksum offload,
82 1 to enable partial RX checksum offload and 2 to enable full RX
83 checksum offload.

12345678910>>...20