Lines Matching refs:dev
39 static inline mblk_t *oce_rx(struct oce_dev *dev, struct oce_rq *rq,
41 static inline mblk_t *oce_rx_bcopy(struct oce_dev *dev,
80 * dev - software handle to the device
168 struct oce_dev *dev;
171 dev = rq->parent;
173 dbuf = oce_alloc_dma_buffer(dev, size, &oce_rx_buf_attr, flags);
184 oce_free_dma_buffer(dev, dbuf);
242 struct oce_dev *dev = rq->parent;
250 OCE_DB_WRITE32(dev, PD_RXULP_DB, rxdb_reg.dw0);
256 OCE_DB_WRITE32(dev, PD_RXULP_DB, rxdb_reg.dw0);
263 * dev - software handle to the device
329 * dev - software handle to the device
336 oce_rx(struct oce_dev *dev, struct oce_rq *rq, struct oce_nic_rx_cqe *cqe)
385 oce_log(dev, CE_WARN, MOD_RX, "%s", "oce_rx:no frags?");
396 oce_rx_bcopy(struct oce_dev *dev, struct oce_rq *rq, struct oce_nic_rx_cqe *cqe)
410 _NOTE(ARGUNUSED(dev));
506 struct oce_dev *dev;
511 dev = rq->parent;
524 if ((cqe->u0.s.pkt_size < dev->rx_bcopy_limit) ||
526 mp = oce_rx_bcopy(dev, rq, cqe);
528 mp = oce_rx(dev, rq, cqe);
531 mp = oce_rx_bcopy(dev, rq, cqe);
556 if (num_cqe > dev->rx_pkt_per_intr) {
562 mac_rx(dev->mac_handle, NULL, mblk_head);
564 oce_arm_cq(dev, cq->cq_id, num_cqe, B_TRUE);
613 struct oce_dev *dev;
617 dev = rq->parent;
628 oce_arm_cq(dev, cq->cq_id, 1, B_TRUE);
651 struct oce_dev *dev = rq->parent;
658 oce_arm_cq(dev, rq->cq->cq_id, 0, B_TRUE);
664 oce_rx_pending(struct oce_dev *dev, struct oce_rq *rq, int32_t timeout)
667 _NOTE(ARGUNUSED(dev));