Lines Matching +full:slave +full:- +full:addr
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
48 uint8_t addr; member
69 mtx_init(&sc->lock, device_get_nameunit(dev), "smbus", MTX_DEF); in smbus_attach()
87 mtx_destroy(&sc->lock); in smbus_detach()
126 int addr; in smbus_hinted_child() local
128 addr = 0; in smbus_hinted_child()
129 resource_int_value(dname, dunit, "addr", &addr); in smbus_hinted_child()
130 if (addr > UINT8_MAX) { in smbus_hinted_child()
131 device_printf(bus, "ignored incorrect slave address hint 0x%x" in smbus_hinted_child()
132 " for %s%d\n", addr, dname, dunit); in smbus_hinted_child()
139 devi->addr = addr; in smbus_hinted_child()
148 if (devi->addr != 0) in smbus_child_location()
149 sbuf_printf(sb, "addr=0x%x", devi->addr); in smbus_child_location()
161 if (devi->addr != 0) in smbus_print_child()
162 retval += printf(" at addr 0x%x", devi->addr); in smbus_print_child()
176 if (devi->addr != 0) in smbus_read_ivar()
177 *result = devi->addr; in smbus_read_ivar()
179 *result = -1; in smbus_read_ivar()
195 /* Allow to set but no change the slave address. */ in smbus_write_ivar()
196 if (devi->addr != 0) in smbus_write_ivar()
198 devi->addr = value; in smbus_write_ivar()
212 * Ignore (self-identified) devices without a slave address set. in smbus_probe_nomatch()
215 if (devi->addr != 0) in smbus_probe_nomatch()
216 device_printf(bus, "<unknown device> at addr %#x\n", in smbus_probe_nomatch()
217 devi->addr); in smbus_probe_nomatch()