Lines Matching refs:fw_hdr

3688 			   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()
3804 const struct tg3_firmware_hdr *fw_hdr; in tg3_load_5701_a0_firmware_fix() local
3807 fw_hdr = (struct tg3_firmware_hdr *)tp->fw->data; in tg3_load_5701_a0_firmware_fix()
3817 fw_hdr); in tg3_load_5701_a0_firmware_fix()
3823 fw_hdr); in tg3_load_5701_a0_firmware_fix()
3829 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_5701_a0_firmware_fix()
3834 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_5701_a0_firmware_fix()
3877 struct tg3_firmware_hdr *fw_hdr; in tg3_load_57766_firmware() local
3902 fw_hdr = (struct tg3_firmware_hdr *)tp->fw->data; in tg3_load_57766_firmware()
3903 if (be32_to_cpu(fw_hdr->base_addr) != TG3_57766_FW_BASE_ADDR) in tg3_load_57766_firmware()
3910 tg3_load_firmware_cpu(tp, 0, TG3_57766_FW_BASE_ADDR, 0, fw_hdr); in tg3_load_57766_firmware()
3918 const struct tg3_firmware_hdr *fw_hdr; in tg3_load_tso_firmware() local
3925 fw_hdr = (struct tg3_firmware_hdr *)tp->fw->data; in tg3_load_tso_firmware()
3946 fw_hdr); in tg3_load_tso_firmware()
3952 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_tso_firmware()
3957 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_tso_firmware()
11409 const struct tg3_firmware_hdr *fw_hdr; in tg3_request_firmware() local
11417 fw_hdr = (struct tg3_firmware_hdr *)tp->fw->data; in tg3_request_firmware()
11424 tp->fw_len = be32_to_cpu(fw_hdr->len); /* includes bss */ in tg3_request_firmware()