Lines Matching defs:firmware
12 #include <linux/firmware.h>
15 #include <linux/firmware/qcom/qcom_scm.h>
39 const struct firmware *seg_fw;
74 * @fw: firmware object for the mdt file
76 * Returns size of the loaded firmware blob, or -EINVAL on failure.
78 ssize_t qcom_mdt_get_size(const struct firmware *fw)
109 * @fw: firmware of mdt header or mbn
111 * @fw_name: name of the firmware, for construction of segment file names
114 * The mechanism that performs the authentication of the loading firmware
119 * In the case of split firmware the hash is found directly following the ELF
126 void *qcom_mdt_read_metadata(const struct firmware *fw, size_t *data_len,
194 * qcom_mdt_pas_init() - initialize PAS region for firmware loading
196 * @fw: firmware object for the mdt file
197 * @fw_name: name of the firmware, for construction of segment file names
204 int qcom_mdt_pas_init(struct device *dev, const struct firmware *fw,
241 dev_err(dev, "error %d reading firmware %s metadata\n", ret, fw_name);
248 /* Invalid firmware metadata */
249 dev_err(dev, "error %d initializing firmware %s\n", ret, fw_name);
257 dev_err(dev, "error %d setting up firmware %s\n", ret, fw_name);
267 static bool qcom_mdt_bins_are_split(const struct firmware *fw, const char *fw_name)
295 static int __qcom_mdt_load(struct device *dev, const struct firmware *fw,
397 * qcom_mdt_load() - load the firmware which header is loaded as fw
399 * @fw: firmware object for the mdt file
400 * @firmware: name of the firmware, for construction of segment file names
402 * @mem_region: allocated memory region to load firmware into
409 int qcom_mdt_load(struct device *dev, const struct firmware *fw,
410 const char *firmware, int pas_id, void *mem_region,
416 ret = qcom_mdt_pas_init(dev, fw, firmware, pas_id, mem_phys, NULL);
420 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys,
426 * qcom_mdt_load_no_init() - load the firmware which header is loaded as fw
428 * @fw: firmware object for the mdt file
429 * @firmware: name of the firmware, for construction of segment file names
431 * @mem_region: allocated memory region to load firmware into
438 int qcom_mdt_load_no_init(struct device *dev, const struct firmware *fw,
439 const char *firmware, int pas_id,
443 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys,