Lines Matching defs:firmware

3  * cs_dsp.c  --  Cirrus Logic DSP firmware support
21 #include <linux/firmware/cirrus/cs_dsp.h>
22 #include <linux/firmware/cirrus/wmfw.h>
283 const struct firmware *firmware);
676 * until the running firmware acknowledges the write or timeout is exceeded.
710 * that respond quickly, then go to ~10ms polls. A firmware is unlikely
1319 const struct firmware *firmware)
1323 adsp1_sizes = (void *)&firmware->data[pos];
1335 const struct firmware *firmware)
1339 adsp2_sizes = (void *)&firmware->data[pos];
1372 static int cs_dsp_load(struct cs_dsp *dsp, const struct firmware *firmware,
1390 if (!firmware)
1396 if (pos >= firmware->size) {
1398 file, firmware->size);
1402 header = (void *)&firmware->data[0];
1425 pos = dsp->ops->parse_sizes(dsp, file, pos, firmware);
1427 footer = (void *)&firmware->data[pos];
1439 while (pos < firmware->size &&
1440 sizeof(*region) < firmware->size - pos) {
1441 region = (void *)&(firmware->data[pos]);
1499 firmware->size - pos - sizeof(*region)) {
1503 le32_to_cpu(region->len), firmware->size);
1547 if (pos > firmware->size)
1549 file, regions, pos - firmware->size);
2075 static int cs_dsp_load_coeff(struct cs_dsp *dsp, const struct firmware *firmware,
2089 if (!firmware)
2094 if (sizeof(*hdr) >= firmware->size) {
2096 file, firmware->size);
2100 hdr = (void *)&firmware->data[0];
2125 while (pos < firmware->size &&
2126 sizeof(*blk) < firmware->size - pos) {
2127 blk = (void *)(&firmware->data[pos]);
2226 firmware->size - pos - sizeof(*blk)) {
2231 firmware->size);
2265 if (pos > firmware->size)
2267 file, blocks, pos - firmware->size);
2326 * cs_dsp_adsp1_power_up() - Load and start the named firmware
2328 * @wmfw_firmware: the firmware to be sent
2329 * @wmfw_filename: file name of firmware to be sent
2332 * @fw_name: the user-friendly firmware name
2337 const struct firmware *wmfw_firmware, char *wmfw_filename,
2338 const struct firmware *coeff_firmware, char *coeff_filename,
2614 * cs_dsp_power_up() - Downloads firmware to the DSP
2616 * @wmfw_firmware: the firmware to be sent
2617 * @wmfw_filename: file name of firmware to be sent
2620 * @fw_name: the user-friendly firmware name
2623 * and downloads the firmware but does not start the firmware running. The
2625 * memory retention mode it will be put into this state after the firmware is
2631 const struct firmware *wmfw_firmware, char *wmfw_filename,
2632 const struct firmware *coeff_firmware, char *coeff_filename,
2739 * cs_dsp_run() - Starts the firmware running
2812 * cs_dsp_stop() - Stops the firmware
2815 * Memory will not be disabled so firmware will remain loaded.
2819 /* Tell the firmware to cleanup */
2825 /* Log firmware state, it can be useful for analysis */
3064 * The firmware and DSP state will be logged for future analysis.
3134 * The firmware and DSP state will be logged for future analysis.