Lines Matching refs:ti

66   Queue *ti = &trans->transaction_info;  in transaction_all_obs_pkgs()  local
85 for (i = 0; i < ti->count; i += 2) in transaction_all_obs_pkgs()
86 if (ti->elements[i + 1] == p) in transaction_all_obs_pkgs()
87 queue_push2(pkgs, p, ti->elements[i]); in transaction_all_obs_pkgs()
98 for (i = 0; i < ti->count; i += 2) in transaction_all_obs_pkgs()
100 if (ti->elements[i] == p) in transaction_all_obs_pkgs()
101 queue_push(pkgs, ti->elements[i + 1]); in transaction_all_obs_pkgs()
113 Queue *ti; in transaction_obs_pkg() local
123 ti = &trans->transaction_info; in transaction_obs_pkg()
124 for (i = 0; i < ti->count; i += 2) in transaction_obs_pkg()
125 if (ti->elements[i] == p) in transaction_obs_pkg()
126 return ti->elements[i + 1]; in transaction_obs_pkg()
545 Queue *ti = &trans->transaction_info; in create_transaction_info() local
551 queue_empty(ti); in create_transaction_info()
577 queue_push2(ti, p, p2); in create_transaction_info()
593 queue_push2(ti, p, p2); in create_transaction_info()
598 if (ti->count > 2) in create_transaction_info()
601 solv_sort(ti->elements, ti->count / 2, 2 * sizeof(Id), obsq_sortcmp, pool); in create_transaction_info()
602 for (i = j = 2; i < ti->count; i += 2) in create_transaction_info()
604 if (ti->elements[i] == ti->elements[j - 2] && ti->elements[i + 1] == ti->elements[j - 1]) in create_transaction_info()
606 ti->elements[j++] = ti->elements[i]; in create_transaction_info()
607 ti->elements[j++] = ti->elements[i + 1]; in create_transaction_info()
609 queue_truncate(ti, j); in create_transaction_info()
615 for (i = 0; i < ti->count; i += 2) in create_transaction_info()
617 j = ti->elements[i + 1] - installed->start; in create_transaction_info()
619 trans->transaction_installed[j] = ti->elements[i]; in create_transaction_info()
626 q[0] = q[2] = ti->elements[i + 1]; in create_transaction_info()
627 q[1] = ti->elements[i]; in create_transaction_info()
630 trans->transaction_installed[j] = -ti->elements[i]; in create_transaction_info()
937 Queue ti; in addedge() local
940 queue_init_buffer(&ti, tibuf, sizeof(tibuf)/sizeof(*tibuf)); in addedge()
941 transaction_all_obs_pkgs(trans, from, &ti); in addedge()
942 for (i = 0; i < ti.count; i++) in addedge()
943 ret |= addedge(od, ti.elements[i], to, type); in addedge()
944 queue_free(&ti); in addedge()
957 Queue ti; in addedge() local
960 queue_init_buffer(&ti, tibuf, sizeof(tibuf)/sizeof(*tibuf)); in addedge()
961 transaction_all_obs_pkgs(trans, to, &ti); in addedge()
962 for (i = 0; i < ti.count; i++) in addedge()
963 ret |= addedge(od, from, ti.elements[i], type); in addedge()
964 queue_free(&ti); in addedge()