/freebsd-11-stable/sys/mips/sibyte/ |
H A D | sb_zbbus.c | 232 zbbus_hinted_child(device_t bus, const char *dname, int dunit) argument 238 if (resource_disabled(dname, dunit)) 241 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 243 panic("zbbus: could not add child %s unit %d\n", dname, dunit); 247 device_printf(bus, "Adding hinted child %s%d\n", dname, dunit); 252 if (resource_long_value(dname, dunit, "msize", &msize) == 0 && 253 resource_long_value(dname, dunit, "maddr", &maddr) == 0) { 257 maddr, msize, dname, dunit); 263 maddr, msize, dname, dunit, err); 267 if (resource_int_value(dname, dunit, "ir [all...] |
/freebsd-11-stable/sys/dev/smbus/ |
H A D | smbus.c | 115 smbus_hinted_child(device_t bus, const char *dname, int dunit) argument 122 resource_int_value(dname, dunit, "addr", &addr); 125 " for %s%d\n", addr, dname, dunit); 128 child = BUS_ADD_CHILD(bus, SMBUS_ORDER_HINTED, dname, dunit);
|
/freebsd-11-stable/sys/dev/spibus/ |
H A D | spibus.c | 211 spibus_hinted_child(device_t bus, const char *dname, int dunit) argument 216 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 219 resource_int_value(dname, dunit, "clock", &devi->clock); 220 resource_int_value(dname, dunit, "cs", &devi->cs); 221 resource_int_value(dname, dunit, "mode", &devi->mode);
|
/freebsd-11-stable/sys/dev/iicbus/ |
H A D | iicbus.c | 235 iicbus_hinted_child(device_t bus, const char *dname, int dunit) argument 241 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 243 resource_int_value(dname, dunit, "addr", &devi->addr); 244 if (resource_int_value(dname, dunit, "irq", &irq) == 0) {
|
H A D | icee.c | 174 int dunit; local 177 dunit = device_get_unit(sc->dev); 178 resource_int_value(dname, dunit, "size", &sc->size); 179 resource_int_value(dname, dunit, "type", &sc->type); 180 resource_int_value(dname, dunit, "wr_sz", &sc->wr_sz);
|
/freebsd-11-stable/sys/mips/atheros/ |
H A D | apb.c | 406 apb_hinted_child(device_t bus, const char *dname, int dunit) argument 415 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 422 if (resource_long_value(dname, dunit, "maddr", &maddr) == 0) 424 if (resource_int_value(dname, dunit, "msize", &msize) == 0) 430 dname, dunit); 439 if (resource_int_value(dname, dunit, "irq", &irq) == 0) {
|
H A D | if_arge.c | 168 static void arge_hinted_child(device_t bus, const char *dname, int dunit); 1086 arge_hinted_child(device_t bus, const char *dname, int dunit) argument 1088 BUS_ADD_CHILD(bus, 0, dname, dunit); 1089 device_printf(bus, "hinted child %s%d\n", dname, dunit);
|
/freebsd-11-stable/sys/mips/adm5120/ |
H A D | obio.c | 451 obio_hinted_child(device_t bus, const char *dname, int dunit) argument 459 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 465 resource_long_value(dname, dunit, "maddr", &maddr); 466 resource_int_value(dname, dunit, "msize", &msize); 474 if (resource_int_value(dname, dunit, "irq", &irq) == 0) {
|
/freebsd-11-stable/sys/mips/alchemy/ |
H A D | obio.c | 443 obio_hinted_child(device_t bus, const char *dname, int dunit) argument 451 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 457 resource_long_value(dname, dunit, "maddr", &maddr); 458 resource_int_value(dname, dunit, "msize", &msize); 466 if (resource_int_value(dname, dunit, "irq", &irq) == 0) {
|
/freebsd-11-stable/sys/mips/idt/ |
H A D | obio.c | 393 obio_hinted_child(device_t bus, const char *dname, int dunit) argument 401 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 407 resource_long_value(dname, dunit, "maddr", &maddr); 408 resource_int_value(dname, dunit, "msize", &msize); 416 if (resource_int_value(dname, dunit, "irq", &irq) == 0) {
|
/freebsd-11-stable/sys/mips/rt305x/ |
H A D | obio.c | 502 obio_add_res_child(device_t bus, const char *dname, int dunit, argument 508 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 524 obio_hinted_child(device_t bus, const char *dname, int dunit) argument 534 resource_long_value(dname, dunit, "maddr", &maddr); 535 resource_int_value(dname, dunit, "msize", &msize); 538 if (resource_int_value(dname, dunit, "irq", &irq) == 0) irq = -1; 540 obio_add_res_child(bus, dname, dunit, maddr, msize, irq);
|
/freebsd-11-stable/sys/mips/mips/ |
H A D | nexus.c | 569 nexus_hinted_child(device_t bus, const char *dname, int dunit) argument 579 if ((resource_int_value(dname, dunit, "order", &order)) != 0) 581 child = BUS_ADD_CHILD(bus, order, dname, dunit); 590 if (resource_long_value(dname, dunit, "maddr", &maddr) == 0) 592 if (resource_int_value(dname, dunit, "msize", &msize) == 0) 598 dname, dunit); 613 if (resource_int_value(dname, dunit, "irq", &irq) == 0) {
|
/freebsd-11-stable/sys/arm/xscale/pxa/ |
H A D | pxa_smi.c | 95 int error, i, dunit; local 118 while (resource_find_match(&i, &dname, &dunit, "at", 120 pxa_smi_add_device(dev, dname, dunit);
|
/freebsd-11-stable/sys/arm/xscale/ixp425/ |
H A D | ixp425.c | 366 ixp425_hinted_child(device_t bus, const char *dname, int dunit) argument 371 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 373 resource_int_value(dname, dunit, "addr", &ivar->addr); 374 resource_int_value(dname, dunit, "irq", &ivar->irq);
|
/freebsd-11-stable/sys/cam/ |
H A D | cam_periph.c | 538 int i, val, dunit, r; local 572 r = resource_find_dev(&i, dname, &dunit, NULL, NULL); 576 if (resource_int_value(dname, dunit, "target", &val) && 577 (resource_string_value(dname, dunit, "at",&strval)|| 580 if (newunit == dunit) 594 int wired, i, val, dunit; local 603 for (wired = 0; resource_find_dev(&i, dname, &dunit, NULL, NULL) == 0; 605 if (resource_string_value(dname, dunit, "at", &strval) == 0) { 610 if (resource_int_value(dname, dunit, "target", &val) == 0) { 615 if (resource_int_value(dname, dunit, "lu [all...] |
H A D | cam_xpt.c | 4039 int i, dunit, val; local 4048 while ((resource_find_match(&i, &dname, &dunit, "at", buf)) == 0) { 4053 if (dunit < 0) /* unwired?! */ 4055 if (resource_int_value("scbus", dunit, "bus", &val) == 0) { 4057 pathid = dunit; 4062 pathid = dunit; 4070 sim_name, sim_unit, sim_bus, dunit);
|
/freebsd-11-stable/sys/arm/nvidia/ |
H A D | as3722.c | 289 int dunit, rv, rid; local 297 dunit = device_get_unit(dev);
|
/freebsd-11-stable/sys/dev/gpio/ |
H A D | gpiobus.c | 602 gpiobus_hinted_child(device_t bus, const char *dname, int dunit) argument 610 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 612 if (resource_int_value(dname, dunit, "pins", &pinmask) == 0) { 620 else if (resource_string_value(dname, dunit, "pin_list", &pins) == 0) { 628 if (resource_int_value(dname, dunit, "irq", &irq) == 0) {
|
/freebsd-11-stable/sys/mips/cavium/ |
H A D | ciu.c | 316 ciu_hinted_child(device_t bus, const char *dname, int dunit) argument 318 BUS_ADD_CHILD(bus, 0, dname, dunit);
|
/freebsd-11-stable/sys/dev/fdc/ |
H A D | fdc.c | 2080 int i, error, dunit; local 2088 while ((resource_find_match(&i, &dname, &dunit, "at", name)) == 0) { 2089 resource_int_value(dname, dunit, "drive", &dunit); 2090 fdc_add_child(dev, dname, dunit);
|
/freebsd-11-stable/sys/kern/ |
H A D | subr_bus.c | 5121 int dunit; local 5128 while (resource_find_match(&i, &dname, &dunit, "at", busname) == 0) 5129 BUS_HINTED_CHILD(bus, dname, dunit); 5136 while (resource_find_match(&i, &dname, &dunit, "at", busname) == 0) 5137 BUS_HINTED_CHILD(bus, dname, dunit);
|