Lines Matching refs:fw_hdr
3667 const struct tg3_firmware_hdr *fw_hdr) in tg3_fw_data_len() argument
3686 fw_len = be32_to_cpu(fw_hdr->len); in tg3_fw_data_len()
3696 const struct tg3_firmware_hdr *fw_hdr) in tg3_load_firmware_cpu() argument
3735 fw_hdr++; in tg3_load_firmware_cpu()
3739 u32 *fw_data = (u32 *)(fw_hdr + 1); in tg3_load_firmware_cpu()
3740 for (i = 0; i < tg3_fw_data_len(tp, fw_hdr); i++) in tg3_load_firmware_cpu()
3742 (be32_to_cpu(fw_hdr->base_addr) & 0xffff) + in tg3_load_firmware_cpu()
3746 total_len -= be32_to_cpu(fw_hdr->len); in tg3_load_firmware_cpu()
3749 fw_hdr = (struct tg3_firmware_hdr *) in tg3_load_firmware_cpu()
3750 ((void *)fw_hdr + be32_to_cpu(fw_hdr->len)); in tg3_load_firmware_cpu()
3783 const struct tg3_firmware_hdr *fw_hdr; in tg3_load_5701_a0_firmware_fix() local
3786 fw_hdr = (struct tg3_firmware_hdr *)tp->fw->data; in tg3_load_5701_a0_firmware_fix()
3796 fw_hdr); in tg3_load_5701_a0_firmware_fix()
3802 fw_hdr); in tg3_load_5701_a0_firmware_fix()
3808 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_5701_a0_firmware_fix()
3813 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_5701_a0_firmware_fix()
3856 struct tg3_firmware_hdr *fw_hdr; in tg3_load_57766_firmware() local
3881 fw_hdr = (struct tg3_firmware_hdr *)tp->fw->data; in tg3_load_57766_firmware()
3882 if (be32_to_cpu(fw_hdr->base_addr) != TG3_57766_FW_BASE_ADDR) in tg3_load_57766_firmware()
3889 tg3_load_firmware_cpu(tp, 0, TG3_57766_FW_BASE_ADDR, 0, fw_hdr); in tg3_load_57766_firmware()
3897 const struct tg3_firmware_hdr *fw_hdr; in tg3_load_tso_firmware() local
3904 fw_hdr = (struct tg3_firmware_hdr *)tp->fw->data; in tg3_load_tso_firmware()
3925 fw_hdr); in tg3_load_tso_firmware()
3931 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_tso_firmware()
3936 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_tso_firmware()
11399 const struct tg3_firmware_hdr *fw_hdr; in tg3_request_firmware() local
11407 fw_hdr = (struct tg3_firmware_hdr *)tp->fw->data; in tg3_request_firmware()
11414 tp->fw_len = be32_to_cpu(fw_hdr->len); /* includes bss */ in tg3_request_firmware()