Lines Matching refs:recv_queue
2681 struct ib_mad_queue *recv_queue = &qp_info->recv_queue; in ib_mad_post_receive_mads() local
2716 mad_priv->header.mad_list.mad_queue = recv_queue; in ib_mad_post_receive_mads()
2721 spin_lock_irqsave(&recv_queue->lock, flags); in ib_mad_post_receive_mads()
2722 post = (++recv_queue->count < recv_queue->max_active); in ib_mad_post_receive_mads()
2723 list_add_tail(&mad_priv->header.mad_list.list, &recv_queue->list); in ib_mad_post_receive_mads()
2724 spin_unlock_irqrestore(&recv_queue->lock, flags); in ib_mad_post_receive_mads()
2727 spin_lock_irqsave(&recv_queue->lock, flags); in ib_mad_post_receive_mads()
2729 recv_queue->count--; in ib_mad_post_receive_mads()
2730 spin_unlock_irqrestore(&recv_queue->lock, flags); in ib_mad_post_receive_mads()
2757 while (!list_empty(&qp_info->recv_queue.list)) { in cleanup_recv_queue()
2759 mad_list = list_entry(qp_info->recv_queue.list.next, in cleanup_recv_queue()
2777 qp_info->recv_queue.count = 0; in cleanup_recv_queue()
2888 init_mad_queue(qp_info, &qp_info->recv_queue); in init_mad_qp()
2920 qp_info->recv_queue.max_active = mad_recvq_size; in create_mad_qp()