Lines Matching refs:rt2x00dev
20 static int rt2x00lib_request_firmware(struct rt2x00_dev *rt2x00dev) in rt2x00lib_request_firmware() argument
22 struct device *device = wiphy_dev(rt2x00dev->hw->wiphy); in rt2x00lib_request_firmware()
30 fw_name = rt2x00dev->ops->lib->get_firmware_name(rt2x00dev); in rt2x00lib_request_firmware()
32 rt2x00_err(rt2x00dev, in rt2x00lib_request_firmware()
38 rt2x00_info(rt2x00dev, "Loading firmware file '%s'\n", fw_name); in rt2x00lib_request_firmware()
42 rt2x00_err(rt2x00dev, "Failed to request Firmware\n"); in rt2x00lib_request_firmware()
47 rt2x00_err(rt2x00dev, "Failed to read Firmware\n"); in rt2x00lib_request_firmware()
52 rt2x00_info(rt2x00dev, "Firmware detected - version: %d.%d\n", in rt2x00lib_request_firmware()
54 snprintf(rt2x00dev->hw->wiphy->fw_version, in rt2x00lib_request_firmware()
55 sizeof(rt2x00dev->hw->wiphy->fw_version), "%d.%d", in rt2x00lib_request_firmware()
58 retval = rt2x00dev->ops->lib->check_firmware(rt2x00dev, fw->data, fw->size); in rt2x00lib_request_firmware()
63 rt2x00_err(rt2x00dev, "Firmware checksum error\n"); in rt2x00lib_request_firmware()
66 rt2x00_err(rt2x00dev, "Invalid firmware file length (len=%zu)\n", in rt2x00lib_request_firmware()
70 rt2x00_err(rt2x00dev, "Current firmware does not support detected chipset\n"); in rt2x00lib_request_firmware()
74 rt2x00dev->fw = fw; in rt2x00lib_request_firmware()
84 int rt2x00lib_load_firmware(struct rt2x00_dev *rt2x00dev) in rt2x00lib_load_firmware() argument
88 if (!rt2x00_has_cap_flag(rt2x00dev, REQUIRE_FIRMWARE)) in rt2x00lib_load_firmware()
91 if (!rt2x00dev->fw) { in rt2x00lib_load_firmware()
92 retval = rt2x00lib_request_firmware(rt2x00dev); in rt2x00lib_load_firmware()
100 retval = rt2x00dev->ops->lib->load_firmware(rt2x00dev, in rt2x00lib_load_firmware()
101 rt2x00dev->fw->data, in rt2x00lib_load_firmware()
102 rt2x00dev->fw->size); in rt2x00lib_load_firmware()
109 rt2x00leds_led_assoc(rt2x00dev, false); in rt2x00lib_load_firmware()
114 void rt2x00lib_free_firmware(struct rt2x00_dev *rt2x00dev) in rt2x00lib_free_firmware() argument
116 release_firmware(rt2x00dev->fw); in rt2x00lib_free_firmware()
117 rt2x00dev->fw = NULL; in rt2x00lib_free_firmware()