Home
last modified time | relevance | path

Searched refs:fw_page_size (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/drivers/input/mouse/
Delan_i2c_i2c.c520 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 …]
Delan_i2c_smbus.c344 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()
Delan_i2c.h103 u8 iap_version, u16 fw_page_size);
104 int (*write_fw_block)(struct i2c_client *client, u16 fw_page_size,
Delan_i2c_core.c86 u16 fw_page_size; member
368 &data->fw_page_size); in elan_query_device_info()
493 data->fw_page_size); in __elan_update_firmware()
499 boot_page_count = (iap_start_addr * 2) / data->fw_page_size; in __elan_update_firmware()
502 const u8 *page = &fw->data[i * data->fw_page_size]; in __elan_update_firmware()
504 for (j = 0; j < data->fw_page_size; j += 2) in __elan_update_firmware()
507 error = elan_write_fw_block(data, data->fw_page_size, in __elan_update_firmware()