Lines Matching refs:rtl_fw

923 	struct rtl_fw {  struct
932 } rtl_fw; member
4674 static long rtl8152_check_firmware(struct r8152 *tp, struct rtl_fw *rtl_fw) in rtl8152_check_firmware() argument
4676 const struct firmware *fw = rtl_fw->fw; in rtl8152_check_firmware()
5213 struct rtl_fw *rtl_fw = &tp->rtl_fw; in rtl8152_apply_firmware() local
5220 if (IS_ERR_OR_NULL(rtl_fw->fw)) in rtl8152_apply_firmware()
5223 fw = rtl_fw->fw; in rtl8152_apply_firmware()
5226 if (rtl_fw->pre_fw) in rtl8152_apply_firmware()
5227 rtl_fw->pre_fw(tp); in rtl8152_apply_firmware()
5282 if (rtl_fw->post_fw) in rtl8152_apply_firmware()
5283 rtl_fw->post_fw(tp); in rtl8152_apply_firmware()
5286 strscpy(rtl_fw->version, fw_hdr->version, RTL_VER_SIZE); in rtl8152_apply_firmware()
5287 dev_dbg(&tp->intf->dev, "load %s successfully\n", rtl_fw->version); in rtl8152_apply_firmware()
5292 struct rtl_fw *rtl_fw = &tp->rtl_fw; in rtl8152_release_firmware() local
5294 if (!IS_ERR_OR_NULL(rtl_fw->fw)) { in rtl8152_release_firmware()
5295 release_firmware(rtl_fw->fw); in rtl8152_release_firmware()
5296 rtl_fw->fw = NULL; in rtl8152_release_firmware()
5302 struct rtl_fw *rtl_fw = &tp->rtl_fw; in rtl8152_request_firmware() local
5305 if (rtl_fw->fw || !rtl_fw->fw_name) { in rtl8152_request_firmware()
5311 rc = request_firmware(&rtl_fw->fw, rtl_fw->fw_name, &tp->intf->dev); in rtl8152_request_firmware()
5315 rc = rtl8152_check_firmware(tp, rtl_fw); in rtl8152_request_firmware()
5317 release_firmware(rtl_fw->fw); in rtl8152_request_firmware()
5321 rtl_fw->fw = ERR_PTR(rc); in rtl8152_request_firmware()
5325 rtl_fw->fw_name, rc); in rtl8152_request_firmware()
6902 if (rtl8152_request_firmware(tp) == -ENODEV && tp->rtl_fw.retry) { in rtl_hw_phy_work_func_t()
6903 tp->rtl_fw.retry = false; in rtl_hw_phy_work_func_t()
6904 tp->rtl_fw.fw = NULL; in rtl_hw_phy_work_func_t()
8788 if (!IS_ERR_OR_NULL(tp->rtl_fw.fw)) in rtl8152_get_drvinfo()
8789 strscpy(info->fw_version, tp->rtl_fw.version, in rtl8152_get_drvinfo()
9632 struct rtl_fw *rtl_fw = &tp->rtl_fw; in rtl_fw_init() local
9636 rtl_fw->fw_name = FIRMWARE_8153A_2; in rtl_fw_init()
9637 rtl_fw->pre_fw = r8153_pre_firmware_1; in rtl_fw_init()
9638 rtl_fw->post_fw = r8153_post_firmware_1; in rtl_fw_init()
9641 rtl_fw->fw_name = FIRMWARE_8153A_3; in rtl_fw_init()
9642 rtl_fw->pre_fw = r8153_pre_firmware_2; in rtl_fw_init()
9643 rtl_fw->post_fw = r8153_post_firmware_2; in rtl_fw_init()
9646 rtl_fw->fw_name = FIRMWARE_8153A_4; in rtl_fw_init()
9647 rtl_fw->post_fw = r8153_post_firmware_3; in rtl_fw_init()
9650 rtl_fw->fw_name = FIRMWARE_8153B_2; in rtl_fw_init()
9651 rtl_fw->pre_fw = r8153b_pre_firmware_1; in rtl_fw_init()
9652 rtl_fw->post_fw = r8153b_post_firmware_1; in rtl_fw_init()
9655 rtl_fw->fw_name = FIRMWARE_8156A_2; in rtl_fw_init()
9656 rtl_fw->post_fw = r8156a_post_firmware_1; in rtl_fw_init()
9660 rtl_fw->fw_name = FIRMWARE_8156B_2; in rtl_fw_init()
9663 rtl_fw->fw_name = FIRMWARE_8153C_1; in rtl_fw_init()
9664 rtl_fw->pre_fw = r8153b_pre_firmware_1; in rtl_fw_init()
9665 rtl_fw->post_fw = r8153c_post_firmware_1; in rtl_fw_init()
9951 tp->rtl_fw.retry = true; in rtl8152_probe_once()