| /netbsd-src/sys/arch/arm/nvidia/ |
| H A D | tegra_xusb.c | 202 aprint_error_dev(sc->sc_dev, fmt, ## __VA_ARGS__); \ 226 sc->sc_dev = self; in tegra_xusb_attach() 244 DPRINTF(sc->sc_dev, "mapped %#" PRIxBUSADDR "\n", addr); in tegra_xusb_attach() 256 DPRINTF(sc->sc_dev, "mapped %#" PRIxBUSADDR "\n", addr); in tegra_xusb_attach() 267 DPRINTF(sc->sc_dev, "mapped %#" PRIxBUSADDR "\n", addr); in tegra_xusb_attach() 315 DPRINTF(sc->sc_dev, "rate %u error %d\n", rate, error); in tegra_xusb_attach() 320 DPRINTF(sc->sc_dev, "rate %u error %d\n", rate, error); in tegra_xusb_attach() 326 DPRINTF(sc->sc_dev, "rate %u error %d\n", rate, error); in tegra_xusb_attach() 331 DPRINTF(sc->sc_dev, "rate %u error %d\n", rate, error); in tegra_xusb_attach() 337 DPRINTF(sc->sc_dev, "rate %u error %d\n", rate, error); in tegra_xusb_attach() [all …]
|
| /netbsd-src/sys/dev/acpi/ |
| H A D | apei.c | 109 sc->sc_dev = self; in apei_attach() 122 aprint_error_dev(sc->sc_dev, in apei_attach() 137 aprint_error_dev(sc->sc_dev, in apei_attach() 285 aprint_normal_dev(sc->sc_dev, "%s:" in apei_identify() 383 aprint_debug_dev(sc->sc_dev, "%s: ValidationBits=%s\n", ctx, bitbuf); in apei_cper_memory_error_report() 417 device_printf(sc->sc_dev, "%s: ErrorStatus=%s\n", ctx, bitbuf); in apei_cper_memory_error_report() 420 device_printf(sc->sc_dev, "%s: PhysicalAddress=0x%"PRIx64"\n", in apei_cper_memory_error_report() 425 device_printf(sc->sc_dev, "%s: PhysicalAddressMask=0x%"PRIx64 in apei_cper_memory_error_report() 429 device_printf(sc->sc_dev, "%s: Node=0x%"PRIx16"\n", ctx, in apei_cper_memory_error_report() 433 device_printf(sc->sc_dev, " in apei_cper_memory_error_report() [all...] |
| H A D | fdc_acpi.c | 106 sc->sc_dev = self; in fdc_acpi_attach() 111 rv = acpi_resource_parse(sc->sc_dev, aa->aa_node->ad_handle, "_CRS", in fdc_acpi_attach() 119 aprint_error_dev(sc->sc_dev, in fdc_acpi_attach() 127 aprint_error_dev(sc->sc_dev, "unable to find drq resource\n"); in fdc_acpi_attach() 135 aprint_error_dev(sc->sc_dev, "can't map i/o space\n"); in fdc_acpi_attach() 146 aprint_error_dev(sc->sc_dev, in fdc_acpi_attach() 152 aprint_error_dev(sc->sc_dev, in fdc_acpi_attach() 165 aprint_error_dev(sc->sc_dev, in fdc_acpi_attach() 169 aprint_verbose_dev(sc->sc_dev, in fdc_acpi_attach() 175 aprint_error_dev(sc->sc_dev, in fdc_acpi_attach() [all …]
|
| /netbsd-src/sys/dev/isa/ |
| H A D | sb.c | 129 probing ? "sbmatch" : device_xname(sc->sc_dev), in sbmatch() 136 probing ? "sbmatch" : device_xname(sc->sc_dev), in sbmatch() 155 probing ? "sbmatch" : device_xname(sc->sc_dev), in sbmatch() 165 probing ? "sbmatch" : device_xname(sc->sc_dev), in sbmatch() 172 probing ? "sbmatch" : device_xname(sc->sc_dev), in sbmatch() 182 probing ? "sbmatch" : device_xname(sc->sc_dev), in sbmatch() 188 probing ? "sbmatch" : device_xname(sc->sc_dev), in sbmatch() 194 probing ? "sbmatch" : device_xname(sc->sc_dev), in sbmatch() 199 printf("%s: old drq conf %02x\n", device_xname(sc->sc_dev), in sbmatch() 201 printf("%s: try drq conf %02x\n", device_xname(sc->sc_dev), in sbmatch() [all …]
|
| /netbsd-src/sys/dev/usb/ |
| H A D | if_upgt.c | 240 sc->sc_dev = self; in upgt_attach() 245 aprint_normal_dev(sc->sc_dev, "%s\n", devinfop); in upgt_attach() 255 aprint_error_dev(sc->sc_dev, "failed to set configuration" in upgt_attach() 264 aprint_error_dev(sc->sc_dev, in upgt_attach() 275 aprint_error_dev(sc->sc_dev, in upgt_attach() 299 aprint_error_dev(sc->sc_dev, "missing endpoint\n"); in upgt_attach() 318 aprint_error_dev(sc->sc_dev, in upgt_attach() 325 aprint_error_dev(sc->sc_dev, "could not open RX pipe: %s\n", in upgt_attach() 347 aprint_error_dev(sc->sc_dev, "%s failed\n", __func__); in upgt_attach() 381 aprint_error_dev(sc->sc_dev, in upgt_attach_hook() [all …]
|
| H A D | utoppy.c | 135 device_t sc_dev; member 237 sc->sc_dev = self; in utoppy_attach() 298 device_xname(sc->sc_dev))); in utoppy_attach() 306 device_xname(sc->sc_dev))); in utoppy_attach() 333 usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, sc->sc_dev); in utoppy_attach() 383 usb_detach_waitold(sc->sc_dev); in utoppy_detach() 393 usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, sc->sc_dev); in utoppy_detach() 539 "len %d\n", device_xname(sc->sc_dev), (u_int)cmd, h->h_len)); in utoppy_send_packet() 551 "packet too big (%d)\n", device_xname(sc->sc_dev), in utoppy_send_packet() 594 "%d...\n", device_xname(sc->sc_dev), (int)len)); in utoppy_send_packet() [all …]
|
| /netbsd-src/sys/arch/evbarm/mpcsa/ |
| H A D | mpcsa_usart.c | 57 struct at91usart_softc sc_dev; member 83 return (mpsc->sc_dev.sc_pid == PID_US3 ? LED_GSM : LED_SER1 + mpsc->sc_dev.sc_pid - PID_US0); in led_num() 113 sc->sc_dev.sc_dev = self; in mpcsa_usart_attach() 135 sc->sc_dev.enable = mpcsa_usart_enable; in mpcsa_usart_attach() 136 sc->sc_dev.disable = mpcsa_usart_disable; in mpcsa_usart_attach() 137 sc->sc_dev.hwflow = mpcsa_usart_hwflow; in mpcsa_usart_attach() 138 sc->sc_dev.start_tx = mpcsa_usart_start_tx; in mpcsa_usart_attach() 139 sc->sc_dev.stop_tx = mpcsa_usart_stop_tx; in mpcsa_usart_attach() 140 sc->sc_dev.rx_started = mpcsa_usart_rx_started; in mpcsa_usart_attach() 141 sc->sc_dev.rx_stopped = mpcsa_usart_rx_stopped; in mpcsa_usart_attach() [all …]
|
| /netbsd-src/sys/arch/hpcmips/vr/ |
| H A D | vrpciu.c | 60 device_t sc_dev; member 157 sc->sc_dev = self; in vrpciu_attach() 180 printf("%s: %s =\t0x%08x\n", device_xname((sc)->sc_dev), \ in vrpciu_attach() 183 device_xname((sc)->sc_dev), \ in vrpciu_attach() 187 printf("%s:\tWINEN =\t0x%08x\n", device_xname((sc)->sc_dev), \ in vrpciu_attach() 189 printf("%s:\tPCIADR =\t0x%08x\n", device_xname((sc)->sc_dev), \ in vrpciu_attach() 193 printf("%s: %s =\t\t0x%08x\n", device_xname((sc)->sc_dev), \ in vrpciu_attach() 195 printf("%s:\tMASK =\t0x%08x\n", device_xname((sc)->sc_dev), \ in vrpciu_attach() 197 printf("%s:\tWINEN =\t0x%08x\n", device_xname((sc)->sc_dev), \ in vrpciu_attach() 199 printf("%s:\tIBA =\t0x%08x\n", device_xname((sc)->sc_dev), \ in vrpciu_attach() [all …]
|
| /netbsd-src/sys/dev/ic/ |
| H A D | adw.c | 105 aprint_error_dev(sc->sc_dev, "unable to allocate control " in adw_alloc_controls() 112 aprint_error_dev(sc->sc_dev, in adw_alloc_controls() 123 aprint_error_dev(sc->sc_dev, in adw_alloc_controls() 130 aprint_error_dev(sc->sc_dev, in adw_alloc_controls() 151 aprint_error_dev(sc->sc_dev, in adw_alloc_carriers() 159 aprint_error_dev(sc->sc_dev, "unable to allocate carrier " in adw_alloc_carriers() 167 aprint_error_dev(sc->sc_dev, in adw_alloc_carriers() 179 aprint_error_dev(sc->sc_dev, in adw_alloc_carriers() 186 aprint_error_dev(sc->sc_dev, in adw_alloc_carriers() 213 aprint_error_dev(sc->sc_dev, in adw_create_ccbs() [all …]
|
| H A D | am79900.c | 167 panic("%s: memsize", device_xname(sc->lsc.sc_dev)); in am79900_config() 266 device_xname(sc->sc_dev)); in am79900_rint() 269 device_xname(sc->sc_dev)); in am79900_rint() 275 device_xname(sc->sc_dev)); in am79900_rint() 279 device_xname(sc->sc_dev)); in am79900_rint() 284 device_xname(sc->sc_dev)); in am79900_rint() 343 device_xname(sc->sc_dev)); in am79900_tint() 346 device_xname(sc->sc_dev)); in am79900_tint() 357 device_xname(sc->sc_dev)); in am79900_tint() 364 device_xname(sc->sc_dev)); in am79900_tint() [all …]
|
| H A D | dwiic.c | 160 aprint_error_dev(sc->sc_dev, "failed to power up\n"); in dwiic_attach() 178 aprint_error_dev(sc->sc_dev, "failed initializing\n"); in dwiic_attach() 233 device_printf(sc->sc_dev, "failed to power off\n"); in dwiic_suspend() 245 device_printf(sc->sc_dev, "failed to power up\n"); in dwiic_resume() 258 DPRINTF(("%s: read at 0x%x = 0x%x\n", device_xname(sc->sc_dev), offset, b)); in dwiic_read() 268 DPRINTF(("%s: write at 0x%x: 0x%x\n", device_xname(sc->sc_dev), offset, in dwiic_write() 281 device_xname(sc->sc_dev), reg)); in dwiic_init() 328 device_printf(sc->sc_dev, "failed to %sable\n", in dwiic_enable() 346 "flags 0x%02x\n", device_xname(sc->sc_dev), __func__, op, addr, cmdlen, in dwiic_i2c_exec() 363 DPRINTF(("%s: %s: status 0x%x\n", device_xname(sc->sc_dev), __func__, st)); in dwiic_i2c_exec() [all …]
|
| H A D | tpm.c | 153 device_printf(sc->sc_dev, "start write failed: %d\n", error); in tpm12_suspend() 161 device_printf(sc->sc_dev, "write TPM_ORD_SaveState failed:" in tpm12_suspend() 170 device_printf(sc->sc_dev, "end write failed: %d\n", error); in tpm12_suspend() 180 device_printf(sc->sc_dev, "start read failed: %d\n", error); in tpm12_suspend() 189 device_printf(sc->sc_dev, "read failed: %d\n", error); in tpm12_suspend() 193 device_printf(sc->sc_dev, "short header read: %zu\n", nread); in tpm12_suspend() 201 device_printf(sc->sc_dev, "end read failed: %d\n", error); in tpm12_suspend() 211 device_printf(sc->sc_dev, in tpm12_suspend() 252 device_printf(sc->sc_dev, "start write failed: %d\n", error); in tpm20_suspend() 260 device_printf(sc->sc_dev, "write TPM_ORD_SaveState failed:" in tpm20_suspend() [all …]
|
| H A D | am7990.c | 230 device_xname(sc->sc_dev)); in am7990_rint() 233 device_xname(sc->sc_dev)); in am7990_rint() 239 device_xname(sc->sc_dev)); in am7990_rint() 243 device_xname(sc->sc_dev)); in am7990_rint() 248 device_xname(sc->sc_dev)); in am7990_rint() 311 device_xname(sc->sc_dev)); in am7990_tint() 314 device_xname(sc->sc_dev)); in am7990_tint() 325 device_xname(sc->sc_dev)); in am7990_tint() 332 device_xname(sc->sc_dev), in am7990_tint() 375 device_xname(sc->sc_dev), isr); in am7990_intr() [all …]
|
| H A D | cs89x0.c | 345 aprint_error_dev(sc->sc_dev, "wrong id(0x%x)\n", reg); in cs_attach() 379 device_xname(sc->sc_dev)); in cs_attach() 391 strlcpy(ifp->if_xname, device_xname(sc->sc_dev), IFNAMSIZ); in cs_attach() 422 aprint_error_dev(sc->sc_dev, in cs_attach() 431 aprint_error_dev(sc->sc_dev, in cs_attach() 442 aprint_error_dev(sc->sc_dev, in cs_attach() 457 printf("%s: no Ethernet address!\n", device_xname(sc->sc_dev)); in cs_attach() 479 device_xname(sc->sc_dev), in cs_attach() 491 rnd_attach_source(&sc->rnd_source, device_xname(sc->sc_dev), in cs_attach() 495 if (pmf_device_register1(sc->sc_dev, NUL in cs_attach() [all...] |
| /netbsd-src/sys/dev/i2c/ |
| H A D | ihidev.c | 167 sc->sc_dev = self; in ihidev_attach() 215 device_xname(sc->sc_dev), repid, repsz)); in ihidev_attach() 259 aprint_error_dev(sc->sc_dev, "failed to power down\n"); 281 aprint_error_dev(sc->sc_dev, "failed to power down\n"); in ihidev_detach() 306 aprint_error_dev(sc->sc_dev, "failed to power down\n"); in ihidev_resume() 346 device_xname(sc->sc_dev), htole16(sc->sc_hid_desc_addr))); in ihidev_hid_command() 353 DPRINTF(("%s: HID descriptor:", device_xname(sc->sc_dev))); in ihidev_hid_command() 369 device_xname(sc->sc_dev))); in ihidev_hid_command() 397 "(type %d, len %d)\n", device_xname(sc->sc_dev), report_id, in ihidev_hid_command() 431 device_xname(sc->sc_dev))); in ihidev_hid_command() [all...] |
| H A D | em3027.c | 51 device_t sc_dev; member 158 sc->sc_dev = self; in em3027rtc_attach() 169 aprint_error_dev(sc->sc_dev, in em3027rtc_attach() 176 aprint_debug_dev(sc->sc_dev, "status=0x%02x\n", ctl.status); in em3027rtc_attach() 180 aprint_error_dev(sc->sc_dev, "voltage low (VLow2)\n"); in em3027rtc_attach() 184 aprint_error_dev(sc->sc_dev, "voltage low (VLow1)\n"); in em3027rtc_attach() 192 aprint_debug_dev(sc->sc_dev, "on/off=0x%02x\n", ctl.onoff); in em3027rtc_attach() 195 aprint_verbose_dev(sc->sc_dev, "enabling self-recovery\n"); in em3027rtc_attach() 200 aprint_verbose_dev(sc->sc_dev, "enabling EEPROM self-refresh\n"); in em3027rtc_attach() 207 aprint_verbose_dev(sc->sc_dev, "disabling timer\n"); in em3027rtc_attach() [all …]
|
| H A D | hytp14.c | 159 sc->sc_dev = self; in hytp14_attach() 172 aprint_error_dev(sc->sc_dev, in hytp14_attach() 189 aprint_error_dev(sc->sc_dev, in hytp14_attach() 197 sc->sc_sme->sme_name = device_xname(sc->sc_dev); in hytp14_attach() 204 aprint_error_dev(sc->sc_dev, in hytp14_attach() 215 CTLTYPE_NODE, device_xname(sc->sc_dev), NULL, in hytp14_attach() 234 "%s", device_xname(sc->sc_dev)); in hytp14_attach() 276 __func__, device_xname(sc->sc_dev), in hytp14_thread() 283 __func__, device_xname(sc->sc_dev), in hytp14_thread() 291 __func__, device_xname(sc->sc_dev))); in hytp14_thread() [all …]
|
| /netbsd-src/sys/arch/next68k/dev/ |
| H A D | mb8795.c | 102 DPRINTF(("%s: mb8795_config()\n", device_xname(sc->sc_dev))); in mb8795_config() 105 memcpy(ifp->if_xname, device_xname(sc->sc_dev), IFNAMSIZ); in mb8795_config() 133 rnd_attach_source(&sc->rnd_source, device_xname(sc->sc_dev), in mb8795_config() 136 DPRINTF(("%s: leaving mb8795_config()\n", device_xname(sc->sc_dev))); in mb8795_config() 258 DPRINTF(("%s: rx reset packet\n", device_xname(sc->sc_dev))); in mb8795_rint() 262 DPRINTF(("%s: rx short packet\n", device_xname(sc->sc_dev))); in mb8795_rint() 266 DPRINTF(("%s: rx alignment error\n",device_xname(sc->sc_dev))); in mb8795_rint() 272 DPRINTF(("%s: rx CRC error\n", device_xname(sc->sc_dev))); in mb8795_rint() 278 DPRINTF(("%s: rx overflow error\n", device_xname(sc->sc_dev))); in mb8795_rint() 306 device_xname(sc->sc_dev), mtod(m,u_char *), in mb8795_rint() [all …]
|
| H A D | esp.c | 241 aprint_normal("%s", device_xname(sc->sc_dev)); in findchannel_defer() 245 device_xname(sc->sc_dev)); in findchannel_defer() 258 device_xname(sc->sc_dev), error); in findchannel_defer() 266 device_xname(sc->sc_dev), error); in findchannel_defer() 285 device_xname(sc->sc_dev), "intr"); in findchannel_defer() 287 aprint_normal_dev(sc->sc_dev, "using DMA channel %s\n", in findchannel_defer() 288 device_xname(esc->sc_dma->sc_dev)); in findchannel_defer() 298 sc->sc_dev = self; in espattach_intio() 598 device_xname(sc->sc_dev), in esp_dma_intr() 865 device_xname(sc->sc_dev), esc->sc_datain, in esp_dma_setup() [all …]
|
| /netbsd-src/sys/dev/i2o/ |
| H A D | dpti.c | 190 sc->sc_dev = self; in dpti_attach() 230 iop = device_private(device_parent(sc->sc_dev)); in dptiioctl() 296 device_xname(sc->sc_dev)); in dptiioctl() 319 iop = device_private(device_parent(sc->sc_dev)); in dpti_blinkled() 338 iop = device_private(device_parent(sc->sc_dev)); in dpti_ctlrinfo() 343 info.drvrHBAnum = device_unit(sc->sc_dev); in dpti_ctlrinfo() 460 iop = device_private(device_parent(sc->sc_dev)); in dpti_passthrough() 465 aprint_error_dev(sc->sc_dev, "adapter blinkled = 0x%02x\n", rv); in dpti_passthrough() 476 device_xname(sc->sc_dev))); in dpti_passthrough() 483 device_xname(sc->sc_dev))); in dpti_passthrough() [all …]
|
| /netbsd-src/sys/arch/arm/xscale/ |
| H A D | pxa2x0_mci.c | 194 sc->sc_dev = self; in pxamci_attach_sub() 205 aprint_error_dev(sc->sc_dev, "couldn't map registers\n"); in pxamci_attach_sub() 217 aprint_error_dev(sc->sc_dev, in pxamci_attach_sub() 250 aprint_normal_dev(sc->sc_dev, "using DMA transfer\n"); in pxamci_attach_sub() 256 aprint_error_dev(sc->sc_dev, in pxamci_attach_sub() 277 aprint_error_dev(sc->sc_dev, in pxamci_attach_sub() 312 sc->sc_sdmmc = config_found(sc->sc_dev, &saa, NULL, CFARGS_NONE); in pxamci_attach_sub() 314 aprint_error_dev(sc->sc_dev, "couldn't attach bus\n"); in pxamci_attach_sub() 382 device_xname(sc->sc_dev))); in pxamci_host_ocr() 404 device_xname(sc->sc_dev))); in pxamci_card_detect() [all …]
|
| H A D | pxa2x0_rtc.c | 47 device_t sc_dev; member 90 sc->sc_dev = self; in pxartc_attach() 98 device_xname(sc->sc_dev)); in pxartc_attach() 106 device_xname(sc->sc_dev)); in pxartc_attach() 127 DPRINTF(("%s: RCNR = %08llx\n", device_xname(sc->sc_dev), in pxartc_todr_gettime() 131 device_xname(sc->sc_dev), in pxartc_todr_gettime() 145 DPRINTF(("%s: RCNR = %08llx\n", device_xname(sc->sc_dev), in pxartc_todr_settime() 149 device_xname(sc->sc_dev), in pxartc_todr_settime() 159 DPRINTF(("%s: new RCNR = %08x\n", device_xname(sc->sc_dev), in pxartc_todr_settime() 163 device_xname(sc->sc_dev), in pxartc_todr_settime() [all …]
|
| /netbsd-src/sys/dev/pci/ |
| H A D | if_dge.c | 247 device_t sc_dev; /* generic device information */ member 487 aprint_error_dev(sc->sc_dev, "can't alloc rx buffers\n"); in dge_alloc_rcvmem() 494 aprint_error_dev(sc->sc_dev, in dge_alloc_rcvmem() 503 aprint_error_dev(sc->sc_dev, "can't create DMA map\n"); in dge_alloc_rcvmem() 511 aprint_error_dev(sc->sc_dev, "can't load DMA map\n"); in dge_alloc_rcvmem() 564 printf("%s: no free RX buffers\n", device_xname(sc->sc_dev)); in dge_getbuf() 709 sc->sc_dev = self; 724 aprint_error_dev(sc->sc_dev, 738 aprint_error_dev(sc->sc_dev, "unable to map interrupt\n"); 745 aprint_error_dev(sc->sc_dev, "unable to establish interrupt"); [all …]
|
| /netbsd-src/sys/dev/mca/ |
| H A D | edc_mca.c | 84 device_t sc_dev; member 153 sc->sc_dev = self; in edc_mca_attach() 212 aprint_error_dev(sc->sc_dev, in edc_mca_attach() 235 aprint_error_dev(sc->sc_dev, "couldn't map registers\n"); in edc_mca_attach() 241 aprint_error_dev(sc->sc_dev, in edc_mca_attach() 251 aprint_error_dev(sc->sc_dev, in edc_mca_attach() 327 device_xname(sc->sc_dev)); in edc_mca_attach() 337 "%s", device_xname(sc->sc_dev)))) { in edc_mca_attach() 338 aprint_error_dev(sc->sc_dev, in edc_mca_attach() 374 aprint_error_dev(sc->sc_dev, "bogus interrupt id %d\n", in edc_intr() [all …]
|
| /netbsd-src/sys/dev/vmt/ |
| H A D | vmt_subr.c | 175 self = sc->sc_dev; in vmt_common_attach() 209 aprint_verbose_dev(sc->sc_dev, "UUID: %s\n", sc->sc_uuid); in vmt_common_attach() 418 device_printf(sc->sc_dev, "unable to set guest uptime\n"); in vmt_update_guest_uptime() 430 device_printf(sc->sc_dev, "unable to set hostname\n"); in vmt_update_guest_info() 445 device_printf(sc->sc_dev, in vmt_update_guest_info() 456 device_printf(sc->sc_dev, "unable to set guest OS\n"); in vmt_update_guest_info() 501 device_printf(sc->sc_dev, in vmt_tclo_state_change_success() 513 device_printf(sc->sc_dev, "host requested shutdown\n"); in vmt_do_shutdown() 523 device_printf(sc->sc_dev, "host requested reboot\n"); in vmt_do_reboot() 530 device_printf(sc->sc_dev, "guest resuming from suspended state\n"); in vmt_do_resume() [all …]
|