Lines Matching refs:bootcmdresp
497 struct bootcmdresp bootcmdresp; in if_usb_receive_fwload() local
521 if (cardp->bootcmdresp <= 0) { in if_usb_receive_fwload()
522 memcpy (&bootcmdresp, skb->data + IPFIELD_ALIGN_OFFSET, in if_usb_receive_fwload()
523 sizeof(bootcmdresp)); in if_usb_receive_fwload()
528 cardp->bootcmdresp = BOOT_CMD_RESP_OK; in if_usb_receive_fwload()
533 if (bootcmdresp.magic != cpu_to_le32(BOOT_CMD_MAGIC_NUMBER)) { in if_usb_receive_fwload()
534 if (bootcmdresp.magic == cpu_to_le32(CMD_TYPE_REQUEST) || in if_usb_receive_fwload()
535 bootcmdresp.magic == cpu_to_le32(CMD_TYPE_DATA) || in if_usb_receive_fwload()
536 bootcmdresp.magic == cpu_to_le32(CMD_TYPE_INDICATION)) { in if_usb_receive_fwload()
537 if (!cardp->bootcmdresp) in if_usb_receive_fwload()
539 cardp->bootcmdresp = -1; in if_usb_receive_fwload()
542 le32_to_cpu(bootcmdresp.magic)); in if_usb_receive_fwload()
544 } else if ((bootcmdresp.cmd != BOOT_CMD_FW_BY_USB) && in if_usb_receive_fwload()
545 (bootcmdresp.cmd != BOOT_CMD_UPDATE_FW) && in if_usb_receive_fwload()
546 (bootcmdresp.cmd != BOOT_CMD_UPDATE_BOOT2)) { in if_usb_receive_fwload()
548 bootcmdresp.cmd); in if_usb_receive_fwload()
549 } else if (bootcmdresp.result != BOOT_CMD_RESP_OK) { in if_usb_receive_fwload()
551 bootcmdresp.result); in if_usb_receive_fwload()
553 cardp->bootcmdresp = 1; in if_usb_receive_fwload()
846 cardp->bootcmdresp = 0; in if_usb_prog_firmware()
855 cardp->bootcmdresp = 0; in if_usb_prog_firmware()
864 } while (cardp->bootcmdresp == 0 && j < 10); in if_usb_prog_firmware()
865 } while (cardp->bootcmdresp == 0 && i < 5); in if_usb_prog_firmware()
867 if (cardp->bootcmdresp == BOOT_CMD_RESP_NOT_SUPPORTED) { in if_usb_prog_firmware()
875 } else if (cardp->bootcmdresp <= 0) { in if_usb_prog_firmware()