Lines Matching refs:rtl_fw
677 struct rtl_fw *rtl_fw; member
1662 struct rtl_fw *rtl_fw = tp->rtl_fw; in rtl8169_get_drvinfo() local
1666 BUILD_BUG_ON(sizeof(info->fw_version) < sizeof(rtl_fw->version)); in rtl8169_get_drvinfo()
1667 if (rtl_fw) in rtl8169_get_drvinfo()
1668 strscpy(info->fw_version, rtl_fw->version, in rtl8169_get_drvinfo()
2356 if (tp->rtl_fw) { in rtl_release_firmware()
2357 rtl_fw_release_firmware(tp->rtl_fw); in rtl_release_firmware()
2358 kfree(tp->rtl_fw); in rtl_release_firmware()
2359 tp->rtl_fw = NULL; in rtl_release_firmware()
2368 if (tp->rtl_fw) { in r8169_apply_firmware()
2369 rtl_fw_write_firmware(tp, tp->rtl_fw); in r8169_apply_firmware()
2633 struct rtl_fw *rtl_fw; in rtl_request_firmware() local
2636 if (tp->rtl_fw || !tp->fw_name) in rtl_request_firmware()
2639 rtl_fw = kzalloc(sizeof(*rtl_fw), GFP_KERNEL); in rtl_request_firmware()
2640 if (!rtl_fw) in rtl_request_firmware()
2643 rtl_fw->phy_write = rtl_writephy; in rtl_request_firmware()
2644 rtl_fw->phy_read = rtl_readphy; in rtl_request_firmware()
2645 rtl_fw->mac_mcu_write = mac_mcu_write; in rtl_request_firmware()
2646 rtl_fw->mac_mcu_read = mac_mcu_read; in rtl_request_firmware()
2647 rtl_fw->fw_name = tp->fw_name; in rtl_request_firmware()
2648 rtl_fw->dev = tp_to_dev(tp); in rtl_request_firmware()
2650 if (rtl_fw_request_firmware(rtl_fw)) in rtl_request_firmware()
2651 kfree(rtl_fw); in rtl_request_firmware()
2653 tp->rtl_fw = rtl_fw; in rtl_request_firmware()