Lines Matching refs:resp
76 static int get_msg(struct mixart_mgr *mgr, struct mixart_msg *resp, in get_msg() argument
90 resp->message_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 4)); /* dwMessageID */ in get_msg()
91 resp->uid.object_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 8)); /* uidDest */ in get_msg()
92 resp->uid.desc = readl_be(MIXART_MEM(mgr, msg_frame_address + 12)); /* */ in get_msg()
94 if( (size < MSG_DESCRIPTOR_SIZE) || (resp->size < (size - MSG_DESCRIPTOR_SIZE))) { in get_msg()
102 memcpy_fromio(resp->data, MIXART_MEM(mgr, msg_frame_address + MSG_HEADER_SIZE ), size); in get_msg()
103 resp->size = size; in get_msg()
109 ((u32*)resp->data)[i] = be32_to_cpu(((u32*)resp->data)[i]); in get_msg()
236 struct mixart_msg resp; in snd_mixart_send_msg() local
266 resp.message_id = 0; in snd_mixart_send_msg()
267 resp.uid = (struct mixart_uid){0,0}; in snd_mixart_send_msg()
268 resp.data = resp_data; in snd_mixart_send_msg()
269 resp.size = max_resp_size; in snd_mixart_send_msg()
272 err = get_msg(mgr, &resp, msg_frame); in snd_mixart_send_msg()
275 if( request->message_id != resp.message_id ) in snd_mixart_send_msg()
346 struct mixart_msg resp; in snd_mixart_process_msg() local
362 resp.message_id = 0; in snd_mixart_process_msg()
363 resp.data = mixart_msg_data; in snd_mixart_process_msg()
364 resp.size = sizeof(mixart_msg_data); in snd_mixart_process_msg()
365 err = get_msg(mgr, &resp, addr); in snd_mixart_process_msg()
373 switch(resp.message_id) { in snd_mixart_process_msg()
386 msg, resp.message_id, resp.uid.object_id, resp.uid.desc, resp.size); in snd_mixart_process_msg()
435 struct mixart_msg resp; in snd_mixart_threaded_irq() local
444 resp.message_id = 0; in snd_mixart_threaded_irq()
445 resp.data = mixart_msg_data; in snd_mixart_threaded_irq()
446 resp.size = sizeof(mixart_msg_data); in snd_mixart_threaded_irq()
447 err = get_msg(mgr, &resp, msg & ~MSG_TYPE_MASK); in snd_mixart_threaded_irq()
455 if(resp.message_id == MSG_SERVICES_TIMER_NOTIFY) { in snd_mixart_threaded_irq()
515 if(resp.message_id == MSG_SERVICES_REPORT_TRACES) { in snd_mixart_threaded_irq()
516 if(resp.size > 1) { in snd_mixart_threaded_irq()
520 for(i=0; i<(resp.size/4); i++) { in snd_mixart_threaded_irq()
524 ((char*)mixart_msg_data)[resp.size - 1] = 0; in snd_mixart_threaded_irq()
533 resp.message_id); in snd_mixart_threaded_irq()