Lines Matching defs:firmware

12 #include <linux/firmware.h>
36 * @fw: firmware object for the mdt file
38 * Returns size of the loaded firmware blob, or -EINVAL on failure.
40 ssize_t qcom_mdt_get_size(const struct firmware *fw)
71 * @fw: firmware of mdt header or mbn
74 * The mechanism that performs the authentication of the loading firmware
79 * In the case of split firmware the hash is found directly following the ELF
86 void *qcom_mdt_read_metadata(const struct firmware *fw, size_t *data_len)
129 static int __qcom_mdt_load(struct device *dev, const struct firmware *fw,
130 const char *firmware, int pas_id, void *mem_region,
137 const struct firmware *seg_fw;
157 fw_name_len = strlen(firmware);
161 fw_name = kstrdup(firmware, GFP_KERNEL);
176 dev_err(dev, "invalid firmware metadata\n");
248 i, firmware);
290 * qcom_mdt_load() - load the firmware which header is loaded as fw
292 * @fw: firmware object for the mdt file
293 * @firmware: name of the firmware, for construction of segment file names
295 * @mem_region: allocated memory region to load firmware into
302 int qcom_mdt_load(struct device *dev, const struct firmware *fw,
303 const char *firmware, int pas_id, void *mem_region,
307 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys,
313 * qcom_mdt_load_no_init() - load the firmware which header is loaded as fw
315 * @fw: firmware object for the mdt file
316 * @firmware: name of the firmware, for construction of segment file names
318 * @mem_region: allocated memory region to load firmware into
325 int qcom_mdt_load_no_init(struct device *dev, const struct firmware *fw,
326 const char *firmware, int pas_id,
330 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys,