• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/s390/crypto/

Lines Matching defs:ap_msg

473 	struct ap_message *ap_msg, *next;
475 list_for_each_entry_safe(ap_msg, next, &ap_dev->pendingq, list) {
476 list_del_init(&ap_msg->list);
478 ap_dev->drv->receive(ap_dev, ap_msg, ERR_PTR(-ENODEV));
480 list_for_each_entry_safe(ap_msg, next, &ap_dev->requestq, list) {
481 list_del_init(&ap_msg->list);
483 ap_dev->drv->receive(ap_dev, ap_msg, ERR_PTR(-ENODEV));
847 struct ap_message *ap_msg;
857 list_for_each_entry(ap_msg, &ap_dev->pendingq, list) {
858 if (ap_msg->psmid != ap_dev->reply->psmid)
860 list_del_init(&ap_msg->list);
862 ap_dev->drv->receive(ap_dev, ap_msg, ap_dev->reply);
895 struct ap_message *ap_msg;
901 ap_msg = list_entry(ap_dev->requestq.next, struct ap_message, list);
902 status = __ap_send(ap_dev->qid, ap_msg->psmid,
903 ap_msg->message, ap_msg->length);
908 list_move_tail(&ap_msg->list, &ap_dev->pendingq);
948 * @ap_msg: the message to be queued
950 static int __ap_queue_message(struct ap_device *ap_dev, struct ap_message *ap_msg)
956 status = __ap_send(ap_dev->qid, ap_msg->psmid,
957 ap_msg->message, ap_msg->length);
960 list_add_tail(&ap_msg->list, &ap_dev->pendingq);
967 list_add_tail(&ap_msg->list, &ap_dev->requestq);
972 ap_dev->drv->receive(ap_dev, ap_msg, ERR_PTR(-EINVAL));
975 ap_dev->drv->receive(ap_dev, ap_msg, ERR_PTR(-ENODEV));
979 list_add_tail(&ap_msg->list, &ap_dev->requestq);
988 void ap_queue_message(struct ap_device *ap_dev, struct ap_message *ap_msg)
998 rc = __ap_queue_message(ap_dev, ap_msg);
1004 ap_dev->drv->receive(ap_dev, ap_msg, ERR_PTR(-ENODEV));
1019 * @ap_msg: the message that is to be removed
1021 void ap_cancel_message(struct ap_device *ap_dev, struct ap_message *ap_msg)
1026 if (!list_empty(&ap_msg->list)) {
1028 if (tmp->psmid == ap_msg->psmid) {
1034 list_del_init(&ap_msg->list);