/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | ps2kbd.h | 36 struct ps2kbd_softc *ps2kbd_init(struct atkbdc_softc *sc); 38 int ps2kbd_read(struct ps2kbd_softc *sc, uint8_t *val); 39 void ps2kbd_write(struct ps2kbd_softc *sc, uint8_t val);
|
/freebsd-11-stable/sys/mips/mediatek/ |
H A D | mtk_gpio_v2.c | 88 #define PIC_INTR_ISRC(sc, irq) (&(sc)->pins[(irq)].pin_irqsrc.isrc) 101 #define MTK_GPIO_LOCK(sc) mtx_lock_spin(&(sc)->mtx) 102 #define MTK_GPIO_UNLOCK(sc) mtx_unlock_spin(&(sc)->mtx) 103 #define MTK_GPIO_LOCK_INIT(sc) \ 104 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \ 106 #define MTK_GPIO_LOCK_DESTROY(sc) mtx_destro 150 mtk_pic_register_isrcs(struct mtk_gpio_softc *sc) argument 173 mtk_gpio_pin_set_direction(struct mtk_gpio_softc *sc, uint32_t pin, uint32_t dir) argument 195 mtk_gpio_pin_set_invert(struct mtk_gpio_softc *sc, uint32_t pin, uint32_t val) argument 212 mtk_gpio_pin_probe(struct mtk_gpio_softc *sc, uint32_t pin) argument 251 struct mtk_gpio_softc *sc; local 329 struct mtk_gpio_softc *sc = device_get_softc(dev); local 344 struct mtk_gpio_softc *sc = device_get_softc(dev); local 352 struct mtk_gpio_softc *sc = device_get_softc(dev); local 362 struct mtk_gpio_softc *sc = device_get_softc(dev); local 377 struct mtk_gpio_softc *sc = device_get_softc(dev); local 392 struct mtk_gpio_softc *sc = device_get_softc(dev); local 406 struct mtk_gpio_softc *sc; local 428 struct mtk_gpio_softc *sc; local 450 struct mtk_gpio_softc *sc; local 471 struct mtk_gpio_softc *sc; local 504 struct mtk_gpio_softc *sc; local 522 struct mtk_gpio_softc *sc; local 552 struct mtk_gpio_softc *sc; local 589 struct mtk_gpio_softc *sc; local 602 struct mtk_gpio_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_vlans.c | 58 ar8xxx_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, argument 63 if (arswitch_waitreg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, 69 err = arswitch_writereg(sc->sc_dev, AR8X16_REG_VLAN_DATA, 78 arswitch_writereg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, op); 81 if (arswitch_waitreg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, 89 ar8xxx_flush_dot1q_vlan(struct arswitch_softc *sc) argument 92 ARSWITCH_LOCK_ASSERT(sc, MA_OWNED); 93 return (ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_FLUSH, 0, 0)); 97 ar8xxx_purge_dot1q_vlan(struct arswitch_softc *sc, int vid) argument 100 ARSWITCH_LOCK_ASSERT(sc, MA_OWNE 105 ar8xxx_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports, uint32_t *untagged_ports, int vid) argument 128 ar8xxx_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports, uint32_t untagged_ports, int vid) argument 141 ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid) argument 156 ar8xxx_set_port_vlan(struct arswitch_softc *sc, uint32_t ports, int vid) argument 175 ar8xxx_reset_vlans(struct arswitch_softc *sc) argument 264 ar8xxx_getvgroup(struct arswitch_softc *sc, etherswitch_vlangroup_t *vg) argument 311 ar8xxx_setvgroup(struct arswitch_softc *sc, etherswitch_vlangroup_t *vg) argument 367 ar8xxx_get_pvid(struct arswitch_softc *sc, int port, int *pvid) argument 378 ar8xxx_set_pvid(struct arswitch_softc *sc, int port, int pvid) argument [all...] |
/freebsd-11-stable/sys/dev/usb/gadget/ |
H A D | g_mouse.c | 172 g_mouse_button_press_timeout_reset(struct g_mouse_softc *sc) argument 177 sc->sc_data.buttons = 0; 178 sc->sc_do_button_update = 0; 180 sc->sc_do_button_update = 1; 188 usb_callout_reset(&sc->sc_button_press_callout, i, 189 &g_mouse_button_press_timeout, sc); 193 g_mouse_cursor_update_timeout_reset(struct g_mouse_softc *sc) argument 198 sc->sc_data.dx = 0; 199 sc->sc_data.dy = 0; 200 sc 216 g_mouse_update_mode_radius(struct g_mouse_softc *sc) argument 230 struct g_mouse_softc *sc = arg; local 244 struct g_mouse_softc *sc = arg; local 276 struct g_mouse_softc *sc = device_get_softc(dev); local 316 struct g_mouse_softc *sc = device_get_softc(dev); local 338 struct g_mouse_softc *sc = usbd_xfer_softc(xfer); local [all...] |
/freebsd-11-stable/sys/arm/freescale/imx/ |
H A D | imx_epit.c | 140 RD4(struct epit_softc *sc, bus_size_t offset) argument 143 return (bus_read_4(sc->memres, offset)); 147 WR4(struct epit_softc *sc, bus_size_t offset, uint32_t value) argument 150 bus_write_4(sc->memres, offset, value); 154 WR4B(struct epit_softc *sc, bus_size_t offset, uint32_t value) argument 157 bus_write_4(sc->memres, offset, value); 158 bus_barrier(sc->memres, offset, 4, BUS_SPACE_BARRIER_WRITE); 162 epit_read_counter(struct epit_softc *sc) argument 169 return (0xffffffff - RD4(sc, EPIT_CNR)); 175 struct epit_softc *sc local 204 epit_tc_attach(struct epit_softc *sc) argument 232 struct epit_softc *sc; local 264 struct epit_softc *sc; local 278 struct epit_softc *sc; local 309 epit_et_attach(struct epit_softc *sc) argument 418 struct epit_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/altera/atse/ |
H A D | if_atse.c | 119 #define ATSE_TX_PENDING(sc) (sc->atse_tx_m != NULL || \ 151 #define ATSE_TX_DATA_WRITE(sc, val4) \ 152 bus_write_4((sc)->atse_tx_mem_res, A_ONCHIP_FIFO_MEM_CORE_DATA, val4) 154 #define ATSE_TX_META_WRITE(sc, val4) \ 155 a_onchip_fifo_mem_core_write((sc)->atse_tx_mem_res, \ 158 #define ATSE_TX_META_READ(sc) \ 159 a_onchip_fifo_mem_core_read((sc)->atse_tx_mem_res, \ 163 #define ATSE_TX_READ_FILL_LEVEL(sc) \ 164 a_onchip_fifo_mem_core_read((sc) 270 csr_write_4(struct atse_softc *sc, uint32_t reg, uint32_t val4, const char *f, const int l) argument 281 csr_read_4(struct atse_softc *sc, uint32_t reg, const char *f, const int l) argument 296 pxx_write_2(struct atse_softc *sc, bus_addr_t bmcr, uint32_t reg, uint16_t val, const char *f, const int l, const char *s) argument 308 pxx_read_2(struct atse_softc *sc, bus_addr_t bmcr, uint32_t reg, const char *f, const int l, const char *s) argument 342 atse_tx_locked(struct atse_softc *sc, int *sent) argument 432 struct atse_softc *sc; local 477 struct atse_softc *sc; local 486 atse_stop_locked(struct atse_softc *sc) argument 544 atse_rxfilter_locked(struct atse_softc *sc) argument 643 atse_get_eth_address(struct atse_softc *sc) argument 757 atse_set_eth_address(struct atse_softc *sc, int n) argument 790 atse_reset(struct atse_softc *sc) argument 961 atse_init_locked(struct atse_softc *sc) argument 1022 struct atse_softc *sc; local 1038 struct atse_softc *sc; local 1126 atse_intr_debug(struct atse_softc *sc, const char *intrname) argument 1153 atse_watchdog(struct atse_softc *sc) argument 1177 struct atse_softc *sc; local 1199 struct atse_softc *sc; local 1217 atse_update_rx_err(struct atse_softc *sc, uint32_t mask) argument 1228 atse_rx_locked(struct atse_softc *sc) argument 1378 struct atse_softc *sc; local 1394 struct atse_softc *sc; local 1451 struct atse_softc *sc; local 1504 struct atse_softc *sc; local 1660 struct atse_softc *sc; local 1703 struct atse_softc *sc; local 1722 struct atse_softc *sc; local 1760 struct atse_softc *sc; local 1887 struct atse_softc *sc; local 1933 struct atse_softc *sc; local 1994 struct atse_softc *sc; local 2011 struct atse_softc *sc; local 2029 struct atse_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/ed/ |
H A D | if_ed_novell.c | 70 struct ed_softc *sc = device_get_softc(dev); local 79 ed_asic_outb(sc, ED_NOVELL_RESET, 0); 82 tmp = ed_asic_inb(sc, ED_NOVELL_RESET); 89 ed_asic_outb(sc, ED_NOVELL_RESET, tmp); 98 ed_nic_outb(sc, ED_P0_CR, ED_CR_RD2 | ED_CR_STP); 102 if (!ed_probe_generic8390(sc)) 105 sc->vendor = ED_VENDOR_NOVELL; 106 sc->mem_shared = 0; 107 sc->cr_proto = ED_CR_RD2; 118 ed_nic_outb(sc, ED_P0_RC 216 struct ed_softc *sc = device_get_softc(dev); local 235 struct ed_softc *sc = device_get_softc(dev); local 300 ed_Novell_read_mac(struct ed_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/scd/ |
H A D | scd.c | 94 # define XDEBUG(sc, level, fmt, args...) \ 97 device_printf(sc->dev, fmt, ## args); \ 100 # define XDEBUG(sc, level, fmt, args...) 103 #define IS_ATTENTION(sc) ((SCD_READ(sc, IREG_STATUS) & SBIT_ATTENTION) != 0) 104 #define IS_BUSY(sc) ((SCD_READ(sc, IREG_STATUS) & SBIT_BUSY) != 0) 105 #define IS_DATA_RDY(sc) ((SCD_READ(sc, IREG_STATUS) & SBIT_DATA_READY) != 0) 106 #define STATUS_BIT(sc, bi 160 scd_attach(struct scd_softc *sc) argument 186 struct scd_softc *sc; local 234 struct scd_softc *sc; local 256 struct scd_softc *sc; local 303 scd_start(struct scd_softc *sc) argument 330 struct scd_softc *sc; local 422 scd_playtracks(struct scd_softc *sc, struct ioc_play_track *pt) argument 458 scd_playmsf(struct scd_softc *sc, struct ioc_play_msf *msfin) argument 474 scd_play(struct scd_softc *sc, struct ioc_play_msf *msf) argument 504 scd_stop(struct scd_softc *sc) argument 513 scd_pause(struct scd_softc *sc) argument 540 scd_resume(struct scd_softc *sc) argument 549 scd_eject(struct scd_softc *sc) argument 565 scd_subchan(struct scd_softc *sc, struct ioc_read_subchannel *sch) argument 601 scd_probe(struct scd_softc *sc) argument 663 read_subcode(struct scd_softc *sc, struct sony_subchannel_position_data *scp) argument 694 struct scd_softc *sc; local 702 scd_doread(struct scd_softc *sc, int state, struct scd_mbx *mbxin) argument 990 process_attention(struct scd_softc *sc) argument 1040 spin_up(struct scd_softc *sc) argument 1096 read_toc(struct scd_softc *sc) argument 1161 init_drive(struct scd_softc *sc) argument 1173 get_result(struct scd_softc *sc, int result_len, u_char *result) argument 1196 send_cmd(struct scd_softc *sc, u_char cmd, u_int nargs, ...) argument 1253 print_error(struct scd_softc *sc, int errcode) argument 1274 waitfor_status_bits(struct scd_softc *sc, int bits_set, int bits_clear) argument 1331 scd_toc_header(struct scd_softc *sc, struct ioc_toc_header* th) argument 1348 scd_toc_entrys(struct scd_softc *sc, struct ioc_read_toc_entry *te) argument 1393 scd_toc_entry(struct scd_softc *sc, struct ioc_read_toc_single_entry *te) argument [all...] |
/freebsd-11-stable/sys/dev/etherswitch/mtkswitch/ |
H A D | mtkswitch_mt7620.c | 59 mtkswitch_phy_read_locked(struct mtkswitch_softc *sc, int phy, int reg) argument 63 MTKSWITCH_WRITE(sc, MTKSWITCH_PIAC, PIAC_PHY_ACS_ST | PIAC_MDIO_ST | 66 while ((data = MTKSWITCH_READ(sc, MTKSWITCH_PIAC)) & PIAC_PHY_ACS_ST); 74 struct mtkswitch_softc *sc = device_get_softc(dev); local 80 MTKSWITCH_LOCK_ASSERT(sc, MA_NOTOWNED); 81 MTKSWITCH_LOCK(sc); 82 data = mtkswitch_phy_read_locked(sc, phy, reg); 83 MTKSWITCH_UNLOCK(sc); 89 mtkswitch_phy_write_locked(struct mtkswitch_softc *sc, int phy, int reg, argument 93 MTKSWITCH_WRITE(sc, MTKSWITCH_PIA 104 struct mtkswitch_softc *sc = device_get_softc(dev); local 119 mtkswitch_reg_read32(struct mtkswitch_softc *sc, int reg) argument 126 mtkswitch_reg_write32(struct mtkswitch_softc *sc, int reg, uint32_t val) argument 134 mtkswitch_reg_read32_mt7621(struct mtkswitch_softc *sc, int reg) argument 148 mtkswitch_reg_write32_mt7621(struct mtkswitch_softc *sc, int reg, uint32_t val) argument 163 struct mtkswitch_softc *sc = device_get_softc(dev); local 175 struct mtkswitch_softc *sc = device_get_softc(dev); local 192 mtkswitch_reset(struct mtkswitch_softc *sc) argument 200 mtkswitch_hw_setup(struct mtkswitch_softc *sc) argument 213 mtkswitch_hw_global_setup(struct mtkswitch_softc *sc) argument 222 mtkswitch_port_init(struct mtkswitch_softc *sc, int port) argument 247 mtkswitch_get_port_status(struct mtkswitch_softc *sc, int port) argument 275 mtkswitch_atu_flush(struct mtkswitch_softc *sc) argument 290 mtkswitch_port_vlan_setup(struct mtkswitch_softc *sc, etherswitch_port_t *p) argument 321 mtkswitch_port_vlan_get(struct mtkswitch_softc *sc, etherswitch_port_t *p) argument 342 mtkswitch_invalidate_vlan(struct mtkswitch_softc *sc, uint32_t vid) argument 352 mtkswitch_vlan_init_hw(struct mtkswitch_softc *sc) argument 394 mtkswitch_vlan_getvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v) argument 449 mtkswitch_vlan_setvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v) argument 502 mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid) argument 514 mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid) argument 527 mtk_attach_switch_mt7620(struct mtkswitch_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/iicbus/twsi/ |
H A D | twsi.c | 98 TWSI_READ(struct twsi_softc *sc, bus_size_t off) argument 101 return (bus_read_4(sc->res[0], off)); 105 TWSI_WRITE(struct twsi_softc *sc, bus_size_t off, uint32_t val) argument 108 bus_write_4(sc->res[0], off, val); 112 twsi_control_clear(struct twsi_softc *sc, uint32_t mask) argument 116 val = TWSI_READ(sc, sc->reg_control); 118 TWSI_WRITE(sc, sc->reg_control, val); 122 twsi_control_set(struct twsi_softc *sc, uint32_ argument 132 twsi_clear_iflg(struct twsi_softc *sc) argument 148 twsi_poll_ctrl(struct twsi_softc *sc, int timeout, uint32_t mask) argument 168 twsi_locked_start(device_t dev, struct twsi_softc *sc, int32_t mask, u_char slave, int timeout) argument 233 struct twsi_softc *sc; local 264 struct twsi_softc *sc; local 283 struct twsi_softc *sc; local 306 struct twsi_softc *sc; local 325 struct twsi_softc *sc; local 373 struct twsi_softc *sc; local 408 struct twsi_softc *sc; local 435 struct twsi_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/le/ |
H A D | lance.c | 106 lance_config(struct lance_softc *sc, const char* name, int unit) argument 111 if (LE_LOCK_INITIALIZED(sc) == 0) 114 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); 118 callout_init_mtx(&sc->sc_wdog_ch, &sc->sc_mtx, 0); 121 ifp->if_softc = sc; 136 ifmedia_init(&sc->sc_media, 0, lance_mediachange, lance_mediastatus); 137 if (sc->sc_supmedia != NULL) { 138 for (i = 0; i < sc->sc_nsupmedia; i++) 139 ifmedia_add(&sc 192 lance_attach(struct lance_softc *sc) argument 206 lance_detach(struct lance_softc *sc) argument 219 lance_suspend(struct lance_softc *sc) argument 228 lance_resume(struct lance_softc *sc) argument 240 struct lance_softc *sc = ifp->if_softc; local 248 lance_stop(struct lance_softc *sc) argument 267 struct lance_softc *sc = (struct lance_softc *)xsc; local 279 lance_init_locked(struct lance_softc *sc) argument 344 lance_put(struct lance_softc *sc, int boff, struct mbuf *m) argument 378 lance_get(struct lance_softc *sc, int boff, int totlen) argument 438 struct lance_softc *sc = (struct lance_softc *)xsc; local 456 struct lance_softc *sc = ifp->if_softc; local 479 struct lance_softc *sc = ifp->if_softc; local 502 struct lance_softc *sc = ifp->if_softc; local 582 lance_setladrf(struct lance_softc *sc, uint16_t *af) argument 636 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len) argument 647 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len) argument 658 lance_zerobuf_contig(struct lance_softc *sc, int boff, int len) argument [all...] |
/freebsd-11-stable/sys/dev/sound/pci/hda/ |
H A D | hdac.c | 53 #define hdac_lock(sc) snd_mtxlock((sc)->lock) 54 #define hdac_unlock(sc) snd_mtxunlock((sc)->lock) 55 #define hdac_lockassert(sc) snd_mtxassert((sc)->lock) 56 #define hdac_lockowned(sc) mtx_owned((sc)->lock) 225 static int hdac_rirb_flush(struct hdac_softc *sc); 226 static int hdac_unsolq_flush(struct hdac_softc *sc); 233 hdac_config_fetch(struct hdac_softc *sc, uint32_t *on, uint32_t *off) argument 296 struct hdac_softc *sc; local 346 struct hdac_softc *sc = arg; local 369 hdac_reset(struct hdac_softc *sc, int wakeup) argument 456 hdac_get_capabilities(struct hdac_softc *sc) argument 543 hdac_dma_alloc(struct hdac_softc *sc, struct hdac_dma *dma, bus_size_t size) argument 625 hdac_dma_free(struct hdac_softc *sc, struct hdac_dma *dma) argument 654 hdac_mem_alloc(struct hdac_softc *sc) argument 679 hdac_mem_free(struct hdac_softc *sc) argument 696 hdac_irq_alloc(struct hdac_softc *sc) argument 739 hdac_irq_free(struct hdac_softc *sc) argument 763 hdac_corb_init(struct hdac_softc *sc) argument 814 hdac_rirb_init(struct hdac_softc *sc) argument 873 hdac_corb_start(struct hdac_softc *sc) argument 888 hdac_rirb_start(struct hdac_softc *sc) argument 898 hdac_rirb_flush(struct hdac_softc *sc) argument 938 hdac_unsolq_flush(struct hdac_softc *sc) argument 968 hdac_send_command(struct hdac_softc *sc, nid_t cad, uint32_t verb) argument 1067 struct hdac_softc *sc; local 1086 struct hdac_softc *sc; local 1328 struct hdac_softc *sc; local 1394 hdac_poll_reinit(struct hdac_softc *sc) argument 1427 struct hdac_softc *sc; local 1473 struct hdac_softc *sc; local 1570 struct hdac_softc *sc = device_get_softc(dev); local 1600 struct hdac_softc *sc = device_get_softc(dev); local 1651 struct hdac_softc *sc = device_get_softc(dev); local 1691 struct hdac_softc *sc = device_get_softc(dev); local 1723 struct hdac_softc *sc = device_get_softc(dev); local 1736 struct hdac_softc *sc = device_get_softc(dev); local 1776 struct hdac_softc *sc = device_get_softc(dev); local 1790 hdac_find_stream(struct hdac_softc *sc, int dir, int stream) argument 1828 struct hdac_softc *sc = device_get_softc(dev); local 1887 struct hdac_softc *sc = device_get_softc(dev); local 1906 struct hdac_softc *sc = device_get_softc(dev); local 1966 struct hdac_softc *sc = device_get_softc(dev); local 1991 struct hdac_softc *sc = device_get_softc(dev); local 2029 struct hdac_softc *sc = device_get_softc(dev); local 2043 struct hdac_softc *sc = device_get_softc(dev); local 2053 struct hdac_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/dev/de/ |
H A D | if_de.c | 129 static void tulip_addr_filter(tulip_softc_t * const sc); 134 static void tulip_init_locked(tulip_softc_t * const sc); 137 static void tulip_mii_autonegotiate(tulip_softc_t * const sc, 139 static int tulip_mii_map_abilities(tulip_softc_t * const sc, 142 tulip_mii_phy_readspecific(tulip_softc_t * const sc); 143 static unsigned tulip_mii_readreg(tulip_softc_t * const sc, unsigned devaddr, 145 static void tulip_mii_writereg(tulip_softc_t * const sc, unsigned devaddr, 147 static void tulip_reset(tulip_softc_t * const sc); 148 static void tulip_rx_intr(tulip_softc_t * const sc); 149 static int tulip_srom_decode(tulip_softc_t * const sc); 224 tulip_softc_t * const sc = arg; local 237 tulip_timeout(tulip_softc_t * const sc) argument 248 tulip_txprobe(tulip_softc_t * const sc) argument 293 tulip_media_set(tulip_softc_t * const sc, tulip_media_t media) argument 386 tulip_linkup(tulip_softc_t * const sc, tulip_media_t media) argument 439 tulip_media_print(tulip_softc_t * const sc) argument 457 tulip_21140_gpr_media_sense(tulip_softc_t * const sc) argument 520 tulip_media_link_monitor(tulip_softc_t * const sc) argument 630 tulip_media_poll(tulip_softc_t * const sc, tulip_mediapoll_event_t event) argument 919 tulip_media_select(tulip_softc_t * const sc) argument 942 tulip_21040_mediainfo_init(tulip_softc_t * const sc, tulip_media_t media) argument 965 tulip_21040_media_probe(tulip_softc_t * const sc) argument 973 tulip_21040_10baset_only_media_probe(tulip_softc_t * const sc) argument 982 tulip_21040_10baset_only_media_select(tulip_softc_t * const sc) argument 997 tulip_21040_auibnc_only_media_probe(tulip_softc_t * const sc) argument 1007 tulip_21040_auibnc_only_media_select(tulip_softc_t * const sc) argument 1036 tulip_21041_mediainfo_init(tulip_softc_t * const sc) argument 1057 tulip_21041_media_probe(tulip_softc_t * const sc) argument 1068 tulip_21041_media_poll(tulip_softc_t * const sc, const tulip_mediapoll_event_t event) argument 1277 tulip_mii_phy_readspecific(tulip_softc_t * const sc) argument 1339 tulip_mii_get_phyaddr(tulip_softc_t * const sc, unsigned offset) argument 1362 tulip_mii_map_abilities(tulip_softc_t * const sc, unsigned abilities) argument 1385 tulip_mii_autonegotiate(tulip_softc_t * const sc, const unsigned phyaddr) argument 1485 tulip_2114x_media_preset(tulip_softc_t * const sc) argument 1561 tulip_null_media_poll(tulip_softc_t * const sc, tulip_mediapoll_event_t event) argument 1572 tulip_21140_mediainit(tulip_softc_t * const sc, tulip_media_info_t * const mip, tulip_media_t const media, unsigned gpdata, unsigned cmdmode) argument 1583 tulip_21140_evalboard_media_probe(tulip_softc_t * const sc) argument 1628 tulip_21140_accton_media_probe(tulip_softc_t * const sc) argument 1682 tulip_21140_smc9332_media_probe(tulip_softc_t * const sc) argument 1738 tulip_21140_cogent_em100_media_probe(tulip_softc_t * const sc) argument 1785 tulip_21140_znyx_zx34x_media_probe(tulip_softc_t * const sc) argument 1842 tulip_2114x_media_probe(tulip_softc_t * const sc) argument 1867 tulip_srom_idle(tulip_softc_t * const sc) argument 1889 tulip_srom_read(tulip_softc_t * const sc) argument 1937 tulip_mii_writebits(tulip_softc_t * const sc, unsigned data, unsigned bits) argument 1958 tulip_mii_turnaround(tulip_softc_t * const sc, unsigned cmd) argument 1976 tulip_mii_readbits(tulip_softc_t * const sc) argument 1996 tulip_mii_readreg(tulip_softc_t * const sc, unsigned devaddr, unsigned regno) argument 2018 tulip_mii_writereg(tulip_softc_t * const sc, unsigned devaddr, unsigned regno, unsigned data) argument 2043 tulip_identify_dec_nic(tulip_softc_t * const sc) argument 2059 tulip_identify_znyx_nic(tulip_softc_t * const sc) argument 2153 tulip_identify_smc_nic(tulip_softc_t * const sc) argument 2202 tulip_identify_cogent_nic(tulip_softc_t * const sc) argument 2238 tulip_identify_accton_nic(tulip_softc_t * const sc) argument 2268 tulip_identify_asante_nic(tulip_softc_t * const sc) argument 2324 tulip_identify_compex_nic(tulip_softc_t * const sc) argument 2363 tulip_srom_decode(tulip_softc_t * const sc) argument 2746 tulip_read_macaddr(tulip_softc_t * const sc) argument 2947 tulip_ifmedia_add(tulip_softc_t * const sc) argument 2977 tulip_softc_t * const sc = (tulip_softc_t *)ifp->if_softc; local 3009 tulip_softc_t *sc = (tulip_softc_t *)ifp->if_softc; local 3026 tulip_addr_filter(tulip_softc_t * const sc) argument 3143 tulip_reset(tulip_softc_t * const sc) argument 3257 tulip_softc_t *sc = (tulip_softc_t *)arg; local 3265 tulip_init_locked(tulip_softc_t * const sc) argument 3321 tulip_rx_intr(tulip_softc_t * const sc) argument 3594 tulip_tx_intr(tulip_softc_t * const sc) argument 3739 tulip_print_abnormal_interrupt(tulip_softc_t * const sc, u_int32_t csr) argument 3768 tulip_intr_handler(tulip_softc_t * const sc) argument 3867 tulip_softc_t * sc = arg; local 3882 tulip_softc_t * sc = (tulip_softc_t *) arg; local 3893 tulip_txput(tulip_softc_t * const sc, struct mbuf *m) argument 4154 tulip_txput_setup(tulip_softc_t * const sc) argument 4291 tulip_start_locked(tulip_softc_t * const sc) argument 4393 tulip_attach(tulip_softc_t * const sc) argument 4476 tulip_busdma_allocring(device_t dev, tulip_softc_t * const sc, size_t count, bus_size_t align, int nsegs, tulip_ringinfo_t *ri, const char *name) argument 4539 tulip_busdma_cleanup(tulip_softc_t * const sc) argument 4565 tulip_busdma_init(device_t dev, tulip_softc_t * const sc) argument 4618 tulip_initcsrs(tulip_softc_t * const sc, tulip_csrptr_t csr_base, size_t csr_size) argument 4640 tulip_initring( device_t dev, tulip_softc_t * const sc, tulip_ringinfo_t * const ri, int ndescs) argument 4715 tulip_softc_t * const sc = device_get_softc(dev); local 4726 tulip_softc_t *sc; local 4920 tulip_softc_t *sc; local 4963 tulip_softc_t *sc; local [all...] |
/freebsd-11-stable/sys/arm/amlogic/aml8726/ |
H A D | aml8726_rtc.c | 86 #define AML_RTC_LOCK(sc) mtx_lock_spin(&(sc)->mtx) 87 #define AML_RTC_UNLOCK(sc) mtx_unlock_spin(&(sc)->mtx) 88 #define AML_RTC_LOCK_INIT(sc) \ 89 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \ 91 #define AML_RTC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx); 125 #define CSR_WRITE_4(sc, re 131 aml8726_rtc_start_transfer(struct aml8726_rtc_softc *sc) argument 159 aml8726_rtc_sclk_pulse(struct aml8726_rtc_softc *sc) argument 178 aml8726_rtc_send_bit(struct aml8726_rtc_softc *sc, unsigned bit) argument 193 aml8726_rtc_send_addr(struct aml8726_rtc_softc *sc, u_char addr) argument 208 aml8726_rtc_send_data(struct aml8726_rtc_softc *sc, uint32_t data) argument 217 aml8726_rtc_recv_data(struct aml8726_rtc_softc *sc, uint32_t *dp) argument 234 aml8726_rtc_sreg_read(struct aml8726_rtc_softc *sc, u_char sreg, uint32_t *val) argument 254 aml8726_rtc_sreg_write(struct aml8726_rtc_softc *sc, u_char sreg, uint32_t val) argument 274 aml8726_rtc_initialize(struct aml8726_rtc_softc *sc) argument 324 aml8726_rtc_check_xo(struct aml8726_rtc_softc *sc) argument 376 struct aml8726_rtc_softc *sc = device_get_softc(dev); local 431 struct aml8726_rtc_softc *sc = device_get_softc(dev); local 450 struct aml8726_rtc_softc *sc = device_get_softc(dev); local [all...] |
H A D | aml8726_sdxc-m8.c | 144 #define AML_SDXC_LOCK(sc) mtx_lock(&(sc)->mtx) 145 #define AML_SDXC_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 146 #define AML_SDXC_LOCK_ASSERT(sc) mtx_assert(&(sc)->mtx, MA_OWNED) 147 #define AML_SDXC_LOCK_INIT(sc) \ 148 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \ 150 #define AML_SDXC_LOCK_DESTROY(sc) mtx_destro 181 aml8726_sdxc_power_off(struct aml8726_sdxc_softc *sc) argument 192 aml8726_sdxc_power_on(struct aml8726_sdxc_softc *sc) argument 203 aml8726_sdxc_soft_reset(struct aml8726_sdxc_softc *sc) argument 212 aml8726_sdxc_engage_dma(struct aml8726_sdxc_softc *sc) argument 267 aml8726_sdxc_disengage_dma(struct aml8726_sdxc_softc *sc) argument 313 aml8726_sdxc_start_command(struct aml8726_sdxc_softc *sc, struct mmc_command *cmd) argument 441 aml8726_sdxc_finish_command(struct aml8726_sdxc_softc *sc, int mmc_error) argument 519 struct aml8726_sdxc_softc *sc = (struct aml8726_sdxc_softc *)arg; local 541 struct aml8726_sdxc_softc *sc = (struct aml8726_sdxc_softc *)arg; local 566 struct aml8726_sdxc_softc *sc = (struct aml8726_sdxc_softc *)arg; local 701 struct aml8726_sdxc_softc *sc = device_get_softc(dev); local 979 struct aml8726_sdxc_softc *sc = device_get_softc(dev); local 1016 struct aml8726_sdxc_softc *sc = device_get_softc(dev); local 1032 struct aml8726_sdxc_softc *sc = device_get_softc(bus); local 1189 struct aml8726_sdxc_softc *sc = device_get_softc(bus); local 1216 struct aml8726_sdxc_softc *sc = device_get_softc(bus); local 1269 struct aml8726_sdxc_softc *sc = device_get_softc(bus); local 1319 struct aml8726_sdxc_softc *sc = device_get_softc(bus); local 1335 struct aml8726_sdxc_softc *sc = device_get_softc(bus); local [all...] |
/freebsd-11-stable/sys/arm/cavium/cns11xx/ |
H A D | if_ece.c | 89 read_4(struct ece_softc *sc, bus_size_t off) argument 92 return (bus_read_4(sc->mem_res, off)); 96 write_4(struct ece_softc *sc, bus_size_t off, uint32_t val) argument 99 bus_write_4(sc->mem_res, off, val); 161 static int ece_get_mac(struct ece_softc *sc, u_char *eaddr); 162 static void ece_set_mac(struct ece_softc *sc, u_char *eaddr); 163 static int configure_cpu_port(struct ece_softc *sc); 164 static int configure_lan_port(struct ece_softc *sc, int phy_type); 165 static void set_pvid(struct ece_softc *sc, int port0, int port1, int cpu); 166 static void set_vlan_vid(struct ece_softc *sc, in 191 phy_read(struct ece_softc *sc, int phy, int reg) argument 216 phy_write(struct ece_softc *sc, int phy, int reg, int data) argument 235 get_phy_type(struct ece_softc *sc) argument 270 struct ece_softc *sc; local 456 struct ece_softc *sc = device_get_softc(dev); local 478 ece_alloc_desc_dma_tx(struct ece_softc *sc) argument 557 ece_free_desc_dma_tx(struct ece_softc *sc) argument 596 ece_alloc_desc_dma_rx(struct ece_softc *sc) argument 677 ece_free_desc_dma_rx(struct ece_softc *sc) argument 715 ece_new_rxbuf(struct ece_softc *sc, struct rx_desc_info* descinfo) argument 762 ece_allocate_dma(struct ece_softc *sc) argument 816 struct ece_softc *sc; local 862 struct ece_softc *sc; local 914 struct ece_softc *sc = ifp->if_softc; local 931 struct ece_softc *sc = ifp->if_softc; local 945 struct ece_softc *sc = xsc; local 1032 remove_mac_entry(struct ece_softc *sc, uint8_t *mac) argument 1043 add_mac_entry(struct ece_softc *sc, uint8_t *mac) argument 1106 configure_lan_port(struct ece_softc *sc, int phy_type) argument 1138 set_pvid(struct ece_softc *sc, int port0, int port1, int cpu) argument 1159 set_vlan_vid(struct ece_softc *sc, int vlan) argument 1204 set_vlan_member(struct ece_softc *sc, int vlan) argument 1230 set_vlan_tag(struct ece_softc *sc, int vlan) argument 1245 configure_cpu_port(struct ece_softc *sc) argument 1283 hardware_init(struct ece_softc *sc) argument 1301 set_mac_address(struct ece_softc *sc, const char *mac, int mac_len) argument 1316 ece_set_mac(struct ece_softc *sc, u_char *eaddr) argument 1328 ece_get_mac(struct ece_softc *sc, u_char *eaddr) argument 1334 ece_intr_rx_locked(struct ece_softc *sc, int count) argument 1445 struct ece_softc *sc = arg; local 1454 struct ece_softc *sc = xsc; local 1471 struct ece_softc *sc = xsc; local 1486 ece_cleanup_locked(struct ece_softc *sc) argument 1519 struct ece_softc *sc = arg; local 1528 struct ece_softc *sc = xsc; local 1541 struct ece_softc *sc = xsc; local 1558 struct ece_softc *sc = xsc; local 1606 ece_encap(struct ece_softc *sc, struct mbuf *m0) argument 1708 struct ece_softc *sc; local 1744 struct ece_softc *sc = xsc; local 1761 struct ece_softc *sc = ifp->if_softc; local 1772 ecestop(struct ece_softc *sc) argument 1810 ece_restart(struct ece_softc *sc) argument 1825 set_filter(struct ece_softc *sc) argument 1854 struct ece_softc *sc = ifp->if_softc; local 1903 struct ece_softc *sc; local 1916 struct ece_softc *sc; local 1924 struct ece_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/digi/ |
H A D | digi_pci.c | 53 digi_pci_setwin(struct digi_softc *sc, unsigned int addr) argument 55 return (sc->vmem + addr); 59 digi_pci_hidewin(struct digi_softc *sc) argument 65 digi_pci_towin(struct digi_softc *sc, int win) argument 103 struct digi_softc *sc; local 109 sc = device_get_softc(dev); 110 KASSERT(sc, ("digi%d: softc not allocated in digi_pci_attach\n", 113 bzero(sc, sizeof(*sc)); 114 sc [all...] |
/freebsd-11-stable/sys/dev/ath/ |
H A D | if_athdfs.h | 34 extern int ath_dfs_attach(struct ath_softc *sc); 35 extern int ath_dfs_detach(struct ath_softc *sc); 38 extern int ath_dfs_radar_disable(struct ath_softc *sc); 39 extern void ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m, 41 extern int ath_dfs_process_radar_event(struct ath_softc *sc, 43 extern int ath_dfs_tasklet_needed(struct ath_softc *sc, 45 extern int ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad); 46 extern int ath_dfs_get_thresholds(struct ath_softc *sc,
|
/freebsd-11-stable/sys/mips/rt305x/ |
H A D | rt305x_pcireg.h | 63 #define RT_WRITE32(sc, off, val) \ 64 bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, (off), (val)) 65 #define RT_WRITE16(sc, off, val) \ 66 bus_space_write_2((sc)->sc_bst, (sc)->sc_bsh, (off), (val)) 67 #define RT_WRITE8(sc, off, val) \ 68 bus_space_write_1((sc)->sc_bst, (sc)->sc_bsh, (off), (val)) 69 #define RT_READ32(sc, of [all...] |
/freebsd-11-stable/sys/dev/iwm/ |
H A D | if_iwm_binding.h | 108 extern int iwm_mvm_binding_add_vif(struct iwm_softc *sc, struct iwm_vap *ivp); 109 extern int iwm_mvm_binding_remove_vif(struct iwm_softc *sc, struct iwm_vap *ivp);
|
H A D | if_iwm_sta.h | 202 * @sc: the iwm_softc* to use 209 extern int iwm_mvm_sta_send_to_fw(struct iwm_softc *sc, struct iwm_node *in, 211 extern int iwm_mvm_add_sta(struct iwm_softc *sc, struct iwm_node *in); 212 extern int iwm_mvm_update_sta(struct iwm_softc *sc, struct iwm_node *in); 213 extern int iwm_mvm_rm_sta(struct iwm_softc *sc, struct ieee80211vap *vap, 215 extern int iwm_mvm_rm_sta_id(struct iwm_softc *sc, struct ieee80211vap *vap); 217 extern int iwm_mvm_add_aux_sta(struct iwm_softc *sc); 218 extern void iwm_mvm_del_aux_sta(struct iwm_softc *sc); 220 extern int iwm_mvm_drain_sta(struct iwm_softc *sc, struct iwm_vap *ivp,
|
H A D | if_iwm_scan.h | 109 extern int iwm_mvm_lmac_scan(struct iwm_softc *sc); 112 extern int iwm_mvm_scan_stop_wait(struct iwm_softc *sc);
|
/freebsd-11-stable/sys/dev/pcf/ |
H A D | pcf.c | 61 pcf_wait_byte(struct pcf_softc *sc) argument 65 PCF_ASSERT_LOCKED(sc); 68 if ((pcf_get_S1(sc) & PIN) == 0) 80 pcf_stop_locked(struct pcf_softc *sc) argument 83 PCF_ASSERT_LOCKED(sc); 93 if (sc->pcf_started) { 95 pcf_set_S1(sc, PIN|ESO|ENI|STO|ACK); 97 sc->pcf_started = 0; 102 pcf_noack(struct pcf_softc *sc, int timeout) argument 107 PCF_ASSERT_LOCKED(sc); 121 struct pcf_softc *sc = DEVTOSOFTC(dev); local 161 struct pcf_softc *sc = DEVTOSOFTC(dev); local 210 struct pcf_softc *sc = DEVTOSOFTC(dev); local 225 struct pcf_softc *sc = arg; local 334 struct pcf_softc *sc = DEVTOSOFTC(dev); local 383 struct pcf_softc *sc = DEVTOSOFTC(dev); local 426 struct pcf_softc *sc = DEVTOSOFTC(dev); local [all...] |
/freebsd-11-stable/sys/dev/bm/ |
H A D | if_bm.c | 90 static int bm_encap (struct bm_softc *sc, struct mbuf **m_head); 93 static void bm_init_locked (struct bm_softc *sc); 94 static void bm_chip_setup (struct bm_softc *sc); 95 static void bm_stop (struct bm_softc *sc); 96 static void bm_setladrf (struct bm_softc *sc); 97 static void bm_dummypacket (struct bm_softc *sc); 101 static int bm_add_rxbuf (struct bm_softc *sc, int i); 102 static int bm_add_rxbuf_dma (struct bm_softc *sc, int i); 103 static void bm_enable_interrupts (struct bm_softc *sc); 104 static void bm_disable_interrupts (struct bm_softc *sc); 168 struct bm_softc *sc; local 183 struct bm_softc *sc; local 217 struct bm_softc *sc = device_get_softc(dev); local 253 struct bm_softc *sc = ifp->if_softc; local 265 struct bm_softc *sc = ifp->if_softc; local 305 struct bm_softc *sc = device_get_softc(dev); local 492 struct bm_softc *sc = device_get_softc(dev); local 526 struct bm_softc *sc; local 538 bm_dummypacket(struct bm_softc *sc) argument 566 struct bm_softc *sc = xsc; local 657 struct bm_softc *sc = xsc; local 706 struct bm_softc *sc = ifp->if_softc; local 716 struct bm_softc *sc = ifp->if_softc; local 765 bm_encap(struct bm_softc *sc, struct mbuf **m_head) argument 868 struct bm_softc *sc = ifp->if_softc; local 907 bm_setladrf(struct bm_softc *sc) argument 978 struct bm_softc *sc = xsc; local 986 bm_chip_setup(struct bm_softc *sc) argument 1016 bm_stop(struct bm_softc *sc) argument 1063 bm_init_locked(struct bm_softc *sc) argument 1198 struct bm_softc *sc = arg; local 1238 bm_add_rxbuf(struct bm_softc *sc, int idx) argument 1276 bm_add_rxbuf_dma(struct bm_softc *sc, int idx) argument 1288 bm_enable_interrupts(struct bm_softc *sc) argument 1295 bm_disable_interrupts(struct bm_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/sbni/ |
H A D | if_sbni_pci.c | 78 struct sbni_softc *sc; local 86 sc = device_get_softc(dev); 89 sc->slave_sc = malloc(sizeof(struct sbni_softc), 91 if (!sc->slave_sc) 97 sc->io_rid = PCIR_BAR(0); 98 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 99 &sc->io_rid, RF_ACTIVE); 100 if (!sc->io_res) { 102 if (sc->slave_sc) 103 free(sc 124 struct sbni_softc *sc; local 180 struct sbni_softc *sc; local [all...] |