Lines Matching full:term

378 	siw_dbg_qp(qp, "init TERM: layer %d, type %d, code %d, in tx %s\n",  in siw_init_terminate()
394 struct iwarp_terminate *term = NULL; in siw_send_terminate() local
421 term = kzalloc(sizeof(*term), GFP_KERNEL); in siw_send_terminate()
422 if (!term) in siw_send_terminate()
425 term->ddp_qn = cpu_to_be32(RDMAP_UNTAGGED_QN_TERMINATE); in siw_send_terminate()
426 term->ddp_mo = 0; in siw_send_terminate()
427 term->ddp_msn = cpu_to_be32(1); in siw_send_terminate()
429 iov[0].iov_base = term; in siw_send_terminate()
430 iov[0].iov_len = sizeof(*term); in siw_send_terminate()
437 kfree(term); in siw_send_terminate()
441 memcpy(&term->ctrl, &iwarp_pktinfo[RDMAP_TERMINATE].ctrl, in siw_send_terminate()
444 __rdmap_term_set_layer(term, qp->term_info.layer); in siw_send_terminate()
445 __rdmap_term_set_etype(term, qp->term_info.etype); in siw_send_terminate()
446 __rdmap_term_set_ecode(term, qp->term_info.ecode); in siw_send_terminate()
459 term->flag_m = 1; in siw_send_terminate()
460 term->flag_d = 1; in siw_send_terminate()
461 term->flag_r = 1; in siw_send_terminate()
528 term->flag_m = 1; in siw_send_terminate()
529 term->flag_d = 1; in siw_send_terminate()
531 term->ctrl.mpa_len = cpu_to_be16(iov[1].iov_len); in siw_send_terminate()
556 term->flag_m = 1; in siw_send_terminate()
557 term->flag_d = 1; in siw_send_terminate()
563 if (term->flag_m || term->flag_d || term->flag_r) { in siw_send_terminate()
566 len_terminate = sizeof(*term) + iov[1].iov_len + MPA_CRC_SIZE; in siw_send_terminate()
571 len_terminate = sizeof(*term) + MPA_CRC_SIZE; in siw_send_terminate()
576 if (term->flag_m) { in siw_send_terminate()
584 term->ctrl.mpa_len = in siw_send_terminate()
603 siw_dbg_qp(qp, "sent TERM: %s, layer %d, type %d, code %d (%d bytes)\n", in siw_send_terminate()
605 __rdmap_term_layer(term), __rdmap_term_etype(term), in siw_send_terminate()
606 __rdmap_term_ecode(term), rv); in siw_send_terminate()
608 kfree(term); in siw_send_terminate()