Lines Matching defs:wq_ctx
1743 static int qcom_scm_assert_valid_wq_ctx(u32 wq_ctx)
1745 /* FW currently only supports a single wq_ctx (zero).
1747 * completion structs when FW supports more wq_ctx values.
1749 if (wq_ctx != 0) {
1750 dev_err(__scm->dev, "Firmware unexpectedly passed non-zero wq_ctx\n");
1757 int qcom_scm_wait_for_wq_completion(u32 wq_ctx)
1761 ret = qcom_scm_assert_valid_wq_ctx(wq_ctx);
1770 static int qcom_scm_waitq_wakeup(unsigned int wq_ctx)
1774 ret = qcom_scm_assert_valid_wq_ctx(wq_ctx);
1787 u32 wq_ctx, flags, more_pending = 0;
1790 ret = scm_get_wq_ctx(&wq_ctx, &flags, &more_pending);
1798 dev_err(scm->dev, "Invalid flags found for wq_ctx: %u\n", flags);
1802 ret = qcom_scm_waitq_wakeup(wq_ctx);