Home | History | Annotate | Download | only in engines

Lines Matching refs:nd

28 	struct null_data *nd = (struct null_data *) td->io_ops->data;
30 return nd->io_us[event];
37 struct null_data *nd = (struct null_data *) td->io_ops->data;
41 ret = nd->events;
42 nd->events = 0;
50 struct null_data *nd = (struct null_data *) td->io_ops->data;
52 if (!nd->events) {
54 io_u_mark_submit(td, nd->queued);
56 nd->events = nd->queued;
57 nd->queued = 0;
65 struct null_data *nd = (struct null_data *) td->io_ops->data;
71 if (nd->events)
74 nd->io_us[nd->queued++] = io_u;
86 struct null_data *nd = (struct null_data *) td->io_ops->data;
88 if (nd) {
89 if (nd->io_us)
90 free(nd->io_us);
91 free(nd);
97 struct null_data *nd = (struct null_data *) malloc(sizeof(*nd));
99 memset(nd, 0, sizeof(*nd));
102 nd->io_us = (struct io_u **) malloc(td->o.iodepth * sizeof(struct io_u *));
103 memset(nd->io_us, 0, td->o.iodepth * sizeof(struct io_u *));
107 td->io_ops->data = nd;