Lines Matching refs:iq

2450 int t4_sge_alloc_rxq(struct adapter *adap, struct sge_rspq *iq, bool fwevtq,  in t4_sge_alloc_rxq()  argument
2460 iq->size = roundup(iq->size, 16); in t4_sge_alloc_rxq()
2462 iq->desc = alloc_ring(adap->pdev_dev, iq->size, iq->iqe_len, 0, in t4_sge_alloc_rxq()
2463 &iq->phys_addr, NULL, 0, NUMA_NO_NODE); in t4_sge_alloc_rxq()
2464 if (!iq->desc) in t4_sge_alloc_rxq()
2481 FW_IQ_CMD_IQINTCNTTHRESH_V(iq->pktcnt_idx) | in t4_sge_alloc_rxq()
2482 FW_IQ_CMD_IQESIZE_V(ilog2(iq->iqe_len) - 4)); in t4_sge_alloc_rxq()
2483 c.iqsize = htons(iq->size); in t4_sge_alloc_rxq()
2484 c.iqaddr = cpu_to_be64(iq->phys_addr); in t4_sge_alloc_rxq()
2530 netif_napi_add(dev, &iq->napi, napi_rx_handler, 64); in t4_sge_alloc_rxq()
2531 napi_hash_add(&iq->napi); in t4_sge_alloc_rxq()
2532 iq->cur_desc = iq->desc; in t4_sge_alloc_rxq()
2533 iq->cidx = 0; in t4_sge_alloc_rxq()
2534 iq->gen = 1; in t4_sge_alloc_rxq()
2535 iq->next_intr_params = iq->intr_params; in t4_sge_alloc_rxq()
2536 iq->cntxt_id = ntohs(c.iqid); in t4_sge_alloc_rxq()
2537 iq->abs_id = ntohs(c.physiqid); in t4_sge_alloc_rxq()
2538 iq->bar2_addr = bar2_address(adap, in t4_sge_alloc_rxq()
2539 iq->cntxt_id, in t4_sge_alloc_rxq()
2541 &iq->bar2_qid); in t4_sge_alloc_rxq()
2542 iq->size--; /* subtract status entry */ in t4_sge_alloc_rxq()
2543 iq->netdev = dev; in t4_sge_alloc_rxq()
2544 iq->handler = hnd; in t4_sge_alloc_rxq()
2547 iq->offset = fl ? 0 : -1; in t4_sge_alloc_rxq()
2549 adap->sge.ingr_map[iq->cntxt_id - adap->sge.ingr_start] = iq; in t4_sge_alloc_rxq()
2582 FW_PARAMS_PARAM_YZ_V(iq->cntxt_id)); in t4_sge_alloc_rxq()
2599 iq->cntxt_id, -ret); in t4_sge_alloc_rxq()
2607 if (iq->desc) { in t4_sge_alloc_rxq()
2608 dma_free_coherent(adap->pdev_dev, iq->size * iq->iqe_len, in t4_sge_alloc_rxq()
2609 iq->desc, iq->phys_addr); in t4_sge_alloc_rxq()
2610 iq->desc = NULL; in t4_sge_alloc_rxq()