• Home
  • Raw
  • Download

Lines Matching refs:dp

127 	const struct rds_ib_connect_private *dp = NULL;  in rds_ib_cm_connect_complete()  local
132 if (event->param.conn.private_data_len >= sizeof(*dp)) { in rds_ib_cm_connect_complete()
133 dp = event->param.conn.private_data; in rds_ib_cm_connect_complete()
136 if (dp->dp_protocol_major) { in rds_ib_cm_connect_complete()
138 RDS_PROTOCOL(dp->dp_protocol_major, in rds_ib_cm_connect_complete()
139 dp->dp_protocol_minor)); in rds_ib_cm_connect_complete()
140 rds_ib_set_flow_control(conn, be32_to_cpu(dp->dp_credit)); in rds_ib_cm_connect_complete()
186 if (dp && dp->dp_ack_seq) in rds_ib_cm_connect_complete()
187 rds_send_drop_acked(conn, be64_to_cpu(dp->dp_ack_seq), NULL); in rds_ib_cm_connect_complete()
194 struct rds_ib_connect_private *dp, in rds_ib_cm_fill_conn_param() argument
211 if (dp) { in rds_ib_cm_fill_conn_param()
212 memset(dp, 0, sizeof(*dp)); in rds_ib_cm_fill_conn_param()
213 dp->dp_saddr = conn->c_laddr; in rds_ib_cm_fill_conn_param()
214 dp->dp_daddr = conn->c_faddr; in rds_ib_cm_fill_conn_param()
215 dp->dp_protocol_major = RDS_PROTOCOL_MAJOR(protocol_version); in rds_ib_cm_fill_conn_param()
216 dp->dp_protocol_minor = RDS_PROTOCOL_MINOR(protocol_version); in rds_ib_cm_fill_conn_param()
217 dp->dp_protocol_minor_mask = cpu_to_be16(RDS_IB_SUPPORTED_PROTOCOLS); in rds_ib_cm_fill_conn_param()
218 dp->dp_ack_seq = rds_ib_piggyb_ack(ic); in rds_ib_cm_fill_conn_param()
225 dp->dp_credit = cpu_to_be32(credits); in rds_ib_cm_fill_conn_param()
229 conn_param->private_data = dp; in rds_ib_cm_fill_conn_param()
230 conn_param->private_data_len = sizeof(*dp); in rds_ib_cm_fill_conn_param()
431 const struct rds_ib_connect_private *dp = event->param.conn.private_data; in rds_ib_protocol_compatible() local
453 if (event->param.conn.private_data_len < sizeof (*dp) || in rds_ib_protocol_compatible()
454 dp->dp_protocol_major == 0) in rds_ib_protocol_compatible()
457 common = be16_to_cpu(dp->dp_protocol_minor_mask) & RDS_IB_SUPPORTED_PROTOCOLS; in rds_ib_protocol_compatible()
458 if (dp->dp_protocol_major == 3 && common) { in rds_ib_protocol_compatible()
464 &dp->dp_saddr, in rds_ib_protocol_compatible()
465 dp->dp_protocol_major, in rds_ib_protocol_compatible()
466 dp->dp_protocol_minor); in rds_ib_protocol_compatible()
475 const struct rds_ib_connect_private *dp = event->param.conn.private_data; in rds_ib_cm_handle_connect() local
489 "0x%llx\n", &dp->dp_saddr, &dp->dp_daddr, in rds_ib_cm_handle_connect()
494 conn = rds_conn_create(dp->dp_daddr, dp->dp_saddr, &rds_ib_transport, in rds_ib_cm_handle_connect()
526 rds_ib_set_flow_control(conn, be32_to_cpu(dp->dp_credit)); in rds_ib_cm_handle_connect()
530 if (dp->dp_ack_seq) in rds_ib_cm_handle_connect()
531 rds_send_drop_acked(conn, be64_to_cpu(dp->dp_ack_seq), NULL); in rds_ib_cm_handle_connect()
572 struct rds_ib_connect_private dp; in rds_ib_cm_initiate_connect() local
586 rds_ib_cm_fill_conn_param(conn, &conn_param, &dp, RDS_PROTOCOL_VERSION, in rds_ib_cm_initiate_connect()