Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/cmd/bhyve/
H A Dps2mouse.c172 sc->delta_x += x - sc->cur_x; in movement_update()
173 sc->delta_y += sc->cur_y - y; in movement_update()
174 sc->cur_x = x; in movement_update()
175 sc->cur_y = y; in movement_update()
221 if (sc->fifo.num < (sc->fifo.size - 3)) { in movement_get()
238 sc->cur_x = 0; in ps2mouse_reset()
239 sc->cur_y = 0; in ps2mouse_reset()
348 fifo_put(sc, sc->status); in ps2mouse_write()
349 fifo_put(sc, sc->resolution); in ps2mouse_write()
350 fifo_put(sc, sc->sampling_rate); in ps2mouse_write()
[all …]
H A Datkbdc.c145 vm_isa_pulse_irq(sc->ctx, sc->kbd.irq, sc->kbd.irq); in atkbdc_assert_kbd_intr()
154 vm_isa_pulse_irq(sc->ctx, sc->aux.irq, sc->aux.irq); in atkbdc_assert_aux_intr()
164 sc->kbd.buffer[sc->kbd.bwr] = val; in atkbdc_kbd_queue_data()
165 sc->kbd.bwr = (sc->kbd.bwr + 1) % FIFOSZ; in atkbdc_kbd_queue_data()
288 *buf = sc->kbd.buffer[sc->kbd.brd]; in atkbdc_dequeue_data()
289 sc->kbd.brd = (sc->kbd.brd + 1) % FIFOSZ; in atkbdc_dequeue_data()
419 sc->ctrlbyte = CTRL_CMD_FLAG | sc->ram[0]; in atkbdc_sts_ctl_handler()
432 sc->ctrlbyte = CTRL_CMD_FLAG | sc->outport; in atkbdc_sts_ctl_handler()
474 sc->ctrlbyte = CTRL_CMD_FLAG | sc->ram[byten]; in atkbdc_sts_ctl_handler()
549 sc->ps2kbd_sc = ps2kbd_init(sc); in atkbdc_init()
[all …]
H A Dpci_e82545.c455 sc->nvm_mode, sc->nvm_bits, in e82545_eecd_strobe()
456 sc->nvm_opaddr, sc->nvm_data); in e82545_eecd_strobe()
550 sc->nvm_mode, sc->nvm_bits, in e82545_eecd_strobe()
551 sc->nvm_opaddr, sc->nvm_data); in e82545_eecd_strobe()
644 if (sc->esc_irq_asserted && !(sc->esc_ICR & sc->esc_IMS)) { in e82545_icr_deassert()
783 sc->esc_tdba = (uint64_t)sc->esc_TDBAH << 32 | sc->esc_TDBAL; in e82545_tx_update_tdba()
786 sc->esc_txdesc = paddr_guest2host(sc->esc_ctx, sc->esc_tdba, in e82545_tx_update_tdba()
1471 sc->esc_TDH, sc->esc_TDHr, sc->esc_TDT); in e82545_tx_run()
1495 sc->esc_TDH, sc->esc_TDHr, sc->esc_TDT); in e82545_tx_run()
1506 if (sc->esc_tx_enabled && sc->esc_TDHr != sc->esc_TDT) in e82545_tx_thread()
[all …]
H A Duart_emul.c247 if (sc->sock && sc->usc_sock.clifd != -1) { in rxfifo_reset()
291 if (sc->sock && sc->usc_sock.clifd != -1) { in rxfifo_putchar()
325 if (sc->sock && sc->usc_sock.clifd != -1) { in rxfifo_getchar()
349 sc->mev = mevent_add(sc->tty.rfd, EVF_READ, uart_drain, sc); in uart_opentty()
420 sc->msr = modem_status(sc->mcr); in uart_reset()
437 (*sc->intr_deassert)(sc->arg); in uart_toggle_intr()
439 (*sc->intr_assert)(sc->arg); in uart_toggle_intr()
448 sc = arg; in uart_drain()
760 sc->mev = mevent_add(sc->usc_sock.clifd, EVF_READ, in uart_sock_accept()
882 sc->tty.rfd = sc->tty.wfd = -1; in uart_sock_backend()
[all …]
H A Dvga.c207 sc->gc_width = (sc->vga_crtc.crtc_horiz_disp_end + 1) * in vga_check_size()
210 sc->gc_height = (sc->vga_crtc.crtc_vert_disp_end | in vga_check_size()
215 bhyvegc_resize(gc, sc->gc_width, sc->gc_height); in vga_check_size()
257 sc->gc_image->data[offset] = vga_get_pixel(sc, x, y); in vga_render_graphics()
334 sc->gc_image->width * sc->gc_image->height * in vga_render()
387 sc->vga_gc.gc_latch0 = sc->vga_ram[offset + 0*64*KB]; in vga_mem_rd_handler()
388 sc->vga_gc.gc_latch1 = sc->vga_ram[offset + 1*64*KB]; in vga_mem_rd_handler()
389 sc->vga_gc.gc_latch2 = sc->vga_ram[offset + 2*64*KB]; in vga_mem_rd_handler()
390 sc->vga_gc.gc_latch3 = sc->vga_ram[offset + 3*64*KB]; in vga_mem_rd_handler()
1153 sc->vga_dac.dac_palette[3 * sc->vga_dac.dac_wr_index + in vga_port_out_handler()
[all …]
H A Dpci_fbuf.c364 sc = arg; in pci_fbuf_render()
366 if (sc->vga_full && sc->gc_image->vgamode) { in pci_fbuf_render()
373 if (sc->gc_width != sc->memregs.width || in pci_fbuf_render()
374 sc->gc_height != sc->memregs.height) { in pci_fbuf_render()
376 sc->gc_width = sc->memregs.width; in pci_fbuf_render()
377 sc->gc_height = sc->memregs.height; in pci_fbuf_render()
447 console_init(sc->memregs.width, sc->memregs.height, sc->fb_base); in pci_fbuf_init()
451 sc->vgasc = vga_init(!sc->vga_full); in pci_fbuf_init()
459 error = rfb_init(sc->rfb_host, sc->rfb_port, sc->rfb_wait, sc->rfb_password); in pci_fbuf_init()
469 error = rfb_init(sc->rfb_host, sc->rfb_port, sc->rfb_wait, in pci_fbuf_init()
[all …]
H A Dpci_virtio_net.c236 int prepend_hdr_len = sc->vhdrlen - sc->be_vhdrlen; in pci_vtnet_rx()
465 if (sc->vhdrlen != sc->be_vhdrlen) { in pci_vtnet_proctx()
532 error = pthread_cond_wait(&sc->tx_cond, &sc->tx_mtx); in pci_vtnet_tx_thread()
612 free(sc); in pci_vtnet_init()
622 free(sc); in pci_vtnet_init()
629 free(sc); in pci_vtnet_init()
673 vi_softc_linkup(&sc->vsc_vs, &sc->vsc_consts, sc, pi, sc->vsc_queues); in pci_vtnet_init()
674 sc->vsc_vs.vs_mtx = &sc->vsc_mtx; in pci_vtnet_init()
678 free(sc); in pci_vtnet_init()
760 sc->be_vhdrlen = netbe_get_vnet_hdr_len(sc->vsc_be); in pci_vtnet_neg_features()
[all …]
/illumos-gate/usr/src/uts/common/io/ipw/
H A Dipw2100_hw.c62 return (ddi_get8(sc->sc_ioh, (uint8_t *)(sc->sc_regs + off))); in ipw2100_csr_get8()
91 ddi_put8(sc->sc_ioh, (uint8_t *)(sc->sc_regs + off), val); in ipw2100_csr_put8()
112 ddi_rep_put8(sc->sc_ioh, buf, (uint8_t *)(sc->sc_regs + off), in ipw2100_csr_rep_put8()
210 uint32_t addr = ipw2100_imem_get32(sc, sc->sc_table1_base + off); in ipw2100_table1_get8()
217 uint32_t addr = ipw2100_imem_get32(sc, sc->sc_table1_base + off); in ipw2100_table1_get32()
224 uint32_t addr = ipw2100_imem_get32(sc, sc->sc_table1_base + off); in ipw2100_table1_put32()
236 addr = ipw2100_imem_get32(sc, sc->sc_table2_base + off); in ipw2100_table2_getbuf()
357 sc->sc_fw.uc_base = sc->sc_fw.fw_base + sc->sc_fw.fw_size; in ipw2100_cache_firmware()
403 sc->sc_fw.uc_base, sc->sc_fw.uc_size); in ipw2100_load_uc()
444 e = sc->sc_fw.fw_base + sc->sc_fw.fw_size; in ipw2100_load_fw()
[all …]
H A Dipw2100.c544 if (cv_wait_sig(&sc->sc_mfthread_cv, &sc->sc_mflock) == 0) in ipw2100_detach()
1041 cv_wait(&sc->sc_tx_cond, &sc->sc_tx_lock); in ipw2100_cmd()
1082 if (cv_reltimedwait(&sc->sc_cmd_cond, &sc->sc_ilock, in ipw2100_cmd()
1203 (void) snprintf(sc->sc_macstr, sizeof (sc->sc_macstr), in ipw2100_hwconf_get()
1205 sc->sc_macaddr[0], sc->sc_macaddr[1], in ipw2100_hwconf_get()
1206 sc->sc_macaddr[2], sc->sc_macaddr[3], in ipw2100_hwconf_get()
1207 sc->sc_macaddr[4], sc->sc_macaddr[5]); in ipw2100_hwconf_get()
1458 err = ipw2100_dma_region_alloc(sc, &sc->sc_dma_txbd, in ipw2100_ring_alloc()
1481 err = ipw2100_dma_region_alloc(sc, &sc->sc_dma_rxbd, in ipw2100_ring_alloc()
1504 err = ipw2100_dma_region_alloc(sc, &sc->sc_dma_status, in ipw2100_ring_alloc()
[all …]
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd_hw.c341 zyd_rf_name(sc->rf_rev), sc->rf_rev)); in zyd_read_eeprom()
423 zyd_rf_name(sc->rf_rev), sc->rf_rev); in zyd_hw_init()
447 zyd_rf_name(sc->rf_rev), sc->rf_rev); in zyd_hw_init()
459 sc->macaddr[0], sc->macaddr[1], sc->macaddr[2], in zyd_hw_init()
460 sc->macaddr[3], sc->macaddr[4], sc->macaddr[5])); in zyd_hw_init()
492 (void) zyd_read16(sc, ZYD_FIRMWARE_BASE_ADDR, &sc->fwbase); in zyd_hw_configure()
496 (void) zyd_read16(sc, sc->fwbase + ZYD_FW_FIRMWARE_REV, &sc->fw_rev); in zyd_hw_configure()
583 (void) zyd_write16(sc, ZYD_CR31, sc->pwr_int[chan - 1]); in zyd_hw_set_channel()
585 (void) zyd_write16(sc, ZYD_CR67, sc->ofdm36_cal[chan - 1]); in zyd_hw_set_channel()
588 (void) zyd_write16(sc, ZYD_CR68, sc->pwr_cal[chan - 1]); in zyd_hw_set_channel()
[all …]
/illumos-gate/usr/src/uts/common/io/elxl/
H A Delxl.c465 elxl_t *sc; in elxl_attach() local
472 sc = kmem_zalloc(sizeof (*sc), KM_SLEEP); in elxl_attach()
529 bcopy(sc->ex_factaddr, sc->ex_curraddr, 6); in elxl_attach()
531 sc->ex_capab = elxl_read_eeprom(sc, EE_CAPABILITIES); in elxl_attach()
558 sc->ex_miih = mii_alloc(sc, sc->ex_dip, &ex_mii_ops); in elxl_attach()
940 if (sc->ex_running && !sc->ex_suspended) { in elxl_linkcheck()
1656 *val = sc->ex_singlecol + sc->ex_multcol; in elxl_m_stat()
1716 *val = sc->ex_jabber + sc->ex_latecol + sc->ex_uflo; in elxl_m_stat()
1720 *val = sc->ex_align + sc->ex_fcs + sc->ex_runt + in elxl_m_stat()
1721 sc->ex_toolong + sc->ex_oflo + sc->ex_allocbfail; in elxl_m_stat()
[all …]
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwn.c959 sc->ntxchains, sc->nrxchains, sc->eeprom_domain, in iwn_attach()
1138 iwn_free_rx_ring(sc, &sc->rxq); in iwn_attach()
1442 iwn_free_rx_ring(sc, &sc->rxq); in iwn_detach()
1828 return iwn_dma_contig_alloc(sc, &sc->sched_dma, sc->schedsz, in iwn_alloc_sched()
1874 return iwn_dma_contig_alloc(sc, &sc->fw_dma, sc->fwsz, in iwn_alloc_fwmem()
2498 bcopy(&sc->rxon, &sc->rxon_save, sizeof (sc->rxon)); in iwn_newstate()
3305 tmp |= sc->ict[sc->ict_cur]; in iwn_intr()
4373 bcopy(&sc->rxon, &sc->rxon_save, sizeof (sc->rxon)); in iwn_periodic()
5010 (void)iwn_cmd(sc, IWN_CMD_RXON, &sc->rxon, sc->rxonsz, 1); in iwn_collect_noise()
5590 error = iwn_cmd(sc, IWN_CMD_RXON, &sc->rxon, sc->rxonsz, 0); in iwn_config()
[all …]
/illumos-gate/usr/src/uts/common/io/urtw/
H A Durtw.c605 if (error = urtw_read8_c(sc, URTW_PSR, &sc->sc_psr, 0)) in urtw_led_init()
1718 sc->sc_gpio_blinkstate = (sc->sc_gpio_ledon != 0) ? in urtw_led_mode0()
2579 sc->sc_currate = (rate > 0) ? rate : sc->sc_currate; in urtw_rxeof()
2596 if (URTW_IS_RUNNING(sc) && !URTW_IS_SUSPENDING(sc)) in urtw_rxeof()
3780 if (sc->sc_rxpipe || sc->sc_txpipe_low || sc->sc_txpipe_normal) in urtw_open_pipes()
3953 error = sc->urtw_init(sc); in urtw_reconnect()
3996 error = sc->urtw_init(sc); in urtw_m_start()
4068 err = sc->urtw_init(sc); in urtw_m_setprop()
4096 err = sc->urtw_init(sc); in urtw_m_ioctl()
4231 error = sc->urtw_init(sc); in urtw_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/iwi/
H A Dipw2200_hw.c62 return (ddi_get8(sc->sc_ioh, (uint8_t *)(sc->sc_regs + off))); in ipw2200_csr_get8()
92 ddi_put8(sc->sc_ioh, (uint8_t *)(sc->sc_regs + off), val); in ipw2200_csr_put8()
99 ddi_put16(sc->sc_ioh, in ipw2200_csr_put16()
107 ddi_put32(sc->sc_ioh, in ipw2200_csr_put32()
174 ipw2200_rom_control(sc, 0); in ipw2200_rom_get16()
262 sc->sc_fw.boot_size = in ipw2200_cache_firmware()
275 sc->sc_fw.boot_size, sc->sc_fw.uc_size, sc->sc_fw.fw_size)); in ipw2200_cache_firmware()
496 sc->sc_fw_ok = 0; in ipw2200_load_fw()
497 while (!sc->sc_fw_ok) { in ipw2200_load_fw()
501 if (cv_reltimedwait(&sc->sc_fw_cond, &sc->sc_ilock, clk, in ipw2200_load_fw()
[all …]
H A Dipw2200.c319 sc->sc_vendor, sc->sc_device, sc->sc_subven, sc->sc_subdev)); in ipw2200_setup_pci()
979 cv_wait(&sc->sc_cmd_cond, &sc->sc_cmd_lock); in ipw2200_cmd()
1070 err = ipw2200_load_fw(sc, sc->sc_fw.boot_base, sc->sc_fw.boot_size); in ipw2200_init()
1080 err = ipw2200_load_uc(sc, sc->sc_fw.uc_base, sc->sc_fw.uc_size); in ipw2200_init()
1093 err = ipw2200_load_fw(sc, sc->sc_fw.fw_base, sc->sc_fw.fw_size); in ipw2200_init()
1152 sc->sc_macaddr[0], sc->sc_macaddr[1], in ipw2200_hwconf_get()
1153 sc->sc_macaddr[2], sc->sc_macaddr[3], in ipw2200_hwconf_get()
1154 sc->sc_macaddr[4], sc->sc_macaddr[5]); in ipw2200_hwconf_get()
1389 err = ipw2200_dma_region_alloc(sc, &sc->sc_dma_txdsc, in ipw2200_ring_alloc()
2229 sc->sc_tx_free, sc->sc_tx_cur)); in ipw2200_send()
[all …]
/illumos-gate/usr/src/uts/common/io/rwn/
H A Drt2860.c422 sc->bbp[i].reg, sc->bbp[i].val); in rt2860_read_eeprom()
445 sc->leds, sc->led[0], sc->led[1], sc->led[2]); in rt2860_read_eeprom()
463 sc->rf_rev, sc->ntxchains, sc->nrxchains); in rt2860_read_eeprom()
587 sc->tssi_2ghz[2], sc->tssi_2ghz[3], sc->tssi_2ghz[4], in rt2860_read_eeprom()
588 sc->tssi_2ghz[5], sc->tssi_2ghz[6], sc->tssi_2ghz[7], in rt2860_read_eeprom()
612 sc->tssi_5ghz[2], sc->tssi_5ghz[3], sc->tssi_5ghz[4], in rt2860_read_eeprom()
613 sc->tssi_5ghz[5], sc->tssi_5ghz[6], sc->tssi_5ghz[7], in rt2860_read_eeprom()
642 sc->lna[2] = sc->lna[1]; in rt2860_read_eeprom()
647 sc->lna[3] = sc->lna[1]; in rt2860_read_eeprom()
2406 rt2860_mcu_bbp_write(sc, sc->bbp[i].reg, sc->bbp[i].val); in rt2860_init()
[all …]
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_main.c423 kmem_free((void *)sc->sc_vbufptr, sc->sc_vbuflen); in arn_desc_free()
451 sc->sc_desc, sc->sc_desc_dma.alength, in arn_desc_alloc()
563 if (sc->sc_curtxpow != sc->sc_config.txpowlimit) { in arn_update_txpow()
882 sc->sc_tx_chainmask, sc->sc_rx_chainmask, in arn_set_channel()
1249 sc->sc_tx_chainmask, sc->sc_rx_chainmask, in arn_reset()
2069 sc->tx_chan_width, sc->sc_tx_chainmask, in arn_open()
2658 txq = &sc->sc_txq[arn_get_hal_qnum(ac, sc)]; in arn_tx_queue_update()
2753 sc->sc_tx_chainmask, sc->sc_rx_chainmask)); in arn_update_chainmask()
3063 sc->sc_tx_chainmask, sc->sc_rx_chainmask)); in arn_attach()
3372 arn_tx_cleanupq(sc, &sc->sc_txq[i]); in arn_detach()
[all …]
/illumos-gate/usr/src/uts/common/io/iwp/
H A Diwp.c532 sc->sc_dev_id = ddi_get16(sc->sc_cfg_handle, in iwp_attach()
547 sc->sc_rev = ddi_get8(sc->sc_cfg_handle, in iwp_attach()
559 sc->sc_clsz = ddi_get16(sc->sc_cfg_handle, in iwp_attach()
564 sc->sc_clsz = (sc->sc_clsz << 2); in iwp_attach()
585 sc->sc_hw_rev = IWP_READ(sc, CSR_HW_REV); in iwp_attach()
2617 data = &sc->sc_rxq.data[sc->sc_rxq.cur]; in iwp_rx_softintr()
2669 sc->sc_ostate = sc->sc_ic.ic_state; in iwp_rx_softintr()
2805 sc->sc_ostate = sc->sc_ic.ic_state; in iwp_intr()
4686 iwp_reset_tx_ring(sc, &sc->sc_txq[i]); in iwp_stop()
4952 iwp_mem_write(sc, sc->sc_scd_base + in iwp_alive_common()
[all …]
/illumos-gate/usr/src/uts/common/io/iwh/
H A Diwh.c568 sc->sc_dev_id = ddi_get16(sc->sc_cfg_handle, in iwh_attach()
586 sc->sc_rev = ddi_get8(sc->sc_cfg_handle, in iwh_attach()
598 sc->sc_clsz = ddi_get16(sc->sc_cfg_handle, in iwh_attach()
603 sc->sc_clsz = (sc->sc_clsz << 2); in iwh_attach()
624 sc->sc_hw_rev = IWH_READ(sc, CSR_HW_REV); in iwh_attach()
2727 data = &sc->sc_rxq.data[sc->sc_rxq.cur]; in iwh_rx_softintr()
2779 sc->sc_ostate = sc->sc_ic.ic_state; in iwh_rx_softintr()
2902 sc->sc_ostate = sc->sc_ic.ic_state; in iwh_intr()
4949 iwh_reset_tx_ring(sc, &sc->sc_txq[i]); in iwh_stop()
5336 iwh_mem_write(sc, sc->sc_scd_base + in iwh_alive_common()
[all …]
/illumos-gate/usr/src/uts/common/io/rwd/
H A Drt2661.c1146 rt2661_tx_dma_intr(sc, &sc->mgtq); in rt2661_intr()
1159 rt2661_tx_dma_intr(sc, &sc->txq[0]); in rt2661_intr()
1165 rt2661_tx_dma_intr(sc, &sc->txq[1]); in rt2661_intr()
1171 rt2661_tx_dma_intr(sc, &sc->txq[2]); in rt2661_intr()
1177 rt2661_tx_dma_intr(sc, &sc->txq[3]); in rt2661_intr()
2126 rt2661_reset_rx_ring(sc, &sc->rxq); in rt2661_stop_locked()
2205 rt2661_bbp_write(sc, sc->bbp_prom[i].reg, sc->bbp_prom[i].val); in rt2661_bbp_init()
3148 rt2661_free_rx_ring(sc, &sc->rxq); in rt2661_attach()
3150 rt2661_free_tx_ring(sc, &sc->mgtq); in rt2661_attach()
3219 rt2661_free_tx_ring(sc, &sc->mgtq); in rt2661_detach()
[all …]
/illumos-gate/usr/src/uts/common/io/wpi/
H A Dwpi.c465 sc->sc_clsz = (sc->sc_clsz << 2); in wpi_attach()
505 sc->sc_data = sc->sc_text + LE_32(sc->sc_hdr->textsz); in wpi_attach()
506 sc->sc_boot = sc->sc_data + LE_32(sc->sc_hdr->datasz); in wpi_attach()
1206 wpi_free_tx_ring(sc, &sc->sc_svcq); in wpi_ring_free()
1207 wpi_free_tx_ring(sc, &sc->sc_cmdq); in wpi_ring_free()
1209 wpi_free_tx_ring(sc, &sc->sc_txq[i]); in wpi_ring_free()
1895 sc->sc_ostate = sc->sc_ic.ic_state;
1981 sc->sc_ostate = sc->sc_ic.ic_state;
2705 sc->sc_pwr1[i], sc->sc_pwr2[i]));
3515 wpi_reset_tx_ring(sc, &sc->sc_cmdq);
[all …]
/illumos-gate/usr/src/uts/common/io/ral/
H A Drt2560.c1033 desc = &sc->txq.desc[sc->txq.next]; in rt2560_tx_intr()
1034 data = &sc->txq.data[sc->txq.next]; in rt2560_tx_intr()
1198 desc = &sc->rxq.desc[sc->rxq.cur]; in rt2560_rx_intr()
1199 data = &sc->rxq.data[sc->rxq.cur]; in rt2560_rx_intr()
1632 data = &sc->txq.data[sc->txq.cur]; in rt2560_send()
1633 desc = &sc->txq.desc[sc->txq.cur]; in rt2560_send()
1934 rt2560_reset_tx_ring(sc, &sc->txq); in rt2560_stop()
2627 rt2560_free_rx_ring(sc, &sc->rxq); in rt2560_attach()
2631 rt2560_free_tx_ring(sc, &sc->txq); in rt2560_attach()
2678 rt2560_free_tx_ring(sc, &sc->txq); in rt2560_detach()
[all …]
/illumos-gate/usr/src/uts/common/io/atu/
H A Datu.c474 ATU_LOCK(sc); in atu_newstate()
479 ATU_LOCK(sc); in atu_newstate()
540 ep = usb_lookup_ep_data(sc->sc_dip, sc->sc_udev, 0, 0, 0, in atu_open_pipes()
549 ep = usb_lookup_ep_data(sc->sc_dip, sc->sc_udev, 0, 0, 0, in atu_open_pipes()
561 usb_pipe_close(sc->sc_dip, sc->sc_rx_pipe, in atu_open_pipes()
567 usb_pipe_close(sc->sc_dip, sc->sc_tx_pipe, in atu_open_pipes()
898 ATU_LOCK(sc); in atu_watchdog()
1131 ATU_LOCK(sc); in atu_disconnect()
1157 ATU_LOCK(sc); in atu_reconnect()
1310 usb_client_detach(sc->sc_dip, sc->sc_udev); in atu_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/ural/
H A Dural.c1525 usb_pipe_close(sc->sc_dev, sc->sc_rx_pipeh, in ural_open_pipes()
1709 ural_read_multi(sc, RAL_STA_CSR0, sc->sta, sizeof (sc->sta)); in ural_init()
1711 ural_set_txantenna(sc, sc->tx_ant); in ural_init()
1712 ural_set_rxantenna(sc, sc->rx_ant); in ural_init()
1890 ural_read_multi(sc, RAL_STA_CSR0, sc->sta, sizeof (sc->sta)); in ural_amrr_timeout()
1893 sc->sc_tx_err += sc->sta[9]; in ural_amrr_timeout()
1894 sc->sc_tx_retries += (sc->sta[7] + sc->sta[8]); in ural_amrr_timeout()
1919 ural_read_multi(sc, RAL_STA_CSR0, sc->sta, sizeof (sc->sta)); in ural_amrr_start()
2235 sc->asic_rev = ural_read(sc, RAL_MAC_CSR0); in ural_attach()
2241 sc->asic_rev, ural_get_rf(sc->rf_rev)); in ural_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/rum/
H A Drum.c1317 sc->ext_2ghz_lna, sc->ext_5ghz_lna); in rum_read_eeprom()
1330 sc->rssi_2ghz_corr, sc->rssi_5ghz_corr); in rum_read_eeprom()
1373 rum_bbp_write(sc, sc->bbp_prom[i].reg, sc->bbp_prom[i].val); in rum_bbp_init()
1531 usb_pipe_close(sc->sc_dev, sc->sc_rx_pipeh, in rum_open_pipes()
1537 usb_pipe_close(sc->sc_dev, sc->sc_tx_pipeh, in rum_open_pipes()
1713 rum_read_multi(sc, RT2573_STA_CSR0, sc->sta, sizeof (sc->sta)); in rum_init()
1911 rum_read_multi(sc, RT2573_STA_CSR0, sc->sta, sizeof (sc->sta)); in rum_amrr_timeout()
1914 sc->sc_tx_err += LE_32(sc->sta[5]) >> 16; in rum_amrr_timeout()
1915 sc->sc_tx_retries += ((LE_32(sc->sta[4]) >> 16) + in rum_amrr_timeout()
1940 rum_read_multi(sc, RT2573_STA_CSR0, sc->sta, sizeof (sc->sta)); in rum_amrr_start()
[all …]

12345678910>>...12