Lines Matching +full:2 +full:v5
58 init_completion(&f34->v5.cmd_done); in rmi_f34_command()
60 ret = rmi_read(rmi_dev, f34->v5.ctrl_address, &f34->v5.status); in rmi_f34_command()
68 f34->v5.status |= command & 0x0f; in rmi_f34_command()
70 ret = rmi_write(rmi_dev, f34->v5.ctrl_address, f34->v5.status); in rmi_f34_command()
78 if (!wait_for_completion_timeout(&f34->v5.cmd_done, in rmi_f34_command()
81 ret = rmi_read(rmi_dev, f34->v5.ctrl_address, &f34->v5.status); in rmi_f34_command()
89 if (f34->v5.status & 0x7f) { in rmi_f34_command()
92 __func__, command, f34->v5.status); in rmi_f34_command()
108 ret = rmi_read(f34->fn->rmi_dev, f34->v5.ctrl_address, in rmi_f34_attention()
114 complete(&f34->v5.cmd_done); in rmi_f34_attention()
149 data, f34->v5.block_size); in rmi_f34_write_blocks()
167 data += f34->v5.block_size; in rmi_f34_write_blocks()
168 f34->update_progress += f34->v5.block_size; in rmi_f34_write_blocks()
178 return rmi_f34_write_blocks(f34, data, f34->v5.fw_blocks, in rmi_f34_write_firmware()
184 return rmi_f34_write_blocks(f34, data, f34->v5.config_blocks, in rmi_f34_write_config()
265 if (image_size && image_size != f34->v5.fw_blocks * f34->v5.block_size) { in rmi_f34_update_firmware()
268 image_size, f34->v5.fw_blocks * f34->v5.block_size); in rmi_f34_update_firmware()
273 config_size != f34->v5.config_blocks * f34->v5.block_size) { in rmi_f34_update_firmware()
277 f34->v5.config_blocks * f34->v5.block_size); in rmi_f34_update_firmware()
288 guard(mutex)(&f34->v5.flash_mutex); in rmi_f34_update_firmware()
526 /* v5 code only supported version 0, try V7 probe */ in rmi_f34_probe()
543 mutex_init(&f34->v5.flash_mutex); in rmi_f34_probe()
544 init_completion(&f34->v5.cmd_done); in rmi_f34_probe()
546 f34->v5.block_size = get_unaligned_le16(&f34_queries[3]); in rmi_f34_probe()
547 f34->v5.fw_blocks = get_unaligned_le16(&f34_queries[5]); in rmi_f34_probe()
548 f34->v5.config_blocks = get_unaligned_le16(&f34_queries[7]); in rmi_f34_probe()
549 f34->v5.ctrl_address = fn->fd.data_base_addr + F34_BLOCK_DATA_OFFSET + in rmi_f34_probe()
550 f34->v5.block_size; in rmi_f34_probe()
551 has_config_id = f34_queries[2] & (1 << 2); in rmi_f34_probe()
556 f34->v5.block_size); in rmi_f34_probe()
558 f34->v5.fw_blocks); in rmi_f34_probe()
560 f34->v5.config_blocks); in rmi_f34_probe()
573 f34_queries[2], f34_queries[3]); in rmi_f34_probe()