Lines Matching defs:trans
123 struct xs_dev_transaction *trans;
157 trans = malloc(sizeof(*trans), M_XENSTORE,
159 trans->handle.id = strtoul(reply, NULL, 0);
160 LIST_INSERT_HEAD(&u->transactions, trans, list);
162 LIST_FOREACH(trans, &u->transactions, list)
163 if (trans->handle.id == u->u.msg.tx_id)
166 BUG_ON(&trans->list == &u->transactions);
168 LIST_REMOVE(trans, list);
169 free(trans, M_XENSTORE);
192 struct xs_dev_transaction *trans, *tmp;
194 LIST_FOREACH_SAFE(trans, &u->transactions, list, tmp) {
195 xs_transaction_end(trans->handle, 1);
196 LIST_REMOVE(trans, list);
197 free(trans, M_XENSTORE);