Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/infiniband/core/
Dmad_rmpp.c187 struct ib_rmpp_mad *rmpp_mad; in ack_ds_ack() local
194 rmpp_mad = msg->mad; in ack_ds_ack()
195 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in ack_ds_ack()
197 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in ack_ds_ack()
198 ib_set_rmpp_flags(&rmpp_mad->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE); in ack_ds_ack()
199 rmpp_mad->rmpp_hdr.seg_num = 0; in ack_ds_ack()
200 rmpp_mad->rmpp_hdr.paylen_newwin = cpu_to_be32(1); in ack_ds_ack()
221 struct ib_rmpp_mad *rmpp_mad; in nack_recv() local
228 rmpp_mad = msg->mad; in nack_recv()
229 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in nack_recv()
[all …]
Duser_mad.c491 struct ib_rmpp_mad *rmpp_mad; in ib_umad_write() local
553 rmpp_mad = (struct ib_rmpp_mad *) packet->mad.data; in ib_umad_write()
554 hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in ib_umad_write()
556 if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
559 rmpp_active = ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) & in ib_umad_write()
608 rmpp_mad->mad_hdr.tid = *tid; in ib_umad_write()
612 && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
613 && (ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) & IB_MGMT_RMPP_FLAG_ACTIVE)) { in ib_umad_write()
Dmad.c1008 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list() local
1032 rmpp_mad->rmpp_hdr.rmpp_version = send_wr->mad_agent_priv-> in alloc_send_rmpp_list()
1034 rmpp_mad->rmpp_hdr.rmpp_type = IB_MGMT_RMPP_TYPE_DATA; in alloc_send_rmpp_list()
1035 ib_set_rmpp_flags(&rmpp_mad->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE); in alloc_send_rmpp_list()
1891 struct ib_rmpp_mad *rmpp_mad; in is_rmpp_data_mad() local
1893 rmpp_mad = (struct ib_rmpp_mad *)mad_hdr; in is_rmpp_data_mad()
1896 !(ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) & in is_rmpp_data_mad()
1898 (rmpp_mad->rmpp_hdr.rmpp_type == IB_MGMT_RMPP_TYPE_DATA); in is_rmpp_data_mad()