Lines Matching refs:mt76
49 return mt76u_mcu_send_msg(&dev->mt76, skb, CMD_FUN_SET_OP, in mt76x2u_mcu_function_select()
67 return mt76u_mcu_send_msg(&dev->mt76, skb, CMD_POWER_SAVING_OP, in mt76x2u_mcu_set_radio_state()
97 return mt76u_mcu_send_msg(&dev->mt76, skb, CMD_LOAD_CR, true); in mt76x2u_mcu_load_cr()
126 mt76u_mcu_send_msg(&dev->mt76, skb, CMD_SWITCH_CHANNEL_OP, true); in mt76x2u_mcu_set_channel()
135 return mt76u_mcu_send_msg(&dev->mt76, skb, CMD_SWITCH_CHANNEL_OP, true); in mt76x2u_mcu_set_channel()
153 return mt76u_mcu_send_msg(&dev->mt76, skb, CMD_CALIBRATION_OP, true); in mt76x2u_mcu_calibrate()
174 return mt76u_mcu_send_msg(&dev->mt76, skb, CMD_INIT_GAIN_OP, true); in mt76x2u_mcu_init_gain()
200 return mt76u_mcu_send_msg(&dev->mt76, skb, CMD_DYNC_VGA_OP, true); in mt76x2u_mcu_set_dynamic_vga()
218 return mt76u_mcu_send_msg(&dev->mt76, skb, CMD_CALIBRATION_OP, true); in mt76x2u_mcu_tssi_comp()
223 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_load_ivb()
230 struct mt76_usb *usb = &dev->mt76.usb; in mt76x2u_mcu_enable_patch()
238 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_enable_patch()
245 struct mt76_usb *usb = &dev->mt76.usb; in mt76x2u_mcu_reset_wmt()
252 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_reset_wmt()
267 dev_err(dev->mt76.dev, in mt76x2u_mcu_load_rom_patch()
281 dev_info(dev->mt76.dev, "ROM patch already applied\n"); in mt76x2u_mcu_load_rom_patch()
285 err = request_firmware(&fw, MT7662U_ROM_PATCH, dev->mt76.dev); in mt76x2u_mcu_load_rom_patch()
290 dev_err(dev->mt76.dev, "failed to load firmware\n"); in mt76x2u_mcu_load_rom_patch()
296 dev_info(dev->mt76.dev, "ROM patch build: %.15s\n", hdr->build_time); in mt76x2u_mcu_load_rom_patch()
305 mt76u_mcu_fw_reset(&dev->mt76); in mt76x2u_mcu_load_rom_patch()
319 err = mt76u_mcu_fw_send_data(&dev->mt76, fw->data + sizeof(*hdr), in mt76x2u_mcu_load_rom_patch()
333 dev_err(dev->mt76.dev, "failed to load ROM patch\n"); in mt76x2u_mcu_load_rom_patch()
351 err = request_firmware(&fw, MT7662U_FIRMWARE, dev->mt76.dev); in mt76x2u_mcu_load_firmware()
370 dev_info(dev->mt76.dev, "Firmware Version: %d.%d.%02d\n", in mt76x2u_mcu_load_firmware()
374 dev_info(dev->mt76.dev, "Build: %x\n", val); in mt76x2u_mcu_load_firmware()
375 dev_info(dev->mt76.dev, "Build Time: %.16s\n", hdr->build_time); in mt76x2u_mcu_load_firmware()
378 mt76u_mcu_fw_reset(&dev->mt76); in mt76x2u_mcu_load_firmware()
398 err = mt76u_mcu_fw_send_data(&dev->mt76, fw->data + sizeof(*hdr), in mt76x2u_mcu_load_firmware()
409 err = mt76u_mcu_fw_send_data(&dev->mt76, in mt76x2u_mcu_load_firmware()
420 dev_err(dev->mt76.dev, "firmware failed to start\n"); in mt76x2u_mcu_load_firmware()
428 dev_dbg(dev->mt76.dev, "firmware running\n"); in mt76x2u_mcu_load_firmware()
459 struct mt76_usb *usb = &dev->mt76.usb; in mt76x2u_mcu_deinit()