Lines Matching refs:reply
565 static int af9005_boot_packet(struct usb_device *udev, int type, u8 * reply) in af9005_boot_packet() argument
658 *reply = buf[6]; in af9005_boot_packet()
683 *reply = buf[6]; in af9005_boot_packet()
724 u8 reply; in af9005_download_firmware() local
726 ret = af9005_boot_packet(udev, FW_CONFIG, &reply); in af9005_download_firmware()
729 if (reply != 0x01) { in af9005_download_firmware()
730 err("before downloading firmware, FW_CONFIG expected 0x01, received 0x%x", reply); in af9005_download_firmware()
749 ret = af9005_boot_packet(udev, FW_CONFIRM, &reply); in af9005_download_firmware()
752 if (reply != (u8) (packets & 0xff)) { in af9005_download_firmware()
753 err("after downloading firmware, FW_CONFIRM expected 0x%x, received 0x%x", packets & 0xff, reply); in af9005_download_firmware()
756 ret = af9005_boot_packet(udev, FW_BOOT, &reply); in af9005_download_firmware()
759 ret = af9005_boot_packet(udev, FW_CONFIG, &reply); in af9005_download_firmware()
762 if (reply != 0x02) { in af9005_download_firmware()
763 err("after downloading firmware, FW_CONFIG expected 0x02, received 0x%x", reply); in af9005_download_firmware()
956 u8 reply; in af9005_identify_state() local
957 ret = af9005_boot_packet(udev, FW_CONFIG, &reply); in af9005_identify_state()
960 deb_info("result of FW_CONFIG in identify state %d\n", reply); in af9005_identify_state()
961 if (reply == 0x01) in af9005_identify_state()
963 else if (reply == 0x02) in af9005_identify_state()