Lines Matching refs:fwreq
350 struct brcmf_fw_request *fwreq);
1391 struct brcmf_fw_request *fwreq; in brcmf_pcie_get_fwname() local
1396 fwreq = brcmf_fw_alloc_request(bus_if->chip, bus_if->chiprev, in brcmf_pcie_get_fwname()
1400 if (!fwreq) in brcmf_pcie_get_fwname()
1403 kfree(fwreq); in brcmf_pcie_get_fwname()
1412 struct brcmf_fw_request *fwreq; in brcmf_pcie_reset() local
1426 fwreq = brcmf_pcie_prepare_fw_request(devinfo); in brcmf_pcie_reset()
1427 if (!fwreq) { in brcmf_pcie_reset()
1432 err = brcmf_fw_get_firmwares(dev, fwreq, brcmf_pcie_setup); in brcmf_pcie_reset()
1435 kfree(fwreq); in brcmf_pcie_reset()
1737 struct brcmf_fw_request *fwreq) in brcmf_pcie_setup() argument
1756 fw = fwreq->items[BRCMF_PCIE_FW_CODE].binary; in brcmf_pcie_setup()
1757 nvram = fwreq->items[BRCMF_PCIE_FW_NVRAM].nv_data.data; in brcmf_pcie_setup()
1758 nvram_len = fwreq->items[BRCMF_PCIE_FW_NVRAM].nv_data.len; in brcmf_pcie_setup()
1759 kfree(fwreq); in brcmf_pcie_setup()
1830 struct brcmf_fw_request *fwreq; in brcmf_pcie_prepare_fw_request() local
1836 fwreq = brcmf_fw_alloc_request(devinfo->ci->chip, devinfo->ci->chiprev, in brcmf_pcie_prepare_fw_request()
1840 if (!fwreq) in brcmf_pcie_prepare_fw_request()
1843 fwreq->items[BRCMF_PCIE_FW_CODE].type = BRCMF_FW_TYPE_BINARY; in brcmf_pcie_prepare_fw_request()
1844 fwreq->items[BRCMF_PCIE_FW_NVRAM].type = BRCMF_FW_TYPE_NVRAM; in brcmf_pcie_prepare_fw_request()
1845 fwreq->items[BRCMF_PCIE_FW_NVRAM].flags = BRCMF_FW_REQF_OPTIONAL; in brcmf_pcie_prepare_fw_request()
1846 fwreq->board_type = devinfo->settings->board_type; in brcmf_pcie_prepare_fw_request()
1848 fwreq->domain_nr = pci_domain_nr(devinfo->pdev->bus) + 1; in brcmf_pcie_prepare_fw_request()
1849 fwreq->bus_nr = devinfo->pdev->bus->number; in brcmf_pcie_prepare_fw_request()
1851 return fwreq; in brcmf_pcie_prepare_fw_request()
1858 struct brcmf_fw_request *fwreq; in brcmf_pcie_probe() local
1922 fwreq = brcmf_pcie_prepare_fw_request(devinfo); in brcmf_pcie_probe()
1923 if (!fwreq) { in brcmf_pcie_probe()
1928 ret = brcmf_fw_get_firmwares(bus->dev, fwreq, brcmf_pcie_setup); in brcmf_pcie_probe()
1930 kfree(fwreq); in brcmf_pcie_probe()