Lines Matching defs:cbp
1675 struct fxp_cb_config *cbp;
1747 cbp = &sc->sc_control_data->fcd_configcb;
1748 memset(cbp, 0, sizeof(struct fxp_cb_config));
1765 memcpy(cbp, fxp_cb_config_template, sizeof(fxp_cb_config_template));
1768 cbp->cb_status = 0;
1769 cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG |
1772 cbp->link_addr = 0xffffffff; /* (no) next command */
1774 cbp->byte_count = (sc->sc_flags & FXPF_EXT_RFA) ?
1776 cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */
1777 cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */
1778 cbp->adaptive_ifs = 0; /* (no) adaptive interframe spacing */
1779 cbp->mwi_enable = (sc->sc_flags & FXPF_MWI) ? 1 : 0;
1780 cbp->type_enable = 0; /* actually reserved */
1781 cbp->read_align_en = (sc->sc_flags & FXPF_READ_ALIGN) ? 1 : 0;
1782 cbp->end_wr_on_cl = (sc->sc_flags & FXPF_WRITE_ALIGN) ? 1 : 0;
1783 cbp->rx_dma_bytecount = 0; /* (no) rx DMA max */
1784 cbp->tx_dma_bytecount = 0; /* (no) tx DMA max */
1785 cbp->dma_mbce = 0; /* (disable) dma max counters */
1786 cbp->late_scb = 0; /* (don't) defer SCB update */
1787 cbp->tno_int_or_tco_en =0; /* (disable) tx not okay interrupt */
1788 cbp->ci_int = 1; /* interrupt on CU idle */
1789 cbp->ext_txcb_dis = (sc->sc_flags & FXPF_EXT_TXCB) ? 0 : 1;
1790 cbp->ext_stats_dis = 1; /* disable extended counters */
1791 cbp->keep_overrun_rx = 0; /* don't pass overrun frames to host */
1792 cbp->save_bf = save_bf;/* save bad frames */
1793 cbp->disc_short_rx = !prm; /* discard short packets */
1794 cbp->underrun_retry = 1; /* retry mode (1) on DMA underrun */
1795 cbp->ext_rfa = (sc->sc_flags & FXPF_EXT_RFA) ? 1 : 0;
1796 cbp
1797 cbp->dyn_tbd = 0; /* (no) dynamic TBD mode */
1799 cbp->mediatype = (sc->sc_flags & FXPF_MII) ? 1 : 0;
1800 cbp->csma_dis = 0; /* (don't) disable link */
1801 cbp->tcp_udp_cksum = (sc->sc_flags & FXPF_82559_RXCSUM) ? 1 : 0;
1803 cbp->vlan_tco = 0; /* (don't) enable vlan wakeup */
1804 cbp->link_wake_en = 0; /* (don't) assert PME# on link change */
1805 cbp->arp_wake_en = 0; /* (don't) assert PME# on arp */
1806 cbp->mc_wake_en = 0; /* (don't) assert PME# on mcmatch */
1807 cbp->nsai = 1; /* (don't) disable source addr insert */
1808 cbp->preamble_length = 2; /* (7 byte) preamble */
1809 cbp->loopback = 0; /* (don't) loopback */
1810 cbp->linear_priority = 0; /* (normal CSMA/CD operation) */
1811 cbp->linear_pri_mode = 0; /* (wait after xmit only) */
1812 cbp->interfrm_spacing = 6; /* (96 bits of) interframe spacing */
1813 cbp->promiscuous = prm; /* promiscuous mode */
1814 cbp->bcast_disable = 0; /* (don't) disable broadcasts */
1815 cbp->wait_after_win = 0; /* (don't) enable modified backoff alg*/
1816 cbp->ignore_ul = 0; /* consider U/L bit in IA matching */
1817 cbp->crc16_en = 0; /* (don't) enable crc-16 algorithm */
1818 cbp->crscdt = (sc->sc_flags & FXPF_MII) ? 0 : 1;
1819 cbp->stripping = !prm; /* truncate rx packet to byte count */
1820 cbp->padding = 1; /* (do) pad short tx packets */
1821 cbp->rcv_crc_xfer = 0; /* (don't) xfer CRC to host */
1822 cbp->long_rx_en = lrxen; /* long packet receive enable */
1823 cbp->ia_wake_en = 0; /* (don't) wake up on address match */
1824 cbp->magic_pkt_dis = 0; /* (don't) disable magic packet */
1826 cbp->force_fdx = 0; /* (don't) force full duplex */
1827 cbp->fdx_pin_en = 1; /* (enable) FDX# pin */
1828 cbp->multi_ia = 0; /* (don't) accept multiple IAs */
1829 cbp->mc_all = allm; /* accept all multicasts */
1830 cbp->ext_rx_mode = (sc->sc_flags & FXPF_EXT_RFA) ? 1 : 0;
1831 cbp->vlan_drop_en = vlan_drop;
1838 cbp->fc_delay_lsb = 0;
1839 cbp->fc_delay_msb = 0x40;
1840 cbp->pri_fc_thresh = 3;
1841 cbp->tx_fc_dis = 0;
1842 cbp->rx_fc_restop = 0;
1843 cbp->rx_fc_restart = 0;
1844 cbp->fc_filter = 0;
1845 cbp->pri_fc_loc = 1;
1847 cbp->fc_delay_lsb = 0x1f;
1848 cbp->fc_delay_msb = 0x01;
1849 cbp->pri_fc_thresh = 3;
1850 cbp->tx_fc_dis = 0; /* enable transmit FC */
1851 cbp->rx_fc_restop = 1; /* enable FC restop frames */
1852 cbp->rx_fc_restart = 1; /* enable FC restart frames */
1853 cbp->fc_filter = !prm; /* drop FC frames to host */
1854 cbp->pri_fc_loc = 1; /* FC pri location (byte31) */
1855 cbp->ext_stats_dis = 0; /* enable extended stats */
1870 status = le16toh(cbp->cb_status);
2363 struct fxp_cb_ucode *cbp = &sc->sc_control_data->fcd_ucode;
2388 cbp->cb_status = 0;
2389 cbp->cb_command = htole16(FXP_CB_COMMAND_UCODE | FXP_CB_COMMAND_EL);
2390 cbp->link_addr = 0xffffffff; /* (no) next command */
2392 cbp->ucode[i] = htole32(uc->ucode[i]);
2395 *(volatile uint16_t *) &cbp->ucode[uc->int_delay_offset] =
2399 *(volatile uint16_t *) &cbp->ucode[uc->bundle_max_offset] =
2415 status = le16toh(cbp->cb_status);