Home
last modified time | relevance | path

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

1234

/freebsd-14.2/sys/isa/
H A Disahint.c48 if (resource_int_value(name, unit, "sensitive", &sensitive) != 0) in isa_hinted_child()
49 resource_int_value(name, -1, "sensitive", &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 Dsyscons_isa.c161 if (resource_int_value(SC_DRIVER_NAME, u, "flags", &f) != 0) in sc_get_cons_priority()
/freebsd-14.2/sys/dev/ocs_fc/
H A Docs_pci.c195 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-14.2/sys/dev/uart/
H A Duart_cpu_x86.c84 if (resource_int_value("uart", i, "flags", &ivar)) in uart_cpu_getdev()
94 if (resource_int_value("uart", i, "disabled", &ivar) == 0 && in uart_cpu_getdev()
97 if (resource_int_value("uart", i, "port", &ivar) != 0 || in uart_cpu_getdev()
112 if (resource_int_value("uart", i, "baud", &ivar) != 0) in uart_cpu_getdev()
/freebsd-14.2/sys/dev/etherswitch/arswitch/
H A Darswitch_8327.c338 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()
455 if (resource_int_value(device_get_name(sc->sc_dev), in ar8327_fetch_pdata_pad()
[all …]
H A Darswitch.c583 (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-14.2/sys/dev/gpio/
H A Dgpiospi.c101 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 Dgpioled.c114 resource_int_value(device_get_name(dev), in gpioled_attach()
116 resource_int_value(device_get_name(dev), in gpioled_attach()
H A Dgpioiic.c164 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-14.2/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()
222 if (resource_int_value(dname, dunit, "irq", &irq) == 0) { in spibus_hinted_child()
/freebsd-14.2/sys/dev/isp/
H A Disp_pci.c307 (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()
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()
405 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
449 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
459 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
1262 resource_int_value(device_get_name(dev), in isp_pci_irqsetup()
[all …]
/freebsd-14.2/sys/dev/iicbus/
H A Diicbus.c106 if (resource_int_value(device_get_name(dev), in iicbus_attach_common()
260 resource_int_value(dname, dunit, "addr", &devi->addr); in iicbus_hinted_child()
261 if (resource_int_value(dname, dunit, "irq", &irq) == 0) { in iicbus_hinted_child()
312 resource_int_value(device_get_name(dev), device_get_unit(dev), in iicbus_init_frequency()
H A Dicee.c164 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-14.2/sys/dev/ipmi/
H A Dipmi_isa.c142 if (resource_int_value(name, unit, "port", &val) == 0 && val != 0) { in ipmi_hint_identify()
145 } else if (resource_int_value(name, unit, "maddr", &val) == 0 && in ipmi_hint_identify()
152 if (resource_int_value(name, unit, "spacing", &val) == 0) { in ipmi_hint_identify()
/freebsd-14.2/sys/dev/altera/avgen/
H A Daltera_avgen_nexus.c85 error = resource_int_value(device_get_name(dev), device_get_unit(dev), in altera_avgen_nexus_attach()
99 (void)resource_int_value(device_get_name(dev), device_get_unit(dev), in altera_avgen_nexus_attach()
/freebsd-14.2/sys/dev/etherswitch/ukswitch/
H A Dukswitch.c174 (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-14.2/sys/dev/mii/
H A Dmii.c244 if (resource_int_value(name, unit, "phyno", &val) != 0) in miibus_hinted_child()
281 if (resource_int_value(name, unit, "id1", &val) == 0) in miibus_hinted_child()
283 if (resource_int_value(name, unit, "id2", &val) == 0) in miibus_hinted_child()
285 if (resource_int_value(name, unit, "capmask", &val) == 0) in miibus_hinted_child()
434 if (resource_int_value(device_get_name(*miibus), in mii_attach()
/freebsd-14.2/sys/dev/iicbus/mux/
H A Dltc430x.c182 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-14.2/sys/dev/altera/atse/
H A Dif_atse_nexus.c72 error = resource_int_value(device_get_name(dev), device_get_unit(dev), in atse_resource_int()
/freebsd-14.2/sys/dev/mvs/
H A Dmvs_pci.c114 resource_int_value(device_get_name(dev), in mvs_attach()
117 resource_int_value(device_get_name(dev), in mvs_attach()
296 resource_int_value(device_get_name(dev), in mvs_setup_interrupt()
/freebsd-14.2/sys/dev/mpt/
H A Dmpt_pci.c258 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-14.2/sys/kern/
H A Dsubr_hints.c339 resource_int_value(const char *name, int unit, const char *resname, int *result) in resource_int_value() function
487 error = resource_int_value(name, unit, "disabled", &value); in resource_disabled()
/freebsd-14.2/sys/dev/sound/pci/
H A Dvia8233.c1180 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-14.2/sys/dev/sound/pcm/
H A Dsound.c355 if (resource_int_value(device_get_name(dev), device_get_unit(dev), "buffersize", &sz) == 0) { in pcm_getbuffersize()
478 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in pcm_register()
482 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in pcm_register()
/freebsd-14.2/sys/dev/pcf/
H A Dpcf_isa.c110 if ((error = resource_int_value(PCF_NAME, 0, "port", &port)) != 0) in pcf_isa_probe()

1234