Home
last modified time | relevance | path

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

12345678910>>...22

/freebsd-12.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-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/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-12.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-12.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-12.1/sys/dev/coretemp/
H A Dcoretemp.c148 if (!bootverbose && device_get_unit(dev) != 0) in coretemp_probe()
364 msr = coretemp_get_thermal_msr(device_get_unit(dev)); in coretemp_get_val_sysctl()
392 coretemp_clear_thermal_msr(device_get_unit(dev)); in coretemp_get_val_sysctl()
430 msr = coretemp_get_thermal_msr(device_get_unit(dev)); in coretemp_throttle_log_sysctl()
434 coretemp_clear_thermal_msr(device_get_unit(dev)); in coretemp_throttle_log_sysctl()
447 coretemp_clear_thermal_msr(device_get_unit(dev)); in coretemp_throttle_log_sysctl()
/freebsd-12.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-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()
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-12.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-12.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.c437 KASSERT((device_get_unit(dev) == 0), in ar71xx_gpio_attach()
471 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()
548 device_get_unit(dev), in ar71xx_gpio_attach()
555 device_get_unit(dev), in ar71xx_gpio_attach()
/freebsd-12.1/sys/mips/atheros/ar531x/
H A Dar5315_gpio.c338 KASSERT((device_get_unit(dev) == 0), in ar5315_gpio_attach()
372 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()
440 device_get_unit(dev), in ar5315_gpio_attach()
447 device_get_unit(dev), in ar5315_gpio_attach()
/freebsd-12.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()
98 if (resource_int_value("nvram", device_get_unit(dev), in nvram2env_probe()
/freebsd-12.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-12.1/sys/sparc64/sparc64/
H A Dsc_machdep.c91 unit = device_get_unit(dev); in sc_probe()
104 return (sc_attach_unit(device_get_unit(dev), in sc_attach()
/freebsd-12.1/sys/dev/dcons/
H A Ddcons_crom.c88 BUS_ADD_CHILD(parent, 0, "dcons_crom", device_get_unit(parent)); in dcons_crom_identify()
97 if(device_get_unit(dev) != device_get_unit(pa)){ in dcons_crom_probe()
/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/isp/
H A Disp_pci.c491 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()
543 if (resource_string_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()
591 tval = resource_string_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()
1915 device_get_unit(dev), "msix", &max_irq); in isp_pci_irqsetup()
[all …]
/freebsd-12.1/sys/dev/acpica/
H A Dacpi_hpet.c157 vdso_th->th_x86_hpet_idx = device_get_unit(sc->dev); in hpet_vdso_timehands()
172 vdso_th32->th_x86_hpet_idx = device_get_unit(sc->dev); in hpet_vdso_timehands32()
568 if (device_get_unit(dev) == 0) { in hpet_attach()
582 if (resource_int_value(device_get_name(dev), device_get_unit(dev), in hpet_attach()
588 resource_int_value(device_get_name(dev), device_get_unit(dev), in hpet_attach()
630 resource_int_value(device_get_name(dev), device_get_unit(dev), in hpet_attach()
635 resource_int_value(device_get_name(dev), device_get_unit(dev), in hpet_attach()
806 error = make_dev_s(&mda, &sc->pdev, "hpet%d", device_get_unit(dev)); in hpet_attach()
826 device_get_unit(dev), error); in hpet_attach()
/freebsd-12.1/sys/dev/iicbus/
H A Diicbus.c106 device_get_unit(dev), "strict", &strict) == 0) in iicbus_attach()
117 printf("Probing for devices on iicbus%d:", device_get_unit(dev)); in iicbus_attach()
297 resource_int_value(device_get_name(dev), device_get_unit(dev), in iicbus_init_frequency()
/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/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-12.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-12.1/sys/dev/cardbus/
H A Dcardbus_device.c118 minor = (device_get_unit(sc->sc_dev) << 8) + devi->pci.cfg.func; in cardbus_device_create()
119 unit = device_get_unit(sc->sc_dev); in cardbus_device_create()

12345678910>>...22