Lines Matching refs:sqbuf
315 irdma_free_sqbuf(&iwdev->vsi, send_entry->sqbuf); in irdma_free_retrans_entry()
349 struct irdma_puda_buf *sqbuf; in irdma_form_ah_cm_frame() local
363 sqbuf = irdma_puda_get_bufpool(vsi->ilq); in irdma_form_ah_cm_frame()
364 if (!sqbuf) { in irdma_form_ah_cm_frame()
369 sqbuf->ah_id = cm_node->ah->ah_info.ah_idx; in irdma_form_ah_cm_frame()
370 buf = sqbuf->mem.va; in irdma_form_ah_cm_frame()
384 sqbuf->totallen = pktsize; in irdma_form_ah_cm_frame()
385 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in irdma_form_ah_cm_frame()
386 sqbuf->scratch = cm_node; in irdma_form_ah_cm_frame()
419 sqbuf->tcphlen = tcph->th_off << 2; in irdma_form_ah_cm_frame()
436 atomic_set(&sqbuf->refcount, 1); in irdma_form_ah_cm_frame()
439 sqbuf->mem.va, sqbuf->totallen); in irdma_form_ah_cm_frame()
441 return sqbuf; in irdma_form_ah_cm_frame()
459 struct irdma_puda_buf *sqbuf; in irdma_form_uda_cm_frame() local
475 sqbuf = irdma_puda_get_bufpool(vsi->ilq); in irdma_form_uda_cm_frame()
476 if (!sqbuf) in irdma_form_uda_cm_frame()
479 buf = sqbuf->mem.va; in irdma_form_uda_cm_frame()
501 sqbuf->totallen = pktsize + eth_hlen; in irdma_form_uda_cm_frame()
502 sqbuf->maclen = eth_hlen; in irdma_form_uda_cm_frame()
503 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in irdma_form_uda_cm_frame()
504 sqbuf->scratch = cm_node; in irdma_form_uda_cm_frame()
510 sqbuf->do_lpb = true; in irdma_form_uda_cm_frame()
513 sqbuf->ipv4 = true; in irdma_form_uda_cm_frame()
547 sqbuf->ipv4 = false; in irdma_form_uda_cm_frame()
606 sqbuf->tcphlen = tcph->th_off << 2; in irdma_form_uda_cm_frame()
623 atomic_set(&sqbuf->refcount, 1); in irdma_form_uda_cm_frame()
626 sqbuf->mem.va, sqbuf->totallen); in irdma_form_uda_cm_frame()
628 return sqbuf; in irdma_form_uda_cm_frame()
638 struct irdma_puda_buf *sqbuf; in irdma_send_reset() local
641 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, NULL, NULL, in irdma_send_reset()
643 if (!sqbuf) in irdma_send_reset()
653 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 0, in irdma_send_reset()
942 struct irdma_puda_buf *sqbuf; in irdma_send_mpa_request() local
954 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, in irdma_send_mpa_request()
957 if (!sqbuf) in irdma_send_mpa_request()
960 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 1, in irdma_send_mpa_request()
974 struct irdma_puda_buf *sqbuf; in irdma_send_mpa_reject() local
986 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, in irdma_send_mpa_reject()
989 if (!sqbuf) in irdma_send_mpa_reject()
994 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 1, in irdma_send_mpa_reject()
1179 struct irdma_puda_buf *sqbuf, in irdma_schedule_cm_timer() argument
1192 irdma_free_sqbuf(vsi, sqbuf); in irdma_schedule_cm_timer()
1198 new_send->sqbuf = sqbuf; in irdma_schedule_cm_timer()
1221 atomic_inc(&sqbuf->refcount); in irdma_schedule_cm_timer()
1222 irdma_puda_send_buf(vsi->ilq, sqbuf); in irdma_schedule_cm_timer()
1285 iwqp = (struct irdma_qp *)close_entry->sqbuf; in irdma_handle_close_entry()
1387 atomic_inc(&send_entry->sqbuf->refcount); in irdma_cm_timer_tick()
1388 irdma_puda_send_buf(vsi->ilq, send_entry->sqbuf); in irdma_cm_timer_tick()
1436 struct irdma_puda_buf *sqbuf; in irdma_send_syn() local
1471 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, &opts, NULL, NULL, in irdma_send_syn()
1473 if (!sqbuf) in irdma_send_syn()
1476 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 1, in irdma_send_syn()
1487 struct irdma_puda_buf *sqbuf; in irdma_send_ack() local
1490 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, NULL, NULL, in irdma_send_ack()
1492 if (sqbuf) in irdma_send_ack()
1493 irdma_puda_send_buf(vsi->ilq, sqbuf); in irdma_send_ack()
1503 struct irdma_puda_buf *sqbuf; in irdma_send_fin() local
1505 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, NULL, NULL, in irdma_send_fin()
1507 if (!sqbuf) in irdma_send_fin()
1510 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 1, in irdma_send_fin()