rmpp_hdr         1032 drivers/infiniband/core/mad.c 	rmpp_mad->rmpp_hdr.rmpp_version = send_wr->mad_agent_priv->
rmpp_hdr         1034 drivers/infiniband/core/mad.c 	rmpp_mad->rmpp_hdr.rmpp_type = IB_MGMT_RMPP_TYPE_DATA;
rmpp_hdr         1035 drivers/infiniband/core/mad.c 	ib_set_rmpp_flags(&rmpp_mad->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE);
rmpp_hdr         1896 drivers/infiniband/core/mad.c 		!(ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) &
rmpp_hdr         1898 drivers/infiniband/core/mad.c 		(rmpp_mad->rmpp_hdr.rmpp_type == IB_MGMT_RMPP_TYPE_DATA);
rmpp_hdr         2054 drivers/infiniband/core/mad.c 			   && (ib_get_rmpp_flags(&((struct ib_rmpp_mad *)mad_recv_wc->recv_buf.mad)->rmpp_hdr)
rmpp_hdr          125 drivers/infiniband/core/mad_rmpp.c 	ack->rmpp_hdr.rmpp_type = IB_MGMT_RMPP_TYPE_ACK;
rmpp_hdr          126 drivers/infiniband/core/mad_rmpp.c 	ib_set_rmpp_flags(&ack->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE);
rmpp_hdr          130 drivers/infiniband/core/mad_rmpp.c 	ack->rmpp_hdr.seg_num = cpu_to_be32(rmpp_recv->seg_num);
rmpp_hdr          131 drivers/infiniband/core/mad_rmpp.c 	ack->rmpp_hdr.paylen_newwin = cpu_to_be32(rmpp_recv->newwin);
rmpp_hdr          198 drivers/infiniband/core/mad_rmpp.c 	ib_set_rmpp_flags(&rmpp_mad->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE);
rmpp_hdr          199 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.seg_num = 0;
rmpp_hdr          200 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.paylen_newwin = cpu_to_be32(1);
rmpp_hdr          232 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.rmpp_version = IB_MGMT_RMPP_VERSION;
rmpp_hdr          233 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.rmpp_type = IB_MGMT_RMPP_TYPE_ABORT;
rmpp_hdr          234 drivers/infiniband/core/mad_rmpp.c 	ib_set_rmpp_flags(&rmpp_mad->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE);
rmpp_hdr          235 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.rmpp_status = rmpp_status;
rmpp_hdr          236 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.seg_num = 0;
rmpp_hdr          237 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.paylen_newwin = 0;
rmpp_hdr          383 drivers/infiniband/core/mad_rmpp.c 	return ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) & IB_MGMT_RMPP_FLAG_LAST;
rmpp_hdr          391 drivers/infiniband/core/mad_rmpp.c 	return be32_to_cpu(rmpp_mad->rmpp_hdr.seg_num);
rmpp_hdr          448 drivers/infiniband/core/mad_rmpp.c 		pad = OPA_MGMT_RMPP_DATA - be32_to_cpu(rmpp_mad->rmpp_hdr.paylen_newwin);
rmpp_hdr          453 drivers/infiniband/core/mad_rmpp.c 		pad = IB_MGMT_RMPP_DATA - be32_to_cpu(rmpp_mad->rmpp_hdr.paylen_newwin);
rmpp_hdr          583 drivers/infiniband/core/mad_rmpp.c 	ib_set_rmpp_flags(&rmpp_mad->rmpp_hdr, IB_MGMT_RMPP_FLAG_ACTIVE);
rmpp_hdr          584 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.seg_num = cpu_to_be32(++mad_send_wr->seg_num);
rmpp_hdr          587 drivers/infiniband/core/mad_rmpp.c 		rmpp_mad->rmpp_hdr.rmpp_rtime_flags |= IB_MGMT_RMPP_FLAG_FIRST;
rmpp_hdr          594 drivers/infiniband/core/mad_rmpp.c 		rmpp_mad->rmpp_hdr.rmpp_rtime_flags |= IB_MGMT_RMPP_FLAG_LAST;
rmpp_hdr          597 drivers/infiniband/core/mad_rmpp.c 	rmpp_mad->rmpp_hdr.paylen_newwin = cpu_to_be32(paylen);
rmpp_hdr          666 drivers/infiniband/core/mad_rmpp.c 	if (rmpp_mad->rmpp_hdr.rmpp_status) {
rmpp_hdr          672 drivers/infiniband/core/mad_rmpp.c 	seg_num = be32_to_cpu(rmpp_mad->rmpp_hdr.seg_num);
rmpp_hdr          673 drivers/infiniband/core/mad_rmpp.c 	newwin = be32_to_cpu(rmpp_mad->rmpp_hdr.paylen_newwin);
rmpp_hdr          755 drivers/infiniband/core/mad_rmpp.c 	struct ib_rmpp_hdr *rmpp_hdr;
rmpp_hdr          758 drivers/infiniband/core/mad_rmpp.c 	rmpp_hdr = &((struct ib_rmpp_mad *)mad_recv_wc->recv_buf.mad)->rmpp_hdr;
rmpp_hdr          760 drivers/infiniband/core/mad_rmpp.c 	if (rmpp_hdr->rmpp_status) {
rmpp_hdr          765 drivers/infiniband/core/mad_rmpp.c 	if (rmpp_hdr->seg_num == cpu_to_be32(1)) {
rmpp_hdr          766 drivers/infiniband/core/mad_rmpp.c 		if (!(ib_get_rmpp_flags(rmpp_hdr) & IB_MGMT_RMPP_FLAG_FIRST)) {
rmpp_hdr          772 drivers/infiniband/core/mad_rmpp.c 		if (ib_get_rmpp_flags(rmpp_hdr) & IB_MGMT_RMPP_FLAG_FIRST) {
rmpp_hdr          791 drivers/infiniband/core/mad_rmpp.c 	if (rmpp_mad->rmpp_hdr.rmpp_status != IB_MGMT_RMPP_STATUS_RESX) {
rmpp_hdr          795 drivers/infiniband/core/mad_rmpp.c 		abort_send(agent, mad_recv_wc, rmpp_mad->rmpp_hdr.rmpp_status);
rmpp_hdr          805 drivers/infiniband/core/mad_rmpp.c 	if (rmpp_mad->rmpp_hdr.rmpp_status < IB_MGMT_RMPP_STATUS_ABORT_MIN ||
rmpp_hdr          806 drivers/infiniband/core/mad_rmpp.c 	    rmpp_mad->rmpp_hdr.rmpp_status > IB_MGMT_RMPP_STATUS_ABORT_MAX) {
rmpp_hdr          810 drivers/infiniband/core/mad_rmpp.c 		abort_send(agent, mad_recv_wc, rmpp_mad->rmpp_hdr.rmpp_status);
rmpp_hdr          820 drivers/infiniband/core/mad_rmpp.c 	if (!(rmpp_mad->rmpp_hdr.rmpp_rtime_flags & IB_MGMT_RMPP_FLAG_ACTIVE))
rmpp_hdr          823 drivers/infiniband/core/mad_rmpp.c 	if (rmpp_mad->rmpp_hdr.rmpp_version != IB_MGMT_RMPP_VERSION) {
rmpp_hdr          829 drivers/infiniband/core/mad_rmpp.c 	switch (rmpp_mad->rmpp_hdr.rmpp_type) {
rmpp_hdr          890 drivers/infiniband/core/mad_rmpp.c 	if (!(ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) &
rmpp_hdr          894 drivers/infiniband/core/mad_rmpp.c 	if (rmpp_mad->rmpp_hdr.rmpp_type != IB_MGMT_RMPP_TYPE_DATA) {
rmpp_hdr          916 drivers/infiniband/core/mad_rmpp.c 	if (!(ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) &
rmpp_hdr          920 drivers/infiniband/core/mad_rmpp.c 	if (rmpp_mad->rmpp_hdr.rmpp_type != IB_MGMT_RMPP_TYPE_DATA)
rmpp_hdr          954 drivers/infiniband/core/mad_rmpp.c 	if (!(ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) &
rmpp_hdr          559 drivers/infiniband/core/user_mad.c 		rmpp_active = ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) &
rmpp_hdr          613 drivers/infiniband/core/user_mad.c 	   && (ib_get_rmpp_flags(&rmpp_mad->rmpp_hdr) & IB_MGMT_RMPP_FLAG_ACTIVE)) {
rmpp_hdr          455 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h 	struct ib_rmpp_hdr rmpp_hdr;
rmpp_hdr          495 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h 	struct ib_rmpp_hdr           rmpp_hdr;
rmpp_hdr           80 drivers/infiniband/ulp/srpt/ib_dm_mad.h 	struct ib_rmpp_hdr rmpp_hdr;
rmpp_hdr          215 include/rdma/ib_mad.h 	struct ib_rmpp_hdr	rmpp_hdr;
rmpp_hdr          221 include/rdma/ib_mad.h 	struct ib_rmpp_hdr	rmpp_hdr;
rmpp_hdr          227 include/rdma/ib_mad.h 	struct ib_rmpp_hdr	rmpp_hdr;
rmpp_hdr          234 include/rdma/ib_mad.h 	struct ib_rmpp_hdr	rmpp_hdr;
rmpp_hdr          514 include/rdma/ib_mad.h static inline u8 ib_get_rmpp_resptime(struct ib_rmpp_hdr *rmpp_hdr)
rmpp_hdr          516 include/rdma/ib_mad.h 	return rmpp_hdr->rmpp_rtime_flags >> 3;
rmpp_hdr          523 include/rdma/ib_mad.h static inline u8 ib_get_rmpp_flags(struct ib_rmpp_hdr *rmpp_hdr)
rmpp_hdr          525 include/rdma/ib_mad.h 	return rmpp_hdr->rmpp_rtime_flags & 0x7;
rmpp_hdr          533 include/rdma/ib_mad.h static inline void ib_set_rmpp_resptime(struct ib_rmpp_hdr *rmpp_hdr, u8 rtime)
rmpp_hdr          535 include/rdma/ib_mad.h 	rmpp_hdr->rmpp_rtime_flags = ib_get_rmpp_flags(rmpp_hdr) | (rtime << 3);
rmpp_hdr          543 include/rdma/ib_mad.h static inline void ib_set_rmpp_flags(struct ib_rmpp_hdr *rmpp_hdr, u8 flags)
rmpp_hdr          545 include/rdma/ib_mad.h 	rmpp_hdr->rmpp_rtime_flags = (rmpp_hdr->rmpp_rtime_flags & 0xF8) |