Lines Matching refs:prq
256 nx_hostrq_rx_ctx_t *prq; in nx_fw_cmd_create_rx_ctx() local
289 prq = addr; in nx_fw_cmd_create_rx_ctx()
299 prq->host_rsp_dma_addr = cpu_to_le64(cardrsp_phys_addr); in nx_fw_cmd_create_rx_ctx()
307 prq->capabilities[0] = cpu_to_le32(cap); in nx_fw_cmd_create_rx_ctx()
308 prq->host_int_crb_mode = in nx_fw_cmd_create_rx_ctx()
310 prq->host_rds_crb_mode = in nx_fw_cmd_create_rx_ctx()
313 prq->num_rds_rings = cpu_to_le16(nrds_rings); in nx_fw_cmd_create_rx_ctx()
314 prq->num_sds_rings = cpu_to_le16(nsds_rings); in nx_fw_cmd_create_rx_ctx()
315 prq->rds_ring_offset = cpu_to_le32(0); in nx_fw_cmd_create_rx_ctx()
317 val = le32_to_cpu(prq->rds_ring_offset) + in nx_fw_cmd_create_rx_ctx()
319 prq->sds_ring_offset = cpu_to_le32(val); in nx_fw_cmd_create_rx_ctx()
321 prq_rds = (nx_hostrq_rds_ring_t *)(prq->data + in nx_fw_cmd_create_rx_ctx()
322 le32_to_cpu(prq->rds_ring_offset)); in nx_fw_cmd_create_rx_ctx()
334 prq_sds = (nx_hostrq_sds_ring_t *)(prq->data + in nx_fw_cmd_create_rx_ctx()
335 le32_to_cpu(prq->sds_ring_offset)); in nx_fw_cmd_create_rx_ctx()
394 dma_free_coherent(&adapter->pdev->dev, rq_size, prq, hostrq_phys_addr); in nx_fw_cmd_create_rx_ctx()
420 nx_hostrq_tx_ctx_t *prq; in nx_fw_cmd_create_tx_ctx() local
447 prq = rq_addr; in nx_fw_cmd_create_tx_ctx()
451 prq->host_rsp_dma_addr = cpu_to_le64(rsp_phys_addr); in nx_fw_cmd_create_tx_ctx()
454 prq->capabilities[0] = cpu_to_le32(temp); in nx_fw_cmd_create_tx_ctx()
456 prq->host_int_crb_mode = in nx_fw_cmd_create_tx_ctx()
459 prq->interrupt_ctl = 0; in nx_fw_cmd_create_tx_ctx()
460 prq->msi_index = 0; in nx_fw_cmd_create_tx_ctx()
462 prq->dummy_dma_addr = cpu_to_le64(adapter->dummy_dma.phys_addr); in nx_fw_cmd_create_tx_ctx()
465 prq->cmd_cons_dma_addr = cpu_to_le64(offset); in nx_fw_cmd_create_tx_ctx()
467 prq_cds = &prq->cds_ring; in nx_fw_cmd_create_tx_ctx()