Lines Matching refs:bootcmdresp
554 struct bootcmdresp bootcmdresp;
578 if (cardp->bootcmdresp <= 0) {
579 memcpy (&bootcmdresp, skb->data + IPFIELD_ALIGN_OFFSET,
580 sizeof(bootcmdresp));
585 cardp->bootcmdresp = BOOT_CMD_RESP_OK;
590 if (bootcmdresp.magic != cpu_to_le32(BOOT_CMD_MAGIC_NUMBER)) {
591 if (bootcmdresp.magic == cpu_to_le32(CMD_TYPE_REQUEST) ||
592 bootcmdresp.magic == cpu_to_le32(CMD_TYPE_DATA) ||
593 bootcmdresp.magic == cpu_to_le32(CMD_TYPE_INDICATION)) {
594 if (!cardp->bootcmdresp)
596 cardp->bootcmdresp = -1;
599 le32_to_cpu(bootcmdresp.magic));
601 } else if ((bootcmdresp.cmd != BOOT_CMD_FW_BY_USB) &&
602 (bootcmdresp.cmd != BOOT_CMD_UPDATE_FW) &&
603 (bootcmdresp.cmd != BOOT_CMD_UPDATE_BOOT2)) {
605 bootcmdresp.cmd);
606 } else if (bootcmdresp.result != BOOT_CMD_RESP_OK) {
608 bootcmdresp.result);
610 cardp->bootcmdresp = 1;
956 cardp->bootcmdresp = 0;
965 cardp->bootcmdresp = 0;
974 } while (cardp->bootcmdresp == 0 && j < 10);
975 } while (cardp->bootcmdresp == 0 && i < 5);
977 if (cardp->bootcmdresp == BOOT_CMD_RESP_NOT_SUPPORTED) {
985 } else if (cardp->bootcmdresp <= 0) {