rtl_fw 42 drivers/net/ethernet/realtek/r8169_firmware.c static bool rtl_fw_format_ok(struct rtl_fw *rtl_fw) rtl_fw 44 drivers/net/ethernet/realtek/r8169_firmware.c const struct firmware *fw = rtl_fw->fw; rtl_fw 46 drivers/net/ethernet/realtek/r8169_firmware.c struct rtl_fw_phy_action *pa = &rtl_fw->phy_action; rtl_fw 71 drivers/net/ethernet/realtek/r8169_firmware.c strscpy(rtl_fw->version, fw_info->version, RTL_VER_SIZE); rtl_fw 79 drivers/net/ethernet/realtek/r8169_firmware.c strscpy(rtl_fw->version, rtl_fw->fw_name, RTL_VER_SIZE); rtl_fw 88 drivers/net/ethernet/realtek/r8169_firmware.c static bool rtl_fw_data_ok(struct rtl_fw *rtl_fw) rtl_fw 90 drivers/net/ethernet/realtek/r8169_firmware.c struct rtl_fw_phy_action *pa = &rtl_fw->phy_action; rtl_fw 124 drivers/net/ethernet/realtek/r8169_firmware.c dev_err(rtl_fw->dev, "Invalid action 0x%08x\n", action); rtl_fw 131 drivers/net/ethernet/realtek/r8169_firmware.c dev_err(rtl_fw->dev, "Out of range of firmware\n"); rtl_fw 135 drivers/net/ethernet/realtek/r8169_firmware.c void rtl_fw_write_firmware(struct rtl8169_private *tp, struct rtl_fw *rtl_fw) rtl_fw 137 drivers/net/ethernet/realtek/r8169_firmware.c struct rtl_fw_phy_action *pa = &rtl_fw->phy_action; rtl_fw 138 drivers/net/ethernet/realtek/r8169_firmware.c rtl_fw_write_t fw_write = rtl_fw->phy_write; rtl_fw 139 drivers/net/ethernet/realtek/r8169_firmware.c rtl_fw_read_t fw_read = rtl_fw->phy_read; rtl_fw 168 drivers/net/ethernet/realtek/r8169_firmware.c fw_write = rtl_fw->phy_write; rtl_fw 169 drivers/net/ethernet/realtek/r8169_firmware.c fw_read = rtl_fw->phy_read; rtl_fw 171 drivers/net/ethernet/realtek/r8169_firmware.c fw_write = rtl_fw->mac_mcu_write; rtl_fw 172 drivers/net/ethernet/realtek/r8169_firmware.c fw_read = rtl_fw->mac_mcu_read; rtl_fw 207 drivers/net/ethernet/realtek/r8169_firmware.c void rtl_fw_release_firmware(struct rtl_fw *rtl_fw) rtl_fw 209 drivers/net/ethernet/realtek/r8169_firmware.c release_firmware(rtl_fw->fw); rtl_fw 212 drivers/net/ethernet/realtek/r8169_firmware.c int rtl_fw_request_firmware(struct rtl_fw *rtl_fw) rtl_fw 216 drivers/net/ethernet/realtek/r8169_firmware.c rc = request_firmware(&rtl_fw->fw, rtl_fw->fw_name, rtl_fw->dev); rtl_fw 220 drivers/net/ethernet/realtek/r8169_firmware.c if (!rtl_fw_format_ok(rtl_fw) || !rtl_fw_data_ok(rtl_fw)) { rtl_fw 221 drivers/net/ethernet/realtek/r8169_firmware.c release_firmware(rtl_fw->fw); rtl_fw 228 drivers/net/ethernet/realtek/r8169_firmware.c dev_err(rtl_fw->dev, "Unable to load firmware %s (%d)\n", rtl_fw 229 drivers/net/ethernet/realtek/r8169_firmware.c rtl_fw->fw_name, rc); rtl_fw 37 drivers/net/ethernet/realtek/r8169_firmware.h int rtl_fw_request_firmware(struct rtl_fw *rtl_fw); rtl_fw 38 drivers/net/ethernet/realtek/r8169_firmware.h void rtl_fw_release_firmware(struct rtl_fw *rtl_fw); rtl_fw 39 drivers/net/ethernet/realtek/r8169_firmware.h void rtl_fw_write_firmware(struct rtl8169_private *tp, struct rtl_fw *rtl_fw); rtl_fw 686 drivers/net/ethernet/realtek/r8169_main.c struct rtl_fw *rtl_fw; rtl_fw 1551 drivers/net/ethernet/realtek/r8169_main.c struct rtl_fw *rtl_fw = tp->rtl_fw; rtl_fw 1555 drivers/net/ethernet/realtek/r8169_main.c BUILD_BUG_ON(sizeof(info->fw_version) < sizeof(rtl_fw->version)); rtl_fw 1556 drivers/net/ethernet/realtek/r8169_main.c if (rtl_fw) rtl_fw 1557 drivers/net/ethernet/realtek/r8169_main.c strlcpy(info->fw_version, rtl_fw->version, rtl_fw 2263 drivers/net/ethernet/realtek/r8169_main.c if (tp->rtl_fw) { rtl_fw 2264 drivers/net/ethernet/realtek/r8169_main.c rtl_fw_release_firmware(tp->rtl_fw); rtl_fw 2265 drivers/net/ethernet/realtek/r8169_main.c kfree(tp->rtl_fw); rtl_fw 2266 drivers/net/ethernet/realtek/r8169_main.c tp->rtl_fw = NULL; rtl_fw 2273 drivers/net/ethernet/realtek/r8169_main.c if (tp->rtl_fw) rtl_fw 2274 drivers/net/ethernet/realtek/r8169_main.c rtl_fw_write_firmware(tp, tp->rtl_fw); rtl_fw 4192 drivers/net/ethernet/realtek/r8169_main.c struct rtl_fw *rtl_fw; rtl_fw 4195 drivers/net/ethernet/realtek/r8169_main.c if (tp->rtl_fw || !tp->fw_name) rtl_fw 4198 drivers/net/ethernet/realtek/r8169_main.c rtl_fw = kzalloc(sizeof(*rtl_fw), GFP_KERNEL); rtl_fw 4199 drivers/net/ethernet/realtek/r8169_main.c if (!rtl_fw) { rtl_fw 4204 drivers/net/ethernet/realtek/r8169_main.c rtl_fw->phy_write = rtl_writephy; rtl_fw 4205 drivers/net/ethernet/realtek/r8169_main.c rtl_fw->phy_read = rtl_readphy; rtl_fw 4206 drivers/net/ethernet/realtek/r8169_main.c rtl_fw->mac_mcu_write = mac_mcu_write; rtl_fw 4207 drivers/net/ethernet/realtek/r8169_main.c rtl_fw->mac_mcu_read = mac_mcu_read; rtl_fw 4208 drivers/net/ethernet/realtek/r8169_main.c rtl_fw->fw_name = tp->fw_name; rtl_fw 4209 drivers/net/ethernet/realtek/r8169_main.c rtl_fw->dev = tp_to_dev(tp); rtl_fw 4211 drivers/net/ethernet/realtek/r8169_main.c if (rtl_fw_request_firmware(rtl_fw)) rtl_fw 4212 drivers/net/ethernet/realtek/r8169_main.c kfree(rtl_fw); rtl_fw 4214 drivers/net/ethernet/realtek/r8169_main.c tp->rtl_fw = rtl_fw;