Lines Matching refs:IBA_GET

1551 	cm_id_priv->local_qpn = cpu_to_be32(IBA_GET(CM_REQ_LOCAL_QPN, req_msg));  in ib_send_cm_req()
1552 cm_id_priv->rq_psn = cpu_to_be32(IBA_GET(CM_REQ_STARTING_PSN, req_msg)); in ib_send_cm_req()
1590 IBA_GET(CM_REJ_LOCAL_COMM_ID, rcv_msg)); in cm_issue_rej()
1592 IBA_GET(CM_REJ_REMOTE_COMM_ID, rcv_msg)); in cm_issue_rej()
1602 IBA_GET(CM_REJ_LOCAL_COMM_ID, rcv_msg), in cm_issue_rej()
1603 IBA_GET(CM_REJ_REMOTE_COMM_ID, rcv_msg)); in cm_issue_rej()
1614 IBA_GET(CM_REQ_ALTERNATE_LOCAL_PORT_LID, req_msg))) || in cm_req_has_alt_path()
1638 IBA_GET(CM_REQ_PRIMARY_REMOTE_PORT_LID, in cm_format_path_lid_from_req()
1655 IBA_GET(CM_REQ_ALTERNATE_LOCAL_PORT_LID, in cm_format_path_lid_from_req()
1658 IBA_GET(CM_REQ_ALTERNATE_REMOTE_PORT_LID, in cm_format_path_lid_from_req()
1681 cpu_to_be32(IBA_GET(CM_REQ_PRIMARY_FLOW_LABEL, req_msg)); in cm_format_paths_from_req()
1682 primary_path->hop_limit = IBA_GET(CM_REQ_PRIMARY_HOP_LIMIT, req_msg); in cm_format_paths_from_req()
1684 IBA_GET(CM_REQ_PRIMARY_TRAFFIC_CLASS, req_msg); in cm_format_paths_from_req()
1687 cpu_to_be16(IBA_GET(CM_REQ_PARTITION_KEY, req_msg)); in cm_format_paths_from_req()
1688 primary_path->sl = IBA_GET(CM_REQ_PRIMARY_SL, req_msg); in cm_format_paths_from_req()
1690 primary_path->mtu = IBA_GET(CM_REQ_PATH_PACKET_PAYLOAD_MTU, req_msg); in cm_format_paths_from_req()
1692 primary_path->rate = IBA_GET(CM_REQ_PRIMARY_PACKET_RATE, req_msg); in cm_format_paths_from_req()
1695 IBA_GET(CM_REQ_PRIMARY_LOCAL_ACK_TIMEOUT, req_msg); in cm_format_paths_from_req()
1698 cpu_to_be64(IBA_GET(CM_REQ_SERVICE_ID, req_msg)); in cm_format_paths_from_req()
1708 IBA_GET(CM_REQ_ALTERNATE_FLOW_LABEL, req_msg)); in cm_format_paths_from_req()
1710 IBA_GET(CM_REQ_ALTERNATE_HOP_LIMIT, req_msg); in cm_format_paths_from_req()
1712 IBA_GET(CM_REQ_ALTERNATE_TRAFFIC_CLASS, req_msg); in cm_format_paths_from_req()
1715 cpu_to_be16(IBA_GET(CM_REQ_PARTITION_KEY, req_msg)); in cm_format_paths_from_req()
1716 alt_path->sl = IBA_GET(CM_REQ_ALTERNATE_SL, req_msg); in cm_format_paths_from_req()
1719 IBA_GET(CM_REQ_PATH_PACKET_PAYLOAD_MTU, req_msg); in cm_format_paths_from_req()
1721 alt_path->rate = IBA_GET(CM_REQ_ALTERNATE_PACKET_RATE, req_msg); in cm_format_paths_from_req()
1724 IBA_GET(CM_REQ_ALTERNATE_LOCAL_ACK_TIMEOUT, req_msg); in cm_format_paths_from_req()
1727 cpu_to_be64(IBA_GET(CM_REQ_SERVICE_ID, req_msg)); in cm_format_paths_from_req()
1803 cpu_to_be64(IBA_GET(CM_REQ_LOCAL_CA_GUID, req_msg)); in cm_format_req_event()
1804 param->remote_qkey = IBA_GET(CM_REQ_LOCAL_Q_KEY, req_msg); in cm_format_req_event()
1805 param->remote_qpn = IBA_GET(CM_REQ_LOCAL_QPN, req_msg); in cm_format_req_event()
1807 param->starting_psn = IBA_GET(CM_REQ_STARTING_PSN, req_msg); in cm_format_req_event()
1808 param->responder_resources = IBA_GET(CM_REQ_INITIATOR_DEPTH, req_msg); in cm_format_req_event()
1809 param->initiator_depth = IBA_GET(CM_REQ_RESPONDER_RESOURCES, req_msg); in cm_format_req_event()
1811 IBA_GET(CM_REQ_REMOTE_CM_RESPONSE_TIMEOUT, req_msg); in cm_format_req_event()
1812 param->flow_control = IBA_GET(CM_REQ_END_TO_END_FLOW_CONTROL, req_msg); in cm_format_req_event()
1814 IBA_GET(CM_REQ_LOCAL_CM_RESPONSE_TIMEOUT, req_msg); in cm_format_req_event()
1815 param->retry_count = IBA_GET(CM_REQ_RETRY_COUNT, req_msg); in cm_format_req_event()
1816 param->rnr_retry_count = IBA_GET(CM_REQ_RNR_RETRY_COUNT, req_msg); in cm_format_req_event()
1817 param->srq = IBA_GET(CM_REQ_SRQ, req_msg); in cm_format_req_event()
1819 param->ece.vendor_id = IBA_GET(CM_REQ_VENDOR_ID, req_msg); in cm_format_req_event()
2009 cpu_to_be64(IBA_GET(CM_REQ_SERVICE_ID, req_msg))); in cm_match_req()
2029 if (!IBA_GET(CM_REQ_PRIMARY_SUBNET_LOCAL, req_msg)) { in cm_process_routed_req()
2030 if (cpu_to_be16(IBA_GET(CM_REQ_PRIMARY_LOCAL_PORT_LID, in cm_process_routed_req()
2037 if (cpu_to_be16(IBA_GET(CM_REQ_PRIMARY_REMOTE_PORT_LID, in cm_process_routed_req()
2043 if (!IBA_GET(CM_REQ_ALTERNATE_SUBNET_LOCAL, req_msg)) { in cm_process_routed_req()
2044 if (cpu_to_be16(IBA_GET(CM_REQ_ALTERNATE_LOCAL_PORT_LID, in cm_process_routed_req()
2051 if (cpu_to_be16(IBA_GET(CM_REQ_ALTERNATE_REMOTE_PORT_LID, in cm_process_routed_req()
2074 cpu_to_be32(IBA_GET(CM_REQ_LOCAL_COMM_ID, req_msg)); in cm_req_handler()
2076 cpu_to_be64(IBA_GET(CM_REQ_SERVICE_ID, req_msg)); in cm_req_handler()
2079 IBA_GET(CM_REQ_LOCAL_CM_RESPONSE_TIMEOUT, req_msg)); in cm_req_handler()
2080 cm_id_priv->max_cm_retries = IBA_GET(CM_REQ_MAX_CM_RETRIES, req_msg); in cm_req_handler()
2082 cpu_to_be32(IBA_GET(CM_REQ_LOCAL_QPN, req_msg)); in cm_req_handler()
2084 IBA_GET(CM_REQ_RESPONDER_RESOURCES, req_msg); in cm_req_handler()
2086 IBA_GET(CM_REQ_INITIATOR_DEPTH, req_msg); in cm_req_handler()
2087 cm_id_priv->path_mtu = IBA_GET(CM_REQ_PATH_PACKET_PAYLOAD_MTU, req_msg); in cm_req_handler()
2088 cm_id_priv->pkey = cpu_to_be16(IBA_GET(CM_REQ_PARTITION_KEY, req_msg)); in cm_req_handler()
2089 cm_id_priv->sq_psn = cpu_to_be32(IBA_GET(CM_REQ_STARTING_PSN, req_msg)); in cm_req_handler()
2090 cm_id_priv->retry_count = IBA_GET(CM_REQ_RETRY_COUNT, req_msg); in cm_req_handler()
2091 cm_id_priv->rnr_retry_count = IBA_GET(CM_REQ_RNR_RETRY_COUNT, req_msg); in cm_req_handler()
2108 cpu_to_be64(IBA_GET(CM_REQ_LOCAL_CA_GUID, req_msg)); in cm_req_handler()
2172 IBA_GET(CM_REQ_PRIMARY_LOCAL_PORT_LID, req_msg); in cm_req_handler()
2295 cm_id_priv->rq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in ib_send_cm_rep()
2390 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_format_rep_event()
2391 param->remote_qkey = IBA_GET(CM_REP_LOCAL_Q_KEY, rep_msg); in cm_format_rep_event()
2393 param->starting_psn = IBA_GET(CM_REP_STARTING_PSN, rep_msg); in cm_format_rep_event()
2394 param->responder_resources = IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_format_rep_event()
2395 param->initiator_depth = IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_format_rep_event()
2396 param->target_ack_delay = IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_format_rep_event()
2397 param->failover_accepted = IBA_GET(CM_REP_FAILOVER_ACCEPTED, rep_msg); in cm_format_rep_event()
2398 param->flow_control = IBA_GET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg); in cm_format_rep_event()
2399 param->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_format_rep_event()
2400 param->srq = IBA_GET(CM_REP_SRQ, rep_msg); in cm_format_rep_event()
2401 param->ece.vendor_id = IBA_GET(CM_REP_VENDOR_ID_H, rep_msg) << 16; in cm_format_rep_event()
2402 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_M, rep_msg) << 8; in cm_format_rep_event()
2403 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_L, rep_msg); in cm_format_rep_event()
2419 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), in cm_dup_rep_handler()
2420 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg))); in cm_dup_rep_handler()
2465 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), 0); in cm_rep_handler()
2469 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2483 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2484 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg), in cm_rep_handler()
2491 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2493 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_rep_handler()
2503 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2520 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2521 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2534 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2537 IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_rep_handler()
2539 IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_rep_handler()
2540 cm_id_priv->sq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in cm_rep_handler()
2541 cm_id_priv->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_rep_handler()
2543 IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_rep_handler()
2590 cpu_to_be32(IBA_GET(CM_RTU_REMOTE_COMM_ID, rtu_msg)), in cm_rtu_handler()
2591 cpu_to_be32(IBA_GET(CM_RTU_LOCAL_COMM_ID, rtu_msg))); in cm_rtu_handler()
2782 IBA_GET(CM_DREQ_LOCAL_COMM_ID, dreq_msg)); in cm_issue_drep()
2784 IBA_GET(CM_DREQ_REMOTE_COMM_ID, dreq_msg)); in cm_issue_drep()
2787 IBA_GET(CM_DREQ_LOCAL_COMM_ID, dreq_msg), in cm_issue_drep()
2788 IBA_GET(CM_DREQ_REMOTE_COMM_ID, dreq_msg)); in cm_issue_drep()
2804 cpu_to_be32(IBA_GET(CM_DREQ_REMOTE_COMM_ID, dreq_msg)), in cm_dreq_handler()
2805 cpu_to_be32(IBA_GET(CM_DREQ_LOCAL_COMM_ID, dreq_msg))); in cm_dreq_handler()
2811 IBA_GET(CM_DREQ_LOCAL_COMM_ID, dreq_msg), in cm_dreq_handler()
2812 IBA_GET(CM_DREQ_REMOTE_COMM_ID, dreq_msg)); in cm_dreq_handler()
2821 cpu_to_be32(IBA_GET(CM_DREQ_REMOTE_QPN_EECN, dreq_msg))) in cm_dreq_handler()
2876 cpu_to_be32(IBA_GET(CM_DREP_REMOTE_COMM_ID, drep_msg)), in cm_drep_handler()
2877 cpu_to_be32(IBA_GET(CM_DREP_LOCAL_COMM_ID, drep_msg))); in cm_drep_handler()
2981 param->ari_length = IBA_GET(CM_REJ_REJECTED_INFO_LENGTH, rej_msg); in cm_format_rej_event()
2982 param->reason = IBA_GET(CM_REJ_REASON, rej_msg); in cm_format_rej_event()
2992 remote_id = cpu_to_be32(IBA_GET(CM_REJ_LOCAL_COMM_ID, rej_msg)); in cm_acquire_rejected_id()
2994 if (IBA_GET(CM_REJ_REASON, rej_msg) == IB_CM_REJ_TIMEOUT) { in cm_acquire_rejected_id()
2998 } else if (IBA_GET(CM_REJ_MESSAGE_REJECTED, rej_msg) == in cm_acquire_rejected_id()
3001 cpu_to_be32(IBA_GET(CM_REJ_REMOTE_COMM_ID, rej_msg)), in cm_acquire_rejected_id()
3005 cpu_to_be32(IBA_GET(CM_REJ_REMOTE_COMM_ID, rej_msg)), in cm_acquire_rejected_id()
3033 if (IBA_GET(CM_REJ_REASON, rej_msg) == IB_CM_REJ_STALE_CONN) in cm_rej_handler()
3150 switch (IBA_GET(CM_MRA_MESSAGE_MRAED, mra_msg)) { in cm_acquire_mraed_id()
3153 cpu_to_be32(IBA_GET(CM_MRA_REMOTE_COMM_ID, mra_msg)), in cm_acquire_mraed_id()
3158 cpu_to_be32(IBA_GET(CM_MRA_REMOTE_COMM_ID, mra_msg)), in cm_acquire_mraed_id()
3159 cpu_to_be32(IBA_GET(CM_MRA_LOCAL_COMM_ID, mra_msg))); in cm_acquire_mraed_id()
3179 IBA_GET(CM_MRA_SERVICE_TIMEOUT, mra_msg); in cm_mra_handler()
3180 timeout = cm_convert_to_ms(IBA_GET(CM_MRA_SERVICE_TIMEOUT, mra_msg)) + in cm_mra_handler()
3186 if (IBA_GET(CM_MRA_MESSAGE_MRAED, mra_msg) != in cm_mra_handler()
3193 if (IBA_GET(CM_MRA_MESSAGE_MRAED, mra_msg) != in cm_mra_handler()
3200 if (IBA_GET(CM_MRA_MESSAGE_MRAED, mra_msg) != in cm_mra_handler()
3238 sa_path_set_dlid(path, IBA_GET(CM_LAP_ALTERNATE_LOCAL_PORT_LID, in cm_format_path_lid_from_lap()
3240 sa_path_set_slid(path, IBA_GET(CM_LAP_ALTERNATE_REMOTE_PORT_LID, in cm_format_path_lid_from_lap()
3261 cpu_to_be32(IBA_GET(CM_LAP_ALTERNATE_FLOW_LABEL, lap_msg)); in cm_format_path_from_lap()
3262 path->hop_limit = IBA_GET(CM_LAP_ALTERNATE_HOP_LIMIT, lap_msg); in cm_format_path_from_lap()
3263 path->traffic_class = IBA_GET(CM_LAP_ALTERNATE_TRAFFIC_CLASS, lap_msg); in cm_format_path_from_lap()
3266 path->sl = IBA_GET(CM_LAP_ALTERNATE_SL, lap_msg); in cm_format_path_from_lap()
3270 path->rate = IBA_GET(CM_LAP_ALTERNATE_PACKET_RATE, lap_msg); in cm_format_path_from_lap()
3273 IBA_GET(CM_LAP_ALTERNATE_LOCAL_ACK_TIMEOUT, lap_msg); in cm_format_path_from_lap()
3298 cpu_to_be32(IBA_GET(CM_LAP_REMOTE_COMM_ID, lap_msg)), in cm_lap_handler()
3299 cpu_to_be32(IBA_GET(CM_LAP_LOCAL_COMM_ID, lap_msg))); in cm_lap_handler()
3390 cpu_to_be32(IBA_GET(CM_APR_REMOTE_COMM_ID, apr_msg)), in cm_apr_handler()
3391 cpu_to_be32(IBA_GET(CM_APR_LOCAL_COMM_ID, apr_msg))); in cm_apr_handler()
3396 IBA_GET(CM_APR_AR_STATUS, apr_msg); in cm_apr_handler()
3400 IBA_GET(CM_APR_ADDITIONAL_INFORMATION_LENGTH, apr_msg); in cm_apr_handler()
3531 param->pkey = IBA_GET(CM_SIDR_REQ_PARTITION_KEY, sidr_req_msg); in cm_format_sidr_req_event()
3534 cpu_to_be64(IBA_GET(CM_SIDR_REQ_SERVICEID, sidr_req_msg)); in cm_format_sidr_req_event()
3559 cpu_to_be32(IBA_GET(CM_SIDR_REQ_REQUESTID, sidr_req_msg)); in cm_sidr_req_handler()
3561 cpu_to_be64(IBA_GET(CM_SIDR_REQ_SERVICEID, sidr_req_msg)); in cm_sidr_req_handler()
3707 param->status = IBA_GET(CM_SIDR_REP_STATUS, sidr_rep_msg); in cm_format_sidr_rep_event()
3708 param->qkey = IBA_GET(CM_SIDR_REP_Q_KEY, sidr_rep_msg); in cm_format_sidr_rep_event()
3709 param->qpn = IBA_GET(CM_SIDR_REP_QPN, sidr_rep_msg); in cm_format_sidr_rep_event()
3712 param->info_len = IBA_GET(CM_SIDR_REP_ADDITIONAL_INFORMATION_LENGTH, in cm_format_sidr_rep_event()
3727 cpu_to_be32(IBA_GET(CM_SIDR_REP_REQUESTID, sidr_rep_msg)), 0); in cm_sidr_rep_handler()