Lines Matching refs:wrpt
3407 uint32_t wrpt; /**< Write pointer for producer in bytes */ member
3423 return (rb->wrpt == rb->rptr); in dmub_rb_empty()
3437 if (rb->wrpt >= rb->rptr) in dmub_rb_full()
3438 data_count = rb->wrpt - rb->rptr; in dmub_rb_full()
3440 data_count = rb->capacity - (rb->rptr - rb->wrpt); in dmub_rb_full()
3456 uint64_t volatile *dst = (uint64_t volatile *)((uint8_t *)(rb->base_address) + rb->wrpt); in dmub_rb_push_front()
3467 rb->wrpt += DMUB_RB_CMD_SIZE; in dmub_rb_push_front()
3469 if (rb->wrpt >= rb->capacity) in dmub_rb_push_front()
3470 rb->wrpt %= rb->capacity; in dmub_rb_push_front()
3486 uint8_t *dst = (uint8_t *)(rb->base_address) + rb->wrpt; in dmub_rb_out_push_front()
3494 rb->wrpt += DMUB_RB_CMD_SIZE; in dmub_rb_out_push_front()
3496 if (rb->wrpt >= rb->capacity) in dmub_rb_out_push_front()
3497 rb->wrpt %= rb->capacity; in dmub_rb_out_push_front()
3619 uint32_t wptr = rb->wrpt; in dmub_rb_flush_pending()
3650 rb->wrpt = init_params->write_ptr; in dmub_rb_init()