Searched refs:rtl_fw (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/net/ethernet/realtek/ |
H A D | r8169_firmware.c | 42 static bool rtl_fw_format_ok(struct rtl_fw *rtl_fw) in rtl_fw_format_ok() argument 44 const struct firmware *fw = rtl_fw->fw; in rtl_fw_format_ok() 46 struct rtl_fw_phy_action *pa = &rtl_fw->phy_action; in rtl_fw_format_ok() 71 strscpy(rtl_fw->version, fw_info->version, RTL_VER_SIZE); in rtl_fw_format_ok() 79 strscpy(rtl_fw->version, rtl_fw->fw_name, RTL_VER_SIZE); in rtl_fw_format_ok() 88 static bool rtl_fw_data_ok(struct rtl_fw *rtl_fw) in rtl_fw_data_ok() argument 90 struct rtl_fw_phy_action *pa = &rtl_fw->phy_action; in rtl_fw_data_ok() 129 dev_err(rtl_fw->dev, "Invalid action 0x%08x\n", action); in rtl_fw_data_ok() 136 dev_err(rtl_fw->dev, "Out of range of firmware\n"); in rtl_fw_data_ok() 140 void rtl_fw_write_firmware(struct rtl8169_private *tp, struct rtl_fw *rtl_fw) in rtl_fw_write_firmware() argument [all …]
|
H A D | r8169_firmware.h | 20 struct rtl_fw { struct 37 int rtl_fw_request_firmware(struct rtl_fw *rtl_fw); argument 38 void rtl_fw_release_firmware(struct rtl_fw *rtl_fw); 39 void rtl_fw_write_firmware(struct rtl8169_private *tp, struct rtl_fw *rtl_fw);
|
H A D | r8169_main.c | 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() [all …]
|
/linux/drivers/net/usb/ |
H A D | r8152.c | 923 struct rtl_fw { struct 932 } rtl_fw; member 4674 static long rtl8152_check_firmware(struct r8152 *tp, struct rtl_fw *rtl_fw) in rtl8152_check_firmware() argument 4676 const struct firmware *fw = rtl_fw->fw; in rtl8152_check_firmware() 5213 struct rtl_fw *rtl_fw = &tp->rtl_fw; in rtl8152_apply_firmware() local 5220 if (IS_ERR_OR_NULL(rtl_fw->fw)) in rtl8152_apply_firmware() 5223 fw = rtl_fw->fw; in rtl8152_apply_firmware() 5226 if (rtl_fw->pre_fw) in rtl8152_apply_firmware() 5227 rtl_fw->pre_fw(tp); in rtl8152_apply_firmware() 5282 if (rtl_fw->post_fw) in rtl8152_apply_firmware() [all …]
|