Lines Matching refs:fwctx
540 struct brcmf_fw *fwctx = ctx; in brcmf_fw_request_nvram_done() local
549 brcmf_dbg(TRACE, "enter: dev=%s\n", dev_name(fwctx->dev)); in brcmf_fw_request_nvram_done()
551 cur = &fwctx->req->items[fwctx->curpos]; in brcmf_fw_request_nvram_done()
567 fwctx->req->domain_nr, in brcmf_fw_request_nvram_done()
568 fwctx->req->bus_nr, in brcmf_fw_request_nvram_done()
569 fwctx->dev); in brcmf_fw_request_nvram_done()
590 struct brcmf_fw *fwctx) in brcmf_fw_complete_request() argument
592 struct brcmf_fw_item *cur = &fwctx->req->items[fwctx->curpos]; in brcmf_fw_complete_request()
599 ret = brcmf_fw_request_nvram_done(fw, fwctx); in brcmf_fw_complete_request()
645 struct brcmf_fw *fwctx) in brcmf_fw_request_firmware() argument
647 struct brcmf_fw_item *cur = &fwctx->req->items[fwctx->curpos]; in brcmf_fw_request_firmware()
652 for (i = 0; i < ARRAY_SIZE(fwctx->req->board_types); i++) { in brcmf_fw_request_firmware()
655 if (!fwctx->req->board_types[i]) in brcmf_fw_request_firmware()
658 fwctx->req->board_types[i]); in brcmf_fw_request_firmware()
662 ret = firmware_request_nowarn(fw, alt_path, fwctx->dev); in brcmf_fw_request_firmware()
669 return request_firmware(fw, cur->path, fwctx->dev); in brcmf_fw_request_firmware()
674 struct brcmf_fw *fwctx = ctx; in brcmf_fw_request_done() local
677 ret = brcmf_fw_complete_request(fw, fwctx); in brcmf_fw_request_done()
679 while (ret == 0 && ++fwctx->curpos < fwctx->req->n_items) { in brcmf_fw_request_done()
680 brcmf_fw_request_firmware(&fw, fwctx); in brcmf_fw_request_done()
685 brcmf_fw_free_request(fwctx->req); in brcmf_fw_request_done()
686 fwctx->req = NULL; in brcmf_fw_request_done()
688 fwctx->done(fwctx->dev, ret, fwctx->req); in brcmf_fw_request_done()
689 kfree(fwctx); in brcmf_fw_request_done()
694 struct brcmf_fw *fwctx = ctx; in brcmf_fw_request_done_alt_path() local
695 struct brcmf_fw_item *first = &fwctx->req->items[0]; in brcmf_fw_request_done_alt_path()
705 if (fwctx->board_index < ARRAY_SIZE(fwctx->req->board_types)) { in brcmf_fw_request_done_alt_path()
706 board_type = fwctx->req->board_types[fwctx->board_index++]; in brcmf_fw_request_done_alt_path()
714 fwctx->dev, GFP_KERNEL, fwctx, in brcmf_fw_request_done_alt_path()
726 fwctx->dev, GFP_KERNEL, fwctx, in brcmf_fw_request_done_alt_path()
753 struct brcmf_fw *fwctx; in brcmf_fw_get_firmwares() local
764 fwctx = kzalloc(sizeof(*fwctx), GFP_KERNEL); in brcmf_fw_get_firmwares()
765 if (!fwctx) in brcmf_fw_get_firmwares()
768 fwctx->dev = dev; in brcmf_fw_get_firmwares()
769 fwctx->req = req; in brcmf_fw_get_firmwares()
770 fwctx->done = fw_cb; in brcmf_fw_get_firmwares()
773 if (fwctx->req->board_types[0]) in brcmf_fw_get_firmwares()
775 fwctx->req->board_types[0]); in brcmf_fw_get_firmwares()
777 fwctx->board_index++; in brcmf_fw_get_firmwares()
779 fwctx->dev, GFP_KERNEL, fwctx, in brcmf_fw_get_firmwares()
784 fwctx->dev, GFP_KERNEL, fwctx, in brcmf_fw_get_firmwares()
788 brcmf_fw_request_done(NULL, fwctx); in brcmf_fw_get_firmwares()