Lines Matching refs:rc

283 	int rc;
295 rc = efx_tx_qdesc_post(txq->common, txq->pend_desc, txq->n_pend_desc,
297 KASSERT(rc == 0, ("efx_tx_qdesc_post() failed"));
352 int rc;
363 rc = EINTR;
370 rc = bus_dmamap_load_mbuf_sg(txq->packet_dma_tag, stmp->map,
372 if (rc == EFBIG) {
380 rc = bus_dmamap_load_mbuf_sg(txq->packet_dma_tag,
384 if (rc != 0)
397 rc = sfxge_tx_queue_tso(txq, mbuf, dma_seg, n_dma_seg, vlan_tagged);
398 if (rc < 0)
400 stmp = &txq->stmp[(rc - 1) & txq->ptr_mask];
449 return (rc);
464 int rc;
495 rc = sfxge_tx_queue_mbuf(txq, mbuf);
499 if (rc != 0)
639 int rc;
655 rc = sfxge_tx_qdpl_put_locked(txq, m);
661 rc = sfxge_tx_qdpl_put_unlocked(txq, m);
670 if ((rc == 0) && SFXGE_TXQ_TRYLOCK(txq)) {
678 return (rc);
800 int rc;
837 rc = sfxge_tx_packet_add(txq, m);
838 if (rc != 0)
841 return (rc);
914 int i, rc;
921 rc = sfxge_dma_alloc(sc, PAGE_SIZE, &txq->tsoh_buffer[i]);
922 if (rc != 0)
933 return (rc);
1135 int rc;
1200 rc = bus_dmamap_load(txq->packet_dma_tag, stmp->map,
1205 if (rc == 0) {
1209 rc = EINVAL;
1212 return (rc);
1521 int rc;
1535 if ((rc = efx_sram_buf_tbl_set(sc->enp, txq->buf_base_id, esmp,
1537 return (rc);
1561 if ((rc = efx_tx_qcreate(sc->enp, index, txq->type, esmp,
1565 if ((rc != ENOSPC) || (~flags & EFX_TXQ_FATSOV2))
1571 if ((rc = efx_tx_qcreate(sc->enp, index, txq->type, esmp,
1599 return (rc);
1619 int rc;
1622 if ((rc = efx_tx_init(sc->enp)) != 0)
1623 return (rc);
1626 if ((rc = sfxge_tx_qstart(sc, index)) != 0)
1638 return (rc);
1712 int rc;
1725 if ((rc = sfxge_dma_alloc(sc, EFX_TXQ_SIZE(sc->txq_entries), esmp)) != 0)
1726 return (rc);
1738 rc = ENOMEM;
1750 rc = bus_dmamap_create(txq->packet_dma_tag, 0,
1752 if (rc != 0)
1760 rc = ENOMEM;
1765 (rc = tso_init(txq)) != 0)
1771 rc = EINVAL;
1778 rc = EINVAL;
1784 rc = EINVAL;
1801 rc = ENOMEM;
1818 rc = sfxge_txq_stat_init(txq, txq_node);
1819 if (rc != 0)
1846 return (rc);
1933 int rc;
1955 rc = ENOMEM;
1960 if ((rc = sfxge_tx_qinit(sc, SFXGE_TXQ_NON_CKSUM,
1964 if ((rc = sfxge_tx_qinit(sc, SFXGE_TXQ_IP_CKSUM,
1971 if ((rc = sfxge_tx_qinit(sc, SFXGE_TXQ_NTYPES - 1 + index,
1992 return (rc);