Lines Matching full:out_h
73 struct ublock_init_out *out_h;
87 out_h = (struct ublock_init_out *)out;
88 out_h->version = UBLOCK_VERSION;
89 out_h->size = ub_ctx->size;
94 out_h->max_buf = ub_ctx->max_buf;
96 *out_len = sizeof(*out_h);
108 struct ublock_ready_out *out_h;
129 struct ublock_read_out *out_h;
141 out_h = (struct ublock_read_out *)out;
142 out_buf = (char *)(out_h + 1);
144 out_h->status = (ub_ctx->ops->read)(out_buf, in_h->length, in_h->offset);
146 if (out_h->status >= 0)
147 *out_len = sizeof(*out_h) + in_h->length;
149 *out_len = sizeof(*out_h);
160 struct ublock_write_out *out_h;
172 out_h = (struct ublock_write_out *)out;
173 *out_len = sizeof(*out_h);
175 out_h->status = (ub_ctx->ops->write)(in_buf, in_h->length, in_h->offset);
188 struct ublock_out_header *out_h;
206 out_h = (struct ublock_out_header *)out;
207 out_buf = out_h + 1;
211 out_h->opcode = UBLOCK_INIT_OUT;
215 out_h->opcode = UBLOCK_READY_OUT;
219 out_h->opcode = UBLOCK_READ_OUT;
223 out_h->opcode = UBLOCK_WRITE_OUT;
230 out_h->seq = in_h->seq;
232 *out_len = sizeof(*out_h) + out_buf_len;