Searched refs:bootcmdresp (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/drivers/net/wireless/libertas/
H A Dif_usb.h35 struct bootcmdresp struct
55 /* bootcmdresp == 0 means command is pending
56 * bootcmdresp < 0 means error
57 * bootcmdresp > 0 is a BOOT_CMD_RESP_* from firmware
59 int8_t bootcmdresp; member in struct:if_usb_card
H A Dif_usb.c502 struct bootcmdresp bootcmdresp; if_usb_receive_fwload() local
526 if (cardp->bootcmdresp <= 0) { if_usb_receive_fwload()
527 memcpy (&bootcmdresp, skb->data + IPFIELD_ALIGN_OFFSET, if_usb_receive_fwload()
528 sizeof(bootcmdresp)); if_usb_receive_fwload()
533 cardp->bootcmdresp = BOOT_CMD_RESP_OK; if_usb_receive_fwload()
538 if (bootcmdresp.magic != cpu_to_le32(BOOT_CMD_MAGIC_NUMBER)) { if_usb_receive_fwload()
539 if (bootcmdresp.magic == cpu_to_le32(CMD_TYPE_REQUEST) || if_usb_receive_fwload()
540 bootcmdresp.magic == cpu_to_le32(CMD_TYPE_DATA) || if_usb_receive_fwload()
541 bootcmdresp.magic == cpu_to_le32(CMD_TYPE_INDICATION)) { if_usb_receive_fwload()
542 if (!cardp->bootcmdresp) if_usb_receive_fwload()
544 cardp->bootcmdresp = -1; if_usb_receive_fwload()
547 le32_to_cpu(bootcmdresp.magic)); if_usb_receive_fwload()
549 } else if ((bootcmdresp.cmd != BOOT_CMD_FW_BY_USB) && if_usb_receive_fwload()
550 (bootcmdresp.cmd != BOOT_CMD_UPDATE_FW) && if_usb_receive_fwload()
551 (bootcmdresp.cmd != BOOT_CMD_UPDATE_BOOT2)) { if_usb_receive_fwload()
553 bootcmdresp.cmd); if_usb_receive_fwload()
554 } else if (bootcmdresp.result != BOOT_CMD_RESP_OK) { if_usb_receive_fwload()
556 bootcmdresp.result); if_usb_receive_fwload()
558 cardp->bootcmdresp = 1; if_usb_receive_fwload()
858 cardp->bootcmdresp = 0; if_usb_prog_firmware()
867 cardp->bootcmdresp = 0; if_usb_prog_firmware()
876 } while (cardp->bootcmdresp == 0 && j < 10); if_usb_prog_firmware()
877 } while (cardp->bootcmdresp == 0 && i < 5); if_usb_prog_firmware()
879 if (cardp->bootcmdresp == BOOT_CMD_RESP_NOT_SUPPORTED) { if_usb_prog_firmware()
887 } else if (cardp->bootcmdresp <= 0) { if_usb_prog_firmware()
/linux-4.4.14/drivers/net/wireless/libertas_tf/
H A Dif_usb.h37 struct bootcmdresp { struct
55 int8_t bootcmdresp; member in struct:if_usb_card
H A Dif_usb.c476 struct bootcmdresp bcmdresp; if_usb_receive_fwload()
504 if (cardp->bootcmdresp <= 0) { if_usb_receive_fwload()
510 cardp->bootcmdresp = 1; if_usb_receive_fwload()
521 if (!cardp->bootcmdresp) if_usb_receive_fwload()
523 cardp->bootcmdresp = -1; if_usb_receive_fwload()
535 cardp->bootcmdresp = 1; if_usb_receive_fwload()
844 cardp->bootcmdresp = 0; if_usb_prog_firmware()
854 } while (cardp->bootcmdresp == 0 && j < 10); if_usb_prog_firmware()
855 } while (cardp->bootcmdresp == 0 && i < 5); if_usb_prog_firmware()
857 if (cardp->bootcmdresp <= 0) { if_usb_prog_firmware()

Completed in 65 milliseconds