Home
last modified time | relevance | path

Searched refs:hw_ctxt (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_mbox.c1293 #define HW_CTX_QPS_VALID(hw_ctxt) \ argument
1294 ((hw_ctxt)->rq_depth >= HINIC_QUEUE_MIN_DEPTH && \
1295 (hw_ctxt)->rq_depth <= HINIC_QUEUE_MAX_DEPTH && \
1296 (hw_ctxt)->sq_depth >= HINIC_QUEUE_MIN_DEPTH && \
1297 (hw_ctxt)->sq_depth <= HINIC_QUEUE_MAX_DEPTH && \
1298 (hw_ctxt)->rx_buf_sz_idx <= HINIC_MAX_RX_BUFFER_SIZE)
1300 static bool hw_ctxt_qps_param_valid(struct hinic_cmd_hw_ioctxt *hw_ctxt) in hw_ctxt_qps_param_valid() argument
1302 if (HW_CTX_QPS_VALID(hw_ctxt)) in hw_ctxt_qps_param_valid()
1305 if (!hw_ctxt->rq_depth && !hw_ctxt->sq_depth && in hw_ctxt_qps_param_valid()
1306 !hw_ctxt->rx_buf_sz_idx) in hw_ctxt_qps_param_valid()
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A Dchip.c14801 u8 hw_ctxt; in hfi1_set_ctxt_jkey() local
14807 hw_ctxt = rcd->sc->hw_context; in hfi1_set_ctxt_jkey()
14814 write_kctxt_csr(dd, hw_ctxt, SEND_CTXT_CHECK_JOB_KEY, reg); in hfi1_set_ctxt_jkey()
14819 reg = read_kctxt_csr(dd, hw_ctxt, SEND_CTXT_CHECK_ENABLE); in hfi1_set_ctxt_jkey()
14821 write_kctxt_csr(dd, hw_ctxt, SEND_CTXT_CHECK_ENABLE, reg); in hfi1_set_ctxt_jkey()
14835 u8 hw_ctxt; in hfi1_clear_ctxt_jkey() local
14841 hw_ctxt = rcd->sc->hw_context; in hfi1_clear_ctxt_jkey()
14842 write_kctxt_csr(dd, hw_ctxt, SEND_CTXT_CHECK_JOB_KEY, 0); in hfi1_clear_ctxt_jkey()
14849 reg = read_kctxt_csr(dd, hw_ctxt, SEND_CTXT_CHECK_ENABLE); in hfi1_clear_ctxt_jkey()
14851 write_kctxt_csr(dd, hw_ctxt, SEND_CTXT_CHECK_ENABLE, reg); in hfi1_clear_ctxt_jkey()
[all …]