Lines Matching refs:dp
72 const struct rds_iw_connect_private *dp = NULL; in rds_iw_cm_connect_complete() local
78 dp = event->param.conn.private_data; in rds_iw_cm_connect_complete()
81 RDS_PROTOCOL(dp->dp_protocol_major, in rds_iw_cm_connect_complete()
82 dp->dp_protocol_minor)); in rds_iw_cm_connect_complete()
83 rds_iw_set_flow_control(conn, be32_to_cpu(dp->dp_credit)); in rds_iw_cm_connect_complete()
95 if (dp && dp->dp_ack_seq) in rds_iw_cm_connect_complete()
96 rds_send_drop_acked(conn, be64_to_cpu(dp->dp_ack_seq), NULL); in rds_iw_cm_connect_complete()
109 struct rds_iw_connect_private *dp, in rds_iw_cm_fill_conn_param() argument
119 if (dp) { in rds_iw_cm_fill_conn_param()
120 memset(dp, 0, sizeof(*dp)); in rds_iw_cm_fill_conn_param()
121 dp->dp_saddr = conn->c_laddr; in rds_iw_cm_fill_conn_param()
122 dp->dp_daddr = conn->c_faddr; in rds_iw_cm_fill_conn_param()
123 dp->dp_protocol_major = RDS_PROTOCOL_MAJOR(protocol_version); in rds_iw_cm_fill_conn_param()
124 dp->dp_protocol_minor = RDS_PROTOCOL_MINOR(protocol_version); in rds_iw_cm_fill_conn_param()
125 dp->dp_protocol_minor_mask = cpu_to_be16(RDS_IW_SUPPORTED_PROTOCOLS); in rds_iw_cm_fill_conn_param()
126 dp->dp_ack_seq = rds_iw_piggyb_ack(ic); in rds_iw_cm_fill_conn_param()
133 dp->dp_credit = cpu_to_be32(credits); in rds_iw_cm_fill_conn_param()
137 conn_param->private_data = dp; in rds_iw_cm_fill_conn_param()
138 conn_param->private_data_len = sizeof(*dp); in rds_iw_cm_fill_conn_param()
348 static u32 rds_iw_protocol_compatible(const struct rds_iw_connect_private *dp) in rds_iw_protocol_compatible() argument
360 if (dp->dp_protocol_major == 0) in rds_iw_protocol_compatible()
363 common = be16_to_cpu(dp->dp_protocol_minor_mask) & RDS_IW_SUPPORTED_PROTOCOLS; in rds_iw_protocol_compatible()
364 if (dp->dp_protocol_major == 3 && common) { in rds_iw_protocol_compatible()
371 &dp->dp_saddr, in rds_iw_protocol_compatible()
372 dp->dp_protocol_major, in rds_iw_protocol_compatible()
373 dp->dp_protocol_minor); in rds_iw_protocol_compatible()
380 const struct rds_iw_connect_private *dp = event->param.conn.private_data; in rds_iw_cm_handle_connect() local
390 version = rds_iw_protocol_compatible(dp); in rds_iw_cm_handle_connect()
395 &dp->dp_saddr, &dp->dp_daddr, in rds_iw_cm_handle_connect()
398 conn = rds_conn_create(dp->dp_daddr, dp->dp_saddr, &rds_iw_transport, in rds_iw_cm_handle_connect()
431 rds_iw_set_flow_control(conn, be32_to_cpu(dp->dp_credit)); in rds_iw_cm_handle_connect()
435 if (dp->dp_ack_seq) in rds_iw_cm_handle_connect()
436 rds_send_drop_acked(conn, be64_to_cpu(dp->dp_ack_seq), NULL); in rds_iw_cm_handle_connect()
481 struct rds_iw_connect_private dp; in rds_iw_cm_initiate_connect() local
495 rds_iw_cm_fill_conn_param(conn, &conn_param, &dp, RDS_PROTOCOL_VERSION); in rds_iw_cm_initiate_connect()