Lines Matching refs:wq_ctx
1340 static int qcom_scm_assert_valid_wq_ctx(u32 wq_ctx)
1342 /* FW currently only supports a single wq_ctx (zero).
1344 * completion structs when FW supports more wq_ctx values.
1346 if (wq_ctx != 0) {
1347 dev_err(__scm->dev, "Firmware unexpectedly passed non-zero wq_ctx\n");
1354 int qcom_scm_wait_for_wq_completion(u32 wq_ctx)
1358 ret = qcom_scm_assert_valid_wq_ctx(wq_ctx);
1367 static int qcom_scm_waitq_wakeup(struct qcom_scm *scm, unsigned int wq_ctx)
1371 ret = qcom_scm_assert_valid_wq_ctx(wq_ctx);
1384 u32 wq_ctx, flags, more_pending = 0;
1387 ret = scm_get_wq_ctx(&wq_ctx, &flags, &more_pending);
1395 dev_err(scm->dev, "Invalid flags found for wq_ctx: %u\n", flags);
1399 ret = qcom_scm_waitq_wakeup(scm, wq_ctx);