Lines Matching refs:smb_index
147 s->smb_index = 0; in smb_transaction()
159 if (s->smb_index != s->smb_data0) { in smb_transaction()
160 s->smb_index = 0; in smb_transaction()
165 s->smb_index = 0; in smb_transaction()
178 s->smb_index = 0; in smb_transaction()
266 s->smb_index++; in smb_ioport_writeb()
267 if (s->smb_index >= PM_SMBUS_MAX_MSG_SIZE) { in smb_ioport_writeb()
268 s->smb_index = 0; in smb_ioport_writeb()
270 if (!read && s->smb_index == s->smb_data0) { in smb_ioport_writeb()
291 s->smb_data[s->smb_index] = s->smb_blkdata; in smb_ioport_writeb()
301 s->smb_blkdata = s->smb_data[s->smb_index]; in smb_ioport_writeb()
303 s->smb_index = 0; in smb_ioport_writeb()
310 s->smb_blkdata = s->smb_data[s->smb_index]; in smb_ioport_writeb()
320 s->smb_index = 0; in smb_ioport_writeb()
331 s->smb_index = 0; in smb_ioport_writeb()
349 if (s->smb_index >= PM_SMBUS_MAX_MSG_SIZE) { in smb_ioport_writeb()
350 s->smb_index = 0; in smb_ioport_writeb()
353 s->smb_data[s->smb_index++] = val; in smb_ioport_writeb()
403 if (s->smb_index >= PM_SMBUS_MAX_MSG_SIZE) { in smb_ioport_readb()
404 s->smb_index = 0; in smb_ioport_readb()
406 val = s->smb_data[s->smb_index++]; in smb_ioport_readb()
407 if (!s->op_done && s->smb_index == s->smb_data0) { in smb_ioport_readb()
409 s->smb_index = 0; in smb_ioport_readb()
435 s->smb_index = 0; in pm_smbus_reset()
465 VMSTATE_UINT32(smb_index, PMSMBus),