Lines Matching refs:addr
21 .addr = TCPC_REG_VENDOR_ID,
26 .addr = TCPC_REG_PRODUCT_ID,
31 .addr = TCPC_REG_BCD_DEV,
36 .addr = TCPC_REG_TC_REV,
41 .addr = TCPC_REG_PD_REV,
46 .addr = TCPC_REG_PD_INT_REV,
51 .addr = TCPC_REG_ALERT,
56 .addr = TCPC_REG_ALERT_MASK,
61 .addr = TCPC_REG_POWER_STATUS_MASK,
66 .addr = TCPC_REG_FAULT_STATUS_MASK,
71 .addr = TCPC_REG_EXT_STATUS_MASK,
76 .addr = TCPC_REG_ALERT_EXT_MASK,
81 .addr = TCPC_REG_CONFIG_STD_OUTPUT,
86 .addr = TCPC_REG_TCPC_CTRL,
91 .addr = TCPC_REG_ROLE_CTRL,
96 .addr = TCPC_REG_FAULT_CTRL,
101 .addr = TCPC_REG_POWER_CTRL,
106 .addr = TCPC_REG_CC_STATUS,
111 .addr = TCPC_REG_POWER_STATUS,
116 .addr = TCPC_REG_FAULT_STATUS,
121 .addr = TCPC_REG_EXT_STATUS,
126 .addr = TCPC_REG_ALERT_EXT,
131 .addr = TCPC_REG_DEV_CAP_1,
136 .addr = TCPC_REG_DEV_CAP_2,
141 .addr = TCPC_REG_STD_INPUT_CAP,
146 .addr = TCPC_REG_STD_OUTPUT_CAP,
151 .addr = TCPC_REG_CONFIG_EXT_1,
156 .addr = TCPC_REG_GENERIC_TIMER,
161 .addr = TCPC_REG_MSG_HDR_INFO,
166 .addr = TCPC_REG_RX_DETECT,
171 .addr = TCPC_REG_TRANSMIT,
176 .addr = TCPC_REG_VBUS_VOLTAGE,
181 .addr = TCPC_REG_VBUS_SINK_DISCONNECT_THRESH,
186 .addr = TCPC_REG_VBUS_STOP_DISCHARGE_THRESH,
191 .addr = TCPC_REG_VBUS_VOLTAGE_ALARM_HI_CFG,
196 .addr = TCPC_REG_VBUS_VOLTAGE_ALARM_LO_CFG,
201 .addr = TCPC_REG_VBUS_NONDEFAULT_TARGET,
206 .addr = TCPC_REG_DEV_CAP_3,
217 ret = i2c_write_read(i2c->bus, i2c->addr, ®, sizeof(reg), value, sizeof(*value)); in tcpci_read_reg8()
225 LOG_ERR(LOG_COMM_ERR_STR, i2c->bus->name, i2c->addr, "r8", reg, *value); in tcpci_read_reg8()
237 ret = i2c_write(i2c->bus, buf, 2, i2c->addr); in tcpci_write_reg8()
245 LOG_ERR(LOG_COMM_ERR_STR, i2c->bus->name, i2c->addr, "w8", reg, value); in tcpci_write_reg8()
274 ret = i2c_write_read(i2c->bus, i2c->addr, ®, sizeof(reg), value, sizeof(*value)); in tcpci_read_reg16()
283 LOG_ERR(LOG_COMM_ERR_STR, i2c->bus->name, i2c->addr, "r16", reg, *value); in tcpci_read_reg16()
297 ret = i2c_write(i2c->bus, buf, 3, i2c->addr); in tcpci_write_reg16()
304 LOG_ERR(LOG_COMM_ERR_STR, i2c->bus->name, i2c->addr, "w16", reg, value); in tcpci_write_reg16()