Lines Matching refs:mbox
342 static inline int gen6_check_mailbox_status(u32 mbox)
344 switch (mbox & GEN6_PCODE_ERROR_MASK) {
357 MISSING_CASE(mbox & GEN6_PCODE_ERROR_MASK);
362 static inline int gen7_check_mailbox_status(u32 mbox)
364 switch (mbox & GEN6_PCODE_ERROR_MASK) {
376 MISSING_CASE(mbox & GEN6_PCODE_ERROR_MASK);
382 u32 mbox, u32 *val, u32 *val1,
403 GEN6_PCODE_MAILBOX, GEN6_PCODE_READY | mbox);
410 &mbox))
419 return gen7_check_mailbox_status(mbox);
421 return gen6_check_mailbox_status(mbox);
424 int sandybridge_pcode_read(struct drm_i915_private *i915, u32 mbox,
430 err = __sandybridge_pcode_rw(i915, mbox, val, val1,
437 "warning: pcode (read from mbox %x) mailbox access failed for %ps: %d\n",
438 mbox, __builtin_return_address(0), err);
445 u32 mbox, u32 val,
452 err = __sandybridge_pcode_rw(i915, mbox, &val, NULL,
459 "warning: pcode (write of 0x%08x to mbox %x) mailbox access failed for %ps: %d\n",
460 val, mbox, __builtin_return_address(0), err);
466 static bool skl_pcode_try_request(struct drm_i915_private *i915, u32 mbox,
470 *status = __sandybridge_pcode_rw(i915, mbox, &request, NULL,
480 * @mbox: PCODE mailbox ID the request is targeted for
486 * Keep resending the @request to @mbox until PCODE acknowledges it, PCODE
496 int skl_pcode_request(struct drm_i915_private *i915, u32 mbox, u32 request,
505 skl_pcode_try_request(i915, mbox, request, reply_mask, reply, &status)