Lines Matching refs:iq
47 lio_xmit(struct lio *lio, struct lio_instr_queue *iq,
53 struct octeon_device *oct = iq->oct_dev;
67 iq_no = iq->txpciq.s.q_no;
70 tx_buf = iq->request_list + iq->host_write_index;
86 lio_dev_dbg(oct, "Transmit failed iq:%d full\n", iq_no);
92 status = bus_dmamap_load_mbuf_sg(iq->txtag, map, *m_headp, segs, &nsegs,
104 status = bus_dmamap_load_mbuf_sg(iq->txtag, map,
113 lio_dev_dbg(oct, "bus_dmamap_load_mbuf_sg failed with error %d. iq:%d",
231 lio_mq_start_locked(struct ifnet *ifp, struct lio_instr_queue *iq)
242 while ((next = drbr_peek(ifp, iq->br)) != NULL) {
243 err = lio_xmit(lio, iq, &next);
246 drbr_advance(ifp, iq->br);
248 drbr_putback(ifp, iq->br, next);
251 drbr_advance(ifp, iq->br);
267 struct lio_instr_queue *iq;
288 iq = oct->instr_queue[i];
290 err = drbr_enqueue(ifp, iq->br, m);
294 if (mtx_trylock(&iq->enq_lock)) {
295 lio_mq_start_locked(ifp, iq);
296 mtx_unlock(&iq->enq_lock);
307 struct lio_instr_queue *iq;
312 if (!(oct->io_qmask.iq & BIT_ULL(i)))
315 iq = oct->instr_queue[i];
317 mtx_lock(&iq->enq_lock);
318 while ((m = buf_ring_dequeue_sc(iq->br)) != NULL)
321 mtx_unlock(&iq->enq_lock);