Lines Matching refs:rtl_fw
638 struct rtl_fw *rtl_fw; member
1457 struct rtl_fw *rtl_fw = tp->rtl_fw; in rtl8169_get_drvinfo() local
1461 BUILD_BUG_ON(sizeof(info->fw_version) < sizeof(rtl_fw->version)); in rtl8169_get_drvinfo()
1462 if (rtl_fw) in rtl8169_get_drvinfo()
1463 strlcpy(info->fw_version, rtl_fw->version, in rtl8169_get_drvinfo()
2122 if (tp->rtl_fw) { in rtl_release_firmware()
2123 rtl_fw_release_firmware(tp->rtl_fw); in rtl_release_firmware()
2124 kfree(tp->rtl_fw); in rtl_release_firmware()
2125 tp->rtl_fw = NULL; in rtl_release_firmware()
2134 if (tp->rtl_fw) { in r8169_apply_firmware()
2135 rtl_fw_write_firmware(tp, tp->rtl_fw); in r8169_apply_firmware()
2404 struct rtl_fw *rtl_fw; in rtl_request_firmware() local
2407 if (tp->rtl_fw || !tp->fw_name) in rtl_request_firmware()
2410 rtl_fw = kzalloc(sizeof(*rtl_fw), GFP_KERNEL); in rtl_request_firmware()
2411 if (!rtl_fw) in rtl_request_firmware()
2414 rtl_fw->phy_write = rtl_writephy; in rtl_request_firmware()
2415 rtl_fw->phy_read = rtl_readphy; in rtl_request_firmware()
2416 rtl_fw->mac_mcu_write = mac_mcu_write; in rtl_request_firmware()
2417 rtl_fw->mac_mcu_read = mac_mcu_read; in rtl_request_firmware()
2418 rtl_fw->fw_name = tp->fw_name; in rtl_request_firmware()
2419 rtl_fw->dev = tp_to_dev(tp); in rtl_request_firmware()
2421 if (rtl_fw_request_firmware(rtl_fw)) in rtl_request_firmware()
2422 kfree(rtl_fw); in rtl_request_firmware()
2424 tp->rtl_fw = rtl_fw; in rtl_request_firmware()