• Home
  • Raw
  • Download

Lines Matching refs:mpa

188 	kfree(cep->mpa.pdata);  in __erdma_cep_dealloc()
256 u16 pd_len = be16_to_cpu(cep->mpa.hdr.params.pd_len); in erdma_cm_upcall()
258 if (pd_len && cep->mpa.pdata) { in erdma_cm_upcall()
260 event.private_data = cep->mpa.pdata; in erdma_cm_upcall()
336 struct mpa_rr *rr = &cep->mpa.hdr; in erdma_send_mpareqrep()
352 iov[iovec_num].iov_base = &cep->mpa.ext_data; in erdma_send_mpareqrep()
353 iov[iovec_num].iov_len = sizeof(cep->mpa.ext_data); in erdma_send_mpareqrep()
355 mpa_len += sizeof(cep->mpa.ext_data); in erdma_send_mpareqrep()
441 struct mpa_rr *hdr = &cep->mpa.hdr; in erdma_recv_mpa_rr()
446 if (cep->mpa.bytes_rcvd < sizeof(struct mpa_rr)) { in erdma_recv_mpa_rr()
447 ret = __recv_mpa_hdr(cep, cep->mpa.bytes_rcvd, in erdma_recv_mpa_rr()
448 (char *)&cep->mpa.hdr, in erdma_recv_mpa_rr()
450 cep->mpa.bytes_rcvd += rcvd; in erdma_recv_mpa_rr()
459 if (cep->mpa.bytes_rcvd - sizeof(struct mpa_rr) < in erdma_recv_mpa_rr()
462 cep, cep->mpa.bytes_rcvd - sizeof(struct mpa_rr), in erdma_recv_mpa_rr()
463 (char *)&cep->mpa.ext_data, in erdma_recv_mpa_rr()
465 cep->mpa.bytes_rcvd += rcvd; in erdma_recv_mpa_rr()
471 pd_rcvd = cep->mpa.bytes_rcvd - sizeof(struct mpa_rr) - in erdma_recv_mpa_rr()
497 if (!cep->mpa.pdata) { in erdma_recv_mpa_rr()
498 cep->mpa.pdata = kmalloc(pd_len + 4, GFP_KERNEL); in erdma_recv_mpa_rr()
499 if (!cep->mpa.pdata) in erdma_recv_mpa_rr()
503 rcvd = ksock_recv(s, cep->mpa.pdata + pd_rcvd, to_rcv + 4, in erdma_recv_mpa_rr()
511 cep->mpa.bytes_rcvd += rcvd; in erdma_recv_mpa_rr()
534 req = &cep->mpa.hdr; in erdma_proc_mpareq()
561 kfree(cep->mpa.pdata); in erdma_proc_mpareq()
562 cep->mpa.pdata = NULL; in erdma_proc_mpareq()
581 rep = &cep->mpa.hdr; in erdma_proc_mpareply()
613 if (__mpa_ext_cc(cep->mpa.ext_data.bits) != qp->attrs.cc) in erdma_proc_mpareply()
721 cep->mpa.hdr.params.bits = 0; in erdma_newconn_connected()
722 __mpa_rr_set_revision(&cep->mpa.hdr.params.bits, MPA_REVISION_EXT_1); in erdma_newconn_connected()
724 memcpy(cep->mpa.hdr.key, MPA_KEY_REQ, MPA_KEY_SIZE); in erdma_newconn_connected()
725 cep->mpa.ext_data.cookie = cpu_to_be32(cep->qp->attrs.cookie); in erdma_newconn_connected()
726 __mpa_ext_set_cc(&cep->mpa.ext_data.bits, cep->qp->attrs.cc); in erdma_newconn_connected()
730 cep->mpa.hdr.params.pd_len = 0; in erdma_newconn_connected()
836 cep->mpa.hdr.params.pd_len = 0; in erdma_cm_work_handler()
1139 if (cep->mpa.hdr.params.pd_len) { in erdma_accept()
1140 cep->mpa.hdr.params.pd_len = 0; in erdma_accept()
1141 kfree(cep->mpa.pdata); in erdma_accept()
1142 cep->mpa.pdata = NULL; in erdma_accept()
1200 if (qp->attrs.cc != __mpa_ext_cc(cep->mpa.ext_data.bits)) in erdma_accept()
1215 cep->mpa.ext_data.bits = 0; in erdma_accept()
1216 __mpa_ext_set_cc(&cep->mpa.ext_data.bits, qp->attrs.cc); in erdma_accept()
1217 cep->mpa.ext_data.cookie = cpu_to_be32(cep->qp->attrs.cookie); in erdma_accept()
1273 if (__mpa_rr_revision(cep->mpa.hdr.params.bits) == MPA_REVISION_EXT_1) { in erdma_reject()
1274 cep->mpa.hdr.params.bits |= MPA_RR_FLAG_REJECT; /* reject */ in erdma_reject()