Searched refs:fw_page_size (Results 1 – 4 of 4) sorted by relevance
/drivers/input/mouse/ |
D | elan_i2c_i2c.c | 520 static int elan_read_write_iap_type(struct i2c_client *client, u16 fw_page_size) in elan_read_write_iap_type() argument 529 fw_page_size / 2); in elan_read_write_iap_type() 546 if (constant == fw_page_size / 2) in elan_read_write_iap_type() 556 u8 iap_version, u16 fw_page_size) in elan_i2c_prepare_fw_update() argument 597 error = elan_read_write_iap_type(client, fw_page_size); in elan_i2c_prepare_fw_update() 627 static int elan_i2c_write_fw_block(struct i2c_client *client, u16 fw_page_size, in elan_i2c_write_fw_block() argument 636 page_store = kmalloc(fw_page_size + 4, GFP_KERNEL); in elan_i2c_write_fw_block() 642 memcpy(&page_store[2], page, fw_page_size); in elan_i2c_write_fw_block() 644 put_unaligned_le16(checksum, &page_store[fw_page_size + 2]); in elan_i2c_write_fw_block() 646 ret = i2c_master_send(client, page_store, fw_page_size + 4); in elan_i2c_write_fw_block() [all …]
|
D | elan_i2c_smbus.c | 344 u8 iap_version, u16 fw_page_size) in elan_smbus_prepare_fw_update() argument 418 static int elan_smbus_write_fw_block(struct i2c_client *client, u16 fw_page_size, in elan_smbus_write_fw_block() argument 433 fw_page_size / 2, in elan_smbus_write_fw_block() 443 fw_page_size / 2, in elan_smbus_write_fw_block() 444 page + fw_page_size / 2); in elan_smbus_write_fw_block()
|
D | elan_i2c.h | 103 u8 iap_version, u16 fw_page_size); 104 int (*write_fw_block)(struct i2c_client *client, u16 fw_page_size,
|
D | elan_i2c_core.c | 87 u16 fw_page_size; member 367 &data->fw_page_size); in elan_query_device_info() 492 data->fw_page_size); in __elan_update_firmware() 498 boot_page_count = (iap_start_addr * 2) / data->fw_page_size; in __elan_update_firmware() 501 const u8 *page = &fw->data[i * data->fw_page_size]; in __elan_update_firmware() 503 for (j = 0; j < data->fw_page_size; j += 2) in __elan_update_firmware() 506 error = elan_write_fw_block(data, data->fw_page_size, in __elan_update_firmware()
|