Lines Matching defs:cbp
193 struct fxp_cb_config *cbp = &store_cbc;
231 memcpy(cbp, fxp_cb_config_template, sizeof(fxp_cb_config_template));
236 cbp->cb_status = 0;
237 cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG |
239 cbp->link_addr = -1; /* (no) next command */
240 cbp->byte_count = 22; /* (22) bytes to config */
241 cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */
242 cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */
243 cbp->adaptive_ifs = 0; /* (no) adaptive interframe spacing */
244 cbp->rx_dma_bytecount = 0; /* (no) rx DMA max */
245 cbp->tx_dma_bytecount = 0; /* (no) tx DMA max */
246 cbp->dma_mbce = 0; /* (disable) dma max counters */
247 cbp->late_scb = 0; /* (don't) defer SCB update */
248 cbp->tno_int_or_tco_en = 0; /* (disable) tx not okay interrupt */
249 cbp->ci_int = 0; /* interrupt on CU not active */
250 cbp->save_bf = prm; /* save bad frames */
251 cbp->disc_short_rx = !prm; /* discard short packets */
252 cbp->underrun_retry = 1; /* retry mode (1) on DMA underrun */
253 cbp->mediatype = !phy_10Mbps_only; /* interface mode */
254 cbp->nsai = 1; /* (don't) disable source addr insert */
255 cbp->preamble_length = 2; /* (7 byte) preamble */
256 cbp->loopback = 0; /* (don't) loopback */
257 cbp->linear_priority = 0; /* (normal CSMA/CD operation) */
258 cbp->linear_pri_mode = 0; /* (wait after xmit only) */
259 cbp->interfrm_spacing = 6; /* (96 bits of) interframe spacing */
260 cbp->promiscuous = prm; /* promiscuous mode */
261 cbp->bcast_disable = 0; /* (don't) disable broadcasts */
262 cbp->crscdt = 0; /* (CRS only) */
263 cbp->stripping = !prm; /* truncate rx packet to byte count */
264 cbp->padding = 1; /* (do) pad short tx packets */
265 cbp->rcv_crc_xfer = 0; /* (don't) xfer CRC to host */
266 cbp->force_fdx = 0; /* (don't) force full duplex */
267 cbp->fdx_pin_en = 1; /* (enable) FDX# pin */
268 cbp->multi_ia = 0; /* (don't) accept multiple IAs */
269 cbp->mc_all = all_mcasts;/* accept all multicasts */
274 wbinv(cbp, sizeof(*cbp));
276 CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, VTOPHYS(cbp));
279 while (!(le16toh(cbp->cb_status) & FXP_CB_STATUS_C) && --i > 0) {
281 inv(&cbp->cb_status, sizeof(cbp->cb_status));
284 printf("cbp config timeout\n");