Lines Matching refs:p_queue
203 qed_iov_get_vf_rx_queue_cid(struct qed_vf_queue *p_queue) in qed_iov_get_vf_rx_queue_cid() argument
208 if (p_queue->cids[i].p_cid && !p_queue->cids[i].b_is_tx) in qed_iov_get_vf_rx_queue_cid()
209 return p_queue->cids[i].p_cid; in qed_iov_get_vf_rx_queue_cid()
1074 struct qed_vf_queue *p_queue = &vf->vf_queues[i]; in qed_iov_init_hw_for_vf() local
1076 p_queue->fw_rx_qid = p_params->req_rx_queue[i]; in qed_iov_init_hw_for_vf()
1077 p_queue->fw_tx_qid = p_params->req_tx_queue[i]; in qed_iov_init_hw_for_vf()
1082 p_queue->fw_rx_qid, p_queue->fw_tx_qid); in qed_iov_init_hw_for_vf()
1382 struct qed_vf_queue *p_queue = &p_vf->vf_queues[i]; in qed_iov_vf_cleanup() local
1385 if (!p_queue->cids[j].p_cid) in qed_iov_vf_cleanup()
1389 p_queue->cids[j].p_cid); in qed_iov_vf_cleanup()
1390 p_queue->cids[j].p_cid = NULL; in qed_iov_vf_cleanup()
1871 struct qed_vf_queue *p_queue = &p_vf->vf_queues[i]; in qed_iov_configure_vport_forced() local
1875 p_cid = qed_iov_get_vf_rx_queue_cid(p_queue); in qed_iov_configure_vport_forced()
2114 struct qed_vf_queue *p_queue; in qed_iov_vf_mbx_start_rxq() local
2130 p_queue = &vf->vf_queues[req->rx_qid]; in qed_iov_vf_mbx_start_rxq()
2131 if (p_queue->cids[qid_usage_idx].p_cid) in qed_iov_vf_mbx_start_rxq()
2138 params.queue_id = p_queue->fw_rx_qid; in qed_iov_vf_mbx_start_rxq()
2174 p_queue->cids[qid_usage_idx].p_cid = p_cid; in qed_iov_vf_mbx_start_rxq()
2175 p_queue->cids[qid_usage_idx].b_is_tx = false; in qed_iov_vf_mbx_start_rxq()
2446 struct qed_vf_queue *p_queue; in qed_iov_vf_mbx_start_txq() local
2466 p_queue = &vf->vf_queues[req->tx_qid]; in qed_iov_vf_mbx_start_txq()
2467 if (p_queue->cids[qid_usage_idx].p_cid) in qed_iov_vf_mbx_start_txq()
2473 params.queue_id = p_queue->fw_tx_qid; in qed_iov_vf_mbx_start_txq()
2502 p_queue->cids[qid_usage_idx].p_cid = p_cid; in qed_iov_vf_mbx_start_txq()
2503 p_queue->cids[qid_usage_idx].b_is_tx = true; in qed_iov_vf_mbx_start_txq()
2516 struct qed_vf_queue *p_queue; in qed_iov_vf_stop_rxqs() local
2527 p_queue = &vf->vf_queues[rxq_id]; in qed_iov_vf_stop_rxqs()
2532 if (!p_queue->cids[qid_usage_idx].p_cid || in qed_iov_vf_stop_rxqs()
2533 p_queue->cids[qid_usage_idx].b_is_tx) { in qed_iov_vf_stop_rxqs()
2536 p_cid = qed_iov_get_vf_rx_queue_cid(p_queue); in qed_iov_vf_stop_rxqs()
2547 p_queue->cids[qid_usage_idx].p_cid, in qed_iov_vf_stop_rxqs()
2552 p_queue->cids[qid_usage_idx].p_cid = NULL; in qed_iov_vf_stop_rxqs()
2562 struct qed_vf_queue *p_queue; in qed_iov_vf_stop_txqs() local
2568 p_queue = &vf->vf_queues[txq_id]; in qed_iov_vf_stop_txqs()
2569 if (!p_queue->cids[qid_usage_idx].p_cid || in qed_iov_vf_stop_txqs()
2570 !p_queue->cids[qid_usage_idx].b_is_tx) in qed_iov_vf_stop_txqs()
2573 rc = qed_eth_tx_queue_stop(p_hwfn, p_queue->cids[qid_usage_idx].p_cid); in qed_iov_vf_stop_txqs()
2577 p_queue->cids[qid_usage_idx].p_cid = NULL; in qed_iov_vf_stop_txqs()
3432 struct qed_vf_queue *p_queue; in qed_iov_vf_pf_get_coalesce() local
3466 p_queue = &p_vf->vf_queues[qid]; in qed_iov_vf_pf_get_coalesce()
3467 if ((!p_queue->cids[i].p_cid) || in qed_iov_vf_pf_get_coalesce()
3468 (!p_queue->cids[i].b_is_tx)) in qed_iov_vf_pf_get_coalesce()
3471 p_cid = p_queue->cids[i].p_cid; in qed_iov_vf_pf_get_coalesce()
3547 struct qed_vf_queue *p_queue = &vf->vf_queues[qid]; in qed_iov_vf_pf_set_coalesce() local
3550 if (!p_queue->cids[i].p_cid) in qed_iov_vf_pf_set_coalesce()
3553 if (!p_queue->cids[i].b_is_tx) in qed_iov_vf_pf_set_coalesce()
3557 p_queue->cids[i].p_cid); in qed_iov_vf_pf_set_coalesce()