Home
last modified time | relevance | path

Searched refs:rmpp_mad (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/infiniband/core/
Dmad_rmpp.c182 struct ib_rmpp_mad *rmpp_mad; in ack_ds_ack() local
189 rmpp_mad = msg->mad; in ack_ds_ack()
190 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in ack_ds_ack()
192 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in ack_ds_ack()
193 ib_set_rmpp_flags(&rmpp_mad->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE); in ack_ds_ack()
194 rmpp_mad->rmpp_hdr.seg_num = 0; in ack_ds_ack()
195 rmpp_mad->rmpp_hdr.paylen_newwin = cpu_to_be32(1); in ack_ds_ack()
216 struct ib_rmpp_mad *rmpp_mad; in nack_recv() local
223 rmpp_mad = msg->mad; in nack_recv()
224 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in nack_recv()
[all …]
Duser_mad.c501 struct ib_rmpp_mad *rmpp_mad; in ib_umad_write() local
563 rmpp_mad = (struct ib_rmpp_mad *) packet->mad.data; in ib_umad_write()
564 hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in ib_umad_write()
566 if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
569 rmpp_active = ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) & in ib_umad_write()
618 rmpp_mad->mad_hdr.tid = *tid; in ib_umad_write()
622 && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
623 && (ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) & IB_MGMT_RMPP_FLAG_ACTIVE)) { in ib_umad_write()
Dmad.c797 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list() local
821 rmpp_mad->rmpp_hdr.rmpp_version = send_wr->mad_agent_priv-> in alloc_send_rmpp_list()
823 rmpp_mad->rmpp_hdr.rmpp_type = IB_MGMT_RMPP_TYPE_DATA; in alloc_send_rmpp_list()
824 ib_set_rmpp_flags(&rmpp_mad->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE); in alloc_send_rmpp_list()
1657 struct ib_rmpp_mad *rmpp_mad; in is_rmpp_data_mad() local
1659 rmpp_mad = (struct ib_rmpp_mad *)mad_hdr; in is_rmpp_data_mad()
1662 !(ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) & in is_rmpp_data_mad()
1664 (rmpp_mad->rmpp_hdr.rmpp_type == IB_MGMT_RMPP_TYPE_DATA); in is_rmpp_data_mad()