Searched refs:rtl_fw (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/drivers/net/ethernet/realtek/ |
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 …]
|
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);
|
D | r8169_main.c | 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() [all …]
|
/Linux-v6.1/drivers/net/usb/ |
D | r8152.c | 914 struct rtl_fw { struct 923 } rtl_fw; member 4527 static long rtl8152_check_firmware(struct r8152 *tp, struct rtl_fw *rtl_fw) in rtl8152_check_firmware() argument 4529 const struct firmware *fw = rtl_fw->fw; in rtl8152_check_firmware() 5062 struct rtl_fw *rtl_fw = &tp->rtl_fw; in rtl8152_apply_firmware() local 5069 if (IS_ERR_OR_NULL(rtl_fw->fw)) in rtl8152_apply_firmware() 5072 fw = rtl_fw->fw; in rtl8152_apply_firmware() 5075 if (rtl_fw->pre_fw) in rtl8152_apply_firmware() 5076 rtl_fw->pre_fw(tp); in rtl8152_apply_firmware() 5131 if (rtl_fw->post_fw) in rtl8152_apply_firmware() [all …]
|