Home
last modified time | relevance | path

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

12345

/freebsd-13.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-13.1/sys/dev/ocs_fc/
H A Docs_pci.c197 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
206 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
220 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
225 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
230 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
235 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
240 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
269 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
274 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
279 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
[all …]
/freebsd-13.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-13.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 …]
H A Darswitch_7240.c126 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar7240_probe()
/freebsd-13.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.c166 if ((err = resource_int_value(devname, unit, "scl", &sclnum)) != 0) in gpioiic_setup_hinted_pins()
172 if ((err = resource_int_value(devname, unit, "sda", &sdanum)) != 0) in gpioiic_setup_hinted_pins()
/freebsd-13.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()
97 if (resource_int_value("nvram", device_get_unit(dev), in nvram2env_probe()
/freebsd-13.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-13.1/sys/mips/atheros/
H A Dar71xx_machdep.c182 if (resource_int_value("ar71xx", 0, "eeprom_mac_isascii", in ar71xx_platform_read_eeprom_mac()
261 if (resource_int_value("ar71xx_mac_map", i, "unitid", in ar71xx_platform_check_mac_hints()
264 if (resource_int_value("ar71xx_mac_map", i, "offset", in ar71xx_platform_check_mac_hints()
267 if (resource_int_value("ar71xx_mac_map", i, "is_local", in ar71xx_platform_check_mac_hints()
H A Dar933x_chip.c330 if ((resource_int_value("ar933x_gmac", 0, "override_phy", &val) == 0) in ar933x_chip_init_gmac()
333 if ((resource_int_value("ar933x_gmac", 0, "swap_phy", &val) == 0) in ar933x_chip_init_gmac()
336 if ((resource_int_value("ar933x_gmac", 0, "swap_phy_addr", &val) == 0) in ar933x_chip_init_gmac()
H A Dar71xx_gpio.c473 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar71xx_gpio_attach()
479 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar71xx_gpio_attach()
490 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar71xx_gpio_attach()
493 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar71xx_gpio_attach()
549 if (resource_int_value(device_get_name(dev), in ar71xx_gpio_attach()
556 if (resource_int_value(device_get_name(dev), in ar71xx_gpio_attach()
/freebsd-13.1/sys/dev/spibus/
H A Dspibus.c222 resource_int_value(dname, dunit, "clock", &devi->clock); in spibus_hinted_child()
223 resource_int_value(dname, dunit, "cs", &devi->cs); in spibus_hinted_child()
224 resource_int_value(dname, dunit, "mode", &devi->mode); in spibus_hinted_child()
225 if (resource_int_value(dname, dunit, "irq", &irq) == 0) { in spibus_hinted_child()
/freebsd-13.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-13.1/sys/mips/atheros/ar531x/
H A Dar5315_gpio.c370 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar5315_gpio_attach()
376 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar5315_gpio_attach()
384 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar5315_gpio_attach()
387 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ar5315_gpio_attach()
437 if (resource_int_value(device_get_name(dev), in ar5315_gpio_attach()
444 if (resource_int_value(device_get_name(dev), in ar5315_gpio_attach()
/freebsd-13.1/sys/dev/iicbus/
H A Diicbus.c107 if (resource_int_value(device_get_name(dev), in iicbus_attach_common()
264 resource_int_value(dname, dunit, "addr", &devi->addr); in iicbus_hinted_child()
265 if (resource_int_value(dname, dunit, "irq", &irq) == 0) { in iicbus_hinted_child()
316 resource_int_value(device_get_name(dev), device_get_unit(dev), in iicbus_init_frequency()
H A Dicee.c165 if (resource_int_value(dname, dunit, "type", &sc->type) != 0) in icee_init()
167 if (resource_int_value(dname, dunit, "size", &sc->size) != 0) in icee_init()
169 if (resource_int_value(dname, dunit, "wr_sz", &sc->wr_sz) != 0) in icee_init()
/freebsd-13.1/sys/dev/isp/
H A Disp_pci.c279 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "debug", &tval); in isp_get_generic_options()
289 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "vports", &tval); in isp_get_generic_options()
310 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
320 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
341 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
368 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
377 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
421 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
431 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
1248 resource_int_value(device_get_name(dev), in isp_pci_irqsetup()
[all …]
/freebsd-13.1/sys/dev/ipmi/
H A Dipmi_isa.c144 if (resource_int_value(name, unit, "port", &val) == 0 && val != 0) { in ipmi_hint_identify()
147 } else if (resource_int_value(name, unit, "maddr", &val) == 0 && in ipmi_hint_identify()
154 if (resource_int_value(name, unit, "spacing", &val) == 0) { in ipmi_hint_identify()
/freebsd-13.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-13.1/sys/dev/mii/
H A Dmii.c254 if (resource_int_value(name, unit, "phyno", &val) != 0) in miibus_hinted_child()
291 if (resource_int_value(name, unit, "id1", &val) == 0) in miibus_hinted_child()
293 if (resource_int_value(name, unit, "id2", &val) == 0) in miibus_hinted_child()
295 if (resource_int_value(name, unit, "capmask", &val) == 0) in miibus_hinted_child()
442 if (resource_int_value(device_get_name(*miibus), in mii_attach()
/freebsd-13.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-13.1/sys/dev/iicbus/mux/
H A Dltc430x.c184 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ltc430x_attach()
189 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in ltc430x_attach()
/freebsd-13.1/sys/dev/altera/atse/
H A Dif_atse_nexus.c74 error = resource_int_value(device_get_name(dev), device_get_unit(dev), in atse_resource_int()

12345