Lines Matching refs:send_queue
1221 mad_send_wr->mad_list.mad_queue = &qp_info->send_queue; in ib_send_mad()
1248 spin_lock_irqsave(&qp_info->send_queue.lock, flags); in ib_send_mad()
1249 if (qp_info->send_queue.count < qp_info->send_queue.max_active) { in ib_send_mad()
1253 list = &qp_info->send_queue.list; in ib_send_mad()
1260 qp_info->send_queue.count++; in ib_send_mad()
1263 spin_unlock_irqrestore(&qp_info->send_queue.lock, flags); in ib_send_mad()
2514 struct ib_mad_queue *send_queue; in ib_mad_send_done() local
2529 send_queue = mad_list->mad_queue; in ib_mad_send_done()
2530 qp_info = send_queue->qp_info; in ib_mad_send_done()
2543 spin_lock_irqsave(&send_queue->lock, flags); in ib_mad_send_done()
2547 if (send_queue->count-- > send_queue->max_active) { in ib_mad_send_done()
2553 list_move_tail(&mad_list->list, &send_queue->list); in ib_mad_send_done()
2555 spin_unlock_irqrestore(&send_queue->lock, flags); in ib_mad_send_done()
2585 spin_lock_irqsave(&qp_info->send_queue.lock, flags); in mark_sends_for_retry()
2586 list_for_each_entry(mad_list, &qp_info->send_queue.list, list) { in mark_sends_for_retry()
2592 spin_unlock_irqrestore(&qp_info->send_queue.lock, flags); in mark_sends_for_retry()
3138 init_mad_queue(qp_info, &qp_info->send_queue); in init_mad_qp()
3174 qp_info->send_queue.max_active = mad_sendq_size; in create_mad_qp()