Lines Matching refs:firmware
7 #include <linux/firmware.h>
16 const struct firmware *helper, const struct firmware *mainfw)
20 lbs_deb_fw("firmware load complete, code %d\n", ret);
32 void (*cb)(const struct firmware *fw, void *context))
45 static void main_firmware_cb(const struct firmware *firmware, void *context)
49 if (!firmware) {
50 /* Failed to find firmware: try next table entry */
56 lbs_fw_loaded(priv, 0, priv->helper_fw, firmware);
61 release_firmware (firmware);
64 static void helper_firmware_cb(const struct firmware *firmware, void *context)
68 if (!firmware) {
69 /* Failed to find firmware: try next table entry */
76 priv->helper_fw = firmware;
79 /* No main firmware needed for this helper --> success! */
80 lbs_fw_loaded(priv, 0, firmware, NULL);
120 * lbs_get_firmware_async - Retrieves firmware asynchronously. Can load
121 * either a helper firmware and a main firmware (2-stage), or just the helper.
125 * @card_model: Bus-specific card model ID used to filter firmware table
127 * @fw_table: Table of firmware file names and device model numbers
129 * @callback: User callback to invoke when firmware load succeeds or fails.
139 lbs_deb_fw("firmware load already in progress\n");
151 lbs_deb_fw("Starting async firmware load\n");
158 * lbs_get_firmware - Retrieves two-stage firmware
161 * @card_model: Bus-specific card model ID used to filter firmware table
163 * @fw_table: Table of firmware file names and device model numbers
165 * @helper: On success, the helper firmware; caller must free
166 * @mainfw: On success, the main firmware; caller must free
174 const struct firmware **helper,
175 const struct firmware **mainfw)
183 /* Search for firmware to use from the table. */
194 /* If the device has one-stage firmware (ie cf8305) and
196 * main firmware.
206 * mismatched firmware pairs.