Lines Matching full:fn
27 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status()
28 f34->fn->fd.data_base_addr + V7_FLASH_STATUS_OFFSET, in rmi_f34v7_read_flash_status()
32 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_read_flash_status()
41 dev_err(&f34->fn->dev, "%s: status=%d, command=0x%02x\n", in rmi_f34v7_read_flash_status()
45 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status()
46 f34->fn->fd.data_base_addr + V7_COMMAND_OFFSET, in rmi_f34v7_read_flash_status()
50 dev_err(&f34->fn->dev, "%s: Failed to read flash command\n", in rmi_f34v7_read_flash_status()
67 dev_warn(&f34->fn->dev, "%s: Timed out waiting for idle status\n", in rmi_f34v7_wait_for_idle()
100 base = f34->fn->fd.data_base_addr; in rmi_f34v7_write_command_single_transaction()
142 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command_single_transaction()
146 dev_err(&f34->fn->dev, in rmi_f34v7_write_command_single_transaction()
161 base = f34->fn->fd.data_base_addr; in rmi_f34v7_write_command()
187 dev_err(&f34->fn->dev, "%s: Invalid command 0x%02x\n", in rmi_f34v7_write_command()
212 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, "%s: writing cmd %02X\n", in rmi_f34v7_write_command()
215 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command()
219 dev_err(&f34->fn->dev, "%s: Failed to write flash command\n", in rmi_f34v7_write_command()
233 base = f34->fn->fd.data_base_addr; in rmi_f34v7_write_partition_id()
277 dev_err(&f34->fn->dev, "%s: Invalid command 0x%02x\n", in rmi_f34v7_write_partition_id()
282 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_partition_id()
286 dev_err(&f34->fn->dev, "%s: Failed to write partition ID\n", in rmi_f34v7_write_partition_id()
302 base = f34->fn->fd.data_base_addr; in rmi_f34v7_read_partition_table()
310 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table()
314 dev_err(&f34->fn->dev, "%s: Failed to write block number\n", in rmi_f34v7_read_partition_table()
321 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table()
325 dev_err(&f34->fn->dev, "%s: Failed to write transfer length\n", in rmi_f34v7_read_partition_table()
334 dev_err(&f34->fn->dev, "%s: Failed to write command\n", in rmi_f34v7_read_partition_table()
354 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table()
359 dev_err(&f34->fn->dev, "%s: Failed to read block data\n", in rmi_f34v7_read_partition_table()
383 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
390 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
397 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
404 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
410 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
417 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
423 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
429 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
435 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_partition_table()
451 base = f34->fn->fd.query_base_addr; in rmi_f34v7_read_queries_bl_version()
453 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries_bl_version()
458 dev_err(&f34->fn->dev, in rmi_f34v7_read_queries_bl_version()
465 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries_bl_version()
470 dev_err(&f34->fn->dev, "%s: Failed to read queries 1 to 7\n", in rmi_f34v7_read_queries_bl_version()
478 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, "Bootloader V%d.%d\n", in rmi_f34v7_read_queries_bl_version()
494 base = f34->fn->fd.query_base_addr; in rmi_f34v7_read_queries()
496 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries()
501 dev_err(&f34->fn->dev, in rmi_f34v7_read_queries()
508 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries()
513 dev_err(&f34->fn->dev, "%s: Failed to read queries 1 to 7\n", in rmi_f34v7_read_queries()
526 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, "%s: f34->v7.block_size = %d\n", in rmi_f34v7_read_queries()
536 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries()
537 f34->fn->fd.control_base_addr, in rmi_f34v7_read_queries()
550 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, "Configuration ID: %s\n", in rmi_f34v7_read_queries()
558 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, "%s: Supported partitions: %*ph\n", in rmi_f34v7_read_queries()
565 f34->v7.read_config_buf = devm_kzalloc(&f34->fn->dev, in rmi_f34v7_read_queries()
578 dev_err(&f34->fn->dev, "%s: Failed to read partition table\n", in rmi_f34v7_read_queries()
597 dev_err(&f34->fn->dev, "Bootloader config size mismatch\n"); in rmi_f34v7_check_bl_config_size()
608 dev_info(&f34->fn->dev, "Erasing firmware...\n"); in rmi_f34v7_erase_all()
635 base = f34->fn->fd.data_base_addr; in rmi_f34v7_read_blocks()
641 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_read_blocks()
645 dev_err(&f34->fn->dev, "%s: Failed to write block number\n", in rmi_f34v7_read_blocks()
657 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_read_blocks()
661 dev_err(&f34->fn->dev, in rmi_f34v7_read_blocks()
677 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_blocks()
682 dev_err(&f34->fn->dev, in rmi_f34v7_read_blocks()
707 base = f34->fn->fd.data_base_addr; in rmi_f34v7_write_f34v7_blocks()
713 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_f34v7_blocks()
717 dev_err(&f34->fn->dev, "%s: Failed to write block number\n", in rmi_f34v7_write_f34v7_blocks()
733 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_f34v7_blocks()
737 dev_err(&f34->fn->dev, in rmi_f34v7_write_f34v7_blocks()
747 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_f34v7_blocks()
751 dev_err(&f34->fn->dev, in rmi_f34v7_write_f34v7_blocks()
816 dev_err(&f34->fn->dev, "%s: Flash config size mismatch\n", in rmi_f34v7_write_flash_config()
838 devm_kfree(&f34->fn->dev, f34->v7.read_config_buf); in rmi_f34v7_write_partition_table()
839 f34->v7.read_config_buf = devm_kzalloc(&f34->fn->dev, in rmi_f34v7_write_partition_table()
929 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, "%s: f34->v7.img.checksum=%X\n", in rmi_f34v7_parse_image_header_10()
948 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_image_header_10()
1001 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_parse_image_info()
1010 dev_err(&f34->fn->dev, "Unsupported image file format %02X\n", in rmi_f34v7_parse_image_info()
1016 dev_err(&f34->fn->dev, "%s: No flash config in fw image\n", in rmi_f34v7_parse_image_info()
1031 f34->fn->rmi_dev->driver->set_irq_bits(f34->fn->rmi_dev, in rmi_f34v7_do_reflash()
1032 f34->fn->irq_mask); in rmi_f34v7_do_reflash()
1055 dev_info(&f34->fn->dev, "%s: Partition table programmed\n", __func__); in rmi_f34v7_do_reflash()
1061 ret = rmi_scan_pdt(f34->fn->rmi_dev, NULL, rmi_initial_reset); in rmi_f34v7_do_reflash()
1063 dev_warn(&f34->fn->dev, "RMI reset failed!\n"); in rmi_f34v7_do_reflash()
1065 dev_info(&f34->fn->dev, "Writing firmware (%d bytes)...\n", in rmi_f34v7_do_reflash()
1072 dev_info(&f34->fn->dev, "Writing config (%d bytes)...\n", in rmi_f34v7_do_reflash()
1081 dev_info(&f34->fn->dev, "Writing display config...\n"); in rmi_f34v7_do_reflash()
1089 dev_info(&f34->fn->dev, "Writing guest code...\n"); in rmi_f34v7_do_reflash()
1103 f34->fn->rmi_dev->driver->set_irq_bits(f34->fn->rmi_dev, f34->fn->irq_mask); in rmi_f34v7_enter_flash_prog()
1110 dev_info(&f34->fn->dev, "%s: Device in bootloader mode\n", in rmi_f34v7_enter_flash_prog()
1139 dev_info(&f34->fn->dev, "Firmware image OK\n"); in rmi_f34v7_start_reflash()
1149 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_probe()
1150 f34->fn->fd.query_base_addr + V7_BOOTLOADER_ID_OFFSET, in rmi_f34v7_probe()
1154 dev_err(&f34->fn->dev, "%s: Failed to read bootloader ID\n", in rmi_f34v7_probe()
1168 dev_err(&f34->fn->dev, in rmi_f34v7_probe()