Lines Matching refs:dev
117 struct oce_dev *dev;
120 dev = wq->parent;
122 ret = ddi_dma_alloc_handle(dev->dip, &tx_map_dma_attr,
138 struct oce_dev *dev = wq->parent;
150 OCE_LIST_CREATE(&wq->wq_mdesc_list, DDI_INTR_PRI(dev->intr_pri));
200 struct oce_dev *dev = wq->parent;
212 OCE_LIST_CREATE(&wq->wq_buf_list, DDI_INTR_PRI(dev->intr_pri));
262 struct oce_dev *dev;
263 dev = wq->parent;
265 wqbd->wqb = oce_alloc_dma_buffer(dev, size, &oce_tx_dma_buf_attr,
395 * dev - software handle to device
402 oce_get_wq(struct oce_dev *dev, mblk_t *mp)
406 if (dev->nwqs > 1) {
408 qidx = qidx % dev->nwqs;
413 wq = dev->wq[qidx];
459 struct oce_dev *dev = wq->parent;
464 atomic_inc_32(&dev->tx_noxmtbuf);
465 oce_log(dev, CE_WARN, MOD_TX, "%s",
485 if (oce_fm_check_dma_handle(dev, DBUF_DHDL(wqbd->wqb))) {
486 ddi_fm_service_impact(dev->dip, DDI_SERVICE_DEGRADED);
517 struct oce_dev *dev = wq->parent;
521 oce_log(dev, CE_WARN, MOD_TX, "%s",
531 oce_log(dev, CE_WARN, MOD_TX, "MAP FAILED %d",
566 struct oce_dev *dev;
569 dev = wq->parent;
581 atomic_inc_32(&dev->tx_errors);
607 * dev - software handle to the device
616 struct oce_dev *dev;
620 dev = wq->parent;
628 mac_tx_update(dev->mac_handle);
683 struct oce_dev *dev;
705 dev = wq->parent;
708 if (wq->wq_free < dev->tx_reclaim_threshold) {
775 if (pkt_len < dev->tx_bcopy_limit) {
785 if (len < dev->tx_bcopy_limit) {
870 OCE_DB_WRITE32(dev, PD_TXULP_DB, reg_value);
872 if (oce_fm_check_acc_handle(dev, dev->db_handle) != DDI_FM_OK) {
873 ddi_fm_service_impact(dev->dip, DDI_SERVICE_DEGRADED);