Lines Matching refs:fw
18 #define SPROC_MODEM_FIRMWARE SPROC_MODEM_NAME "-fw.bin"
57 static int sproc_load_segments(struct rproc *rproc, const struct firmware *fw)
61 memcpy(sproc->fw_addr, fw->data, fw->size);
86 sproc_find_rsc_table(struct rproc *rproc, const struct firmware *fw,
93 if (!fw)
96 entry = sproc_find_rsc_entry(fw->data);
98 sproc_err(sproc, "resource table not found in fw\n");
102 table = (void *)(fw->data + entry->start);
107 fw->size > SPROC_FW_SIZE ||
108 entry->start + entry->size > fw->size ||
110 sproc_err(sproc, "bad size of fw or resource table\n");
116 sproc_err(sproc, "unsupported fw ver: %d\n", table->ver);
134 /* If the fw size has grown, release the previous fw allocation */
135 if (SPROC_FW_SIZE < fw->size) {
136 sproc_err(sproc, "Insufficient space for fw (%d < %zd)\n",
137 SPROC_FW_SIZE, fw->size);
141 sproc->fw_size = fw->size;
149 sproc_find_loaded_rsc_table(struct rproc *rproc, const struct firmware *fw)
154 if (!fw || !sproc->fw_addr)
159 sproc_err(sproc, "resource table not found in fw\n");
309 sproc_err(sproc, "Cannot allocate memory for fw\n");