Lines Matching full: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) in qcom_mdt_get_size()
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) in qcom_mdt_read_metadata()
129 static int __qcom_mdt_load(struct device *dev, const struct firmware *fw, in __qcom_mdt_load()
130 const char *firmware, int pas_id, void *mem_region, in __qcom_mdt_load() argument
137 const struct firmware *seg_fw; in __qcom_mdt_load()
157 fw_name_len = strlen(firmware); in __qcom_mdt_load()
161 fw_name = kstrdup(firmware, GFP_KERNEL); in __qcom_mdt_load()
176 dev_err(dev, "invalid firmware metadata\n"); in __qcom_mdt_load()
236 /* Firmware is large enough to be non-split */ in __qcom_mdt_load()
240 i, firmware); in __qcom_mdt_load()
247 /* Firmware not large enough, load split-out segments */ in __qcom_mdt_load()
273 * qcom_mdt_load() - load the firmware which header is loaded as fw
275 * @fw: firmware object for the mdt file
276 * @firmware: name of the firmware, for construction of segment file names
278 * @mem_region: allocated memory region to load firmware into
285 int qcom_mdt_load(struct device *dev, const struct firmware *fw, in qcom_mdt_load()
286 const char *firmware, int pas_id, void *mem_region, in qcom_mdt_load() argument
290 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys, in qcom_mdt_load()
296 * qcom_mdt_load_no_init() - load the firmware which header is loaded as fw
298 * @fw: firmware object for the mdt file
299 * @firmware: name of the firmware, for construction of segment file names
301 * @mem_region: allocated memory region to load firmware into
308 int qcom_mdt_load_no_init(struct device *dev, const struct firmware *fw, in qcom_mdt_load_no_init()
309 const char *firmware, int pas_id, in qcom_mdt_load_no_init() argument
313 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys, in qcom_mdt_load_no_init()
318 MODULE_DESCRIPTION("Firmware parser for Qualcomm MDT format");