Lines Matching refs:ap_msg

554 	struct ap_message *ap_msg;  in ap_sm_recv()  local
565 list_for_each_entry(ap_msg, &ap_dev->pendingq, list) { in ap_sm_recv()
566 if (ap_msg->psmid != ap_dev->reply->psmid) in ap_sm_recv()
568 list_del_init(&ap_msg->list); in ap_sm_recv()
570 ap_msg->receive(ap_dev, ap_msg, ap_dev->reply); in ap_sm_recv()
628 struct ap_message *ap_msg; in ap_sm_write() local
633 ap_msg = list_entry(ap_dev->requestq.next, struct ap_message, list); in ap_sm_write()
634 status = __ap_send(ap_dev->qid, ap_msg->psmid, in ap_sm_write()
635 ap_msg->message, ap_msg->length, ap_msg->special); in ap_sm_write()
643 list_move_tail(&ap_msg->list, &ap_dev->pendingq); in ap_sm_write()
659 list_del_init(&ap_msg->list); in ap_sm_write()
661 ap_msg->rc = -EINVAL; in ap_sm_write()
662 ap_msg->receive(ap_dev, ap_msg, NULL); in ap_sm_write()
976 void ap_queue_message(struct ap_device *ap_dev, struct ap_message *ap_msg) in ap_queue_message() argument
980 BUG_ON(!ap_msg->receive); in ap_queue_message()
984 list_add_tail(&ap_msg->list, &ap_dev->requestq); in ap_queue_message()
1003 void ap_cancel_message(struct ap_device *ap_dev, struct ap_message *ap_msg) in ap_cancel_message() argument
1008 if (!list_empty(&ap_msg->list)) { in ap_cancel_message()
1010 if (tmp->psmid == ap_msg->psmid) { in ap_cancel_message()
1016 list_del_init(&ap_msg->list); in ap_cancel_message()
1338 struct ap_message *ap_msg, *next; in __ap_flush_queue() local
1340 list_for_each_entry_safe(ap_msg, next, &ap_dev->pendingq, list) { in __ap_flush_queue()
1341 list_del_init(&ap_msg->list); in __ap_flush_queue()
1343 ap_msg->rc = -EAGAIN; in __ap_flush_queue()
1344 ap_msg->receive(ap_dev, ap_msg, NULL); in __ap_flush_queue()
1346 list_for_each_entry_safe(ap_msg, next, &ap_dev->requestq, list) { in __ap_flush_queue()
1347 list_del_init(&ap_msg->list); in __ap_flush_queue()
1349 ap_msg->rc = -EAGAIN; in __ap_flush_queue()
1350 ap_msg->receive(ap_dev, ap_msg, NULL); in __ap_flush_queue()