| /linux/arch/alpha/lib/ |
| H A D | csum_partial_copy.c | 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; in csum_partial_cfu_dest_aligned() local [all …]
|
| /linux/net/ncsi/ |
| H A 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; /* Checksu member 129 __be32 checksum; /* Checksum */ global() member 137 __be32 checksum; /* Checksum */ global() member 146 __be32 checksum; /* Checksum */ global() member 193 __be32 checksum; global() member 210 __be32 checksum; global() member 228 __be32 checksum; /* Checksum */ global() member 249 __be32 checksum; /* Checksum */ global() member 296 __be32 checksum; /* Checksum */ global() member 309 __be32 checksum; /* Checksum */ global() member 324 __be32 checksum; /* Checksum */ global() member 331 __be32 checksum; global() member 338 __be32 checksum; global() member 354 __be32 checksum; /* Checksum */ global() member 361 __be32 checksum; /* Checksum */ global() member 369 __be32 checksum; /* Checksum */ global() member [all...] |
| H 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/filesystems/ext4/ |
| H 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. 46 - UUID + the entire extended attribute block. The checksum field is set to 51 fake entry enclosing the checksum fiel [all...] |
| H A D | group_descr.rst | 35 checksum is the crc16 of the FS UUID, the group number, and the group 37 checksum is the lower 16 bits of the checksum of the FS UUID, the group 87 - Lower 16-bits of the block bitmap checksum. 91 - Lower 16-bits of the inode bitmap checksum. 101 - Group descriptor checksum; crc16(sb_uuid+group_num+bg_desc) if the 105 field in bg_desc is skipped when calculating crc16 checksum, 106 and set to zero if crc32c checksum is used. 147 - Upper 16-bits of the block bitmap checksum. 151 - Upper 16-bits of the inode bitmap checksum.
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A D | txgbe_hw.c | 74 * 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 108 *checksum += local_buffer[i]; in txgbe_calc_eeprom_checksum() 113 *checksum = TXGBE_EEPROM_SUM - *checksum; in txgbe_calc_eeprom_checksum() 119 * txgbe_validate_eeprom_checksum - Validate EEPROM checksum 121 * @checksum_val: calculated checksum 123 * Performs checksum calculation and validates the EEPROM checksum 130 u16 checksum; txgbe_validate_eeprom_checksum() local [all...] |
| /linux/drivers/gpu/drm/vboxvideo/ |
| H 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/ |
| H 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() 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/drivers/platform/chrome/wilco_ec/ |
| H 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() 162 dev_dbg(ec->dev, "bad packet checksum 0x%02x\n", rs->checksum); in wilco_ec_transfer()
|
| /linux/Documentation/networking/ |
| H A D | ila.rst | 112 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 …]
|
| H 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. 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/drivers/fsi/ |
| H A D | fsi-occ.c | 65 u8 data[OCC_RESP_DATA_BYTES + 2]; /* two bytes checksum */ 232 /* Fetch the two bytes after the data for the checksum. */ in occ_verify_checksum() 234 u16 checksum; in occ_verify_checksum() local 237 checksum = resp->seq_no; in occ_verify_checksum() 238 checksum += resp->cmd_type; in occ_verify_checksum() 239 checksum += resp->return_status; in occ_verify_checksum() 240 checksum += (data_length >> 8) + (data_length & 0xFF); in occ_verify_checksum() 243 checksum += resp->data[i]; in occ_verify_checksum() 245 if (checksum != checksum_resp) { in occ_verify_checksum() 246 dev_err(occ->dev, "Bad checksum in occ_verify_checksum() 315 occ_putsram(struct occ * occ,const void * data,ssize_t len,u8 seq_no,u16 checksum) occ_putsram() argument 472 u16 checksum = 0; fsi_occ_submit() local [all...] |
| /linux/tools/objtool/ |
| H A D | klp-checksum.c | 279 struct sym_checksum *checksum; in create_sym_checksum_section() local 291 if (sym->csum.checksum) in create_sym_checksum_section() 301 if (!sym->csum.checksum) in create_sym_checksum_section() 308 checksum = (struct sym_checksum *)sec->data->d_buf + idx; in create_sym_checksum_section() 309 checksum->addr = 0; /* reloc */ in create_sym_checksum_section() 310 checksum->checksum = sym->csum.checksum; in create_sym_checksum_section() 340 opts.checksum = true; in cmd_klp_checksum()
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_test.c | |
| /linux/kernel/debug/ |
| H A D | gdbstub.c | 91 /* scan for the sequence $<data>#<checksum> */ in get_packet() 94 unsigned char checksum; in get_packet() 108 checksum = 0; in get_packet() 120 checksum = checksum + ch; in get_packet() 129 if (checksum != xmitcsum) in get_packet() 130 /* failed checksum */ in get_packet() 139 } while (checksum != xmitcsum); 150 unsigned char checksum; in put_packet() 155 * $<packet info>#<checksum> in put_packet() 92 unsigned char checksum; get_packet() local 146 unsigned char checksum; put_packet() local 1128 unsigned char checksum, ch, buffer[3]; gdbstub_exit() local [all...] |
| /linux/drivers/scsi/aic7xxx/ |
| H 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/fs/affs/ |
| H A D | amigaffs.h | 57 __be32 checksum; member 83 __be32 checksum; member 111 __be32 checksum; member 122 __be32 checksum; member
|
| /linux/sound/pci/oxygen/ |
| H A 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/fs/udf/ |
| H A D | misc.c | 56 /* 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() 194 u8 checksum; in udf_read_tagged() 217 /* Verify the tag checksum */ in udf_read_tagged() 218 checksum = udf_tag_checksum(tag_p); in udf_read_tagged() 219 if (checksum != tag_p->tagChecksum) { in udf_read_tagged() 220 udf_err(sb, "tag checksum failed, block %u: 0x%02x != 0x%02x\n", in udf_read_tagged() 221 block, checksum, tag_p->tagChecksum); in udf_read_tagged() 284 u8 checksum in udf_tag_checksum() 193 u8 checksum; udf_read_tagged() local 283 u8 checksum = 0; udf_tag_checksum() local [all...] |
| /linux/Documentation/networking/device_drivers/cellular/qualcomm/ |
| H A D | rmnet.rst | 84 Checksum offload header, has the information about the checksum processing done 97 Valid bit indicates whether the partial checksum is calculated and is valid. 104 IP header, from which modem computed checksum. 107 over which checksum is computed. 109 Checksum value, indicates the checksum computed. 129 limited to checksum header. 156 2 checksum header 159 Checksum Valid is to indicate whether the header checksum is valid. Value of 1 160 implies that checksum is calculated on this packet and is valid, value of 0 161 indicates that the calculated packet checksum is invalid.
|
| /linux/drivers/nvdimm/ |
| H A D | label.h | 65 __le64 checksum; member 98 __le64 checksum; member 140 __le64 checksum; member 176 __le64 checksum; member
|
| H A D | btt_devs.c | 234 * the checksum, and with the parent namespace by verifying the 244 u64 checksum; in nd_btt_arena_is_valid() local 254 checksum = le64_to_cpu(super->checksum); in nd_btt_arena_is_valid() 255 super->checksum = 0; in nd_btt_arena_is_valid() 256 if (checksum != nd_sb_checksum((struct nd_gen_sb *) super)) in nd_btt_arena_is_valid() 258 super->checksum = cpu_to_le64(checksum); in nd_btt_arena_is_valid()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_virt.c | 271 unsigned int checksum) in amd_sriov_msg_checksum() 278 /* calculate checksum */ in amd_sriov_msg_checksum() 281 /* minus the checksum itself */ in amd_sriov_msg_checksum() 282 pos = (char *)&checksum; in amd_sriov_msg_checksum() 283 for (i = 0; i < sizeof(checksum); ++i) in amd_sriov_msg_checksum() 577 uint32_t checksum; in amdgpu_virt_read_pf2vf_data() 594 checksum = pf2vf_v1->checksum; in amdgpu_virt_read_pf2vf_data() 597 adev->virt.fw_reserve.checksum_key, checksum); in amdgpu_virt_read_pf2vf_data() 598 if (checksum ! in amdgpu_virt_read_pf2vf_data() 270 amd_sriov_msg_checksum(void * obj,unsigned long obj_size,unsigned int key,unsigned int checksum) amd_sriov_msg_checksum() argument 541 uint32_t checksum; amdgpu_virt_read_pf2vf_data() local 1026 uint8_t checksum = 0; amdgpu_virt_init_critical_region() local 1801 uint32_t checksum, used_size; amdgpu_virt_cache_host_error_counts() local 1879 uint32_t checksum, used_size; amdgpu_virt_write_cpers_to_ring() local 2022 uint32_t checksum, used_size; amdgpu_virt_cache_chk_criti_hit() local [all...] |
| /linux/arch/arm/mach-pxa/ |
| H A D | pm.c | 26 unsigned long sleep_save_checksum = 0, checksum = 0; in pxa_pm_enter() local 38 /* before sleeping, calculate and save a checksum */ in pxa_pm_enter() 47 /* after sleeping, validate the checksum */ in pxa_pm_enter() 49 checksum += sleep_save[i]; in pxa_pm_enter() 52 if (checksum != sleep_save_checksum) { in pxa_pm_enter()
|
| /linux/arch/x86/include/asm/ |
| H A D | mpspec_def.h | 27 unsigned char checksum; /* Checksum (makes sum 0) */ member 41 char checksum; member 161 char checksum; member
|