Lines Matching refs:p_queue
179 qed_iov_get_vf_rx_queue_cid(struct qed_vf_queue *p_queue) in qed_iov_get_vf_rx_queue_cid() argument
184 if (p_queue->cids[i].p_cid && !p_queue->cids[i].b_is_tx) in qed_iov_get_vf_rx_queue_cid()
185 return p_queue->cids[i].p_cid; in qed_iov_get_vf_rx_queue_cid()
1054 struct qed_vf_queue *p_queue = &vf->vf_queues[i]; in qed_iov_init_hw_for_vf() local
1056 p_queue->fw_rx_qid = p_params->req_rx_queue[i]; in qed_iov_init_hw_for_vf()
1057 p_queue->fw_tx_qid = p_params->req_tx_queue[i]; in qed_iov_init_hw_for_vf()
1062 p_queue->fw_rx_qid, p_queue->fw_tx_qid); in qed_iov_init_hw_for_vf()
1362 struct qed_vf_queue *p_queue = &p_vf->vf_queues[i]; in qed_iov_vf_cleanup() local
1365 if (!p_queue->cids[j].p_cid) in qed_iov_vf_cleanup()
1369 p_queue->cids[j].p_cid); in qed_iov_vf_cleanup()
1370 p_queue->cids[j].p_cid = NULL; in qed_iov_vf_cleanup()
1851 struct qed_vf_queue *p_queue = &p_vf->vf_queues[i]; in qed_iov_configure_vport_forced() local
1855 p_cid = qed_iov_get_vf_rx_queue_cid(p_queue); in qed_iov_configure_vport_forced()
2094 struct qed_vf_queue *p_queue; in qed_iov_vf_mbx_start_rxq() local
2110 p_queue = &vf->vf_queues[req->rx_qid]; in qed_iov_vf_mbx_start_rxq()
2111 if (p_queue->cids[qid_usage_idx].p_cid) in qed_iov_vf_mbx_start_rxq()
2118 params.queue_id = p_queue->fw_rx_qid; in qed_iov_vf_mbx_start_rxq()
2154 p_queue->cids[qid_usage_idx].p_cid = p_cid; in qed_iov_vf_mbx_start_rxq()
2155 p_queue->cids[qid_usage_idx].b_is_tx = false; in qed_iov_vf_mbx_start_rxq()
2426 struct qed_vf_queue *p_queue; in qed_iov_vf_mbx_start_txq() local
2446 p_queue = &vf->vf_queues[req->tx_qid]; in qed_iov_vf_mbx_start_txq()
2447 if (p_queue->cids[qid_usage_idx].p_cid) in qed_iov_vf_mbx_start_txq()
2453 params.queue_id = p_queue->fw_tx_qid; in qed_iov_vf_mbx_start_txq()
2482 p_queue->cids[qid_usage_idx].p_cid = p_cid; in qed_iov_vf_mbx_start_txq()
2483 p_queue->cids[qid_usage_idx].b_is_tx = true; in qed_iov_vf_mbx_start_txq()
2496 struct qed_vf_queue *p_queue; in qed_iov_vf_stop_rxqs() local
2507 p_queue = &vf->vf_queues[rxq_id]; in qed_iov_vf_stop_rxqs()
2512 if (!p_queue->cids[qid_usage_idx].p_cid || in qed_iov_vf_stop_rxqs()
2513 p_queue->cids[qid_usage_idx].b_is_tx) { in qed_iov_vf_stop_rxqs()
2516 p_cid = qed_iov_get_vf_rx_queue_cid(p_queue); in qed_iov_vf_stop_rxqs()
2527 p_queue->cids[qid_usage_idx].p_cid, in qed_iov_vf_stop_rxqs()
2532 p_queue->cids[qid_usage_idx].p_cid = NULL; in qed_iov_vf_stop_rxqs()
2542 struct qed_vf_queue *p_queue; in qed_iov_vf_stop_txqs() local
2548 p_queue = &vf->vf_queues[txq_id]; in qed_iov_vf_stop_txqs()
2549 if (!p_queue->cids[qid_usage_idx].p_cid || in qed_iov_vf_stop_txqs()
2550 !p_queue->cids[qid_usage_idx].b_is_tx) in qed_iov_vf_stop_txqs()
2553 rc = qed_eth_tx_queue_stop(p_hwfn, p_queue->cids[qid_usage_idx].p_cid); in qed_iov_vf_stop_txqs()
2557 p_queue->cids[qid_usage_idx].p_cid = NULL; in qed_iov_vf_stop_txqs()
3410 struct qed_vf_queue *p_queue; in qed_iov_vf_pf_get_coalesce() local
3444 p_queue = &p_vf->vf_queues[qid]; in qed_iov_vf_pf_get_coalesce()
3445 if ((!p_queue->cids[i].p_cid) || in qed_iov_vf_pf_get_coalesce()
3446 (!p_queue->cids[i].b_is_tx)) in qed_iov_vf_pf_get_coalesce()
3449 p_cid = p_queue->cids[i].p_cid; in qed_iov_vf_pf_get_coalesce()
3525 struct qed_vf_queue *p_queue = &vf->vf_queues[qid]; in qed_iov_vf_pf_set_coalesce() local
3528 if (!p_queue->cids[i].p_cid) in qed_iov_vf_pf_set_coalesce()
3531 if (!p_queue->cids[i].b_is_tx) in qed_iov_vf_pf_set_coalesce()
3535 p_queue->cids[i].p_cid); in qed_iov_vf_pf_set_coalesce()