Lines Matching defs:cbp

1414 	struct fxp_cb_tx *cbp;
1599 cbp = txp->tx_cb;
1615 cbp->tbd[i + 1].tb_addr = htole32(segs[i].ds_addr);
1616 cbp->tbd[i + 1].tb_size = htole32(segs[i].ds_len);
1618 cbp->tbd[i].tb_addr = htole32(segs[i].ds_addr);
1619 cbp->tbd[i].tb_size = htole32(segs[i].ds_len);
1624 cbp->tbd_number = 0xFF;
1625 cbp->tbd[nseg].tb_size |= htole32(0x8000);
1627 cbp->tbd_number = nseg;
1630 cbp->tbd[-1].tb_size = htole32(m->m_pkthdr.tso_segsz << 16);
1631 cbp->tbd[1].tb_size |= htole32(tcp_payload << 16);
1632 cbp->ipcb_ip_schedule |= FXP_IPCB_LARGESEND_ENABLE |
1639 cbp->ipcb_vlan_id = htons(m->m_pkthdr.ether_vtag);
2291 struct fxp_cb_config *cbp;
2357 cbp = (struct fxp_cb_config *)sc->fxp_desc.cbl_list;
2364 bcopy(fxp_cb_config_template, cbp, sizeof(fxp_cb_config_template));
2366 cbp->cb_status = 0;
2367 cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG |
2369 cbp->link_addr = 0xffffffff; /* (no) next command */
2370 cbp->byte_count = sc->flags & FXP_FLAG_EXT_RFA ? 32 : 22;
2371 cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */
2372 cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */
2373 cbp->adaptive_ifs = 0; /* (no) adaptive interframe spacing */
2374 cbp->mwi_enable = sc->flags & FXP_FLAG_MWI_ENABLE ? 1 : 0;
2375 cbp->type_enable = 0; /* actually reserved */
2376 cbp->read_align_en = sc->flags & FXP_FLAG_READ_ALIGN ? 1 : 0;
2377 cbp->end_wr_on_cl = sc->flags & FXP_FLAG_WRITE_ALIGN ? 1 : 0;
2378 cbp->rx_dma_bytecount = 0; /* (no) rx DMA max */
2379 cbp->tx_dma_bytecount = 0; /* (no) tx DMA max */
2380 cbp->dma_mbce = 0; /* (disable) dma max counters */
2381 cbp->late_scb = 0; /* (don't) defer SCB update */
2382 cbp->direct_dma_dis = 1; /* disable direct rcv dma mode */
2383 cbp->tno_int_or_tco_en =0; /* (disable) tx not okay interrupt */
2384 cbp->ci_int = 1; /* interrupt on CU idle */
2385 cbp->ext_txcb_dis = sc->flags & FXP_FLAG_EXT_TXCB ? 0 : 1;
2386 cbp->ext_stats_dis = 1; /* disable extended counters */
2387 cbp->keep_overrun_rx = 0; /* don't pass overrun frames to host */
2388 cbp->save_bf = sc->flags & FXP_FLAG_SAVE_BAD ? 1 : prm;
2389 cbp->disc_short_rx = !prm; /* discard short packets */
2390 cbp->underrun_retry = 1; /* retry mode (once) on DMA underrun */
2391 cbp->two_frames = 0; /* do not limit FIFO to 2 frames */
2392 cbp->dyn_tbd = sc->flags & FXP_FLAG_EXT_RFA ? 1 : 0;
2393 cbp->ext_rfa = sc->flags & FXP_FLAG_EXT_RFA ? 1 : 0;
2394 cbp->mediatype = sc->flags & FXP_FLAG_SERIAL_MEDIA ? 0 : 1;
2395 cbp->csma_dis = 0; /* (don't) disable link */
2396 cbp->tcp_udp_cksum = ((sc->flags & FXP_FLAG_82559_RXCSUM) != 0 &&
2398 cbp->vlan_tco = 0; /* (don't) enable vlan wakeup */
2399 cbp->link_wake_en = 0; /* (don't) assert PME# on link change */
2400 cbp->arp_wake_en = 0; /* (don't) assert PME# on arp */
2401 cbp->mc_wake_en = 0; /* (don't) enable PME# on mcmatch */
2402 cbp->nsai = 1; /* (don't) disable source addr insert */
2403 cbp->preamble_length = 2; /* (7 byte) preamble */
2404 cbp->loopback = 0; /* (don't) loopback */
2405 cbp->linear_priority = 0; /* (normal CSMA/CD operation) */
2406 cbp->linear_pri_mode = 0; /* (wait after xmit only) */
2407 cbp->interfrm_spacing = 6; /* (96 bits of) interframe spacing */
2408 cbp->promiscuous = prm; /* promiscuous mode */
2409 cbp->bcast_disable = 0; /* (don't) disable broadcasts */
2410 cbp->wait_after_win = 0; /* (don't) enable modified backoff alg*/
2411 cbp->ignore_ul = 0; /* consider U/L bit in IA matching */
2412 cbp->crc16_en = 0; /* (don't) enable crc-16 algorithm */
2413 cbp->crscdt = sc->flags & FXP_FLAG_SERIAL_MEDIA ? 1 : 0;
2415 cbp->stripping = !prm; /* truncate rx packet to byte count */
2416 cbp->padding = 1; /* (do) pad short tx packets */
2417 cbp->rcv_crc_xfer = 0; /* (don't) xfer CRC to host */
2418 cbp->long_rx_en = sc->flags & FXP_FLAG_LONG_PKT_EN ? 1 : 0;
2419 cbp->ia_wake_en = 0; /* (don't) wake up on address match */
2420 cbp->magic_pkt_dis = sc->flags & FXP_FLAG_WOL ? 0 : 1;
2421 cbp->force_fdx = 0; /* (don't) force full duplex */
2422 cbp->fdx_pin_en = 1; /* (enable) FDX# pin */
2423 cbp->multi_ia = 0; /* (don't) accept multiple IAs */
2424 cbp->mc_all = if_getflags(ifp) & IFF_ALLMULTI ? 1 : prm;
2425 cbp->gamla_rx = sc->flags & FXP_FLAG_EXT_RFA ? 1 : 0;
2426 cbp->vlan_strip_en = ((sc->flags & FXP_FLAG_EXT_RFA) != 0 &&
2434 cbp->fc_delay_lsb = 0;
2435 cbp->fc_delay_msb = 0x40;
2436 cbp->pri_fc_thresh = 3;
2437 cbp->tx_fc_dis = 0;
2438 cbp->rx_fc_restop = 0;
2439 cbp->rx_fc_restart = 0;
2440 cbp->fc_filter = 0;
2441 cbp->pri_fc_loc = 1;
2446 cbp->fc_delay_lsb = 0xff;
2447 cbp->fc_delay_msb = 0xff;
2448 cbp->pri_fc_thresh = 3;
2453 cbp->tx_fc_dis = 0;
2456 cbp->tx_fc_dis = 1;
2460 cbp->rx_fc_restart = 1;
2461 cbp->rx_fc_restop = 1;
2464 cbp->rx_fc_restart = 0;
2465 cbp->rx_fc_restop = 0;
2467 cbp->fc_filter = !prm; /* drop FC frames to host */
2468 cbp->pri_fc_loc = 1; /* FC pri location (byte31) */
2478 cbp->byte_count = 32;
2479 cbp->ext_stats_dis = 1;
2481 cbp->tno_int_or_tco_en = 1;
2482 cbp->gamla_rx = 1;
2484 cbp->ext_stats_dis = 0;
2496 fxp_dma_wait(sc, &cbp->cb_status, sc->cbl_tag, sc->cbl_map);
3100 struct fxp_cb_ucode *cbp;
3111 cbp = (struct fxp_cb_ucode *)sc->fxp_desc.cbl_list;
3112 cbp->cb_status = 0;
3113 cbp->cb_command = htole16(FXP_CB_COMMAND_UCODE | FXP_CB_COMMAND_EL);
3114 cbp->link_addr = 0xffffffff; /* (no) next command */
3116 cbp->ucode[i] = htole32(uc->ucode[i]);
3118 *(uint16_t *)&cbp->ucode[uc->int_delay_offset] =
3121 *(uint16_t *)&cbp->ucode[uc->bundle_max_offset] =
3132 fxp_dma_wait(sc, &cbp->cb_status, sc->cbl_tag, sc->cbl_map);
3138 bzero(cbp, FXP_TXCB_SZ);