Home
last modified time | relevance | path

Searched refs:rtl_fw (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/realtek/
Dr8169_firmware.c42 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 …]
Dr8169_firmware.h20 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);
Dr8169_main.c629 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()
[all …]
/Linux-v5.10/drivers/net/usb/
Dr8152.c839 struct rtl_fw { struct
848 } rtl_fw; member
3796 static long rtl8152_check_firmware(struct r8152 *tp, struct rtl_fw *rtl_fw) in rtl8152_check_firmware() argument
3798 const struct firmware *fw = rtl_fw->fw; in rtl8152_check_firmware()
4029 struct rtl_fw *rtl_fw = &tp->rtl_fw; in rtl8152_apply_firmware() local
4036 if (IS_ERR_OR_NULL(rtl_fw->fw)) in rtl8152_apply_firmware()
4039 fw = rtl_fw->fw; in rtl8152_apply_firmware()
4042 if (rtl_fw->pre_fw) in rtl8152_apply_firmware()
4043 rtl_fw->pre_fw(tp); in rtl8152_apply_firmware()
4076 if (rtl_fw->post_fw) in rtl8152_apply_firmware()
[all …]