Lines Matching refs:hw_ctxt
1288 #define HW_CTX_QPS_VALID(hw_ctxt) \ argument
1289 ((hw_ctxt)->rq_depth >= HINIC_QUEUE_MIN_DEPTH && \
1290 (hw_ctxt)->rq_depth <= HINIC_QUEUE_MAX_DEPTH && \
1291 (hw_ctxt)->sq_depth >= HINIC_QUEUE_MIN_DEPTH && \
1292 (hw_ctxt)->sq_depth <= HINIC_QUEUE_MAX_DEPTH && \
1293 (hw_ctxt)->rx_buf_sz_idx <= HINIC_MAX_RX_BUFFER_SIZE)
1295 static bool hw_ctxt_qps_param_valid(struct hinic_cmd_hw_ioctxt *hw_ctxt) in hw_ctxt_qps_param_valid() argument
1297 if (HW_CTX_QPS_VALID(hw_ctxt)) in hw_ctxt_qps_param_valid()
1300 if (!hw_ctxt->rq_depth && !hw_ctxt->sq_depth && in hw_ctxt_qps_param_valid()
1301 !hw_ctxt->rx_buf_sz_idx) in hw_ctxt_qps_param_valid()
1310 struct hinic_cmd_hw_ioctxt *hw_ctxt = buf_in; in check_hwctxt() local
1315 if (hw_ctxt->ppf_idx != HINIC_HWIF_PPF_IDX(hwdev->hwif)) in check_hwctxt()
1318 if (hw_ctxt->set_cmdq_depth) { in check_hwctxt()
1319 if (hw_ctxt->cmdq_depth >= HINIC_QUEUE_MIN_DEPTH && in check_hwctxt()
1320 hw_ctxt->cmdq_depth <= HINIC_QUEUE_MAX_DEPTH) in check_hwctxt()
1326 return hw_ctxt_qps_param_valid(hw_ctxt); in check_hwctxt()