Home
last modified time | relevance | path

Searched refs:device_get_unit (Results 1 – 25 of 480) sorted by relevance

12345678910>>...20

/freebsd-13.1/sys/dev/altera/avgen/
H A Daltera_avgen_nexus.c75 sc->avg_unit = device_get_unit(dev); in altera_avgen_nexus_attach()
87 error = resource_int_value(device_get_name(dev), device_get_unit(dev), in altera_avgen_nexus_attach()
94 device_get_unit(dev), ALTERA_AVALON_STR_FILEIO, &str_fileio); in altera_avgen_nexus_attach()
96 device_get_unit(dev), ALTERA_AVALON_STR_GEOMIO, &str_geomio); in altera_avgen_nexus_attach()
98 device_get_unit(dev), ALTERA_AVALON_STR_MMAPIO, &str_mmapio); in altera_avgen_nexus_attach()
100 device_get_unit(dev), ALTERA_AVALON_STR_DEVNAME, &str_devname); 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/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/terasic/mtl/
H A Dterasic_mtl_nexus.c75 sc->mtl_unit = device_get_unit(dev); in terasic_mtl_nexus_attach()
81 if (resource_long_value(device_get_name(dev), device_get_unit(dev), in terasic_mtl_nexus_attach()
86 if (resource_long_value(device_get_name(dev), device_get_unit(dev), in terasic_mtl_nexus_attach()
91 if (resource_long_value(device_get_name(dev), device_get_unit(dev), in terasic_mtl_nexus_attach()
97 if (resource_long_value(device_get_name(dev), device_get_unit(dev), in terasic_mtl_nexus_attach()
103 if (resource_long_value(device_get_name(dev), device_get_unit(dev), in terasic_mtl_nexus_attach()
109 if (resource_long_value(device_get_name(dev), device_get_unit(dev), in terasic_mtl_nexus_attach()
/freebsd-13.1/sys/dev/etherswitch/arswitch/
H A Darswitch_8327.c332 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_port()
341 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_port()
365 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_port()
371 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_port()
377 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_port()
425 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_pad()
434 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_pad()
440 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_pad()
446 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_pad()
452 device_get_unit(sc->sc_dev), in ar8327_fetch_pdata_pad()
[all …]
/freebsd-13.1/sys/dev/coretemp/
H A Dcoretemp.c136 child = device_add_child(parent, "coretemp", device_get_unit(parent)); in coretemp_identify()
149 if (!bootverbose && device_get_unit(dev) != 0) in coretemp_probe()
356 msr = coretemp_get_thermal_msr(device_get_unit(dev)); in coretemp_get_val_sysctl()
384 coretemp_clear_thermal_msr(device_get_unit(dev)); in coretemp_get_val_sysctl()
422 msr = coretemp_get_thermal_msr(device_get_unit(dev)); in coretemp_throttle_log_sysctl()
426 coretemp_clear_thermal_msr(device_get_unit(dev)); in coretemp_throttle_log_sysctl()
439 coretemp_clear_thermal_msr(device_get_unit(dev)); in coretemp_throttle_log_sysctl()
/freebsd-13.1/sys/dev/gpio/
H A Dgpiospi.c104 device_get_unit(dev), "sclk", &value)) in gpio_spi_attach()
109 device_get_unit(dev), "mosi", &value)) in gpio_spi_attach()
115 device_get_unit(dev), "miso", &value)) in gpio_spi_attach()
120 device_get_unit(dev), "cs0", &value)) in gpio_spi_attach()
126 device_get_unit(dev), "cs1", &value)) in gpio_spi_attach()
131 device_get_unit(dev), "cs2", &value)) in gpio_spi_attach()
136 device_get_unit(dev), "cs3", &value)) in gpio_spi_attach()
142 device_get_unit(dev), "freq", &value)) { in gpio_spi_attach()
H A Dgpioled.c114 device_get_unit(dev), "name", &name)) in gpioled_attach()
117 device_get_unit(dev), "invert", &sc->sc_invert); in gpioled_attach()
119 device_get_unit(dev), "state", &state); in gpioled_attach()
/freebsd-13.1/sys/dev/atkbdc/
H A Datkbd_atkbdc.c82 BUS_ADD_CHILD(parent, KBDC_RID_KBD, driver->name, device_get_unit(parent)); in atkbdidentify()
153 device_get_unit(dev))); in atkbdresume()
156 args[0] = device_get_unit(device_get_parent(dev)); in atkbdresume()
158 kbdd_init(kbd, device_get_unit(dev), &kbd, args, in atkbdresume()
/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()
90 error = resource_long_value(device_get_name(dev), device_get_unit(dev), in atse_resource_long()
118 sc->atse_unit = device_get_unit(dev); in atse_attach_nexus()
/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()
169 if (resource_string_value(device_get_name(dev), device_get_unit(dev), in ath_ahb_attach()
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/
H A Dar71xx_caldata.c106 device_get_unit(dev), in ar71xx_platform_create_cal_data()
135 device_get_unit(dev), buf, &addr) != 0) in ar71xx_platform_check_eeprom_hints()
139 device_get_unit(dev), buf, &size) != 0) in ar71xx_platform_check_eeprom_hints()
H A Dar71xx_gpio.c439 KASSERT((device_get_unit(dev) == 0), in ar71xx_gpio_attach()
473 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()
550 device_get_unit(dev), in ar71xx_gpio_attach()
557 device_get_unit(dev), in ar71xx_gpio_attach()
/freebsd-13.1/sys/mips/atheros/ar531x/
H A Dar5315_gpio.c336 KASSERT((device_get_unit(dev) == 0), in ar5315_gpio_attach()
370 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()
438 device_get_unit(dev), in ar5315_gpio_attach()
445 device_get_unit(dev), in ar5315_gpio_attach()
/freebsd-13.1/sys/dev/nvram2env/
H A Dnvram2env.c76 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/dev/isp/
H A Disp_pci.c310 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()
347 if (resource_string_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()
395 tval = resource_string_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()
1249 device_get_unit(dev), "msix", &max_irq); in isp_pci_irqsetup()
[all …]
/freebsd-13.1/sys/mips/cavium/
H A Dobio.c79 if (device_get_unit(dev) != 0) in obio_probe()
134 switch (device_get_unit(child)) { in obio_alloc_resource()
151 bh = CVMX_MIO_UARTX_RBR(device_get_unit(child)); in obio_alloc_resource()
/freebsd-13.1/sys/dev/iicbus/mux/
H A Dltc430x.c126 if (resource_string_value(device_get_name(dev), device_get_unit(dev), in ltc430x_find_chiptype()
184 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/dcons/
H A Ddcons_crom.c89 BUS_ADD_CHILD(parent, 0, "dcons_crom", device_get_unit(parent)); in dcons_crom_identify()
98 if(device_get_unit(dev) != device_get_unit(pa)){ in dcons_crom_probe()
/freebsd-13.1/sys/isa/
H A Dsyscons_isa.c85 return (sc_probe_unit(device_get_unit(dev), device_get_flags(dev))); in scprobe()
92 return (sc_attach_unit(device_get_unit(dev), device_get_flags(dev) | in scattach()
/freebsd-13.1/sys/dev/cardbus/
H A Dcardbus_device.c117 minor = (device_get_unit(sc->sc_dev) << 8) + devi->pci.cfg.func; in cardbus_device_create()
118 unit = device_get_unit(sc->sc_dev); in cardbus_device_create()
/freebsd-13.1/sys/dev/sbni/
H A Dif_sbni_pci.c142 error = sbni_attach(sc, device_get_unit(dev) * 2, flags); in sbni_pci_attach()
148 error = sbni_attach(sc->slave_sc, device_get_unit(dev) * 2 + 1, in sbni_pci_attach()
/freebsd-13.1/sys/dev/acpica/
H A Dacpi_hpet.c158 vdso_th->th_x86_hpet_idx = device_get_unit(sc->dev); in hpet_vdso_timehands()
175 vdso_th32->th_x86_hpet_idx = device_get_unit(sc->dev); in hpet_vdso_timehands32()
575 if (device_get_unit(dev) == 0) { in hpet_attach()
589 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in hpet_attach()
595 resource_int_value(device_get_name(dev), device_get_unit(dev), in hpet_attach()
638 resource_int_value(device_get_name(dev), device_get_unit(dev), in hpet_attach()
643 resource_int_value(device_get_name(dev), device_get_unit(dev), in hpet_attach()
814 error = make_dev_s(&mda, &sc->pdev, "hpet%d", device_get_unit(dev)); in hpet_attach()
834 device_get_unit(dev), error); in hpet_attach()
/freebsd-13.1/sys/dev/mpt/
H A Dmpt_pci.c262 device_get_unit(mpt->dev), "debug", &tval) == 0 && tval != 0) { in mpt_set_options()
267 device_get_unit(mpt->dev), "role", &tval) == 0 && tval >= 0 && in mpt_set_options()
277 device_get_unit(mpt->dev), "msi_enable", &tval) == 0) { in mpt_set_options()
309 device_get_unit(mpt2->dev));
368 mpt->unit = device_get_unit(dev); in mpt_pci_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/
H A Diicbus.c108 device_get_unit(dev), "strict", &strict) == 0) in iicbus_attach_common()
119 printf("Probing for devices on iicbus%d:", device_get_unit(dev)); in iicbus_attach_common()
316 resource_int_value(device_get_name(dev), device_get_unit(dev), in iicbus_init_frequency()

12345678910>>...20