Home
last modified time | relevance | path

Searched refs:resource_int_value (Results 1 – 25 of 119) sorted by relevance

12345

/freebsd-12.1/sys/isa/
H A Disahint.c50 if (resource_int_value(name, unit, "sensitive", &sensitive) != 0) in isa_hinted_child()
51 resource_int_value(name, -1, "sensitive", &sensitive); in isa_hinted_child()
64 resource_int_value(name, unit, "port", &start); in isa_hinted_child()
65 resource_int_value(name, unit, "portsize", &count); in isa_hinted_child()
71 resource_int_value(name, unit, "maddr", &start); in isa_hinted_child()
72 resource_int_value(name, unit, "msize", &count); in isa_hinted_child()
76 if (resource_int_value(name, unit, "irq", &start) == 0 && start > 0) in isa_hinted_child()
79 if (resource_int_value(name, unit, "drq", &start) == 0 && start >= 0) in isa_hinted_child()
/freebsd-12.1/sys/dev/ocs_fc/
H A Docs_pci.c154 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
163 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
178 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
183 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
188 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
193 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
198 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
227 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
232 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
237 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
[all …]
/freebsd-12.1/sys/dev/etherswitch/arswitch/
H A Darswitch_8327.c340 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port()
364 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port()
370 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port()
376 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_port()
424 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad()
433 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad()
439 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad()
445 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad()
451 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad()
457 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad()
[all …]
/freebsd-12.1/sys/dev/uart/
H A Duart_cpu_x86.c80 if (resource_int_value("uart", i, "flags", &ivar)) in uart_cpu_getdev()
90 if (resource_int_value("uart", i, "disabled", &ivar) == 0 && in uart_cpu_getdev()
93 if (resource_int_value("uart", i, "port", &ivar) != 0 || in uart_cpu_getdev()
108 if (resource_int_value("uart", i, "baud", &ivar) != 0) in uart_cpu_getdev()
/freebsd-12.1/sys/dev/gpio/
H A Dgpiospi.c103 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
108 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
114 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
119 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
125 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
130 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
135 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
141 if (resource_int_value(device_get_name(dev), in gpio_spi_attach()
H A Dgpioled.c116 resource_int_value(device_get_name(dev), in gpioled_attach()
118 resource_int_value(device_get_name(dev), in gpioled_attach()
H A Dgpioiic.c114 if (resource_int_value(device_get_name(dev), in gpioiic_attach()
117 if (resource_int_value(device_get_name(dev), in gpioiic_attach()
/freebsd-12.1/sys/dev/nvram2env/
H A Dnvram2env.c58 for (i = 0; !resource_int_value("nvram", i, "base", &ivar); i++) in nvram2env_identify()
76 if (resource_int_value("nvram", device_get_unit(dev), "sig", in nvram2env_probe()
81 if (resource_int_value("nvram", device_get_unit(dev), "maxsize", in nvram2env_probe()
86 if (resource_int_value("nvram", device_get_unit(dev), "flags", in nvram2env_probe()
98 if (resource_int_value("nvram", device_get_unit(dev), in nvram2env_probe()
/freebsd-12.1/sys/mips/broadcom/
H A Duart_cpu_chipc.c148 if (resource_int_value("uart", i, "flags", &ivar)) in uart_cpu_getdev()
158 if (resource_int_value("uart", i, "disabled", &ivar) == 0 && in uart_cpu_getdev()
163 if (resource_int_value("uart", i, "baud", &ivar) != 0) in uart_cpu_getdev()
/freebsd-12.1/sys/mips/atheros/
H A Dar71xx_machdep.c178 if (resource_int_value("ar71xx", 0, "eeprom_mac_isascii", in ar71xx_platform_read_eeprom_mac()
257 if (resource_int_value("ar71xx_mac_map", i, "unitid", in ar71xx_platform_check_mac_hints()
260 if (resource_int_value("ar71xx_mac_map", i, "offset", in ar71xx_platform_check_mac_hints()
263 if (resource_int_value("ar71xx_mac_map", i, "is_local", in ar71xx_platform_check_mac_hints()
H A Dar933x_chip.c331 if ((resource_int_value("ar933x_gmac", 0, "override_phy", &val) == 0) in ar933x_chip_init_gmac()
334 if ((resource_int_value("ar933x_gmac", 0, "swap_phy", &val) == 0) in ar933x_chip_init_gmac()
337 if ((resource_int_value("ar933x_gmac", 0, "swap_phy_addr", &val) == 0) in ar933x_chip_init_gmac()
H A Dar71xx_gpio.c471 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar71xx_gpio_attach()
477 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar71xx_gpio_attach()
488 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar71xx_gpio_attach()
491 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar71xx_gpio_attach()
547 if (resource_int_value(device_get_name(dev), in ar71xx_gpio_attach()
554 if (resource_int_value(device_get_name(dev), in ar71xx_gpio_attach()
/freebsd-12.1/sys/dev/bvm/
H A Dbvm_dbg.c62 resource_int_value("bvmdbg", 0, "disabled", &disabled); in bvm_dbg_probe()
65 if (resource_int_value("bvmdbg", 0, "port", &port) == 0) in bvm_dbg_probe()
H A Dbvm_console.c179 resource_int_value("bvmconsole", 0, "disabled", &disabled); in bvm_cnprobe()
181 if (resource_int_value("bvmconsole", 0, "port", &port) == 0) in bvm_cnprobe()
/freebsd-12.1/sys/dev/ath/
H A Dif_ath_ahb.c103 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ath_ahb_probe()
108 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ath_ahb_probe()
233 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ath_ahb_attach()
238 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ath_ahb_attach()
/freebsd-12.1/sys/mips/atheros/ar531x/
H A Dar5315_gpio.c372 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar5315_gpio_attach()
378 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar5315_gpio_attach()
386 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar5315_gpio_attach()
389 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar5315_gpio_attach()
439 if (resource_int_value(device_get_name(dev), in ar5315_gpio_attach()
446 if (resource_int_value(device_get_name(dev), in ar5315_gpio_attach()
/freebsd-12.1/sys/dev/iicbus/
H A Diicbus.c105 if (resource_int_value(device_get_name(dev), in iicbus_attach()
245 resource_int_value(dname, dunit, "addr", &devi->addr); in iicbus_hinted_child()
246 if (resource_int_value(dname, dunit, "irq", &irq) == 0) { in iicbus_hinted_child()
297 resource_int_value(device_get_name(dev), device_get_unit(dev), in iicbus_init_frequency()
H A Dicee.c180 resource_int_value(dname, dunit, "size", &sc->size); in icee_init()
181 resource_int_value(dname, dunit, "type", &sc->type); in icee_init()
182 resource_int_value(dname, dunit, "wr_sz", &sc->wr_sz); in icee_init()
/freebsd-12.1/sys/dev/ipmi/
H A Dipmi_isa.c143 if (resource_int_value(name, unit, "port", &val) == 0 && val != 0) { in ipmi_hint_identify()
146 } else if (resource_int_value(name, unit, "maddr", &val) == 0 && in ipmi_hint_identify()
153 if (resource_int_value(name, unit, "spacing", &val) == 0) { in ipmi_hint_identify()
/freebsd-12.1/sys/dev/spibus/
H A Dspibus.c219 resource_int_value(dname, dunit, "clock", &devi->clock); in spibus_hinted_child()
220 resource_int_value(dname, dunit, "cs", &devi->cs); in spibus_hinted_child()
221 resource_int_value(dname, dunit, "mode", &devi->mode); in spibus_hinted_child()
/freebsd-12.1/sys/dev/altera/avgen/
H A Daltera_avgen_nexus.c87 error = resource_int_value(device_get_name(dev), device_get_unit(dev), in altera_avgen_nexus_attach()
101 (void)resource_int_value(device_get_name(dev), device_get_unit(dev), in altera_avgen_nexus_attach()
/freebsd-12.1/sys/mips/sibyte/
H A Data_zbbus.c83 resource_int_value(device_get_name(dev), device_get_unit(dev), in ata_zbbus_attach()
89 resource_int_value(device_get_name(dev), device_get_unit(dev), in ata_zbbus_attach()
/freebsd-12.1/sys/dev/etherswitch/ukswitch/
H A Dukswitch.c182 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach()
184 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach()
186 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach()
188 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach()
190 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in ukswitch_attach()
/freebsd-12.1/sys/dev/mii/
H A Dmii.c240 if (resource_int_value(name, unit, "phyno", &val) != 0) in miibus_hinted_child()
277 if (resource_int_value(name, unit, "id1", &val) == 0) in miibus_hinted_child()
279 if (resource_int_value(name, unit, "id2", &val) == 0) in miibus_hinted_child()
281 if (resource_int_value(name, unit, "capmask", &val) == 0) in miibus_hinted_child()
428 if (resource_int_value(device_get_name(*miibus), in mii_attach()
/freebsd-12.1/sys/dev/isp/
H A Disp_pci.c460 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "debug", &tval); in isp_get_generic_options()
470 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "vports", &tval); in isp_get_generic_options()
491 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
516 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
537 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
564 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
573 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
617 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
627 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
1914 resource_int_value(device_get_name(dev), in isp_pci_irqsetup()
[all …]

12345