/freebsd/sys/isa/ |
H A D | isahint.c | 47 if (resource_int_value(name, unit, "sensitive", &sensitive) != 0) in isa_hinted_child() 48 resource_int_value(name, DEVICE_UNIT_ANY, "sensitive", in isa_hinted_child() 62 resource_int_value(name, unit, "port", &start); in isa_hinted_child() 63 resource_int_value(name, unit, "portsize", &count); in isa_hinted_child() 69 resource_int_value(name, unit, "maddr", &start); in isa_hinted_child() 70 resource_int_value(name, unit, "msize", &count); in isa_hinted_child() 74 if (resource_int_value(name, unit, "irq", &start) == 0 && start > 0) in isa_hinted_child() 77 if (resource_int_value(name, unit, "drq", &start) == 0 && start >= 0) in isa_hinted_child()
|
H A D | syscons_isa.c | 161 if (resource_int_value(SC_DRIVER_NAME, u, "flags", &f) != 0) in sc_get_cons_priority()
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_pci.c | 195 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 204 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 218 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 223 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 228 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 233 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 238 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 267 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 272 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() 277 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params() [all …]
|
/freebsd/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_8327.c | 329 (void) resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port() 338 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port() 362 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port() 368 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port() 374 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port() 422 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad() 431 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad() 437 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad() 443 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad() 449 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad() [all …]
|
H A D | arswitch.c | 583 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in arswitch_attach() 585 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in arswitch_attach() 587 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in arswitch_attach() 589 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in arswitch_attach() 591 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in arswitch_attach()
|
/freebsd/sys/dev/uart/ |
H A D | uart_cpu_x86.c | 83 if (resource_int_value("uart", i, "flags", &ivar)) in uart_cpu_getdev() 93 if (resource_int_value("uart", i, "disabled", &ivar) == 0 && in uart_cpu_getdev() 96 if (resource_int_value("uart", i, "port", &ivar) != 0 || in uart_cpu_getdev() 111 if (resource_int_value("uart", i, "baud", &ivar) != 0) in uart_cpu_getdev()
|
/freebsd/sys/dev/gpio/ |
H A D | gpiospi.c | 101 if (resource_int_value(device_get_name(dev), in gpio_spi_attach() 106 if (resource_int_value(device_get_name(dev), in gpio_spi_attach() 112 if (resource_int_value(device_get_name(dev), in gpio_spi_attach() 117 if (resource_int_value(device_get_name(dev), in gpio_spi_attach() 123 if (resource_int_value(device_get_name(dev), in gpio_spi_attach() 128 if (resource_int_value(device_get_name(dev), in gpio_spi_attach() 133 if (resource_int_value(device_get_name(dev), in gpio_spi_attach() 139 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
|
H A D | gpioled.c | 105 if (resource_int_value(device_get_name(dev), in gpioled_inv() 176 if (resource_int_value(device_get_name(dev), in gpioled_attach()
|
H A D | gpioiic.c | 164 if ((err = resource_int_value(devname, unit, "scl", &sclnum)) != 0) in gpioiic_setup_hinted_pins() 170 if ((err = resource_int_value(devname, unit, "sda", &sdanum)) != 0) in gpioiic_setup_hinted_pins()
|
/freebsd/sys/dev/spibus/ |
H A D | spibus.c | 208 resource_int_value(dname, dunit, "clock", &devi->clock); in spibus_hinted_child() 209 resource_int_value(dname, dunit, "cs", &devi->cs); in spibus_hinted_child() 210 resource_int_value(dname, dunit, "mode", &devi->mode); in spibus_hinted_child() 211 if (resource_int_value(dname, dunit, "irq", &irq) == 0) { in spibus_hinted_child()
|
/freebsd/sys/dev/isp/ |
H A D | isp_pci.c | 290 …if (resource_int_value(device_get_name(dev), device_get_unit(dev), "fwload_disable", &tval) == 0 &… in isp_get_generic_options() 294 …if (resource_int_value(device_get_name(dev), device_get_unit(dev), "fwload_force", &tval) == 0 && … in isp_get_generic_options() 303 …if (resource_int_value(device_get_name(dev), device_get_unit(dev), "ignore_nvram", &tval) == 0 && … in isp_get_generic_options() 307 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "debug", &tval); in isp_get_generic_options() 317 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "vports", &tval); in isp_get_generic_options() 322 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "quickboot_time", &tval); in isp_get_generic_options() 338 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options() 348 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options() 369 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options() 396 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options() [all …]
|
/freebsd/sys/dev/iicbus/ |
H A D | iicbus.c | 106 if (resource_int_value(device_get_name(dev), in iicbus_attach_common() 272 resource_int_value(dname, dunit, "addr", &devi->addr); in iicbus_hinted_child() 273 if (resource_int_value(dname, dunit, "irq", &irq) == 0) { in iicbus_hinted_child() 324 resource_int_value(device_get_name(dev), device_get_unit(dev), in iicbus_init_frequency()
|
H A D | icee.c | 164 if (resource_int_value(dname, dunit, "type", &sc->type) != 0) in icee_init() 166 if (resource_int_value(dname, dunit, "size", &sc->size) != 0) in icee_init() 168 if (resource_int_value(dname, dunit, "wr_sz", &sc->wr_sz) != 0) in icee_init()
|
/freebsd/sys/dev/ipmi/ |
H A D | ipmi_isa.c | 141 if (resource_int_value(name, unit, "port", &val) == 0 && val != 0) { in ipmi_hint_identify() 144 } else if (resource_int_value(name, unit, "maddr", &val) == 0 && in ipmi_hint_identify() 151 if (resource_int_value(name, unit, "spacing", &val) == 0) { in ipmi_hint_identify()
|
/freebsd/sys/dev/mii/ |
H A D | mii.c | 245 if (resource_int_value(name, unit, "phyno", &val) != 0) in miibus_hinted_child() 282 if (resource_int_value(name, unit, "id1", &val) == 0) in miibus_hinted_child() 284 if (resource_int_value(name, unit, "id2", &val) == 0) in miibus_hinted_child() 286 if (resource_int_value(name, unit, "capmask", &val) == 0) in miibus_hinted_child() 435 if (resource_int_value(device_get_name(*miibus), in mii_attach()
|
/freebsd/sys/dev/etherswitch/ukswitch/ |
H A D | ukswitch.c | 174 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach() 176 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach() 178 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach() 180 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach() 182 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach()
|
/freebsd/sys/dev/iicbus/mux/ |
H A D | ltc430x.c | 182 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ltc430x_attach() 187 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ltc430x_attach()
|
/freebsd/sys/dev/mpt/ |
H A D | mpt_pci.c | 258 if (resource_int_value(device_get_name(mpt->dev), in mpt_set_options() 263 if (resource_int_value(device_get_name(mpt->dev), in mpt_set_options() 273 if (resource_int_value(device_get_name(mpt->dev), in mpt_set_options()
|
/freebsd/sys/dev/mvs/ |
H A D | mvs_pci.c | 113 resource_int_value(device_get_name(dev), in mvs_attach() 116 resource_int_value(device_get_name(dev), in mvs_attach() 298 resource_int_value(device_get_name(dev), in mvs_setup_interrupt()
|
/freebsd/sys/kern/ |
H A D | subr_hints.c | 338 resource_int_value(const char *name, int unit, const char *resname, int *result) in resource_int_value() function 486 error = resource_int_value(name, unit, "disabled", &value); in resource_disabled()
|
/freebsd/sys/dev/sound/pcm/ |
H A D | sound.c | 270 if (resource_int_value(device_get_name(dev), device_get_unit(dev), "buffersize", &sz) == 0) { in pcm_getbuffersize() 368 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in pcm_init() 372 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in pcm_init()
|
/freebsd/sys/dev/sound/pci/ |
H A D | via8233.c | 1180 if (resource_int_value(device_get_name(dev), in via_attach() 1210 if (resource_int_value(device_get_name(dev), in via_attach() 1250 } else if (resource_int_value(device_get_name(dev), in via_attach() 1261 if (resource_int_value(device_get_name(dev), in via_attach() 1265 if (resource_int_value(device_get_name(dev), in via_attach() 1283 if (via_dxs_chnum > 0 && resource_int_value(device_get_name(dev), in via_attach()
|
/freebsd/sys/dev/etherswitch/e6000sw/ |
H A D | e6060sw.c | 273 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in e6060sw_attach() 275 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in e6060sw_attach() 277 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in e6060sw_attach() 279 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in e6060sw_attach()
|
/freebsd/sys/x86/isa/ |
H A D | clock.c | 575 resource_int_value(device_get_name(dev), device_get_unit(dev), in attimer_attach() 587 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in attimer_attach()
|
/freebsd/sys/dev/ahci/ |
H A D | ahci_pci.c | 527 resource_int_value(device_get_name(dev), device_get_unit(dev), in ahci_pci_attach() 653 resource_int_value(device_get_name(dev), in ahci_pci_attach()
|