Lines Matching refs:bytecnt

118 	u8 bytecnt;  member
266 for (idx = 0; idx < seq->bytecnt; idx++) { in idt_smb_write_byte()
271 if (idx == seq->bytecnt - 1) in idt_smb_write_byte()
298 for (idx = 0; idx < seq->bytecnt; idx++) { in idt_smb_read_byte()
303 if (idx == seq->bytecnt - 1) in idt_smb_read_byte()
331 evencnt = seq->bytecnt - (seq->bytecnt % 2); in idt_smb_write_word()
350 if (seq->bytecnt != evencnt) { in idt_smb_write_word()
380 evencnt = seq->bytecnt - (seq->bytecnt % 2); in idt_smb_read_word()
400 if (seq->bytecnt != evencnt) { in idt_smb_read_word()
429 if (seq->bytecnt > I2C_SMBUS_BLOCK_MAX) in idt_smb_write_block()
436 return idt_smb_safe(write_block, pdev->client, ccode, seq->bytecnt, in idt_smb_write_block()
453 if (seq->bytecnt > I2C_SMBUS_BLOCK_MAX) in idt_smb_read_block()
461 if (sts != seq->bytecnt) in idt_smb_read_block()
482 if (seq->bytecnt > I2C_SMBUS_BLOCK_MAX) in idt_smb_write_i2c_block()
486 buf[0] = seq->bytecnt; in idt_smb_write_i2c_block()
487 memcpy(&buf[1], seq->data, seq->bytecnt); in idt_smb_write_i2c_block()
494 seq->bytecnt + 1, buf); in idt_smb_write_i2c_block()
513 if (seq->bytecnt > I2C_SMBUS_BLOCK_MAX) in idt_smb_read_i2c_block()
521 seq->bytecnt + 1, buf); in idt_smb_read_i2c_block()
522 if (sts != seq->bytecnt + 1) in idt_smb_read_i2c_block()
524 if (buf[0] != seq->bytecnt) in idt_smb_read_i2c_block()
528 memcpy(seq->data, &buf[1], seq->bytecnt); in idt_smb_read_i2c_block()
563 smbseq.bytecnt = EEPROM_WRRD_CNT; in idt_eeprom_read_byte()
575 smbseq.bytecnt = EEPROM_RD_CNT; in idt_eeprom_read_byte()
635 smbseq.bytecnt = EEPROM_WR_CNT; in idt_eeprom_write()
734 smbseq.bytecnt = CSR_WR_CNT; in idt_csr_write()
746 smbseq.bytecnt = CSR_WRRD_CNT; in idt_csr_write()
756 smbseq.bytecnt = CSR_RD_CNT; in idt_csr_write()
799 smbseq.bytecnt = CSR_WRRD_CNT; in idt_csr_read()
810 smbseq.bytecnt = CSR_RD_CNT; in idt_csr_read()