Lines Matching refs:rtl_fw
629 struct rtl_fw *rtl_fw; member
1448 struct rtl_fw *rtl_fw = tp->rtl_fw; in rtl8169_get_drvinfo() local
1452 BUILD_BUG_ON(sizeof(info->fw_version) < sizeof(rtl_fw->version)); in rtl8169_get_drvinfo()
1453 if (rtl_fw) in rtl8169_get_drvinfo()
1454 strlcpy(info->fw_version, rtl_fw->version, in rtl8169_get_drvinfo()
2070 if (tp->rtl_fw) { in rtl_release_firmware()
2071 rtl_fw_release_firmware(tp->rtl_fw); in rtl_release_firmware()
2072 kfree(tp->rtl_fw); in rtl_release_firmware()
2073 tp->rtl_fw = NULL; in rtl_release_firmware()
2082 if (tp->rtl_fw) { in r8169_apply_firmware()
2083 rtl_fw_write_firmware(tp, tp->rtl_fw); in r8169_apply_firmware()
2434 struct rtl_fw *rtl_fw; in rtl_request_firmware() local
2437 if (tp->rtl_fw || !tp->fw_name) in rtl_request_firmware()
2440 rtl_fw = kzalloc(sizeof(*rtl_fw), GFP_KERNEL); in rtl_request_firmware()
2441 if (!rtl_fw) in rtl_request_firmware()
2444 rtl_fw->phy_write = rtl_writephy; in rtl_request_firmware()
2445 rtl_fw->phy_read = rtl_readphy; in rtl_request_firmware()
2446 rtl_fw->mac_mcu_write = mac_mcu_write; in rtl_request_firmware()
2447 rtl_fw->mac_mcu_read = mac_mcu_read; in rtl_request_firmware()
2448 rtl_fw->fw_name = tp->fw_name; in rtl_request_firmware()
2449 rtl_fw->dev = tp_to_dev(tp); in rtl_request_firmware()
2451 if (rtl_fw_request_firmware(rtl_fw)) in rtl_request_firmware()
2452 kfree(rtl_fw); in rtl_request_firmware()
2454 tp->rtl_fw = rtl_fw; in rtl_request_firmware()