Searched refs:sc_dev (Results 76 - 100 of 427) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/iicbus/
H A Dad7418.c68 device_t sc_dev; member in struct:ad7418_softc
122 sc->sc_dev = dev;
172 ad7418_write_1(sc->sc_dev, AD7418_CONF,
173 (ad7418_read_1(sc->sc_dev, AD7418_CONF) &~ AD7418_CONF_CHAN)|chan);
209 v = ad7418_read_2(sc->sc_dev, AD7418_TEMP);
213 v = ad7418_read_2(sc->sc_dev, AD7418_VOLT);
H A Dadt746x.c95 device_t sc_dev; member in struct:adt746x_softc
225 sc->sc_dev = dev;
268 adt746x_read(sc->sc_dev, sc->sc_addr, ADT746X_DEVICE_ID, &did);
269 adt746x_read(sc->sc_dev, sc->sc_addr, ADT746X_COMPANY_ID, &cid);
270 adt746x_read(sc->sc_dev, sc->sc_addr, ADT746X_REV_ID, &rev);
271 adt746x_read(sc->sc_dev, sc->sc_addr, ADT746X_CONFIG, &conf);
285 adt746x_write(sc->sc_dev, sc->sc_addr, ADT746X_CONFIG, &conf);
320 adt746x_read(sc->sc_dev, sc->sc_addr, mode, &manual);
322 adt746x_write(sc->sc_dev, sc->sc_addr, mode, &manual);
325 adt746x_write(sc->sc_dev, s
[all...]
H A Dds3231.c58 device_t sc_dev; member in struct:ds3231_softc
89 error = ds3231_read1(sc->sc_dev, DS3231_CONTROL, &sc->sc_ctrl);
91 device_printf(sc->sc_dev, "cannot read from RTC.\n");
105 error = ds3231_write1(sc->sc_dev, DS3231_CONTROL, data);
107 device_printf(sc->sc_dev, "cannot write to RTC.\n");
117 error = ds3231_read1(sc->sc_dev, DS3231_STATUS, &sc->sc_status);
119 device_printf(sc->sc_dev, "cannot read from RTC.\n");
137 error = ds3231_write1(sc->sc_dev, DS3231_STATUS, data);
139 device_printf(sc->sc_dev, "cannot write to RTC.\n");
151 error = iicdev_readfrom(sc->sc_dev, DS3231_TEM
[all...]
H A Diic.c49 device_t sc_dev; member in struct:iic_softc
133 sc->sc_dev = dev;
186 iicdev = priv->sc->sc_dev;
206 parent = device_get_parent(priv->sc->sc_dev);
260 parent = device_get_parent(priv->sc->sc_dev);
262 error = iicbus_request_bus(parent, priv->sc->sc_dev,
277 iicbus_release_bus(parent, priv->sc->sc_dev);
285 iicbus_release_bus(parent, priv->sc->sc_dev);
299 iicdev = priv->sc->sc_dev;
374 iicdev = priv->sc->sc_dev;
[all...]
/freebsd-11-stable/sys/dev/dpaa/
H A Dif_dtsec_rm.c114 device_get_nameunit(sc->sc_dev));
180 device_printf(sc->sc_dev, "couldn't configure FM Port RX.\n");
186 device_printf(sc->sc_dev, "couldn't initialize FM Port RX.\n");
192 device_printf(sc->sc_dev, "RX hw port 0x%02x initialized.\n",
226 device_printf(sc->sc_dev, "couldn't configure FM Port TX.\n");
232 device_printf(sc->sc_dev, "couldn't initialize FM Port TX.\n");
238 device_printf(sc->sc_dev, "TX hw port 0x%02x initialized.\n",
313 device_get_nameunit(sc->sc_dev));
369 device_printf(sc->sc_dev, "RX error: 0x%08X\n",
410 device_printf(sc->sc_dev, "T
[all...]
/freebsd-11-stable/sys/dev/cas/
H A Dif_cas.c196 if_initname(ifp, device_get_name(sc->sc_dev),
197 device_get_unit(sc->sc_dev));
214 device_printf(sc->sc_dev, "could not create taskqueue\n");
219 device_get_nameunit(sc->sc_dev));
221 device_printf(sc->sc_dev, "could not start threads\n");
228 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 1, 0,
264 device_printf(sc->sc_dev,
273 device_printf(sc->sc_dev,
295 device_printf(sc->sc_dev,
311 device_printf(sc->sc_dev,
[all...]
/freebsd-11-stable/sys/arm/allwinner/a10/
H A Da10_intc.c108 device_t sc_dev; member in struct:a10_aintc_softc
225 device_printf(sc->sc_dev, "Spurious interrupt %d\n", irq);
231 device_printf(sc->sc_dev, "Spurious interrupt %d\n",
239 device_printf(sc->sc_dev,
259 name = device_get_nameunit(sc->sc_dev);
264 sc->sc_dev, 0, "%s,%u", name, irq);
269 xref = OF_xref_from_node(ofw_bus_get_node(sc->sc_dev));
270 pic = intr_pic_register(sc->sc_dev, xref);
274 return (intr_pic_claim_root(sc->sc_dev, xref, a10_intr, sc, 0));
364 sc->sc_dev
[all...]
/freebsd-11-stable/sys/dev/etherswitch/arswitch/
H A Darswitch.c169 snprintf(name, IFNAMSIZ, "%sport", device_get_nameunit(sc->sc_dev));
179 err = mii_attach(sc->sc_dev, &sc->miibus[phy], sc->ifp[phy],
183 DPRINTF(sc->sc_dev, "%s attached to pseudo interface %s\n",
188 device_printf(sc->sc_dev,
242 arswitch_writereg(sc->sc_dev, AR8X16_REG_PORT_STS(0),
250 arswitch_writereg(sc->sc_dev, AR8X16_REG_PORT_CTRL(0),
251 arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_CTRL(0)) &
255 arswitch_writereg(sc->sc_dev, AR8X16_REG_PORT_STS(port),
257 arswitch_writereg(sc->sc_dev, AR8X16_REG_PORT_CTRL(port),
258 arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_CTR
[all...]
/freebsd-11-stable/sys/arm/ti/twl/
H A Dtwl.c97 device_t sc_dev; member in struct:twl_softc
115 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \
254 device_printf(sc->sc_dev, "iicbus write failed (adr:0x%02x, reg:0x%02x)\n",
285 if (iicbus_transfer(sc->sc_dev, &msg, 1) != 0)
319 device_printf(sc->sc_dev, "Found (sub)device at 0x%02x\n", (base + i));
361 sc->sc_dev = dev;
405 sc->sc_dev = dev;
/freebsd-11-stable/sys/dev/gem/
H A Dif_gem.c157 device_printf(sc->sc_dev, "flags=0x%x\n", sc->sc_flags);
165 if_initname(ifp, device_get_name(sc->sc_dev),
166 device_get_unit(sc->sc_dev));
183 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 1, 0,
219 device_printf(sc->sc_dev,
228 device_printf(sc->sc_dev,
250 device_printf(sc->sc_dev,
264 device_printf(sc->sc_dev,
304 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp,
332 error = mii_attach(sc->sc_dev,
[all...]
/freebsd-11-stable/sys/dev/snc/
H A Ddp83932.c160 device_printf(sc->sc_dev, "can not if_alloc()\n");
165 device_printf(sc->sc_dev,
172 if_initname(ifp, device_get_name(sc->sc_dev),
173 device_get_unit(sc->sc_dev));
512 device_get_nameunit(sc->sc_dev));
515 device_get_nameunit(sc->sc_dev));
566 device_get_nameunit(sc->sc_dev));
699 device_get_nameunit(sc->sc_dev));
708 device_printf(sc->sc_dev,
835 device_printf(sc->sc_dev,
[all...]
/freebsd-11-stable/sys/dev/ath/
H A Dif_ath_descdma.c180 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), /* parent */
193 device_printf(sc->sc_dev,
203 device_printf(sc->sc_dev,
214 device_printf(sc->sc_dev,
265 device_printf(sc->sc_dev,
293 device_printf(sc->sc_dev, "unable to create dmamap "
353 device_printf(sc->sc_dev,
370 device_printf(sc->sc_dev, "unable to create dmamap "
409 device_printf(sc->sc_dev,
H A Dif_ath.c418 device_printf(sc->sc_dev, "%s: refcnt=0?\n", __func__);
462 device_printf(sc->sc_dev, "configuring for %s\n",
468 device_printf(sc->sc_dev, "CUS217 card detected\n");
471 device_printf(sc->sc_dev, "CUS252 card detected\n");
474 device_printf(sc->sc_dev, "WB335 1-ANT card detected\n");
477 device_printf(sc->sc_dev, "WB335 2-ANT card detected\n");
480 device_printf(sc->sc_dev,
484 device_printf(sc->sc_dev, "Killer Wireless card detected\n");
500 device_printf(sc->sc_dev, "Set BT/WLAN RX diversity capability\n");
506 device_printf(sc->sc_dev, "Enabl
[all...]
/freebsd-11-stable/sys/dev/esp/
H A Desp_pci.c100 device_t sc_dev; member in struct:esp_pci_softc
217 esc->sc_dev = dev;
308 sc->sc_dev = esc->sc_dev;
311 device_printf(esc->sc_dev, "ncr53c9x_attach failed\n");
318 bus_teardown_intr(esc->sc_dev, esc->sc_res[ESP_PCI_RES_INTR],
343 bus_teardown_intr(esc->sc_dev, esc->sc_res[ESP_PCI_RES_INTR],
449 device_printf(esc->sc_dev, "DMA error detected; Aborting.\n");
458 device_printf(esc->sc_dev, "DMA aborted.\n");
/freebsd-11-stable/sys/powerpc/mpc85xx/
H A Dpci_mpc85xx.c126 device_t sc_dev; member in struct:fsl_pcib_softc
287 sc->sc_dev = dev;
545 fsl_pcib_write_config(sc->sc_dev, bus, slot, fn, 0x52, 0x34, 1);
546 fsl_pcib_write_config(sc->sc_dev, bus, slot, fn, 0x77, 0x00, 1);
547 fsl_pcib_write_config(sc->sc_dev, bus, slot, fn, 0x83, 0x98, 1);
548 fsl_pcib_write_config(sc->sc_dev, bus, slot, fn, 0x85, 0x03, 1);
551 fsl_pcib_write_config(sc->sc_dev, bus, slot, fn, 0x40, 0x0b, 1);
569 hdrtype = fsl_pcib_read_config(sc->sc_dev, bus, slot,
578 vendor = fsl_pcib_read_config(sc->sc_dev, bus, slot,
580 device = fsl_pcib_read_config(sc->sc_dev, bu
[all...]
/freebsd-11-stable/sys/arm/mv/
H A Dmv_pci.c279 device_t sc_dev; member in struct:mv_pcib_softc
426 sc->sc_dev = self;
490 mv_pcib_maxslots(sc->sc_dev));
680 mv_pcib_write_config(sc->sc_dev, bus, slot, func, reg, ~0, 4);
681 bar = mv_pcib_read_config(sc->sc_dev, bus, slot, func, reg, 4);
696 mv_pcib_write_config(sc->sc_dev, bus, slot, func, reg, addr, 4);
698 mv_pcib_write_config(sc->sc_dev, bus, slot, func, reg + 4,
717 mv_pcib_write_config(sc->sc_dev, bus, slot, func, PCIR_IOBASEL_1,
719 mv_pcib_write_config(sc->sc_dev, bus, slot, func, PCIR_IOBASEH_1,
721 mv_pcib_write_config(sc->sc_dev, bu
[all...]
/freebsd-11-stable/sys/dev/wpi/
H A Dif_wpi.c342 sc->sc_dev = dev;
345 error = resource_int_value(device_get_name(sc->sc_dev),
346 device_get_unit(sc->sc_dev), "debug", &(sc->sc_debug));
489 device_printf(sc->sc_dev, "Regulatory Domain: %.4s\n",
491 device_printf(sc->sc_dev, "Hardware Type: %c\n",
493 device_printf(sc->sc_dev, "Hardware Revision: %c\n",
495 device_printf(sc->sc_dev, "SKU %s support 802.11a\n",
585 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev);
586 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev);
785 device_printf(sc->sc_dev, "coul
[all...]
/freebsd-11-stable/sys/arm/ti/am335x/
H A Dam335x_ecap.c71 device_get_nameunit(_sc->sc_dev), "am335x_ecap softc", MTX_DEF)
79 device_t sc_dev; member in struct:am335x_ecap_softc
162 sc->sc_dev = dev;
H A Dam335x_pmic.c61 device_t sc_dev; member in struct:am335x_pmic_softc
116 rv = am335x_pmic_read(sc->sc_dev, TPS65217_INT_REG, (uint8_t *)&int_reg, 1);
118 device_printf(sc->sc_dev, "Cannot read interrupt register\n");
122 rv = am335x_pmic_read(sc->sc_dev, TPS65217_STATUS_REG, (uint8_t *)&status_reg, 1);
124 device_printf(sc->sc_dev, "Cannot read status register\n");
148 sc->sc_dev = dev;
/freebsd-11-stable/sys/arm/at91/
H A Dat91_rst.c63 device_t sc_dev; member in struct:at91_rst_softc
124 sc->sc_dev = dev;
194 device_printf(sc->sc_dev, "shutting down...\n");
/freebsd-11-stable/sys/powerpc/ps3/
H A Dps3disk.c60 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), "ps3disk", MTX_DEF)
102 device_t sc_dev; member in struct:ps3disk_softc
166 sc->sc_dev = dev;
377 ps3bus_get_device(sc->sc_dev), LV1_STORAGE_ATA_HDDOUT,
415 device_t dev = sc->sc_dev;
434 device_printf(sc->sc_dev, "%s error (%#lx)\n",
469 device_t dev = sc->sc_dev;
500 device_t dev = sc->sc_dev;
593 uint64_t devid = ps3bus_get_device(sc->sc_dev);
637 device_printf(sc->sc_dev, "Coul
[all...]
/freebsd-11-stable/sys/arm/xscale/ixp425/
H A Dixp425_timer.c64 device_t sc_dev; member in struct:ixpclk_softc
108 sc->sc_dev = dev;
152 device_t dev = sc->sc_dev;
/freebsd-11-stable/sys/dev/etherswitch/
H A Detherswitch.c48 device_t sc_dev; member in struct:etherswitch_softc
107 sc->sc_dev = dev;
139 device_t dev = sc->sc_dev;
/freebsd-11-stable/sys/dev/iwm/
H A Dif_iwm_binding.c183 device_printf(sc->sc_dev,
189 device_printf(sc->sc_dev,
251 device_printf(sc->sc_dev,
/freebsd-11-stable/sys/dev/bwi/
H A Dif_bwi.c358 device_t dev = sc->sc_dev;
651 gpio_in = pci_read_config(sc->sc_dev, BWI_PCIR_GPIO_IN, 4);
655 gpio_out = pci_read_config(sc->sc_dev, BWI_PCIR_GPIO_OUT, 4);
656 gpio_en = pci_read_config(sc->sc_dev, BWI_PCIR_GPIO_ENABLE, 4);
666 pci_write_config(sc->sc_dev, BWI_PCIR_GPIO_OUT, gpio_out, 4);
667 pci_write_config(sc->sc_dev, BWI_PCIR_GPIO_ENABLE, gpio_en, 4);
673 pci_write_config(sc->sc_dev, BWI_PCIR_GPIO_OUT, gpio_out, 4);
679 status = pci_read_config(sc->sc_dev, PCIR_STATUS, 2);
681 pci_write_config(sc->sc_dev, PCIR_STATUS, status, 2);
689 pci_read_config(sc->sc_dev, BWI_PCIR_GPIO_I
[all...]

Completed in 328 milliseconds

1234567891011>>