Lines Matching defs:send_buf
87 struct ib_mad_send_buf *send_buf;
108 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0,
111 if (IS_ERR(send_buf)) {
116 memcpy(send_buf->mad, mad, sizeof *mad);
117 send_buf->ah = ah;
120 mad_send_wr = container_of(send_buf,
122 send_buf);
126 if (ib_post_send_mad(send_buf, NULL)) {
132 ib_free_send_mad(send_buf);
140 ib_destroy_ah(mad_send_wc->send_buf->ah);
141 ib_free_send_mad(mad_send_wc->send_buf);