Lines Matching +full:slave +full:- +full:kernel

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
36 #include <sys/kernel.h>
56 {"active-semi,act8846", 1},
60 #define LOCK(_sc) sx_xlock(&(_sc)->lock)
61 #define UNLOCK(_sc) sx_xunlock(&(_sc)->lock)
62 #define LOCK_INIT(_sc) sx_init(&(_sc)->lock, "act8846")
63 #define LOCK_DESTROY(_sc) sx_destroy(&(_sc)->lock);
64 #define ASSERT_LOCKED(_sc) sx_assert(&(_sc)->lock, SA_XLOCKED);
65 #define ASSERT_UNLOCKED(_sc) sx_assert(&(_sc)->lock, SA_UNLOCKED);
81 msgs[0].slave = sc->bus_addr; in act8846_read()
82 msgs[1].slave = sc->bus_addr; in act8846_read()
85 rv = iicbus_transfer_excl(sc->dev, msgs, 2, IIC_INTRWAIT); in act8846_read()
87 device_printf(sc->dev, in act8846_read()
105 msgs[0].slave = sc->bus_addr; in act8846_read_buf()
106 msgs[1].slave = sc->bus_addr; in act8846_read_buf()
109 rv = iicbus_transfer_excl(sc->dev, msgs, 2, IIC_INTRWAIT); in act8846_read_buf()
111 device_printf(sc->dev, in act8846_read_buf()
129 msgs[0].slave = sc->bus_addr; in act8846_write()
133 rv = iicbus_transfer_excl(sc->dev, msgs, 1, IIC_INTRWAIT); in act8846_write()
135 device_printf(sc->dev, in act8846_write()
152 msgs[0].slave = sc->bus_addr; in act8846_write_buf()
153 msgs[1].slave = sc->bus_addr; in act8846_write_buf()
156 rv = iicbus_transfer_excl(sc->dev, msgs, 2, IIC_INTRWAIT); in act8846_write_buf()
158 device_printf(sc->dev, in act8846_write_buf()
192 if (!ofw_bus_search_compatible(dev, compat_data)->ocd_data) in act8846_probe()
207 sc->dev = dev; in act8846_attach()
208 sc->bus_addr = iicbus_get_addr(dev); in act8846_attach()
209 node = ofw_bus_get_node(sc->dev); in act8846_attach()