Lines Matching +full:write +full:- +full:command
4 * SPDX-License-Identifier: Apache-2.0
51 sys_slist_prepend(&peripherals, &peripheral->node); in emul_register_smbus_peripheral()
59 if (peripheral->addr == addr) { in emul_get_smbus_peripheral()
72 if (peripheral->smbalert && !peripheral->smbalert_handled) { in peripheral_handle_smbalert()
82 LOG_DBG("Return own address: 0x%02x", found->addr); in peripheral_handle_smbalert()
84 io_area[PCH_SMBUS_HD0] = found->addr; in peripheral_handle_smbalert()
85 found->smbalert_handled = true; in peripheral_handle_smbalert()
95 if (peripheral->host_notify) { in peripheral_handle_host_notify()
97 io_area[PCH_SMBUS_NDA] = peripheral->addr << 1; in peripheral_handle_host_notify()
113 peripheral->raw_data[reg] = value; in peripheral_write()
127 *value = peripheral->raw_data[reg]; in peripheral_read()
137 bool write = in emul_start_smbus_protocol() local
160 LOG_DBG("Quick command"); in emul_start_smbus_protocol()
163 if (write) { in emul_start_smbus_protocol()
164 LOG_DBG("Byte Write command"); in emul_start_smbus_protocol()
167 LOG_DBG("Byte Read command"); in emul_start_smbus_protocol()
172 if (write) { in emul_start_smbus_protocol()
173 LOG_DBG("Byte Data Write command"); in emul_start_smbus_protocol()
177 LOG_DBG("Byte Data Read command"); in emul_start_smbus_protocol()
183 if (write) { in emul_start_smbus_protocol()
184 LOG_DBG("Word Data Write command"); in emul_start_smbus_protocol()
191 LOG_DBG("Word Data Read command"); in emul_start_smbus_protocol()
199 if (!write) { in emul_start_smbus_protocol()
204 LOG_DBG("Process Call command"); in emul_start_smbus_protocol()
225 if (write) { in emul_start_smbus_protocol()
229 LOG_DBG("Block Write command"); in emul_start_smbus_protocol()
246 LOG_DBG("Block Read command"); in emul_start_smbus_protocol()
257 if (!write) { in emul_start_smbus_protocol()
264 LOG_DBG("Block Process Call command"); in emul_start_smbus_protocol()
285 peripheral_read(--reg, &e32.buf[i]); in emul_start_smbus_protocol()
312 /* This is write only */ in emul_evaluate_write()