Lines Matching refs:iq

4348 int t4_sge_alloc_rxq(struct adapter *adap, struct sge_rspq *iq, bool fwevtq,  in t4_sge_alloc_rxq()  argument
4360 iq->size = roundup(iq->size, 16); in t4_sge_alloc_rxq()
4362 iq->desc = alloc_ring(adap->pdev_dev, iq->size, iq->iqe_len, 0, in t4_sge_alloc_rxq()
4363 &iq->phys_addr, NULL, 0, in t4_sge_alloc_rxq()
4365 if (!iq->desc) in t4_sge_alloc_rxq()
4382 FW_IQ_CMD_IQINTCNTTHRESH_V(iq->pktcnt_idx) | in t4_sge_alloc_rxq()
4383 FW_IQ_CMD_IQESIZE_V(ilog2(iq->iqe_len) - 4)); in t4_sge_alloc_rxq()
4384 c.iqsize = htons(iq->size); in t4_sge_alloc_rxq()
4385 c.iqaddr = cpu_to_be64(iq->phys_addr); in t4_sge_alloc_rxq()
4445 netif_napi_add(dev, &iq->napi, napi_rx_handler, 64); in t4_sge_alloc_rxq()
4446 iq->cur_desc = iq->desc; in t4_sge_alloc_rxq()
4447 iq->cidx = 0; in t4_sge_alloc_rxq()
4448 iq->gen = 1; in t4_sge_alloc_rxq()
4449 iq->next_intr_params = iq->intr_params; in t4_sge_alloc_rxq()
4450 iq->cntxt_id = ntohs(c.iqid); in t4_sge_alloc_rxq()
4451 iq->abs_id = ntohs(c.physiqid); in t4_sge_alloc_rxq()
4452 iq->bar2_addr = bar2_address(adap, in t4_sge_alloc_rxq()
4453 iq->cntxt_id, in t4_sge_alloc_rxq()
4455 &iq->bar2_qid); in t4_sge_alloc_rxq()
4456 iq->size--; /* subtract status entry */ in t4_sge_alloc_rxq()
4457 iq->netdev = dev; in t4_sge_alloc_rxq()
4458 iq->handler = hnd; in t4_sge_alloc_rxq()
4459 iq->flush_handler = flush_hnd; in t4_sge_alloc_rxq()
4461 memset(&iq->lro_mgr, 0, sizeof(struct t4_lro_mgr)); in t4_sge_alloc_rxq()
4462 skb_queue_head_init(&iq->lro_mgr.lroq); in t4_sge_alloc_rxq()
4465 iq->offset = fl ? 0 : -1; in t4_sge_alloc_rxq()
4467 adap->sge.ingr_map[iq->cntxt_id - adap->sge.ingr_start] = iq; in t4_sge_alloc_rxq()
4501 FW_PARAMS_PARAM_YZ_V(iq->cntxt_id)); in t4_sge_alloc_rxq()
4518 iq->cntxt_id, -ret); in t4_sge_alloc_rxq()
4526 if (iq->desc) { in t4_sge_alloc_rxq()
4527 dma_free_coherent(adap->pdev_dev, iq->size * iq->iqe_len, in t4_sge_alloc_rxq()
4528 iq->desc, iq->phys_addr); in t4_sge_alloc_rxq()
4529 iq->desc = NULL; in t4_sge_alloc_rxq()