| /NextBSD/sys/dev/etherswitch/arswitch/ |
| HD | arswitch_8327.c | 87 if (arswitch_waitreg(sc->sc_dev, AR8327_REG_VTU_FUNC1, in ar8327_vlan_op() 96 err = arswitch_writereg(sc->sc_dev, AR8327_REG_VTU_FUNC0, data); in ar8327_vlan_op() 110 arswitch_writereg(sc->sc_dev, AR8327_REG_VTU_FUNC1, op); in ar8327_vlan_op() 115 if (arswitch_waitreg(sc->sc_dev, AR8327_REG_VTU_FUNC1, in ar8327_vlan_op() 126 device_printf(sc->sc_dev, in ar8327_phy_fixup() 133 arswitch_writedbg(sc->sc_dev, phy, 0, 0x02ea); in ar8327_phy_fixup() 135 arswitch_writedbg(sc->sc_dev, phy, 0x3d, 0x68a0); in ar8327_phy_fixup() 139 arswitch_writemmd(sc->sc_dev, phy, 0x7, 0x3c); in ar8327_phy_fixup() 140 arswitch_writemmd(sc->sc_dev, phy, 0x4007, 0x0); in ar8327_phy_fixup() 143 arswitch_writemmd(sc->sc_dev, phy, 0x3, 0x800d); in ar8327_phy_fixup() [all …]
|
| HD | arswitch_8316.c | 80 arswitch_writereg(sc->sc_dev, AR8X16_REG_MODE, in ar8316_hw_setup() 82 device_printf(sc->sc_dev, in ar8316_hw_setup() 86 arswitch_writereg(sc->sc_dev, AR8X16_REG_MODE, in ar8316_hw_setup() 88 device_printf(sc->sc_dev, in ar8316_hw_setup() 92 arswitch_writereg(sc->sc_dev, AR8X16_REG_MODE, in ar8316_hw_setup() 94 device_printf(sc->sc_dev, "%s: MAC port == GMII\n", __func__); in ar8316_hw_setup() 96 device_printf(sc->sc_dev, "%s: unknown switch PHY config\n", in ar8316_hw_setup() 107 device_printf(sc->sc_dev, in ar8316_hw_setup() 112 arswitch_writedbg(sc->sc_dev, 4, 0x12, 0x480c); in ar8316_hw_setup() 114 arswitch_writedbg(sc->sc_dev, 4, 0x0, 0x824e); in ar8316_hw_setup() [all …]
|
| HD | arswitch_9340.c | 85 arswitch_writereg(sc->sc_dev, AR8X16_REG_CPU_PORT, in ar9340_hw_global_setup() 89 arswitch_writereg(sc->sc_dev, AR8X16_REG_TAG_PRIO, 0xfa50); in ar9340_hw_global_setup() 92 arswitch_writereg(sc->sc_dev, AR934X_REG_AT_CTRL, in ar9340_hw_global_setup() 98 arswitch_modifyreg(sc->sc_dev, AR934X_REG_QM_CTRL, in ar9340_hw_global_setup() 102 arswitch_modifyreg(sc->sc_dev, AR934X_REG_FLOOD_MASK, in ar9340_hw_global_setup() 105 arswitch_modifyreg(sc->sc_dev, AR934X_REG_FLOOD_MASK, in ar9340_hw_global_setup() 110 arswitch_modifyreg(sc->sc_dev, AR8X16_REG_MIB_FUNC0, in ar9340_hw_global_setup() 114 arswitch_modifyreg(sc->sc_dev, AR8X16_REG_GLOBAL_CTRL, in ar9340_hw_global_setup() 119 arswitch_modifyreg(sc->sc_dev, AR8X16_REG_SERVICE_TAG, in ar9340_hw_global_setup() 133 device_printf(sc->sc_dev, "%s: GMII\n", __func__); in ar9340_hw_global_setup() [all …]
|
| HD | arswitch_vlans.c | 63 if (arswitch_waitreg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, in ar8xxx_vlan_op() 69 err = arswitch_writereg(sc->sc_dev, AR8X16_REG_VLAN_DATA, in ar8xxx_vlan_op() 78 arswitch_writereg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, op); in ar8xxx_vlan_op() 81 if (arswitch_waitreg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, in ar8xxx_vlan_op() 116 reg = arswitch_readreg(sc->sc_dev, AR8X16_REG_VLAN_DATA); in ar8xxx_get_dot1q_vlan() 149 reg = arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_VLAN(port)); in ar8xxx_get_port_vlan() 163 err = arswitch_modifyreg(sc->sc_dev, AR8X16_REG_PORT_VLAN(port), in ar8xxx_set_port_vlan() 189 if (arswitch_modifyreg(sc->sc_dev, AR8X16_REG_PORT_CTRL(i), in ar8xxx_reset_vlans() 209 arswitch_modifyreg(sc->sc_dev, in ar8xxx_reset_vlans() 237 arswitch_modifyreg(sc->sc_dev, in ar8xxx_reset_vlans() [all …]
|
| HD | arswitch_7240.c | 85 arswitch_writereg(sc->sc_dev, AR8X16_REG_CPU_PORT, in ar7240_hw_global_setup() 89 arswitch_writereg(sc->sc_dev, AR8X16_REG_TAG_PRIO, 0xfa50); in ar7240_hw_global_setup() 92 arswitch_writereg(sc->sc_dev, AR8X16_REG_FLOOD_MASK, in ar7240_hw_global_setup() 96 arswitch_modifyreg(sc->sc_dev, AR8X16_REG_GLOBAL_CTRL, in ar7240_hw_global_setup() 101 arswitch_modifyreg(sc->sc_dev, AR8X16_REG_SERVICE_TAG, in ar7240_hw_global_setup()
|
| HD | arswitch.c | 169 snprintf(name, IFNAMSIZ, "%sport", device_get_nameunit(sc->sc_dev)); in arswitch_attach_phys() 179 err = mii_attach(sc->sc_dev, &sc->miibus[phy], sc->ifp[phy], in arswitch_attach_phys() 183 DPRINTF(sc->sc_dev, "%s attached to pseudo interface %s\n", in arswitch_attach_phys() 188 device_printf(sc->sc_dev, in arswitch_attach_phys() 242 arswitch_writereg(sc->sc_dev, AR8X16_REG_PORT_STS(0), in ar8xxx_port_init() 250 arswitch_writereg(sc->sc_dev, AR8X16_REG_PORT_CTRL(0), in ar8xxx_port_init() 251 arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_CTRL(0)) & in ar8xxx_port_init() 255 arswitch_writereg(sc->sc_dev, AR8X16_REG_PORT_STS(port), in ar8xxx_port_init() 257 arswitch_writereg(sc->sc_dev, AR8X16_REG_PORT_CTRL(port), in ar8xxx_port_init() 258 arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_CTRL(port)) & in ar8xxx_port_init() [all …]
|
| /NextBSD/sys/dev/etherswitch/ip17x/ |
| HD | ip175d.c | 64 ip17x_writephy(sc->sc_dev, IP175D_RESET_PHY, IP175D_RESET_REG, 0x175d); in ip175d_reset() 68 ip17x_updatephy(sc->sc_dev, 21, 22, 0x3, 0x0); in ip175d_reset() 71 ip17x_writephy(sc->sc_dev, 22, 3, 0x8100); in ip175d_reset() 100 ip17x_writephy(sc->sc_dev, 22, 14 + i, i + 1); in ip175d_hw_setup() 109 ip17x_writephy(sc->sc_dev, 22, 14 + i, in ip175d_hw_setup() 124 ip17x_writephy(sc->sc_dev, 23, i, in ip175d_hw_setup() 126 ip17x_writephy(sc->sc_dev, 23, i + 8, in ip175d_hw_setup() 128 ip17x_writephy(sc->sc_dev, 23, i + 16, in ip175d_hw_setup() 133 ip17x_writephy(sc->sc_dev, 22, 10, vlan_mask); in ip175d_hw_setup() 137 ip17x_writephy(sc->sc_dev, 22, 4 + i, sc->pvid[i]); in ip175d_hw_setup() [all …]
|
| HD | ip175c.c | 63 if (ip17x_writephy(sc->sc_dev, IP175C_RESET_PHY, IP175C_RESET_REG, in ip175c_reset() 69 data = ip17x_readphy(sc->sc_dev, IP175C_MODE_PHY, IP175C_MODE_REG); in ip175c_reset() 71 if (ip17x_writephy(sc->sc_dev, IP175C_MODE_PHY, IP175C_MODE_REG, in ip175c_reset() 111 err = ip17x_writephy(sc->sc_dev, 29, 19, reg[0]); in ip175c_port_vlan_setup() 113 err = ip17x_writephy(sc->sc_dev, 29, 20, reg[1]); in ip175c_port_vlan_setup() 115 err = ip17x_updatephy(sc->sc_dev, 29, 21, 0xff00, reg[2]); in ip175c_port_vlan_setup() 117 err = ip17x_updatephy(sc->sc_dev, 30, 18, 0x00ff, reg[2]); in ip175c_port_vlan_setup() 139 if (ip17x_writephy(sc->sc_dev, 29, 23, data)) in ip175c_dot1q_vlan_setup() 143 if (ip17x_updatephy(sc->sc_dev, 30, 9, 0x70, 0)) in ip175c_dot1q_vlan_setup() 158 if (ip17x_writephy(sc->sc_dev, 30, i, data)) in ip175c_dot1q_vlan_setup() [all …]
|
| /NextBSD/sys/dev/gpio/ |
| HD | gpioiic.c | 61 device_t sc_dev; member 104 sc->sc_dev = dev; in gpioiic_attach() 147 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->sda_pin, in gpioiic_reset_bus() 149 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->scl_pin, in gpioiic_reset_bus() 165 error = GPIOBUS_ACQUIRE_BUS(sc->sc_busdev, sc->sc_dev, how); in gpioiic_callback() 168 GPIOBUS_RELEASE_BUS(sc->sc_busdev, sc->sc_dev); in gpioiic_callback() 183 GPIOBUS_PIN_SET(sc->sc_busdev, sc->sc_dev, sc->sda_pin, 0); in gpioiic_setsda() 184 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->sda_pin, in gpioiic_setsda() 187 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->sda_pin, in gpioiic_setsda() 198 GPIOBUS_PIN_SET(sc->sc_busdev, sc->sc_dev, sc->scl_pin, 0); in gpioiic_setscl() [all …]
|
| HD | gpiobacklight.c | 58 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \ 64 device_t sc_dev; member 84 error = GPIOBUS_ACQUIRE_BUS(sc->sc_busdev, sc->sc_dev, in gpiobacklight_update_brightness() 90 error = GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, in gpiobacklight_update_brightness() 93 GPIOBUS_PIN_SET(sc->sc_busdev, sc->sc_dev, GPIOBL_PIN, in gpiobacklight_update_brightness() 95 GPIOBUS_RELEASE_BUS(sc->sc_busdev, sc->sc_dev); in gpiobacklight_update_brightness() 159 sc->sc_dev = dev; in gpiobacklight_attach() 172 ctx = device_get_sysctl_ctx(sc->sc_dev); in gpiobacklight_attach() 173 tree = device_get_sysctl_tree(sc->sc_dev); in gpiobacklight_attach()
|
| /NextBSD/sys/arm/ti/usb/ |
| HD | omap_host.c | 108 device_t sc_dev; member 147 device_printf(isc->sc_dev, "UHH revision 0x%08x\n", isc->uhh_rev); in omap_uhh_init() 160 device_printf(isc->sc_dev, in omap_uhh_init() 163 device_printf(isc->sc_dev, in omap_uhh_init() 168 device_printf(isc->sc_dev, in omap_uhh_init() 173 device_printf(isc->sc_dev, in omap_uhh_init() 177 device_printf(isc->sc_dev, "unknown port mode %d for port 0\n", isc->port_mode[0]); in omap_uhh_init() 184 device_printf(isc->sc_dev, in omap_uhh_init() 187 device_printf(isc->sc_dev, in omap_uhh_init() 192 device_printf(isc->sc_dev, in omap_uhh_init() [all …]
|
| /NextBSD/sys/arm/xscale/ixp425/ |
| HD | ixp425_npe.c | 106 device_t sc_dev; member 239 DPRINTFn(9, sc->sc_dev, "%s(0x%lx) => 0x%x\n", __func__, off, v); in npe_reg_read() 246 DPRINTFn(9, sc->sc_dev, "%s(0x%lx, 0x%x)\n", __func__, off, val); in npe_reg_write() 301 sc->sc_dev = dev; in ixpnpe_attach() 353 bus_teardown_intr(sc->sc_dev, sc->sc_irq, sc->sc_ih); in ixpnpe_detach() 373 DPRINTF(sc->sc_dev, "%s: error %d\n", __func__, error); in ixpnpe_stopandreset() 389 DPRINTF(sc->sc_dev, "%s: error %d\n", __func__, error); in ixpnpe_start_locked() 415 DPRINTF(sc->sc_dev, "%s: error %d\n", __func__, error); in ixpnpe_stop() 447 DPRINTF(sc->sc_dev, "%s: off %u mark 0x%x id 0x%x size %u\n", in npe_findimage() 456 DPRINTF(sc->sc_dev, "imageId 0x%08x not found in " in npe_findimage() [all …]
|
| /NextBSD/sys/dev/acpi_support/ |
| HD | atk0110.c | 69 struct device *sc_dev; member 123 sc->sc_dev = dev; in aibs_attach() 166 device_printf(sc->sc_dev, "%s not found\n", name); in aibs_attach_sif() 173 device_printf(sc->sc_dev, "%s[0]: invalid type\n", name); in aibs_attach_sif() 180 device_printf(sc->sc_dev, "%s: invalid package\n", name); in aibs_attach_sif() 189 device_printf(sc->sc_dev, "%s: malformed package: %i/%i" in aibs_attach_sif() 193 device_printf(sc->sc_dev, "%s: no members in the package\n", in aibs_attach_sif() 201 device_printf(sc->sc_dev, "%s: malloc fail\n", name); in aibs_attach_sif() 218 so = SYSCTL_ADD_NODE(device_get_sysctl_ctx(sc->sc_dev), in aibs_attach_sif() 219 SYSCTL_CHILDREN(device_get_sysctl_tree(sc->sc_dev)), st, in aibs_attach_sif() [all …]
|
| /NextBSD/sys/dev/iicbus/ |
| HD | ds1307.c | 58 device_t sc_dev; member 94 error = ds1307_read(sc->sc_dev, sc->sc_addr, DS1307_CONTROL, in ds1307_ctrl_read() 97 device_printf(sc->sc_dev, "cannot read from RTC.\n"); in ds1307_ctrl_read() 112 error = ds1307_write(sc->sc_dev, sc->sc_addr, data, sizeof(data)); in ds1307_ctrl_write() 114 device_printf(sc->sc_dev, "cannot write to RTC.\n"); in ds1307_ctrl_write() 126 error = ds1307_read(sc->sc_dev, sc->sc_addr, DS1307_SECS, in ds1307_osc_enable() 129 device_printf(sc->sc_dev, "cannot read from RTC.\n"); in ds1307_osc_enable() 135 device_printf(sc->sc_dev, "clock was halted, check the battery.\n"); in ds1307_osc_enable() 138 error = ds1307_write(sc->sc_dev, sc->sc_addr, data, sizeof(data)); in ds1307_osc_enable() 140 device_printf(sc->sc_dev, "cannot write to RTC.\n"); in ds1307_osc_enable() [all …]
|
| HD | ds3231.c | 58 device_t sc_dev; member 96 error = ds3231_read(sc->sc_dev, sc->sc_addr, DS3231_CONTROL, in ds3231_ctrl_read() 99 device_printf(sc->sc_dev, "cannot read from RTC.\n"); in ds3231_ctrl_read() 115 error = ds3231_write(sc->sc_dev, sc->sc_addr, data, sizeof(data)); in ds3231_ctrl_write() 117 device_printf(sc->sc_dev, "cannot write to RTC.\n"); in ds3231_ctrl_write() 128 error = ds3231_read(sc->sc_dev, sc->sc_addr, DS3231_STATUS, in ds3231_status_read() 131 device_printf(sc->sc_dev, "cannot read from RTC.\n"); in ds3231_status_read() 150 error = ds3231_write(sc->sc_dev, sc->sc_addr, data, sizeof(data)); in ds3231_status_write() 152 device_printf(sc->sc_dev, "cannot write to RTC.\n"); in ds3231_status_write() 164 error = ds3231_read(sc->sc_dev, sc->sc_addr, DS3231_HOUR, in ds3231_set_24hrs_mode() [all …]
|
| /NextBSD/sys/dev/iwm/ |
| HD | if_iwm.c | 409 device_printf(sc->sc_dev, in iwm_set_default_calib() 463 device_printf(sc->sc_dev, in iwm_read_firmware() 477 device_printf(sc->sc_dev, "invalid firmware %s\n", in iwm_read_firmware() 500 device_printf(sc->sc_dev, in iwm_read_firmware() 510 device_printf(sc->sc_dev, in iwm_read_firmware() 530 device_printf(sc->sc_dev, in iwm_read_firmware() 541 device_printf(sc->sc_dev, in iwm_read_firmware() 564 device_printf(sc->sc_dev, in iwm_read_firmware() 573 device_printf(sc->sc_dev, in iwm_read_firmware() 581 device_printf(sc->sc_dev, in iwm_read_firmware() [all …]
|
| /NextBSD/sys/dev/sound/sbus/ |
| HD | cs4231.c | 116 struct device *sc_dev; member 334 sc->sc_dev = dev; in cs4231_sbus_attach() 339 burst = sbus_get_burstsz(sc->sc_dev); in cs4231_sbus_attach() 364 sc->sc_dev = dev; in cs4231_ebus_attach() 379 sc->sc_lock = snd_mtxcreate(device_get_nameunit(sc->sc_dev), in cs4231_attach_common() 384 if ((sc->sc_res[i] = bus_alloc_resource_any(sc->sc_dev, in cs4231_attach_common() 386 device_printf(sc->sc_dev, in cs4231_attach_common() 395 if ((sc->sc_irqres[i] = bus_alloc_resource_any(sc->sc_dev, in cs4231_attach_common() 399 device_printf(sc->sc_dev, in cs4231_attach_common() 402 device_printf(sc->sc_dev, "cannot allocate %s " in cs4231_attach_common() [all …]
|
| /NextBSD/sys/arm/arm/ |
| HD | pl310.c | 103 device_printf(sc->sc_dev, "Early BRESP response: %s\n", in pl310_print_config() 105 device_printf(sc->sc_dev, "Instruction prefetch: %s\n", in pl310_print_config() 107 device_printf(sc->sc_dev, "Data prefetch: %s\n", in pl310_print_config() 109 device_printf(sc->sc_dev, "Non-secure interrupt control: %s\n", in pl310_print_config() 111 device_printf(sc->sc_dev, "Non-secure lockdown: %s\n", in pl310_print_config() 113 device_printf(sc->sc_dev, "Share override: %s\n", in pl310_print_config() 116 device_printf(sc->sc_dev, "Double linefill: %s\n", in pl310_print_config() 118 device_printf(sc->sc_dev, "Instruction prefetch: %s\n", in pl310_print_config() 120 device_printf(sc->sc_dev, "Data prefetch: %s\n", in pl310_print_config() 122 device_printf(sc->sc_dev, "Double linefill on WRAP request: %s\n", in pl310_print_config() [all …]
|
| /NextBSD/sys/mips/cavium/ |
| HD | octeon_wdog.c | 52 device_t sc_dev; member 133 device_printf(sc->sc_dev, "%s: cmd: %x\n", __func__, cmd); in octeon_wdog_watchdog_fn() 153 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in octeon_wdog_sysctl() 154 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in octeon_wdog_sysctl() 176 csc->csc_intr = bus_alloc_resource(sc->sc_dev, SYS_RES_IRQ, &rid, in octeon_wdog_setup() 182 error = bus_setup_intr(sc->sc_dev, csc->csc_intr, INTR_TYPE_MISC, in octeon_wdog_setup() 188 bus_bind_intr(sc->sc_dev, csc->csc_intr, core); in octeon_wdog_setup() 189 bus_describe_intr(sc->sc_dev, csc->csc_intr, csc->csc_intr_cookie, in octeon_wdog_setup() 237 sc->sc_dev = dev; in octeon_wdog_attach()
|
| /NextBSD/sys/dev/esp/ |
| HD | esp_sbus.c | 95 device_t sc_dev; member 210 esc->sc_dev = dev; in esp_sbus_attach() 269 lsc->sc_dev = dev; in esp_sbus_attach() 381 esc->sc_dev = dev; in esp_dma_attach() 457 sc->sc_id = OF_getscsinitid(esc->sc_dev); in espattach() 460 device_printf(esc->sc_dev, "%s: sc_id %d, freq %d\n", in espattach() 557 device_printf(esc->sc_dev, in espattach() 641 device_printf(esc->sc_dev, "lsi64854_attach failed\n"); in espattach() 647 if ((esc->sc_irqres = bus_alloc_resource_any(esc->sc_dev, SYS_RES_IRQ, in espattach() 649 device_printf(esc->sc_dev, "cannot allocate interrupt\n"); in espattach() [all …]
|
| HD | ncr53c9x.c | 244 device_printf(sc->sc_dev, "mutex not initialized\n"); in ncr53c9x_attach() 254 device_printf(sc->sc_dev, "unknown variant %d, devices not " in ncr53c9x_attach() 259 device_printf(sc->sc_dev, "%s, %d MHz, SCSI ID %d\n", in ncr53c9x_attach() 274 device_printf(sc->sc_dev, in ncr53c9x_attach() 285 device_printf(sc->sc_dev, in ncr53c9x_attach() 296 device_printf(sc->sc_dev, in ncr53c9x_attach() 336 device_printf(sc->sc_dev, "cannot allocate device queue\n"); in ncr53c9x_attach() 342 device_get_unit(sc->sc_dev), &sc->sc_lock, 1, NCR_TAG_DEPTH, devq); in ncr53c9x_attach() 344 device_printf(sc->sc_dev, "cannot allocate SIM entry\n"); in ncr53c9x_attach() 351 if (xpt_bus_register(sim, sc->sc_dev, 0) != CAM_SUCCESS) { in ncr53c9x_attach() [all …]
|
| /NextBSD/sys/dev/gem/ |
| HD | if_gem.c | 157 device_printf(sc->sc_dev, "flags=0x%x\n", sc->sc_flags); in gem_attach() 165 if_initname(ifp, device_get_name(sc->sc_dev), in gem_attach() 166 device_get_unit(sc->sc_dev)); in gem_attach() 183 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 1, 0, in gem_attach() 219 device_printf(sc->sc_dev, in gem_attach() 228 device_printf(sc->sc_dev, in gem_attach() 250 device_printf(sc->sc_dev, in gem_attach() 264 device_printf(sc->sc_dev, in gem_attach() 304 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp, in gem_attach() 332 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp, in gem_attach() [all …]
|
| /NextBSD/sys/powerpc/ps3/ |
| HD | if_glc.c | 131 sc->sc_dev = ps3bus_get_device(dev); in glc_attach() 146 lv1_net_stop_tx_dma(sc->sc_bus, sc->sc_dev, 0); in glc_attach() 147 lv1_net_stop_rx_dma(sc->sc_bus, sc->sc_dev, 0); in glc_attach() 156 lv1_net_control(sc->sc_bus, sc->sc_dev, GELIC_GET_MAC_ADDRESS, in glc_attach() 160 err = lv1_net_control(sc->sc_bus, sc->sc_dev, GELIC_GET_VLAN_ID, in glc_attach() 164 err = lv1_net_control(sc->sc_bus, sc->sc_dev, GELIC_GET_VLAN_ID, in glc_attach() 186 lv1_net_set_interrupt_status_indicator(sc->sc_bus, sc->sc_dev, in glc_attach() 188 lv1_net_set_interrupt_mask(sc->sc_bus, sc->sc_dev, in glc_attach() 300 lv1_net_stop_tx_dma(sc->sc_bus, sc->sc_dev, 0); in glc_init_locked() 301 lv1_net_stop_rx_dma(sc->sc_bus, sc->sc_dev, 0); in glc_init_locked() [all …]
|
| /NextBSD/sys/dev/ow/ |
| HD | owc_gpiobus.c | 58 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \ 64 device_t sc_dev; member 127 sc->sc_dev = dev; in owc_gpiobus_attach() 161 (sc)->sc_dev, GPIOBUS_WAIT) 163 (sc)->sc_dev) 165 (sc)->sc_dev, OW_PIN, GPIO_PIN_OUTPUT) 167 (sc)->sc_dev, OW_PIN, GPIO_PIN_INPUT) 169 (sc)->sc_dev, OW_PIN, bit) 171 (sc)->sc_dev, OW_PIN, GPIO_PIN_LOW)
|
| /NextBSD/sys/arm/ti/am335x/ |
| HD | am335x_lcd.c | 176 device_get_nameunit(_sc->sc_dev), "am335x_lcd", MTX_DEF) 198 device_t sc_dev; member 590 device_printf(sc->sc_dev, "can't set source frequency\n"); in am335x_lcd_configure() 595 device_printf(sc->sc_dev, "can't get reference frequency\n"); in am335x_lcd_configure() 606 bus_get_dma_tag(sc->sc_dev), in am335x_lcd_configure() 622 device_printf(sc->sc_dev, "cannot allocate framebuffer\n"); in am335x_lcd_configure() 630 device_printf(sc->sc_dev, "cannot load DMA map\n"); in am335x_lcd_configure() 769 sc->sc_fb_info.fb_name = device_get_nameunit(sc->sc_dev); in am335x_lcd_configure() 779 err = (sc_attach_unit(device_get_unit(sc->sc_dev), in am335x_lcd_configure() 780 device_get_flags(sc->sc_dev) | SC_AUTODETECT_KBD)); in am335x_lcd_configure() [all …]
|