/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
H A D | falcon.c | 8 #include <linux/firmware.h> 52 * Use second DMA context (i.e. the one for firmware). Strictly in falcon_copy_chunk() 53 * speaking, at this point both DMA contexts point to the firmware in falcon_copy_chunk() 54 * stream ID, but this register's value will be reused by the firmware in falcon_copy_chunk() 67 const struct firmware *firmware) in falcon_copy_firmware_image() 69 u32 *virt = falcon->firmware.virt; in falcon_copy_firmware_image() 73 for (i = 0; i < firmware->size / sizeof(u32); i++) in falcon_copy_firmware_image() 74 virt[i] = le32_to_cpu(((__le32 *)firmware->data)[i]); in falcon_copy_firmware_image() 79 struct falcon_fw_bin_header_v1 *bin = (void *)falcon->firmware in falcon_parse_firmware_image() 66 falcon_copy_firmware_image(struct falcon *falcon, const struct firmware *firmware) falcon_copy_firmware_image() argument 128 const struct firmware *firmware = falcon->firmware.firmware; falcon_load_firmware() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
H A D | falcon.c | 8 #include <linux/firmware.h> 59 const struct firmware *firmware) in falcon_copy_firmware_image() 61 u32 *virt = falcon->firmware.virt; in falcon_copy_firmware_image() 65 for (i = 0; i < firmware->size / sizeof(u32); i++) in falcon_copy_firmware_image() 66 virt[i] = le32_to_cpu(((u32 *)firmware->data)[i]); in falcon_copy_firmware_image() 71 struct falcon_fw_bin_header_v1 *bin = (void *)falcon->firmware.virt; in falcon_parse_firmware_image() 76 dev_err(falcon->dev, "incorrect firmware magic\n"); in falcon_parse_firmware_image() 82 dev_err(falcon->dev, "unsupported firmware version\n"); in falcon_parse_firmware_image() 86 /* check that the firmware siz in falcon_parse_firmware_image() 58 falcon_copy_firmware_image(struct falcon *falcon, const struct firmware *firmware) falcon_copy_firmware_image() argument 120 const struct firmware *firmware = falcon->firmware.firmware; falcon_load_firmware() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | firmware.h | 12 struct firmware { struct 16 /* firmware loader private fields */ 21 * enum fw_upload_err - firmware upload error codes 24 * @FW_UPLOAD_ERR_TIMEOUT: SW timed out on handshake with HW/firmware 27 * @FW_UPLOAD_ERR_INVALID_SIZE: invalid firmware image size 46 void *priv; /* firmware loader private fields */ 50 * struct fw_upload_ops - device specific operations to support firmware upload 82 * Built-in firmware functionality is only available if FW_LOADER=y, but not 86 bool firmware_request_builtin(struct firmware *fw, const char *name); 88 static inline bool firmware_request_builtin(struct firmware *f [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | firmware.h | 12 struct firmware { struct 16 /* firmware loader private fields */ 42 int request_firmware(const struct firmware **fw, const char *name, 44 int firmware_request_nowarn(const struct firmware **fw, const char *name, 46 int firmware_request_platform(const struct firmware **fw, const char *name, 51 void (*cont)(const struct firmware *fw, void *context)); 52 int request_firmware_direct(const struct firmware **fw, const char *name, 54 int request_firmware_into_buf(const struct firmware **firmware_p, 56 int request_partial_firmware_into_buf(const struct firmware **firmware_p, 60 void release_firmware(const struct firmware *f [all...] |
/kernel/linux/linux-5.10/sound/pci/asihpi/ |
H A D | hpidspcd.c | 5 Functions for reading DSP code using hotplug firmware loader 18 const struct firmware *firmware; member 26 const struct firmware *firmware; in hpi_dsp_code_open() local 35 err = request_firmware(&firmware, fw_name, &dev->dev); in hpi_dsp_code_open() 37 if (err || !firmware) { in hpi_dsp_code_open() 42 if (firmware->size < sizeof(header)) { in hpi_dsp_code_open() 46 memcpy(&header, firmware->data, sizeof(header)); in hpi_dsp_code_open() 50 || (header.size != firmware in hpi_dsp_code_open() [all...] |
/kernel/linux/linux-6.6/sound/pci/asihpi/ |
H A D | hpidspcd.c | 5 Functions for reading DSP code using hotplug firmware loader 18 const struct firmware *firmware; member 26 const struct firmware *firmware; in hpi_dsp_code_open() local 35 err = request_firmware(&firmware, fw_name, &dev->dev); in hpi_dsp_code_open() 37 if (err || !firmware) { in hpi_dsp_code_open() 42 if (firmware->size < sizeof(header)) { in hpi_dsp_code_open() 46 memcpy(&header, firmware->data, sizeof(header)); in hpi_dsp_code_open() 50 || (header.size != firmware in hpi_dsp_code_open() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gvt/ |
H A D | firmware.c | 31 #include <linux/firmware.h> 75 void *firmware; in expose_firmware_sysfs() local 81 firmware = vzalloc(size); in expose_firmware_sysfs() 82 if (!firmware) in expose_firmware_sysfs() 85 h = firmware; in expose_firmware_sysfs() 94 p = firmware + h->cfg_space_offset; in expose_firmware_sysfs() 96 memcpy(gvt->firmware.cfg_space, i915->vgpu.initial_cfg_space, in expose_firmware_sysfs() 98 memcpy(p, gvt->firmware.cfg_space, info->cfg_space_size); in expose_firmware_sysfs() 100 p = firmware + h->mmio_offset; in expose_firmware_sysfs() 102 memcpy(gvt->firmware in expose_firmware_sysfs() 202 struct intel_gvt_firmware *firmware = &gvt->firmware; intel_gvt_load_firmware() local [all...] |
/kernel/linux/linux-5.10/drivers/bluetooth/ |
H A D | bcm203x.c | 4 * Broadcom Blutonium firmware driver 20 #include <linux/firmware.h> 155 const struct firmware *firmware; in bcm203x_probe() local 176 if (request_firmware(&firmware, "BCM2033-MD.hex", &udev->dev) < 0) { in bcm203x_probe() 182 BT_DBG("minidrv data %p size %zu", firmware->data, firmware->size); in bcm203x_probe() 184 size = max_t(uint, firmware->size, 4096); in bcm203x_probe() 189 release_firmware(firmware); in bcm203x_probe() 194 memcpy(data->buffer, firmware in bcm203x_probe() [all...] |
H A D | ath3k.c | 14 #include <linux/firmware.h> 51 /* Atheros AR3011 with sflash firmware*/ 60 /* Atheros AR9285 Malbec with sflash firmware */ 63 /* Atheros AR3012 with sflash firmware*/ 115 /* Atheros AR5BBU12 with sflash firmware */ 118 /* Atheros AR5BBU22 with sflash firmware */ 133 /* Atheros AR3012 with sflash firmware*/ 185 /* Atheros AR5BBU22 with sflash firmware */ 206 const struct firmware *firmware) in ath3k_load_firmware() 205 ath3k_load_firmware(struct usb_device *udev, const struct firmware *firmware) ath3k_load_firmware() argument 274 ath3k_load_fwfile(struct usb_device *udev, const struct firmware *firmware) ath3k_load_fwfile() argument 359 const struct firmware *firmware; ath3k_load_patch() local 412 const struct firmware *firmware; ath3k_load_syscfg() local 462 const struct firmware *firmware; ath3k_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | bcm203x.c | 4 * Broadcom Blutonium firmware driver 19 #include <linux/firmware.h> 154 const struct firmware *firmware; in bcm203x_probe() local 175 if (request_firmware(&firmware, "BCM2033-MD.hex", &udev->dev) < 0) { in bcm203x_probe() 181 BT_DBG("minidrv data %p size %zu", firmware->data, firmware->size); in bcm203x_probe() 183 size = max_t(uint, firmware->size, 4096); in bcm203x_probe() 188 release_firmware(firmware); in bcm203x_probe() 193 memcpy(data->buffer, firmware in bcm203x_probe() [all...] |
H A D | ath3k.c | 13 #include <linux/firmware.h> 50 /* Atheros AR3011 with sflash firmware*/ 59 /* Atheros AR9285 Malbec with sflash firmware */ 62 /* Atheros AR3012 with sflash firmware*/ 114 /* Atheros AR5BBU12 with sflash firmware */ 117 /* Atheros AR5BBU22 with sflash firmware */ 132 /* Atheros AR3012 with sflash firmware*/ 184 /* Atheros AR5BBU22 with sflash firmware */ 205 const struct firmware *firmware) in ath3k_load_firmware() 204 ath3k_load_firmware(struct usb_device *udev, const struct firmware *firmware) ath3k_load_firmware() argument 273 ath3k_load_fwfile(struct usb_device *udev, const struct firmware *firmware) ath3k_load_fwfile() argument 358 const struct firmware *firmware; ath3k_load_patch() local 411 const struct firmware *firmware; ath3k_load_syscfg() local 461 const struct firmware *firmware; ath3k_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/ |
H A D | firmware.c | 31 #include <linux/firmware.h> 81 void *firmware; in expose_firmware_sysfs() local 87 firmware = vzalloc(size); in expose_firmware_sysfs() 88 if (!firmware) in expose_firmware_sysfs() 91 h = firmware; in expose_firmware_sysfs() 100 p = firmware + h->cfg_space_offset; in expose_firmware_sysfs() 105 memcpy(gvt->firmware.cfg_space, p, info->cfg_space_size); in expose_firmware_sysfs() 107 p = firmware + h->mmio_offset; in expose_firmware_sysfs() 112 memcpy(gvt->firmware.mmio, p, info->mmio_size); in expose_firmware_sysfs() 115 h->crc32 = crc32_le(0, firmware in expose_firmware_sysfs() 209 struct intel_gvt_firmware *firmware = &gvt->firmware; intel_gvt_load_firmware() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/ |
H A D | firmware.c | 7 #include <linux/firmware.h> 16 const struct firmware *helper, const struct firmware *mainfw) in lbs_fw_loaded() 20 lbs_deb_fw("firmware load complete, code %d\n", ret); in lbs_fw_loaded() 32 void (*cb)(const struct firmware *fw, void *context)) in do_load_firmware() 45 static void main_firmware_cb(const struct firmware *firmware, void *context) in main_firmware_cb() argument 49 if (!firmware) { in main_firmware_cb() 50 /* Failed to find firmware: try next table entry */ in main_firmware_cb() 56 lbs_fw_loaded(priv, 0, priv->helper_fw, firmware); in main_firmware_cb() 64 helper_firmware_cb(const struct firmware *firmware, void *context) helper_firmware_cb() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/libertas/ |
H A D | firmware.c | 7 #include <linux/firmware.h> 16 const struct firmware *helper, const struct firmware *mainfw) in lbs_fw_loaded() 20 lbs_deb_fw("firmware load complete, code %d\n", ret); in lbs_fw_loaded() 32 void (*cb)(const struct firmware *fw, void *context)) in do_load_firmware() 45 static void main_firmware_cb(const struct firmware *firmware, void *context) in main_firmware_cb() argument 49 if (!firmware) { in main_firmware_cb() 50 /* Failed to find firmware: try next table entry */ in main_firmware_cb() 56 lbs_fw_loaded(priv, 0, priv->helper_fw, firmware); in main_firmware_cb() 64 helper_firmware_cb(const struct firmware *firmware, void *context) helper_firmware_cb() argument [all...] |
/kernel/linux/linux-6.6/include/linux/soc/qcom/ |
H A D | mdt_loader.h | 12 struct firmware; 17 ssize_t qcom_mdt_get_size(const struct firmware *fw); 18 int qcom_mdt_pas_init(struct device *dev, const struct firmware *fw, 21 int qcom_mdt_load(struct device *dev, const struct firmware *fw, 26 int qcom_mdt_load_no_init(struct device *dev, const struct firmware *fw, 30 void *qcom_mdt_read_metadata(const struct firmware *fw, size_t *data_len, 35 static inline ssize_t qcom_mdt_get_size(const struct firmware *fw) in qcom_mdt_get_size() 40 static inline int qcom_mdt_pas_init(struct device *dev, const struct firmware *fw, in qcom_mdt_pas_init() 47 static inline int qcom_mdt_load(struct device *dev, const struct firmware *fw, in qcom_mdt_load() 56 const struct firmware *f in qcom_mdt_load_no_init() [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/as102/ |
H A D | as102_fw.c | 11 #include <linux/firmware.h> 38 * Parse INTEL HEX firmware file to extract address and data. 48 pr_err("invalid firmware file\n"); in parse_hex_line() 93 const struct firmware *firmware) { in as102_firmware_upload() 104 for (total_read_bytes = 0; total_read_bytes < firmware->size; ) { in as102_firmware_upload() 109 (u8 *) (firmware->data + total_read_bytes), in as102_firmware_upload() 120 if (total_read_bytes == firmware->size) { in as102_firmware_upload() 158 const struct firmware *firmware in as102_fw_upload() local 91 as102_firmware_upload(struct as10x_bus_adapter_t *bus_adap, unsigned char *cmd, const struct firmware *firmware) as102_firmware_upload() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/as102/ |
H A D | as102_fw.c | 11 #include <linux/firmware.h> 38 * Parse INTEL HEX firmware file to extract address and data. 48 pr_err("invalid firmware file\n"); in parse_hex_line() 93 const struct firmware *firmware) { in as102_firmware_upload() 104 for (total_read_bytes = 0; total_read_bytes < firmware->size; ) { in as102_firmware_upload() 109 (u8 *) (firmware->data + total_read_bytes), in as102_firmware_upload() 120 if (total_read_bytes == firmware->size) { in as102_firmware_upload() 158 const struct firmware *firmware in as102_fw_upload() local 91 as102_firmware_upload(struct as10x_bus_adapter_t *bus_adap, unsigned char *cmd, const struct firmware *firmware) as102_firmware_upload() argument [all...] |
/kernel/linux/linux-6.6/drivers/pwm/ |
H A D | pwm-raspberrypi-poe.c | 20 #include <soc/bcm2835/raspberrypi-firmware.h> 21 #include <dt-bindings/pwm/raspberrypi,firmware-poe-pwm.h> 29 struct rpi_firmware *firmware; member 46 static int raspberrypi_pwm_set_property(struct rpi_firmware *firmware, in raspberrypi_pwm_set_property() argument 55 ret = rpi_firmware_property(firmware, RPI_FIRMWARE_SET_POE_HAT_VAL, in raspberrypi_pwm_set_property() 65 static int raspberrypi_pwm_get_property(struct rpi_firmware *firmware, in raspberrypi_pwm_get_property() argument 73 ret = rpi_firmware_property(firmware, RPI_FIRMWARE_GET_POE_HAT_VAL, in raspberrypi_pwm_get_property() 122 ret = raspberrypi_pwm_set_property(rpipwm->firmware, RPI_PWM_CUR_DUTY_REG, in raspberrypi_pwm_apply() 145 struct rpi_firmware *firmware; in raspberrypi_pwm_probe() local 151 dev_err(dev, "Missing firmware nod in raspberrypi_pwm_probe() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_rlc.c | 25 #include <linux/firmware.h> 187 * Write cp firmware data into cp table. 331 if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) { in amdgpu_gfx_rlc_init_microcode_v2_0() 332 info = &adev->firmware.ucode[AMDGPU_UCODE_ID_RLC_G]; in amdgpu_gfx_rlc_init_microcode_v2_0() 337 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_0() 366 if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) { in amdgpu_gfx_rlc_init_microcode_v2_1() 368 info = &adev->firmware.ucode[AMDGPU_UCODE_ID_RLC_RESTORE_LIST_CNTL]; in amdgpu_gfx_rlc_init_microcode_v2_1() 371 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_1() 376 info = &adev->firmware.ucode[AMDGPU_UCODE_ID_RLC_RESTORE_LIST_GPM_MEM]; in amdgpu_gfx_rlc_init_microcode_v2_1() 379 adev->firmware in amdgpu_gfx_rlc_init_microcode_v2_1() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
H A D | fw.c | 162 /* Allocate skb buffer to contain firmware */ in _rtl92s_firmware_downloadcode() 192 struct rt_firmware *firmware = (struct rt_firmware *)rtlhal->pfirmware; in _rtl92s_firmware_checkready() local 201 firmware->fwstatus = (enum fw_status)loadfw_status; in _rtl92s_firmware_checkready() 317 struct rt_firmware *firmware = NULL; in rtl92s_download_fw() local 329 firmware = (struct rt_firmware *)rtlhal->pfirmware; in rtl92s_download_fw() 330 firmware->fwstatus = FW_STATUS_INIT; in rtl92s_download_fw() 332 puc_mappedfile = firmware->sz_fw_tmpbuffer; in rtl92s_download_fw() 335 firmware->pfwheader = (struct fw_hdr *) puc_mappedfile; in rtl92s_download_fw() 336 pfwheader = firmware->pfwheader; in rtl92s_download_fw() 337 firmware in rtl92s_download_fw() [all...] |
/kernel/linux/linux-5.10/drivers/soc/fsl/qe/ |
H A D | qe.c | 393 * Set to 1 if QE firmware has been uploaded, and therefore 411 printk(KERN_INFO "qe-firmware: " in qe_upload_microcode() 415 printk(KERN_INFO "qe-firmware: " in qe_upload_microcode() 441 * 'calc_size' is the calculated size, in bytes, of the firmware structure and 446 int qe_upload_firmware(const struct qe_firmware *firmware) in qe_upload_firmware() argument 455 if (!firmware) { in qe_upload_firmware() 456 printk(KERN_ERR "qe-firmware: invalid pointer\n"); in qe_upload_firmware() 460 hdr = &firmware->header; in qe_upload_firmware() 466 printk(KERN_ERR "qe-firmware: not a microcode\n"); in qe_upload_firmware() 472 printk(KERN_ERR "qe-firmware in qe_upload_firmware() [all...] |
/kernel/linux/linux-6.6/drivers/soc/fsl/qe/ |
H A D | qe.c | 394 * Set to 1 if QE firmware has been uploaded, and therefore 412 printk(KERN_INFO "qe-firmware: " in qe_upload_microcode() 416 printk(KERN_INFO "qe-firmware: " in qe_upload_microcode() 442 * 'calc_size' is the calculated size, in bytes, of the firmware structure and 447 int qe_upload_firmware(const struct qe_firmware *firmware) in qe_upload_firmware() argument 456 if (!firmware) { in qe_upload_firmware() 457 printk(KERN_ERR "qe-firmware: invalid pointer\n"); in qe_upload_firmware() 461 hdr = &firmware->header; in qe_upload_firmware() 467 printk(KERN_ERR "qe-firmware: not a microcode\n"); in qe_upload_firmware() 473 printk(KERN_ERR "qe-firmware in qe_upload_firmware() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
H A D | fw.c | 162 /* Allocate skb buffer to contain firmware */ in _rtl92s_firmware_downloadcode() 192 struct rt_firmware *firmware = (struct rt_firmware *)rtlhal->pfirmware; in _rtl92s_firmware_checkready() local 201 firmware->fwstatus = (enum fw_status)loadfw_status; in _rtl92s_firmware_checkready() 317 struct rt_firmware *firmware = NULL; in rtl92s_download_fw() local 329 firmware = (struct rt_firmware *)rtlhal->pfirmware; in rtl92s_download_fw() 330 firmware->fwstatus = FW_STATUS_INIT; in rtl92s_download_fw() 332 puc_mappedfile = firmware->sz_fw_tmpbuffer; in rtl92s_download_fw() 335 firmware->pfwheader = (struct fw_hdr *) puc_mappedfile; in rtl92s_download_fw() 336 pfwheader = firmware->pfwheader; in rtl92s_download_fw() 337 firmware in rtl92s_download_fw() [all...] |
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | isight_firmware.c | 3 * Driver for loading USB isight firmware 9 * need firmware to be loaded beforehand. After firmware loading, the device 13 * The firmware is non-free and must be extracted by the user. Tools to do this 16 * The isight firmware loading was reverse engineered by Johannes Berg 22 #include <linux/firmware.h> 39 const struct firmware *firmware; in isight_firmware_load() local 47 if (request_firmware(&firmware, "isight.fw", &dev->dev) != 0) { in isight_firmware_load() 48 printk(KERN_ERR "Unable to load isight firmware\ in isight_firmware_load() [all...] |
/kernel/linux/linux-6.6/drivers/usb/misc/ |
H A D | isight_firmware.c | 3 * Driver for loading USB isight firmware 9 * need firmware to be loaded beforehand. After firmware loading, the device 13 * The firmware is non-free and must be extracted by the user. Tools to do this 16 * The isight firmware loading was reverse engineered by Johannes Berg 22 #include <linux/firmware.h> 39 const struct firmware *firmware; in isight_firmware_load() local 47 if (request_firmware(&firmware, "isight.fw", &dev->dev) != 0) { in isight_firmware_load() 48 printk(KERN_ERR "Unable to load isight firmware\ in isight_firmware_load() [all...] |