Lines Matching refs:sqbuf
275 irdma_free_sqbuf(&iwdev->vsi, send_entry->sqbuf); in irdma_free_retrans_entry()
307 struct irdma_puda_buf *sqbuf; in irdma_form_ah_cm_frame() local
321 sqbuf = irdma_puda_get_bufpool(vsi->ilq); in irdma_form_ah_cm_frame()
322 if (!sqbuf) { in irdma_form_ah_cm_frame()
327 sqbuf->ah_id = cm_node->ah->ah_info.ah_idx; in irdma_form_ah_cm_frame()
328 buf = sqbuf->mem.va; in irdma_form_ah_cm_frame()
342 sqbuf->totallen = pktsize; in irdma_form_ah_cm_frame()
343 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in irdma_form_ah_cm_frame()
344 sqbuf->scratch = cm_node; in irdma_form_ah_cm_frame()
377 sqbuf->tcphlen = tcph->doff << 2; in irdma_form_ah_cm_frame()
394 refcount_set(&sqbuf->refcount, 1); in irdma_form_ah_cm_frame()
397 16, 8, sqbuf->mem.va, sqbuf->totallen, false); in irdma_form_ah_cm_frame()
399 return sqbuf; in irdma_form_ah_cm_frame()
416 struct irdma_puda_buf *sqbuf; in irdma_form_uda_cm_frame() local
432 sqbuf = irdma_puda_get_bufpool(vsi->ilq); in irdma_form_uda_cm_frame()
433 if (!sqbuf) in irdma_form_uda_cm_frame()
436 buf = sqbuf->mem.va; in irdma_form_uda_cm_frame()
458 sqbuf->totallen = pktsize + eth_hlen; in irdma_form_uda_cm_frame()
459 sqbuf->maclen = eth_hlen; in irdma_form_uda_cm_frame()
460 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in irdma_form_uda_cm_frame()
461 sqbuf->scratch = cm_node; in irdma_form_uda_cm_frame()
467 sqbuf->do_lpb = true; in irdma_form_uda_cm_frame()
470 sqbuf->ipv4 = true; in irdma_form_uda_cm_frame()
504 sqbuf->ipv4 = false; in irdma_form_uda_cm_frame()
565 sqbuf->tcphlen = tcph->doff << 2; in irdma_form_uda_cm_frame()
582 refcount_set(&sqbuf->refcount, 1); in irdma_form_uda_cm_frame()
585 16, 8, sqbuf->mem.va, sqbuf->totallen, false); in irdma_form_uda_cm_frame()
586 return sqbuf; in irdma_form_uda_cm_frame()
595 struct irdma_puda_buf *sqbuf; in irdma_send_reset() local
599 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, NULL, NULL, in irdma_send_reset()
601 if (!sqbuf) in irdma_send_reset()
610 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 0, in irdma_send_reset()
895 struct irdma_puda_buf *sqbuf; in irdma_send_mpa_request() local
907 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, in irdma_send_mpa_request()
910 if (!sqbuf) in irdma_send_mpa_request()
913 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 1, in irdma_send_mpa_request()
926 struct irdma_puda_buf *sqbuf; in irdma_send_mpa_reject() local
938 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, in irdma_send_mpa_reject()
941 if (!sqbuf) in irdma_send_mpa_reject()
946 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 1, in irdma_send_mpa_reject()
1129 struct irdma_puda_buf *sqbuf, in irdma_schedule_cm_timer() argument
1142 irdma_free_sqbuf(vsi, sqbuf); in irdma_schedule_cm_timer()
1148 new_send->sqbuf = sqbuf; in irdma_schedule_cm_timer()
1171 refcount_inc(&sqbuf->refcount); in irdma_schedule_cm_timer()
1172 irdma_puda_send_buf(vsi->ilq, sqbuf); in irdma_schedule_cm_timer()
1233 iwqp = (struct irdma_qp *)close_entry->sqbuf; in irdma_handle_close_entry()
1334 refcount_inc(&send_entry->sqbuf->refcount); in irdma_cm_timer_tick()
1335 irdma_puda_send_buf(vsi->ilq, send_entry->sqbuf); in irdma_cm_timer_tick()
1382 struct irdma_puda_buf *sqbuf; in irdma_send_syn() local
1416 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, &opts, NULL, NULL, in irdma_send_syn()
1418 if (!sqbuf) in irdma_send_syn()
1421 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 1, in irdma_send_syn()
1431 struct irdma_puda_buf *sqbuf; in irdma_send_ack() local
1434 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, NULL, NULL, in irdma_send_ack()
1436 if (sqbuf) in irdma_send_ack()
1437 irdma_puda_send_buf(vsi->ilq, sqbuf); in irdma_send_ack()
1446 struct irdma_puda_buf *sqbuf; in irdma_send_fin() local
1448 sqbuf = cm_node->cm_core->form_cm_frame(cm_node, NULL, NULL, NULL, in irdma_send_fin()
1450 if (!sqbuf) in irdma_send_fin()
1453 return irdma_schedule_cm_timer(cm_node, sqbuf, IRDMA_TIMER_TYPE_SEND, 1, in irdma_send_fin()