Lines Matching refs:rtl_fw
624 struct rtl_fw *rtl_fw; member
1409 struct rtl_fw *rtl_fw = tp->rtl_fw; in rtl8169_get_drvinfo() local
1413 BUILD_BUG_ON(sizeof(info->fw_version) < sizeof(rtl_fw->version)); in rtl8169_get_drvinfo()
1414 if (rtl_fw) in rtl8169_get_drvinfo()
1415 strscpy(info->fw_version, rtl_fw->version, in rtl8169_get_drvinfo()
2078 if (tp->rtl_fw) { in rtl_release_firmware()
2079 rtl_fw_release_firmware(tp->rtl_fw); in rtl_release_firmware()
2080 kfree(tp->rtl_fw); in rtl_release_firmware()
2081 tp->rtl_fw = NULL; in rtl_release_firmware()
2090 if (tp->rtl_fw) { in r8169_apply_firmware()
2091 rtl_fw_write_firmware(tp, tp->rtl_fw); in r8169_apply_firmware()
2377 struct rtl_fw *rtl_fw; in rtl_request_firmware() local
2380 if (tp->rtl_fw || !tp->fw_name) in rtl_request_firmware()
2383 rtl_fw = kzalloc(sizeof(*rtl_fw), GFP_KERNEL); in rtl_request_firmware()
2384 if (!rtl_fw) in rtl_request_firmware()
2387 rtl_fw->phy_write = rtl_writephy; in rtl_request_firmware()
2388 rtl_fw->phy_read = rtl_readphy; in rtl_request_firmware()
2389 rtl_fw->mac_mcu_write = mac_mcu_write; in rtl_request_firmware()
2390 rtl_fw->mac_mcu_read = mac_mcu_read; in rtl_request_firmware()
2391 rtl_fw->fw_name = tp->fw_name; in rtl_request_firmware()
2392 rtl_fw->dev = tp_to_dev(tp); in rtl_request_firmware()
2394 if (rtl_fw_request_firmware(rtl_fw)) in rtl_request_firmware()
2395 kfree(rtl_fw); in rtl_request_firmware()
2397 tp->rtl_fw = rtl_fw; in rtl_request_firmware()