Home
last modified time | relevance | path

Searched refs:fw_hdr (Results 1 – 24 of 24) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/
Dhs_ucode.c38 struct hsf_fw_header *fw_hdr = acr_image + hsbin_hdr->header_offset; in hs_ucode_patch_signature() local
50 patch_loc = fw_hdr->patch_loc; in hs_ucode_patch_signature()
51 patch_sig = fw_hdr->patch_sig; in hs_ucode_patch_signature()
53 patch_loc = *(u32 *)(acr_image + fw_hdr->patch_loc); in hs_ucode_patch_signature()
54 patch_sig = *(u32 *)(acr_image + fw_hdr->patch_sig); in hs_ucode_patch_signature()
59 sig = acr_image + fw_hdr->sig_dbg_offset; in hs_ucode_patch_signature()
60 sig_size = fw_hdr->sig_dbg_size; in hs_ucode_patch_signature()
62 sig = acr_image + fw_hdr->sig_prod_offset; in hs_ucode_patch_signature()
63 sig_size = fw_hdr->sig_prod_size; in hs_ucode_patch_signature()
Dgp102.c55 struct hsf_fw_header *fw_hdr; in gp102_run_secure_scrub() local
77 fw_hdr = scrub_image + hsbin_hdr->header_offset; in gp102_run_secure_scrub()
78 lhdr = scrub_image + fw_hdr->hdr_offset; in gp102_run_secure_scrub()
Dacr_r352.c658 struct hsf_fw_header *fw_hdr; in acr_r352_prepare_hs_blob() local
668 fw_hdr = acr_image + hsbin_hdr->header_offset; in acr_r352_prepare_hs_blob()
669 load_hdr = acr_image + fw_hdr->hdr_offset; in acr_r352_prepare_hs_blob()
/Linux-v4.19/drivers/uwb/i1480/dfu/
Dmac.c38 struct fw_hdr { struct
42 struct fw_hdr *next; argument
48 void fw_hdrs_free(struct fw_hdr *hdr) in fw_hdrs_free()
50 struct fw_hdr *next; in fw_hdrs_free()
62 int fw_hdr_load(struct i1480 *i1480, struct fw_hdr *hdr, unsigned hdr_cnt, in fw_hdr_load()
108 int fw_hdrs_load(struct i1480 *i1480, struct fw_hdr **phdr, in fw_hdrs_load()
114 struct fw_hdr *hdr, **prev_hdr = phdr; in fw_hdrs_load()
167 ssize_t i1480_fw_cmp(struct i1480 *i1480, struct fw_hdr *hdr) in i1480_fw_cmp()
213 int mac_fw_hdrs_push(struct i1480 *i1480, struct fw_hdr *hdr, in mac_fw_hdrs_push()
218 struct fw_hdr *hdr_itr; in mac_fw_hdrs_push()
[all …]
/Linux-v4.19/drivers/scsi/csiostor/
Dcsio_hw_chip.h99 struct fw_hdr fw_hdr; member
Dcsio_mb.c1200 struct fw_cmd_hdr *fw_hdr; in csio_mb_issue() local
1313 fw_hdr = (struct fw_cmd_hdr *)&hdr; in csio_mb_issue()
1315 switch (FW_CMD_OP_G(ntohl(fw_hdr->hi))) { in csio_mb_issue()
1483 struct fw_cmd_hdr *fw_hdr; in csio_mb_isr_handler() local
1519 fw_hdr = (struct fw_cmd_hdr *)&hdr; in csio_mb_isr_handler()
1521 switch (FW_CMD_OP_G(ntohl(fw_hdr->hi))) { in csio_mb_isr_handler()
1580 struct fw_cmd_hdr *fw_hdr; in csio_mb_tmo_handler() local
1591 fw_hdr = (struct fw_cmd_hdr *)(mbp->mb); in csio_mb_tmo_handler()
1594 FW_CMD_OP_G(ntohl(fw_hdr->hi))); in csio_mb_tmo_handler()
1598 fw_hdr->lo = htonl(FW_CMD_RETVAL_V(FW_ETIMEDOUT)); in csio_mb_tmo_handler()
Dcsio_hw.c640 offsetof(struct fw_hdr, fw_ver), 1, in csio_hw_get_fw_version()
655 offsetof(struct fw_hdr, tp_microcode_ver), 1, in csio_hw_get_tp_version()
676 struct fw_hdr *hdr = (struct fw_hdr *)fw_data; in csio_hw_fw_dload()
732 ((struct fw_hdr *)first_page)->fw_ver = htonl(0xffffffff); in csio_hw_fw_dload()
751 offsetof(struct fw_hdr, fw_ver), in csio_hw_fw_dload()
1325 const struct fw_hdr *fw_hdr = (const struct fw_hdr *)fw_data; in csio_hw_fw_upgrade() local
1344 reset = ((ntohl(fw_hdr->flags) & FW_HDR_FLAGS_RESET_HALT) == 0); in csio_hw_fw_upgrade()
2225 static int fw_compatible(const struct fw_hdr *hdr1, const struct fw_hdr *hdr2) in fw_compatible()
2278 .fw_hdr = {
2291 .fw_hdr = {
[all …]
/Linux-v4.19/drivers/staging/rtl8712/
Dhal_init.c118 static void update_fwhdr(struct fw_hdr *pfwhdr, const u8 *pmappedfw) in update_fwhdr()
132 static u8 chk_fwhdr(struct fw_hdr *pfwhdr, u32 ulfilelength) in chk_fwhdr()
143 fwhdrsz = FIELD_OFFSET(struct fw_hdr, fwpriv) + pfwhdr->fw_priv_sz; in chk_fwhdr()
158 struct fw_hdr fwhdr; in rtl8712_dl_fw()
183 ptr = (u8 *)pmappedfw + FIELD_OFFSET(struct fw_hdr, fwpriv) + in rtl8712_dl_fw()
Drtl8712_hal.h129 struct fw_hdr {/*8-byte alignment required*/ struct
/Linux-v4.19/drivers/usb/serial/
Dio_ti.c807 struct edgeport_fw_hdr *fw_hdr = (struct edgeport_fw_hdr *)fw->data; in build_i2c_fw_hdr() local
836 firmware_rec->Ver_Major = fw_hdr->major_version; in build_i2c_fw_hdr()
837 firmware_rec->Ver_Minor = fw_hdr->minor_version; in build_i2c_fw_hdr()
859 firmware_rec->Ver_Major = fw_hdr->major_version; in build_i2c_fw_hdr()
860 firmware_rec->Ver_Minor = fw_hdr->minor_version; in build_i2c_fw_hdr()
968 struct edgeport_fw_hdr *fw_hdr = (struct edgeport_fw_hdr *)fw->data; in check_fw_sanity() local
975 length_total = le16_to_cpu(fw_hdr->length) + in check_fw_sanity()
987 if (checksum != fw_hdr->checksum) { in check_fw_sanity()
989 fw_hdr->checksum, checksum); in check_fw_sanity()
1009 struct edgeport_fw_hdr *fw_hdr; in download_fw() local
[all …]
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dmac80211_if.c359 release_firmware(wl->fw.fw_hdr[i]); in brcms_release_fw()
388 status = request_firmware(&wl->fw.fw_hdr[i], fw_name, device); in brcms_request_fw()
395 wl->fw.fw_hdr[i]->size / (sizeof(struct firmware_hdr)); in brcms_request_fw()
1574 hdr = (struct firmware_hdr *)wl->fw.fw_hdr[i]->data; in brcms_ucode_init_buf()
1606 hdr = (struct firmware_hdr *)wl->fw.fw_hdr[i]->data; in brcms_ucode_init_uint()
1647 const struct firmware *fw_hdr; in brcms_check_firmwares() local
1651 fw_hdr = wl->fw.fw_hdr[i]; in brcms_check_firmwares()
1652 if (fw == NULL && fw_hdr == NULL) { in brcms_check_firmwares()
1654 } else if (fw == NULL || fw_hdr == NULL) { in brcms_check_firmwares()
1658 } else if (fw_hdr->size % sizeof(struct firmware_hdr)) { in brcms_check_firmwares()
[all …]
Dmac80211_if.h59 const struct firmware *fw_hdr[MAX_FW_IMAGES]; member
/Linux-v4.19/drivers/staging/rtl8723bs/include/
Drtl8723b_hal.h46 #define IS_FW_HEADER_EXIST_8723B(fw_hdr) \ argument
47 ((le16_to_cpu(fw_hdr->signature) & 0xFFF0) == 0x5300)
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dfw.h171 struct fw_hdr { struct
210 struct fw_hdr *pfwheader; argument
Dfw.c342 struct fw_hdr *pfwheader; in rtl92s_download_fw()
359 firmware->pfwheader = (struct fw_hdr *) puc_mappedfile; in rtl92s_download_fw()
Dsw.c211 sizeof(struct fw_hdr); in rtl92s_init_sw_vars()
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
Dusb.h135 struct fw_header fw_hdr; member
Dusb.c1398 memset(&fwdata->fw_hdr, 0, sizeof(struct fw_header)); in mwifiex_prog_fw_w_helper()
1402 memcpy(&fwdata->fw_hdr, &firmware[tlen], in mwifiex_prog_fw_w_helper()
1405 dlen = le32_to_cpu(fwdata->fw_hdr.data_len); in mwifiex_prog_fw_w_helper()
1406 dnld_cmd = le32_to_cpu(fwdata->fw_hdr.dnld_cmd); in mwifiex_prog_fw_w_helper()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c3138 offsetof(struct fw_hdr, fw_ver), 1, in t4_get_fw_version()
3152 offsetof(struct fw_hdr, fw_ver), 1, in t4_get_bs_version()
3166 offsetof(struct fw_hdr, tp_microcode_ver), in t4_get_tp_version()
3442 static int fw_compatible(const struct fw_hdr *hdr1, const struct fw_hdr *hdr2) in fw_compatible()
3492 struct fw_hdr *card_fw, enum dev_state state, in t4_prep_fw()
3496 const struct fw_hdr *fs_fw; in t4_prep_fw()
3497 const struct fw_hdr *drv_fw; in t4_prep_fw()
3499 drv_fw = &fw_info->fw_hdr; in t4_prep_fw()
3627 const struct fw_hdr *hdr) in t4_fw_matches_chip()
3658 const struct fw_hdr *hdr = (const struct fw_hdr *)fw_data; in t4_load_fw()
[all …]
Dcxgb4.h467 struct fw_hdr fw_hdr; member
1613 struct fw_hdr *card_fw, enum dev_state state, int *reset);
Dcxgb4_main.c4039 .fw_hdr = {
4052 .fw_hdr = {
4065 .fw_hdr = {
4137 struct fw_hdr *card_fw; in adap_init0()
Dt4fw_api.h3616 struct fw_hdr { struct
/Linux-v4.19/drivers/net/ethernet/broadcom/
Dtg3.c3688 const struct tg3_firmware_hdr *fw_hdr) in tg3_fw_data_len() argument
3707 fw_len = be32_to_cpu(fw_hdr->len); in tg3_fw_data_len()
3717 const struct tg3_firmware_hdr *fw_hdr) in tg3_load_firmware_cpu() argument
3756 fw_hdr++; in tg3_load_firmware_cpu()
3760 u32 *fw_data = (u32 *)(fw_hdr + 1); in tg3_load_firmware_cpu()
3761 for (i = 0; i < tg3_fw_data_len(tp, fw_hdr); i++) in tg3_load_firmware_cpu()
3763 (be32_to_cpu(fw_hdr->base_addr) & 0xffff) + in tg3_load_firmware_cpu()
3767 total_len -= be32_to_cpu(fw_hdr->len); in tg3_load_firmware_cpu()
3770 fw_hdr = (struct tg3_firmware_hdr *) in tg3_load_firmware_cpu()
3771 ((void *)fw_hdr + be32_to_cpu(fw_hdr->len)); in tg3_load_firmware_cpu()
[all …]
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c13367 struct bnx2x_fw_file_hdr *fw_hdr; in bnx2x_check_firmware() local
13379 fw_hdr = (struct bnx2x_fw_file_hdr *)firmware->data; in bnx2x_check_firmware()
13380 sections = (struct bnx2x_fw_file_section *)fw_hdr; in bnx2x_check_firmware()
13384 for (i = 0; i < sizeof(*fw_hdr) / sizeof(*sections); i++) { in bnx2x_check_firmware()
13394 offset = be32_to_cpu(fw_hdr->init_ops_offsets.offset); in bnx2x_check_firmware()
13396 num_ops = be32_to_cpu(fw_hdr->init_ops.len) / sizeof(struct raw_op); in bnx2x_check_firmware()
13398 for (i = 0; i < be32_to_cpu(fw_hdr->init_ops_offsets.len) / 2; i++) { in bnx2x_check_firmware()
13406 offset = be32_to_cpu(fw_hdr->fw_version.offset); in bnx2x_check_firmware()
13487 u32 len = be32_to_cpu(fw_hdr->arr.len); \
13491 func(bp->firmware->data + be32_to_cpu(fw_hdr->arr.offset), \
[all …]