Lines Matching defs:trans
309 struct xenbus_transaction_holder *trans, *tmp;
320 list_for_each_entry_safe(trans, tmp, &u->transactions, list) {
321 xenbus_transaction_end(trans->handle, 1);
322 list_del(&trans->list);
323 kfree(trans);
354 struct xenbus_transaction_holder *trans;
356 list_for_each_entry(trans, &u->transactions, list)
357 if (trans->handle.id == tx_id)
358 return trans;
366 struct xenbus_transaction_holder *trans = NULL;
375 trans = xenbus_get_transaction(u, 0);
376 if (WARN_ON(!trans))
379 list_del(&trans->list);
380 kfree(trans);
382 rc = kstrtou32(req->body, 10, &trans->handle.id);
387 trans = xenbus_get_transaction(u, req->msg.tx_id);
388 if (WARN_ON(!trans))
390 list_del(&trans->list);
391 kfree(trans);
450 struct xenbus_transaction_holder *trans = NULL;
457 trans = kzalloc(sizeof(*trans), GFP_KERNEL);
458 if (!trans) {
462 trans->generation_id = xb_dev_generation_id;
463 list_add(&trans->list, &u->transactions);
472 trans = xenbus_get_transaction(u, msg->hdr.tx_id);
473 if (trans && trans->generation_id != xb_dev_generation_id) {
474 list_del(&trans->list);
475 kfree(trans);
487 if (rc && trans) {
488 list_del(&trans->list);
489 kfree(trans);