Lines Matching refs:iq
2440 int t4_sge_alloc_rxq(struct adapter *adap, struct sge_rspq *iq, bool fwevtq, in t4_sge_alloc_rxq() argument
2450 iq->size = roundup(iq->size, 16); in t4_sge_alloc_rxq()
2452 iq->desc = alloc_ring(adap->pdev_dev, iq->size, iq->iqe_len, 0, in t4_sge_alloc_rxq()
2453 &iq->phys_addr, NULL, 0, NUMA_NO_NODE); in t4_sge_alloc_rxq()
2454 if (!iq->desc) in t4_sge_alloc_rxq()
2470 FW_IQ_CMD_IQINTCNTTHRESH_V(iq->pktcnt_idx) | in t4_sge_alloc_rxq()
2471 FW_IQ_CMD_IQESIZE_V(ilog2(iq->iqe_len) - 4)); in t4_sge_alloc_rxq()
2472 c.iqsize = htons(iq->size); in t4_sge_alloc_rxq()
2473 c.iqaddr = cpu_to_be64(iq->phys_addr); in t4_sge_alloc_rxq()
2498 netif_napi_add(dev, &iq->napi, napi_rx_handler, 64); in t4_sge_alloc_rxq()
2499 napi_hash_add(&iq->napi); in t4_sge_alloc_rxq()
2500 iq->cur_desc = iq->desc; in t4_sge_alloc_rxq()
2501 iq->cidx = 0; in t4_sge_alloc_rxq()
2502 iq->gen = 1; in t4_sge_alloc_rxq()
2503 iq->next_intr_params = iq->intr_params; in t4_sge_alloc_rxq()
2504 iq->cntxt_id = ntohs(c.iqid); in t4_sge_alloc_rxq()
2505 iq->abs_id = ntohs(c.physiqid); in t4_sge_alloc_rxq()
2506 iq->bar2_addr = bar2_address(adap, in t4_sge_alloc_rxq()
2507 iq->cntxt_id, in t4_sge_alloc_rxq()
2509 &iq->bar2_qid); in t4_sge_alloc_rxq()
2510 iq->size--; /* subtract status entry */ in t4_sge_alloc_rxq()
2511 iq->netdev = dev; in t4_sge_alloc_rxq()
2512 iq->handler = hnd; in t4_sge_alloc_rxq()
2515 iq->offset = fl ? 0 : -1; in t4_sge_alloc_rxq()
2517 adap->sge.ingr_map[iq->cntxt_id - adap->sge.ingr_start] = iq; in t4_sge_alloc_rxq()
2540 if (iq->desc) { in t4_sge_alloc_rxq()
2541 dma_free_coherent(adap->pdev_dev, iq->size * iq->iqe_len, in t4_sge_alloc_rxq()
2542 iq->desc, iq->phys_addr); in t4_sge_alloc_rxq()
2543 iq->desc = NULL; in t4_sge_alloc_rxq()