Lines Matching refs:tfr

56 static int dm_ulog_sendto_server(struct dm_ulog_request *tfr)  in dm_ulog_sendto_server()  argument
66 msg->seq = tfr->seq; in dm_ulog_sendto_server()
67 msg->len = sizeof(struct dm_ulog_request) + tfr->data_size; in dm_ulog_sendto_server()
82 static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) in fill_pkg() argument
84 uint32_t rtn_seq = (msg) ? msg->seq : (tfr) ? tfr->seq : 0; in fill_pkg()
110 } else if (tfr->data_size > *(pkg->data_size)) { in fill_pkg()
112 "(%u vs %zu)", tfr->request_type, in fill_pkg()
113 tfr->data_size, *(pkg->data_size)); in fill_pkg()
118 pkg->error = tfr->error; in fill_pkg()
119 memcpy(pkg->data, tfr->data, tfr->data_size); in fill_pkg()
120 *(pkg->data_size) = tfr->data_size; in fill_pkg()
135 struct dm_ulog_request *tfr = (struct dm_ulog_request *)(msg + 1); in cn_ulog_callback() local
143 else if (msg->len < sizeof(*tfr)) in cn_ulog_callback()
145 (unsigned)sizeof(*tfr), msg->len, msg->seq); in cn_ulog_callback()
147 fill_pkg(NULL, tfr); in cn_ulog_callback()
178 struct dm_ulog_request *tfr = prealloced_ulog_tfr; in dm_consult_userspace() local
200 memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - sizeof(struct cn_msg)); in dm_consult_userspace()
201 memcpy(tfr->uuid, uuid, DM_UUID_LEN); in dm_consult_userspace()
202 tfr->version = DM_ULOG_REQUEST_VERSION; in dm_consult_userspace()
203 tfr->luid = luid; in dm_consult_userspace()
204 tfr->seq = dm_ulog_seq++; in dm_consult_userspace()
211 tfr->request_type = request_type & DM_ULOG_REQUEST_MASK; in dm_consult_userspace()
213 tfr->data_size = data_size; in dm_consult_userspace()
215 memcpy(tfr->data, data, data_size); in dm_consult_userspace()
219 pkg.seq = tfr->seq; in dm_consult_userspace()
226 r = dm_ulog_sendto_server(tfr); in dm_consult_userspace()