/Linux-v5.4/arch/alpha/lib/ |
D | csum_partial_copy.c | 98 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-v5.4/net/ncsi/ |
D | ncsi-pkt.h | 39 __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-v5.4/drivers/platform/chrome/wilco_ec/ |
D | mailbox.c | 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 = -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-v5.4/Documentation/networking/ |
D | checksum-offloads.rst | 12 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 …]
|
D | ila.txt | 103 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 …]
|
D | udplite.txt | 7 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-v5.4/Documentation/filesystems/ext4/ |
D | checksums.rst | 8 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-v5.4/drivers/gpu/drm/vboxvideo/ |
D | vbox_hgsmi.c | 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() 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-v5.4/drivers/net/ethernet/intel/igc/ |
D | igc_nvm.c | 163 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-v5.4/drivers/acpi/acpica/ |
D | tbprint.c | 154 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-v5.4/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_ee.c | 307 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-v5.4/drivers/mtd/parsers/ |
D | ar7part.c | 26 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-v5.4/kernel/gcov/ |
D | clang.c | 63 u32 checksum; member 72 u32 checksum; member 109 u32 checksum) in llvm_gcda_start_file() argument 113 current_info->checksum = checksum; in llvm_gcda_start_file() 127 info->checksum = func_checksum; in llvm_gcda_emit_function() 257 if (info1->checksum != info2->checksum) in gcov_info_is_compatible() 263 if (fn_ptr1->checksum != fn_ptr2->checksum) in gcov_info_is_compatible() 459 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda() 471 pos += store_gcov_u32(buffer, pos, fi_ptr->checksum); in convert_to_gcda()
|
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_discovery.c | 156 uint16_t checksum = 0; in amdgpu_discovery_calculate_checksum() local 160 checksum += data[i]; in amdgpu_discovery_calculate_checksum() 162 return checksum; in amdgpu_discovery_calculate_checksum() 179 uint16_t checksum; in amdgpu_discovery_init() local 203 checksum = bhdr->binary_checksum; in amdgpu_discovery_init() 206 size, checksum)) { in amdgpu_discovery_init() 214 checksum = le16_to_cpu(info->checksum); in amdgpu_discovery_init() 224 ihdr->size, checksum)) { in amdgpu_discovery_init() 232 checksum = le16_to_cpu(info->checksum); in amdgpu_discovery_init() 236 ghdr->size, checksum)) { in amdgpu_discovery_init()
|
/Linux-v5.4/drivers/net/wireless/ath/ath9k/ |
D | ar9003_mac.c | 30 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-v5.4/kernel/debug/ |
D | gdbstub.c | 93 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-v5.4/drivers/nfc/s3fwrn5/ |
D | nci.c | 85 u32 checksum; in s3fwrn5_nci_rf_configure() local 95 checksum = 0; in s3fwrn5_nci_rf_configure() 97 checksum += *((u32 *)(fw->data+i)); in s3fwrn5_nci_rf_configure() 140 stop_rfreg.checksum = checksum & 0xffff; in s3fwrn5_nci_rf_configure()
|
/Linux-v5.4/drivers/scsi/aic7xxx/ |
D | aic7xxx_93cx6.c | 303 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-v5.4/drivers/pnp/isapnp/ |
D | core.c | 282 unsigned char checksum = 0x6a; in isapnp_isolate() local 302 checksum = in isapnp_isolate() 303 ((((checksum ^ (checksum >> 1)) & 0x01) ^ bit) << 7) in isapnp_isolate() 304 | (checksum >> 1); in isapnp_isolate() 315 if (checksum != 0x00 && checksum == chksum) { in isapnp_isolate() 338 checksum = 0x6a; in isapnp_isolate() 755 unsigned char checksum = 0x6a, bit, b; in isapnp_checksum() local 763 checksum = in isapnp_checksum() 764 ((((checksum ^ (checksum >> 1)) & 0x01) ^ bit) << 7) in isapnp_checksum() 765 | (checksum >> 1); in isapnp_checksum() [all …]
|
/Linux-v5.4/drivers/media/platform/vivid/ |
D | vivid-vbi-gen.c | 179 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-v5.4/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_x540.c | 310 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-v5.4/include/net/sctp/ |
D | checksum.h | 55 __le32 old = sh->checksum; in sctp_compute_cksum() 58 sh->checksum = 0; in sctp_compute_cksum() 61 sh->checksum = old; in sctp_compute_cksum()
|
/Linux-v5.4/fs/affs/ |
D | amigaffs.h | 56 __be32 checksum; member 82 __be32 checksum; member 110 __be32 checksum; member 121 __be32 checksum; member
|
/Linux-v5.4/sound/pci/oxygen/ |
D | xonar_hdmi.c | 22 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-v5.4/drivers/fsi/ |
D | fsi-occ.c | 135 u16 checksum = 0; in occ_write() local 174 checksum += cmd[i]; in occ_write() 176 cmd[data_length + 4] = checksum >> 8; in occ_write() 177 cmd[data_length + 5] = checksum & 0xFF; in occ_write() 221 u16 checksum; in occ_verify_checksum() local 224 checksum = resp->seq_no; in occ_verify_checksum() 225 checksum += resp->cmd_type; in occ_verify_checksum() 226 checksum += resp->return_status; in occ_verify_checksum() 227 checksum += (data_length >> 8) + (data_length & 0xFF); in occ_verify_checksum() 230 checksum += resp->data[i]; in occ_verify_checksum() [all …]
|