/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_mii_5906.c | 41 bge_adj_volt_5906(bge_t *bgep) argument 44 bge_mii_put16(bgep, 0x17, 0x12);
|
H A D | bge_ndd.c | 48 bge_param_sync(bge_t *bgep) argument 50 bgep->param_en_pause = bgep->param_adv_pause; 51 bgep->param_en_asym_pause = bgep->param_adv_asym_pause; 52 bgep->param_en_1000fdx = bgep->param_adv_1000fdx; 53 bgep->param_en_1000hdx = bgep->param_adv_1000hdx; 54 bgep 84 bge_nd_param_init(bge_t *bgep) argument 122 bge_nd_init(bge_t *bgep) argument [all...] |
H A D | bge_log.c | 70 bge_log(bge_t *bgep, const char *fmt, ...) argument 75 bge_log_data.who = bgep->ifname; 90 bge_problem(bge_t *bgep, const char *fmt, ...) argument 95 bge_log_data.who = bgep->ifname; 110 bge_error(bge_t *bgep, const char *fmt, ...) argument 115 bge_log_data.who = bgep->ifname; 127 bge_fm_ereport(bge_t *bgep, char *detail) argument 134 if (DDI_FM_EREPORT_CAP(bgep->fm_capabilities)) { 135 ddi_fm_ereport_post(bgep->devinfo, buf, ena, DDI_NOSLEEP, 168 (*bge_db(bge_t *bgep))(cons argument 182 minidump(bge_t *bgep, const char *caption, void *dp, uint_t len) argument 200 bge_pkt_dump(bge_t *bgep, bge_rbd_t *hrbdp, sw_rbd_t *srbdp, const char *msg) argument 227 bge_dbg_enter(bge_t *bgep, const char *s) argument [all...] |
H A D | bge_recv2.c | 38 static void bge_refill(bge_t *bgep, buff_ring_t *brp, sw_rbd_t *srbdp); 57 bge_refill(bge_t *bgep, buff_ring_t *brp, sw_rbd_t *srbdp) argument 65 bge_mbx_put(bgep, brp->chip_mbx_reg, slot); 68 static mblk_t *bge_receive_packet(bge_t *bgep, bge_rbd_t *hw_rbd_p, 73 bge_receive_packet(bge_t *bgep, bge_rbd_t *hw_rbd_p, recv_ring_t *rrp) argument 92 BGE_PKTDUMP((bgep, &hw_rbd, NULL, "bad ring flags!")); 96 brp = &bgep->buff[BGE_JUMBO_BUFF_RING]; 101 brp = &bgep->buff[BGE_MINI_BUFF_RING]; 106 brp = &bgep->buff[BGE_STD_BUFF_RING]; 112 BGE_PKTDUMP((bgep, 284 bge_receive_ring(bge_t *bgep, recv_ring_t *rrp) argument 354 bge_t *bgep = rrp->bgep; local 414 bge_receive(bge_t *bgep, bge_status_t *bsp) argument [all...] |
H A D | bge_kstats.c | 197 bge_t *bgep; local 206 bgep = ksp->ks_private; 207 if (bgep->chipid.statistic_type == BGE_STAT_BLK) 208 bstp = DMA_VPTR(bgep->statistics); 220 if (bgep->chipid.statistic_type == BGE_STAT_BLK) 224 pstats = bgep->pstats; 310 bge_t *bgep; local 317 bgep = ksp->ks_private; 320 (knp++)->value.ui64 = bgep->chipid.asic_rev; 321 (knp++)->value.ui64 = bgep 404 bge_t *bgep; local 481 bge_t *bgep; local 526 bge_t *bgep; local 587 bge_setup_named_kstat(bge_t *bgep, int instance, char *name, const bge_ksindex_t *ksip, size_t size, int (*update)(kstat_t *, int)) argument 629 bge_init_kstats(bge_t *bgep, int instance) argument 675 bge_fini_kstats(bge_t *bgep) argument 689 bge_t *bgep = arg; local [all...] |
H A D | bge_send.c | 92 static boolean_t bge_recycle_ring(bge_t *bgep, send_ring_t *srp); 96 bge_recycle_ring(bge_t *bgep, send_ring_t *srp) argument 145 bgep->watchdog = (slot == srp->tx_next) ? 0 : 1; 173 if (srp->tx_flow != 0 || bgep->tx_resched_needed) 174 ddi_trigger_softintr(bgep->drain_id); 207 boolean_t bge_recycle(bge_t *bgep, bge_status_t *bsp); 211 bge_recycle(bge_t *bgep, bge_status_t *bsp) argument 215 uint64_t tx_rings = bgep->chipid.tx_rings; 220 srp = &bgep->send[ring]; 233 tx_done |= bge_recycle_ring(bgep, sr 302 bge_get_txbuf(bge_t *bgep, send_ring_t *srp) argument 341 bge_send_copy(bge_t *bgep, sw_txbuf_t *txbuf, mblk_t *mp) argument 364 bge_send_serial(bge_t *bgep, send_ring_t *srp) argument 495 bge_t *bgep = srp->bgep; local 580 bge_send(bge_t *bgep, mblk_t *mp) argument 593 bge_t *bgep; local 619 bge_t *bgep = arg; /* private device info */ local [all...] |
H A D | bge_mii.c | 113 bge_phydump(bge_t *bgep, uint16_t mii_status, uint16_t aux) argument 118 ASSERT(mutex_owned(bgep->genlock)); 123 regs[i] = bge_mii_get16(bgep, i); 153 bge_phy_toggle_auxctl_smdsp(bge_t *bgep, argument 158 val = bge_mii_get16(bgep, MII_AUX_CONTROL); 166 bge_mii_put16(bgep, MII_AUX_CONTROL, (val | MII_AUX_CTRL_TX_6DB)); 175 bge_phy_probe(bge_t *bgep) argument 181 BGE_TRACE(("bge_phy_probe($%p)", (void *)bgep)); 183 ASSERT(mutex_owned(bgep->genlock)); 185 nicsig = bge_nic_read32(bgep, BGE_NIC_DATA_SIG_ADD 232 bge_phy_reset(bge_t *bgep) argument 273 bge_phy_powerdown(bge_t *bgep) argument 296 bge_phy_macro_wait(bge_t *bgep) argument 350 bge_phy_locked_up(bge_t *bgep) argument 441 bge_phy_reset_and_check(bge_t *bgep) argument 534 bge_phy_tweak_gmii(bge_t *bgep) argument 543 bge_phy_bit_err_fix(bge_t *bgep) argument 560 bge_restart_copper(bge_t *bgep, boolean_t powerdown) argument 668 bge_eee_cap(bge_t * bgep) argument 698 bge_eee_init(bge_t * bgep) argument 743 bge_eee_autoneg(bge_t * bgep, boolean_t adv_100fdx, boolean_t adv_1000fdx) argument 806 bge_eee_adjust(bge_t * bgep) argument 875 bge_eee_enable(bge_t * bgep) argument 907 bge_update_copper(bge_t *bgep) argument 1132 bge_check_copper(bge_t *bgep, boolean_t recheck) argument 1319 bge_restart_serdes(bge_t *bgep, boolean_t powerdown) argument 1387 bge_update_serdes(bge_t *bgep) argument 1515 bge_autoneg_serdes(bge_t *bgep) argument 1550 bge_check_serdes(bge_t *bgep, boolean_t recheck) argument 1784 bge_phys_init(bge_t *bgep) argument 1831 bge_phys_reset(bge_t *bgep) argument 1850 bge_phys_idle(bge_t *bgep) argument 1871 bge_phys_update(bge_t *bgep) argument 1896 bge_phys_check(bge_t *bgep) argument [all...] |
H A D | bge_main2.c | 333 bge_reinit_rings(bge_t *bgep) argument 337 ASSERT(mutex_owned(bgep->genlock)); 342 for (ring = 0; ring < bgep->chipid.tx_rings; ++ring) 343 bge_reinit_send_ring(&bgep->send[ring]); 348 for (ring = 0; ring < bgep->chipid.rx_rings; ++ring) 349 bge_reinit_recv_ring(&bgep->recv[ring]); 355 bge_reinit_buff_ring(&bgep->buff[ring], ring); 377 bge_reset(bge_t *bgep, uint_t asf_mode) argument 379 bge_reset(bge_t *bgep) 385 BGE_TRACE(("bge_reset($%p)", (void *)bgep)); 431 bge_stop(bge_t *bgep) argument 454 bge_start(bge_t *bgep, boolean_t reset_phys) argument 475 bge_restart(bge_t *bgep, boolean_t reset_phys) argument 516 bge_t *bgep = arg; /* private device info */ local 565 bge_t *bgep = arg; /* private device info */ local 646 bge_t *bgep = arg; /* private device info */ local 766 bge_t *bgep = barg; local 936 bge_t *bgep = barg; local 1037 bge_t *bgep = barg; local 1113 bge_set_priv_prop(bge_t *bgep, const char *pr_name, uint_t pr_valsize, const void *pr_val) argument 1295 bge_t *bgep = arg; local 1327 bge_t *bgep = arg; /* private device info */ local 1425 bge_t *bgep = arg; local 1479 bge_t *bgep = arg; local 1501 bge_unicst_find(bge_t *bgep, const uint8_t *mac_addr) argument 1523 bge_t *bgep = rrp->bgep; local 1623 bge_t *bgep = rrp->bgep; local 1677 bge_t *bgep = rrp->bgep; local 1690 bge_t *bgep = rrp->bgep; local 1720 bge_t *bgep = arg; local 1761 bge_t *bgep = arg; local 1792 bge_t *bgep = arg; local 1840 bge_set_loop_mode(bge_t *bgep, uint32_t mode) argument 1875 bge_loop_ioctl(bge_t *bgep, queue_t *wq, mblk_t *mp, struct iocblk *iocp) argument 1934 bge_t *bgep = arg; local 2104 bge_alloc_dma_mem(bge_t *bgep, size_t memsize, ddi_device_acc_attr_t *attr_p, uint_t dma_flags, dma_area_t *dma_p) argument 2206 bge_init_buff_ring(bge_t *bgep, uint64_t ring) argument 2284 bge_fini_buff_ring(bge_t *bgep, uint64_t ring) argument 2306 bge_init_recv_ring(bge_t *bgep, uint64_t ring) argument 2348 bge_fini_recv_ring(bge_t *bgep, uint64_t ring) argument 2367 bge_init_send_ring(bge_t *bgep, uint64_t ring) argument 2462 bge_fini_send_ring(bge_t *bgep, uint64_t ring) argument 2498 bge_init_rings(bge_t *bgep) argument 2519 bge_fini_rings(bge_t *bgep) argument 2566 bge_alloc_txbuf_array(bge_t *bgep, send_ring_t *srp) argument 2652 bge_alloc_bufs(bge_t *bgep) argument 3029 bge_free_bufs(bge_t *bgep) argument 3050 bge_find_mac_address(bge_t *bgep, chip_id_t *cidp) argument 3162 bge_check_acc_handle(bge_t *bgep, ddi_acc_handle_t handle) argument 3173 bge_check_dma_handle(bge_t *bgep, ddi_dma_handle_t handle) argument 3198 bge_fm_init(bge_t *bgep) argument 3234 bge_fm_fini(bge_t *bgep) argument 3259 bge_unattach(bge_t *bgep, uint_t asf_mode) argument 3346 bge_t *bgep; /* Our private data */ local 3417 bge_fw_img_is_valid(bge_t *bgep, uint32_t offset) argument 3431 bge_read_mgmtfw_ver(bge_t *bgep) argument 3487 bge_read_dash_ver(bge_t *bgep) argument 3528 bge_read_bc_ver(bge_t *bgep) argument 3581 bge_read_fw_ver(bge_t *bgep) argument 3627 bge_t *bgep; /* Our private data */ local 4147 bge_suspend(bge_t *bgep) argument 4193 bge_t *bgep = ddi_get_driver_private(devinfo); local 4218 bge_t *bgep; local 4361 bge_add_intrs(bge_t *bgep, int intr_type) argument 4480 bge_rem_intrs(bge_t *bgep) argument 4497 bge_intr_enable(bge_t *bgep) argument 4514 bge_intr_disable(bge_t *bgep) argument 4529 bge_reprogram(bge_t *bgep) argument [all...] |
H A D | bge_chip2.c | 35 #define PIO_ADDR(bgep, offset) ((void *)((caddr_t)(bgep)->io_regs+(offset))) 36 #define APE_ADDR(bgep, offset) ((void *)((caddr_t)(bgep)->ape_regs+(offset))) 176 static void bge_cfg_clr16(bge_t *bgep, bge_regno_t regno, uint16_t bits); 180 bge_cfg_clr16(bge_t *bgep, bge_regno_t regno, uint16_t bits) argument 185 (void *)bgep, regno, bits)); 187 regval = pci_config_get16(bgep->cfg_handle, regno); 190 (void *)bgep, regno, bits, regval, regval & ~bits)); 193 pci_config_put16(bgep 202 bge_cfg_clr32(bge_t *bgep, bge_regno_t regno, uint32_t bits) argument 238 bge_ind_get32(bge_t *bgep, bge_regno_t regno) argument 265 bge_ind_put32(bge_t *bgep, bge_regno_t regno, uint32_t val) argument 289 bge_pci_check(bge_t *bgep) argument 328 bge_chip_cfg_init(bge_t *bgep, chip_id_t *cidp, boolean_t enable_dma) argument 605 bge_reg_get32(bge_t *bgep, bge_regno_t regno) argument 617 bge_reg_put32(bge_t *bgep, bge_regno_t regno, uint32_t data) argument 630 bge_reg_set32(bge_t *bgep, bge_regno_t regno, uint32_t bits) argument 646 bge_reg_clr32(bge_t *bgep, bge_regno_t regno, uint32_t bits) argument 662 bge_reg_get64(bge_t *bgep, bge_regno_t regno) argument 705 bge_reg_put64(bge_t *bgep, bge_regno_t regno, uint64_t data) argument 755 bge_reg_putrcb(bge_t *bgep, bge_regno_t addr, bge_rcb_t *rcbp) argument 774 bge_mbx_put(bge_t *bgep, bge_regno_t regno, uint64_t data) argument 801 bge_mbx_get(bge_t *bgep, bge_regno_t regno) argument 831 bge_led_mark(bge_t *bgep) argument 866 bge_nic_setwin(bge_t *bgep, bge_regno_t base) argument 901 bge_nic_get32(bge_t *bgep, bge_regno_t addr) argument 935 bge_nic_put32(bge_t *bgep, bge_regno_t addr, uint32_t data) argument 972 bge_nic_get64(bge_t *bgep, bge_regno_t addr) argument 1017 bge_nic_put64(bge_t *bgep, bge_regno_t addr, uint64_t data) argument 1066 bge_nic_putrcb(bge_t *bgep, bge_regno_t addr, bge_rcb_t *rcbp) argument 1127 bge_nic_zero(bge_t *bgep, bge_regno_t addr, uint32_t nbytes) argument 1160 bge_mii_access(bge_t *bgep, bge_regno_t regno, uint16_t data, uint32_t cmd) argument 1271 bge_mii_get16(bge_t *bgep, bge_regno_t regno) argument 1289 bge_mii_put16(bge_t *bgep, bge_regno_t regno, uint16_t data) argument 1304 bge_phydsp_read(bge_t *bgep, bge_regno_t regno) argument 1318 bge_phydsp_write(bge_t *bgep, bge_regno_t regno, uint16_t data) argument 1357 bge_seeprom_access(bge_t *bgep, uint32_t cmd, bge_regno_t addr, uint32_t *dp) argument 1484 bge_flash_access(bge_t *bgep, uint32_t cmd, bge_regno_t addr, uint32_t *dp) argument 1592 bge_nvmem_relinquish(bge_t *bgep) argument 1639 bge_nvmem_acquire(bge_t *bgep) argument 1747 bge_nvmem_protect(bge_t *bgep, boolean_t protect) argument 1781 bge_nvmem_rw32(bge_t *bgep, uint32_t cmd, bge_regno_t addr, uint32_t *dp) argument 1856 bge_nvmem_access_cmd(bge_t *bgep, boolean_t read) argument 1876 bge_nvmem_read32(bge_t *bgep, bge_regno_t addr, uint32_t *dp) argument 1884 bge_nvmem_write32(bge_t *bgep, bge_regno_t addr, uint32_t *dp) argument 1898 bge_get_nvmac(bge_t *bgep) argument 1964 bge_get_nvmac(bge_t *bgep) argument 1979 bge_nvmem_id(bge_t *bgep) argument 2075 bge_ape_get32(bge_t *bgep, bge_regno_t regno) argument 2087 bge_ape_put32(bge_t *bgep, bge_regno_t regno, uint32_t data) argument 2097 bge_ape_lock_init(bge_t *bgep) argument 2130 bge_ape_lock(bge_t *bgep, int locknum) argument 2195 bge_ape_unlock(bge_t *bgep, int locknum) argument 2236 bge_ape_event_lock(bge_t *bgep, uint32_t timeout_us) argument 2263 bge_ape_wait_for_event(bge_t *bgep, uint32_t timeout_us) argument 2285 bge_ape_scratchpad_read(bge_t *bgep, uint32_t *data, uint32_t base_off, uint32_t lenToRead) argument 2357 bge_ape_scratchpad_write(bge_t *bgep, uint32_t dstoff, uint32_t *data, uint32_t lenToWrite) argument 2424 bge_ape_send_event(bge_t *bgep, uint32_t event) argument 2454 bge_ape_driver_state_change(bge_t *bgep, int mode) argument 2519 bge_init_recv_rule(bge_t *bgep) argument 2544 bge_chip_id_init(bge_t *bgep) argument 3105 bge_chip_msi_trig(bge_t *bgep) argument 3139 bge_chip_poll_engine(bge_t *bgep, bge_regno_t regno, uint32_t mask, uint32_t val) argument 3180 bge_chip_reset_engine(bge_t *bgep, bge_regno_t regno) argument 3334 bge_chip_disable_engine(bge_t *bgep, bge_regno_t regno, uint32_t morebits) argument 3401 bge_chip_enable_engine(bge_t *bgep, bge_regno_t regno, uint32_t morebits) argument 3444 bge_sync_mac_modes(bge_t *bgep) argument 3532 bge_chip_sync(bge_t *bgep, boolean_t asf_keeplive) argument 3688 bge_chip_stop_nonblocking(bge_t *bgep) argument 3719 bge_chip_stop(bge_t *bgep, boolean_t fault) argument 3817 bge_poll_firmware(bge_t *bgep) argument 3903 bge_chip_reset(bge_t *bgep, boolean_t enable_dma, uint_t asf_mode) argument 4268 bge_chip_coalesce_update(bge_t *bgep) argument 4281 bge_chip_start(bge_t *bgep, boolean_t reset_phys) argument 4954 bge_status_sync(bge_t *bgep, uint64_t bits, uint64_t *flags) argument 4982 bge_wake_factotum(bge_t *bgep) argument 4993 bge_intr_error_handler(bge_t *bgep) argument 5048 bge_t *bgep = (void *)arg1; /* private device info */ local 5289 bge_factotum_stall_check(bge_t *bgep) argument 5339 bge_t *bgep; local 5498 bge_t *bgep; local 5562 bge_chip_peek_cfg(bge_t *bgep, bge_peekpoke_t *ppd) argument 5597 bge_chip_poke_cfg(bge_t *bgep, bge_peekpoke_t *ppd) argument 5631 bge_chip_peek_reg(bge_t *bgep, bge_peekpoke_t *ppd) argument 5666 bge_chip_poke_reg(bge_t *bgep, bge_peekpoke_t *ppd) argument 5701 bge_chip_peek_nic(bge_t *bgep, bge_peekpoke_t *ppd) argument 5741 bge_chip_poke_nic(bge_t *bgep, bge_peekpoke_t *ppd) argument 5781 bge_chip_peek_mii(bge_t *bgep, bge_peekpoke_t *ppd) argument 5793 bge_chip_poke_mii(bge_t *bgep, bge_peekpoke_t *ppd) argument 5807 bge_chip_peek_seeprom(bge_t *bgep, bge_peekpoke_t *ppd) argument 5823 bge_chip_poke_seeprom(bge_t *bgep, bge_peekpoke_t *ppd) argument 5841 bge_chip_peek_flash(bge_t *bgep, bge_peekpoke_t *ppd) argument 5857 bge_chip_poke_flash(bge_t *bgep, bge_peekpoke_t *ppd) argument 5874 bge_chip_peek_mem(bge_t *bgep, bge_peekpoke_t *ppd) argument 5912 bge_chip_poke_mem(bge_t *bgep, bge_peekpoke_t *ppd) argument 5950 bge_pp_ioctl(bge_t *bgep, int cmd, mblk_t *mp, struct iocblk *iocp) argument 6151 bge_diag_ioctl(bge_t *bgep, int cmd, mblk_t *mp, struct iocblk *iocp) argument 6195 bge_mii_ioctl(bge_t *bgep, int cmd, mblk_t *mp, struct iocblk *iocp) argument 6239 bge_see_ioctl(bge_t *bgep, int cmd, mblk_t *mp, struct iocblk *iocp) argument 6283 bge_flash_ioctl(bge_t *bgep, int cmd, mblk_t *mp, struct iocblk *iocp) argument 6325 bge_chip_ioctl(bge_t *bgep, queue_t *wq, mblk_t *mp, struct iocblk *iocp) argument 6378 bge_t *bgep = rrp->bgep; local 6400 bge_nic_read32(bge_t *bgep, bge_regno_t addr) argument 6432 bge_asf_update_status(bge_t *bgep) argument 6458 bge_t *bgep = (bge_t *)arg; local 6473 bge_asf_stop_timer(bge_t *bgep) argument 6491 bge_asf_get_config(bge_t *bgep) argument 6520 bge_asf_pre_reset_operations(bge_t *bgep, uint32_t mode) argument 6569 bge_asf_post_reset_old_mode(bge_t *bgep, uint32_t mode) argument 6591 bge_asf_post_reset_new_mode(bge_t *bgep, uint32_t mode) argument [all...] |
H A D | bge_impl.h | 394 struct bge *bgep; /* (const) containing */ member in struct:buff_ring 437 struct bge *bgep; /* (const) containing */ member in struct:recv_ring 512 struct bge *bgep; /* (const) containing */ member in struct:send_ring 994 #define CATC_TRIGGER(bgep, data) bge_reg_put32(bgep, 0x0a00, (data)) 1137 #define BGE_LDB(b, args) BGE_XDB(b, bgep->debug, (*bge_db(bgep)), args) 1138 #define BGE_CDB(f, args) BGE_XDB(BGE_DBG, bgep->debug, f, args) 1149 * versions look in the per-instance data (bgep->debug) and so require a 1150 * variable called 'bgep' t [all...] |