Lines Matching defs:firmware

27 #include <linux/firmware.h>
173 * device addresses (which are hardcoded in the firmware). They may also have
240 * (physically contiguous memory regions) before rproc firmware loading and
470 * merged. Meanwhile, statically-addressed iommu-based firmware images should
614 * tell us ranges of physical addresses the firmware is allowed to request,
724 * firmware was compiled with.
810 * This function will handle firmware requests for allocation of physically
813 * These request entries should come first in the firmware's resource table,
814 * as other firmware entries might request placing other data objects inside
986 * rproc_of_parse_firmware() - parse and return the firmware-name
988 * @index: index to use for the firmware-name retrieval
989 * @fw_name: pointer to a character string, in which the firmware
993 * the "firmware-name" property and returns the firmware name pointer
1002 ret = of_property_read_string_index(dev->of_node, "firmware-name",
1019 /* handle firmware resource entries before booting the remote processor */
1267 static int rproc_start(struct rproc *rproc, const struct firmware *fw)
1375 * take a firmware and boot a remote processor with it.
1377 static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
1380 const char *name = rproc->firmware;
1399 /* Prepare rproc for firmware loading if needed */
1408 /* Load resource table, core dump segment list etc from the firmware */
1535 * Reset the memory area where the firmware loaded the resource table
1593 * the steps that deal with the firmware image.
1630 * Handle firmware resources required to attach to a remote processor.
1665 * take a firmware and boot it up.
1672 static void rproc_auto_boot_callback(const struct firmware *fw, void *context)
1688 * for a firmware image to be loaded, we can simply initiate the process
1695 * We're initiating an asynchronous firmware loading, so we can
1699 rproc->firmware, &rproc->dev, GFP_KERNEL,
1794 const struct firmware *firmware_p;
1805 /* load firmware */
1806 ret = request_firmware(&firmware_p, rproc->firmware, dev);
1902 * Boot a remote processor (i.e. load its firmware, power it on, ...).
1911 const struct firmware *firmware_p;
1947 /* load firmware */
1948 ret = request_firmware(&firmware_p, rproc->firmware, dev);
2171 * rproc_set_firmware() - assign a new firmware
2172 * @rproc: rproc handle to which the new firmware is being assigned
2173 * @fw_name: new firmware name to be assigned
2176 * firmware name that is different from the default name used during remoteproc
2178 * only sets the firmware name used for a subsequent boot. This function
2183 * a specific firmware when it is controlling the boot and shutdown of the
2206 dev_err(dev, "can't change firmware while running\n");
2213 dev_err(dev, "can't provide empty string for firmware name\n");
2224 kfree_const(rproc->firmware);
2225 rproc->firmware = p;
2280 * Note: this function initiates an asynchronous firmware loading
2282 * firmware.
2385 kfree_const(rproc->firmware);
2397 const char *name, const char *firmware)
2402 * Allocate a firmware name if the caller gave us one to work
2405 if (firmware)
2406 p = kstrdup_const(firmware, GFP_KERNEL);
2413 rproc->firmware = p;
2446 * @firmware: name of firmware file to load, can be NULL
2450 * it yet. if @firmware is NULL, a default name is used.
2466 const char *firmware, int len)
2493 if (rproc_alloc_firmware(rproc, name, firmware))
2620 * @firmware: name of firmware file to load, can be NULL
2630 const char *firmware, int len)
2638 rproc = rproc_alloc(dev, name, ops, firmware, len);