Lines Matching refs:npos
583 uint32_t npos = rpos; in h2_apply_priority_update() local
584 while (npos in h2_apply_priority_update()
585 && (rr[npos-1]->h2_prio > r->h2_prio in h2_apply_priority_update()
586 || (rr[npos-1]->h2_prio == r->h2_prio in h2_apply_priority_update()
587 && rr[npos-1]->h2id > r->h2id))) in h2_apply_priority_update()
588 --npos; in h2_apply_priority_update()
589 if (rpos - npos) { in h2_apply_priority_update()
590 memmove(rr+npos+1, rr+npos, (rpos - npos)*sizeof(request_st *)); in h2_apply_priority_update()
593 while (npos+1 < h2c->rused in h2_apply_priority_update()
594 && (rr[npos+1]->h2_prio < r->h2_prio in h2_apply_priority_update()
595 || (rr[npos+1]->h2_prio == r->h2_prio in h2_apply_priority_update()
596 && rr[npos+1]->h2id < r->h2id))) in h2_apply_priority_update()
597 ++npos; in h2_apply_priority_update()
598 if (npos - rpos == 0) in h2_apply_priority_update()
600 memmove(rr+rpos, rr+rpos+1, (npos - rpos)*sizeof(request_st *)); in h2_apply_priority_update()
602 rr[npos] = r; in h2_apply_priority_update()