Lines Matching refs:fragment
783 struct ims_pcu_flash_fmt *fragment; in ims_pcu_verify_block() local
786 fragment = (void *)&pcu->cmd_buf[1]; in ims_pcu_verify_block()
787 put_unaligned_le32(addr, &fragment->addr); in ims_pcu_verify_block()
788 fragment->len = len; in ims_pcu_verify_block()
799 fragment = (void *)&pcu->cmd_buf[IMS_PCU_BL_DATA_OFFSET]; in ims_pcu_verify_block()
800 if (get_unaligned_le32(&fragment->addr) != addr || in ims_pcu_verify_block()
801 fragment->len != len) { in ims_pcu_verify_block()
804 addr, get_unaligned_le32(&fragment->addr), in ims_pcu_verify_block()
805 len, fragment->len); in ims_pcu_verify_block()
809 if (memcmp(fragment->data, data, len)) { in ims_pcu_verify_block()
824 struct ims_pcu_flash_fmt *fragment; in ims_pcu_flash_firmware() local
848 fragment = (void *)&pcu->cmd_buf[1]; in ims_pcu_flash_firmware()
849 put_unaligned_le32(addr, &fragment->addr); in ims_pcu_flash_firmware()
850 fragment->len = len; in ims_pcu_flash_firmware()
851 memcpy(fragment->data, rec->data, len); in ims_pcu_flash_firmware()