Lines Matching refs:curr_pg
745 int curr_pg, end_pg, num_wqebbs; in hinic_get_wqe() local
766 curr_pg = WQE_PAGE_NUM(wq, curr_prod_idx); in hinic_get_wqe()
774 if (curr_pg != end_pg || end_prod_idx < *prod_idx) { in hinic_get_wqe()
775 void *shadow_addr = &wq->shadow_wqe[curr_pg * wq->max_wqe_size]; in hinic_get_wqe()
779 wq->shadow_idx[curr_pg] = *prod_idx; in hinic_get_wqe()
829 int curr_pg, end_pg; in hinic_read_wqe() local
839 curr_pg = WQE_PAGE_NUM(wq, curr_cons_idx); in hinic_read_wqe()
847 if (curr_pg != end_pg || end_cons_idx < curr_cons_idx) { in hinic_read_wqe()
848 void *shadow_addr = &wq->shadow_wqe[curr_pg * wq->max_wqe_size]; in hinic_read_wqe()
893 int curr_pg, num_wqebbs; in hinic_write_wqe() local
898 curr_pg = WQE_SHADOW_PAGE(wq, wqe); in hinic_write_wqe()
900 prod_idx = wq->shadow_idx[curr_pg]; in hinic_write_wqe()
902 shadow_addr = &wq->shadow_wqe[curr_pg * wq->max_wqe_size]; in hinic_write_wqe()