Lines Matching refs: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()
266 if (image_size && image_size != f34->v5.fw_blocks * f34->v5.block_size) { in rmi_f34_update_firmware()
269 image_size, f34->v5.fw_blocks * f34->v5.block_size); in rmi_f34_update_firmware()
275 config_size != f34->v5.config_blocks * f34->v5.block_size) { in rmi_f34_update_firmware()
279 f34->v5.config_blocks * f34->v5.block_size); in rmi_f34_update_firmware()
291 mutex_lock(&f34->v5.flash_mutex); in rmi_f34_update_firmware()
295 mutex_unlock(&f34->v5.flash_mutex); in rmi_f34_update_firmware()
552 mutex_init(&f34->v5.flash_mutex); in rmi_f34_probe()
553 init_completion(&f34->v5.cmd_done); in rmi_f34_probe()
555 f34->v5.block_size = get_unaligned_le16(&f34_queries[3]); in rmi_f34_probe()
556 f34->v5.fw_blocks = get_unaligned_le16(&f34_queries[5]); in rmi_f34_probe()
557 f34->v5.config_blocks = get_unaligned_le16(&f34_queries[7]); in rmi_f34_probe()
558 f34->v5.ctrl_address = fn->fd.data_base_addr + F34_BLOCK_DATA_OFFSET + in rmi_f34_probe()
559 f34->v5.block_size; in rmi_f34_probe()
565 f34->v5.block_size); in rmi_f34_probe()
567 f34->v5.fw_blocks); in rmi_f34_probe()
569 f34->v5.config_blocks); in rmi_f34_probe()