Lines Matching refs:parent
60 struct nvme_request *parent = child->parent;
62 nvme_request_remove_child(parent, child);
65 memcpy(&parent->parent_status, cpl, sizeof(*cpl));
67 if (parent->child_reqs == 0) {
68 if (parent->cb_fn)
69 parent->cb_fn(parent->cb_arg, &parent->parent_status);
70 nvme_request_free_locked(parent);
192 void nvme_request_add_child(struct nvme_request *parent,
195 if (parent->child_reqs == 0) {
202 TAILQ_INIT(&parent->children);
203 parent->parent = NULL;
204 memset(&parent->parent_status, 0, sizeof(struct nvme_cpl));
207 parent->child_reqs++;
208 TAILQ_INSERT_TAIL(&parent->children, child, child_tailq);
209 child->parent = parent;
214 void nvme_request_remove_child(struct nvme_request *parent,
217 nvme_assert(child->parent == parent, "child->parent != parent\n");
218 nvme_assert(parent->child_reqs != 0, "child_reqs is 0\n");
220 parent->child_reqs--;
221 TAILQ_REMOVE(&parent->children, child, child_tailq);