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()
169 dev_err(dev, "error %d reading firmware %s metadata\n", in __qcom_mdt_load()
178 /* Invalid firmware metadata */ in __qcom_mdt_load()
179 dev_err(dev, "error %d initializing firmware %s\n", in __qcom_mdt_load()
207 dev_err(dev, "error %d setting up firmware %s\n", in __qcom_mdt_load()
250 /* Firmware is large enough to be non-split */ in __qcom_mdt_load()
260 /* Firmware not large enough, load split-out segments */ in __qcom_mdt_load()
296 * qcom_mdt_load() - 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(struct device *dev, const struct firmware *fw, in qcom_mdt_load()
309 const char *firmware, int pas_id, void *mem_region, in qcom_mdt_load() argument
313 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys, in qcom_mdt_load()
319 * qcom_mdt_load_no_init() - load the firmware which header is loaded as fw
321 * @fw: firmware object for the mdt file
322 * @firmware: name of the firmware, for construction of segment file names
324 * @mem_region: allocated memory region to load firmware into
331 int qcom_mdt_load_no_init(struct device *dev, const struct firmware *fw, in qcom_mdt_load_no_init()
332 const char *firmware, int pas_id, in qcom_mdt_load_no_init() argument
336 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys, in qcom_mdt_load_no_init()
341 MODULE_DESCRIPTION("Firmware parser for Qualcomm MDT format");