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
1265 const struct firmware *firmware)
1269 adsp1_sizes = (void *)&firmware->data[pos];
1281 const struct firmware *firmware)
1285 adsp2_sizes = (void *)&firmware->data[pos];
1318 static int cs_dsp_load(struct cs_dsp *dsp, const struct firmware *firmware,
1336 if (!firmware)
1342 if (pos >= firmware->size) {
1344 file, firmware->size);
1348 header = (void *)&firmware->data[0];
1371 pos = dsp->ops->parse_sizes(dsp, file, pos, firmware);
1373 footer = (void *)&firmware->data[pos];
1385 while (pos < firmware->size &&
1386 sizeof(*region) < firmware->size - pos) {
1387 region = (void *)&(firmware->data[pos]);
1445 firmware->size - pos - sizeof(*region)) {
1449 le32_to_cpu(region->len), firmware->size);
1493 if (pos > firmware->size)
1495 file, regions, pos - firmware->size);
2021 static int cs_dsp_load_coeff(struct cs_dsp *dsp, const struct firmware *firmware,
2035 if (!firmware)
2040 if (sizeof(*hdr) >= firmware->size) {
2042 file, firmware->size);
2046 hdr = (void *)&firmware->data[0];
2071 while (pos < firmware->size &&
2072 sizeof(*blk) < firmware->size - pos) {
2073 blk = (void *)(&firmware->data[pos]);
2172 firmware->size - pos - sizeof(*blk)) {
2177 firmware->size);
2211 if (pos > firmware->size)
2213 file, blocks, pos - firmware->size);
2267 * cs_dsp_adsp1_power_up() - Load and start the named firmware
2269 * @wmfw_firmware: the firmware to be sent
2270 * @wmfw_filename: file name of firmware to be sent
2273 * @fw_name: the user-friendly firmware name
2278 const struct firmware *wmfw_firmware, char *wmfw_filename,
2279 const struct firmware *coeff_firmware, char *coeff_filename,
2555 * cs_dsp_power_up() - Downloads firmware to the DSP
2557 * @wmfw_firmware: the firmware to be sent
2558 * @wmfw_filename: file name of firmware to be sent
2561 * @fw_name: the user-friendly firmware name
2564 * and downloads the firmware but does not start the firmware running. The
2566 * memory retention mode it will be put into this state after the firmware is
2572 const struct firmware *wmfw_firmware, char *wmfw_filename,
2573 const struct firmware *coeff_firmware, char *coeff_filename,
2680 * cs_dsp_run() - Starts the firmware running
2753 * cs_dsp_stop() - Stops the firmware
2756 * Memory will not be disabled so firmware will remain loaded.
2760 /* Tell the firmware to cleanup */
2766 /* Log firmware state, it can be useful for analysis */
3005 * The firmware and DSP state will be logged for future analysis.
3075 * The firmware and DSP state will be logged for future analysis.