Lines Matching defs:res_msg
90 struct heci_message_data res_msg;
101 res_msg.data = kmem_zalloc(sizeof (struct heci_driver_version),
103 if (!res_msg.data) {
109 version = (struct heci_driver_version *)res_msg.data;
114 res_msg.size = sizeof (struct heci_driver_version);
116 res_msg.size -= 2;
120 if (ddi_copyout(res_msg.data, k_msg.data, res_msg.size, mode)) {
124 if (ddi_copyout(&res_msg.size, &u_msg->size, sizeof (uint32_t), mode)) {
129 kmem_free(res_msg.data, sizeof (struct heci_driver_version));
152 struct heci_message_data req_msg, res_msg;
179 res_msg.data = kmem_zalloc(sizeof (struct heci_client), KM_SLEEP);
181 if (!res_msg.data) {
190 if (res_msg.data) {
191 kmem_free(res_msg.data, sizeof (struct heci_client));
192 res_msg.data = NULL;
199 res_msg.size = sizeof (struct heci_client);
216 priv_cb->response_buffer.data = res_msg.data;
217 priv_cb->response_buffer.size = res_msg.size;
280 client = (struct heci_client *)res_msg.data;
289 if (ddi_copyout(res_msg.data, k_msg.data, res_msg.size, mode)) {
290 cmn_err(CE_WARN, "ddi_copyout error on res_msg.data");
294 if (ddi_copyout(&res_msg.size, &u_msg->size,
296 cmn_err(CE_WARN, "ddi_copyout error on res_msg.size");
311 client = (struct heci_client *)res_msg.data;
351 if (ddi_copyout(res_msg.data, k_msg.data, res_msg.size, mode)) {
355 if (ddi_copyout(&res_msg.size, &u_msg->size,
385 kmem_free(res_msg.data, sizeof (struct heci_client));
386 res_msg.data = NULL;