/linux/arch/alpha/lib/ |
A D | csum_partial_copy.c | 94 checksum += carry; in csum_partial_cfu_aligned() 96 checksum += word; in csum_partial_cfu_aligned() 103 checksum += carry; in csum_partial_cfu_aligned() 110 checksum += word; in csum_partial_cfu_aligned() 116 return checksum; in csum_partial_cfu_aligned() 149 checksum += word; in csum_partial_cfu_dest_aligned() 155 checksum += carry; in csum_partial_cfu_dest_aligned() 166 checksum += word; in csum_partial_cfu_dest_aligned() 172 return checksum; in csum_partial_cfu_dest_aligned() 229 return checksum; in csum_partial_cfu_src_aligned() [all …]
|
/linux/net/ncsi/ |
A D | ncsi-pkt.h | 39 __be32 checksum; /* Checksum */ member 45 __be32 checksum; /* Checksum */ member 71 __be32 checksum; /* Checksum */ member 129 __be32 checksum; /* Checksum */ member 137 __be32 checksum; /* Checksum */ member 193 __be32 checksum; member 207 __be32 checksum; member 328 __be32 checksum; member 335 __be32 checksum; member 350 __be32 checksum; /* Checksum */ member [all …]
|
A D | ncsi-cmd.c | 25 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 56 checksum = ncsi_calculate_checksum((unsigned char *)h, in ncsi_cmd_build_header() 60 *pchecksum = htonl(checksum); in ncsi_cmd_build_header()
|
/linux/Documentation/networking/ |
A D | checksum-offloads.rst | 12 take advantage of checksum offload capabilities of various NICs. 34 The device should compute the 16-bit ones-complement checksum (i.e. 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 84 LCO is a technique for efficiently computing the outer checksum of an 89 'cancelled out' by the checksum field. This is because the sum was 90 complemented before being written to the checksum field. 93 checksum is used, and thus any checksum that TX Checksum Offload supports. [all …]
|
A D | ila.rst | 112 Transport checksum handling 118 including checksum offload in NICs, that process the checksum. There are 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 183 In the simplest format the identifier types, C-bit, and checksum 193 The checksum neutral adjustment may be configured to always be [all …]
|
A D | udplite.rst | 9 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. 63 * Sender checksum coverage: UDPLITE_SEND_CSCOV 76 * Receiver checksum coverage: UDPLITE_RECV_CSCOV 125 and according checksum. If the sender specifies a coverage < 8 and 154 is meaningless (as in TCP). Packets with a zero checksum field are 159 The checksum computation respects both buffersize and MTU. The size 204 *****checksum coverage************* 213 MTU of 1280 bytes and a write buffer of 3356 bytes. If the checksum 257 * checksum coverage violated [all …]
|
/linux/drivers/platform/chrome/wilco_ec/ |
A 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/Documentation/filesystems/ext4/ |
A 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. 51 fake entry enclosing the checksum field. 55 The checksum field is set to zero. 59 the checksum field. [all …]
|
A D | group_descr.rst | 36 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/drivers/gpu/drm/vboxvideo/ |
A 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/kernel/gcov/ |
A D | clang.c | 62 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() 374 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda() 382 pos += store_gcov_u32(buffer, pos, fi_ptr->checksum); in convert_to_gcda()
|
/linux/drivers/net/ethernet/intel/igc/ |
A 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/drivers/net/ethernet/intel/ixgb/ |
A 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/drivers/input/touchscreen/ |
A D | goodix_fwupload.c | 35 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/drivers/acpi/acpica/ |
A 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/drivers/net/wireless/ath/ath9k/ |
A 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() 65 checksum = (u16) (((checksum & 0xffff) + (checksum >> 16)) & 0xffff); in ar9003_set_txdesc() 66 WRITE_ONCE(ads->ctl10, checksum); in ar9003_set_txdesc() 162 int checksum; in ar9003_calc_ptr_chksum() local [all …]
|
/linux/drivers/mtd/parsers/ |
A 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/drivers/fsi/ |
A D | fsi-occ.c | 235 u16 checksum; in occ_verify_checksum() local 238 checksum = resp->seq_no; in occ_verify_checksum() 239 checksum += resp->cmd_type; in occ_verify_checksum() 240 checksum += resp->return_status; in occ_verify_checksum() 244 checksum += resp->data[i]; in occ_verify_checksum() 246 if (checksum != checksum_resp) { in occ_verify_checksum() 316 u8 seq_no, u16 checksum) in occ_putsram() argument 358 byte_buf[len - 2] = checksum >> 8; in occ_putsram() 464 u16 checksum = 0; in fsi_occ_submit() local 483 checksum += byte_request[i]; in fsi_occ_submit() [all …]
|
/linux/kernel/debug/ |
A D | gdbstub.c | 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() 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() 1126 unsigned char checksum, ch, buffer[3]; in gdbstub_exit() local 1141 checksum = 0; in gdbstub_exit() [all …]
|
/linux/drivers/nfc/s3fwrn5/ |
A D | nci.c | 55 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/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_x540.c | 310 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 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() 445 u16 checksum; in ixgbe_update_eeprom_checksum_X540() local [all …]
|
/linux/drivers/media/test-drivers/vivid/ |
A 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/drivers/scsi/aic7xxx/ |
A 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/drivers/gpu/drm/amd/display/modules/info_packet/ |
A D | info_packet.c | 423 uint8_t checksum = 0; in mod_build_hf_vsif_infopacket() local 479 checksum += info_packet->hb0; in mod_build_hf_vsif_infopacket() 480 checksum += info_packet->hb1; in mod_build_hf_vsif_infopacket() 481 checksum += info_packet->hb2; in mod_build_hf_vsif_infopacket() 484 checksum += info_packet->sb[i]; in mod_build_hf_vsif_infopacket() 486 info_packet->sb[0] = (uint8_t) (0x100 - checksum); in mod_build_hf_vsif_infopacket()
|
/linux/drivers/media/usb/dvb-usb/ |
A D | af9005.c | 556 u16 checksum; in af9005_boot_packet() local 568 checksum = buf[4] + buf[5]; in af9005_boot_packet() 570 buf[7] = (u8) (checksum & 0xff); in af9005_boot_packet() 577 checksum = buf[4] + buf[5]; in af9005_boot_packet() 579 buf[7] = (u8) (checksum & 0xff); in af9005_boot_packet() 590 checksum = 0; in af9005_boot_packet() 592 checksum += buf[i]; in af9005_boot_packet() 622 checksum = 0; in af9005_boot_packet() 642 checksum += buf[i]; in af9005_boot_packet() 667 checksum += buf[i]; in af9005_boot_packet() [all …]
|