Lines Matching defs:checksum

2072 	buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
2153 buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
2210 buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
2296 * @csum: address of checksum to update
2362 * ixgbe_calc_checksum_X550 - Calculates and returns the checksum
2364 * @buffer: pointer to buffer containing calculated checksum
2367 * Returns a negative error code on error, or the 16-bit checksum
2374 u16 checksum = 0;
2398 * For X550 hardware include 0x0-0x41 in the checksum, skip the
2399 * checksum word itself
2403 checksum += local_buffer[i];
2433 status = ixgbe_checksum_ptr_x550(hw, pointer, size, &checksum,
2439 checksum = (u16)IXGBE_EEPROM_SUM - checksum;
2441 return (s32)checksum;
2445 * ixgbe_calc_eeprom_checksum_X550 - Calculates and returns the checksum
2448 * Returns a negative error code on error, or the 16-bit checksum
2456 * ixgbe_validate_eeprom_checksum_X550 - Validate EEPROM checksum
2458 * @checksum_val: calculated checksum
2460 * Performs checksum calculation and validates the EEPROM checksum. If the
2466 u16 checksum;
2475 status = hw->eeprom.ops.read(hw, 0, &checksum);
2485 checksum = (u16)(status & 0xffff);
2492 /* Verify read checksum from EEPROM is the same as
2493 * calculated checksum
2495 if (read_checksum != checksum) {
2498 "Invalid EEPROM checksum");
2501 /* If the user cares, return the calculated checksum */
2503 *checksum_val = checksum;
2509 * ixgbe_update_eeprom_checksum_X550 - Updates the EEPROM checksum and flash
2513 * checksum and updates the EEPROM and instructs the hardware to update
2519 u16 checksum = 0;
2527 status = ixgbe_read_ee_hostif_X550(hw, 0, &checksum);
2537 checksum = (u16)(status & 0xffff);
2540 checksum);
2565 buffer.req.checksum = FW_DEFAULT_CHECKSUM;
2663 fw_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;